From 192c93ed59bfddf1b42038375e12a5cd371d8b82 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 25 Jan 2023 00:34:01 +0000 Subject: [PATCH 1/6] feat: add policy based routing" will work PiperOrigin-RevId: 504360042 Source-Link: https://github.com/googleapis/googleapis/commit/f6427904e82d032dc58ead51662108ff824b75ca Source-Link: https://github.com/googleapis/googleapis-gen/commit/91163ea61de47bda6d30d2dee4a49be27b60aa33 Copy-Tag: eyJwIjoiamF2YS1uZXR3b3JrY29ubmVjdGl2aXR5Ly5Pd2xCb3QueWFtbCIsImgiOiI5MTE2M2VhNjFkZTQ3YmRhNmQzMGQyZGVlNGE0OWJlMjdiNjBhYTMzIn0= --- .../v1/PolicyBasedRoutingServiceClient.java | 944 -- .../v1/PolicyBasedRoutingServiceSettings.java | 271 - ...icyBasedRoutingServiceCallableFactory.java | 113 - .../GrpcPolicyBasedRoutingServiceStub.java | 325 - .../stub/PolicyBasedRoutingServiceStub.java | 86 - ...PolicyBasedRoutingServiceStubSettings.java | 572 -- .../v1/MockPolicyBasedRoutingService.java | 59 - .../v1/MockPolicyBasedRoutingServiceImpl.java | 146 - .../PolicyBasedRoutingServiceClientTest.java | 501 - .../v1/HubServiceGrpc.java | 1396 --- .../v1/PolicyBasedRoutingServiceGrpc.java | 757 -- .../v1alpha1/HubServiceGrpc.java | 1400 --- .../networkconnectivity/v1/CommonProto.java | 102 - .../v1/CreatePolicyBasedRouteRequest.java | 1386 --- ...reatePolicyBasedRouteRequestOrBuilder.java | 165 - .../v1/DeletePolicyBasedRouteRequest.java | 907 -- ...eletePolicyBasedRouteRequestOrBuilder.java | 99 - .../v1/GetHubRequestOrBuilder.java | 54 - .../v1/GetPolicyBasedRouteRequest.java | 655 -- .../GetPolicyBasedRouteRequestOrBuilder.java | 54 - .../v1/GetSpokeRequestOrBuilder.java | 54 - .../networkconnectivity/v1/HubProto.java | 532 - .../v1/ListPolicyBasedRoutesRequest.java | 1294 --- ...ListPolicyBasedRoutesRequestOrBuilder.java | 142 - .../v1/ListPolicyBasedRoutesResponse.java | 1462 --- ...istPolicyBasedRoutesResponseOrBuilder.java | 162 - .../v1/PolicyBasedRoute.java | 8859 ----------------- .../v1/PolicyBasedRouteName.java | 228 - .../v1/PolicyBasedRouteOrBuilder.java | 556 -- .../v1/PolicyBasedRoutingProto.java | 349 - .../v1/policy_based_routing.proto | 338 - .../v1alpha1/CommonProto.java | 94 - .../v1alpha1/GetHubRequestOrBuilder.java | 54 - .../v1alpha1/GetSpokeRequestOrBuilder.java | 54 - .../v1alpha1/HubProto.java | 460 - .../SyncCreateSetCredentialsProvider.java | 45 - .../create/SyncCreateSetEndpoint.java | 42 - .../AsyncCreatePolicyBasedRoute.java | 55 - .../AsyncCreatePolicyBasedRouteLRO.java | 57 - .../SyncCreatePolicyBasedRoute.java | 51 - ...uteLocationnamePolicybasedrouteString.java | 49 - ...asedRouteStringPolicybasedrouteString.java | 48 - .../AsyncDeletePolicyBasedRoute.java | 54 - .../AsyncDeletePolicyBasedRouteLRO.java | 57 - .../SyncDeletePolicyBasedRoute.java | 50 - ...ePolicyBasedRoutePolicybasedroutename.java | 44 - .../SyncDeletePolicyBasedRouteString.java | 44 - .../AsyncGetPolicyBasedRoute.java | 53 - .../SyncGetPolicyBasedRoute.java | 49 - ...tPolicyBasedRoutePolicybasedroutename.java | 44 - .../SyncGetPolicyBasedRouteString.java | 44 - .../AsyncListPolicyBasedRoutes.java | 57 - .../AsyncListPolicyBasedRoutesPaged.java | 65 - .../SyncListPolicyBasedRoutes.java | 54 - ...SyncListPolicyBasedRoutesLocationname.java | 46 - .../SyncListPolicyBasedRoutesString.java | 46 - .../SyncGetPolicyBasedRoute.java | 50 - .../SyncGetPolicyBasedRoute.java | 50 - .../v1/HubServiceClient.java | 92 +- .../v1/HubServiceSettings.java | 1 + .../v1/gapic_metadata.json | 21 - .../networkconnectivity/v1/package-info.java | 21 - .../stub/GrpcHubServiceCallableFactory.java | 0 .../v1/stub/GrpcHubServiceStub.java | 1 + .../v1/stub/HubServiceStub.java | 0 .../v1/stub/HubServiceStubSettings.java | 0 .../v1/HubServiceClientTest.java | 0 .../v1/MockHubService.java | 0 .../v1/MockHubServiceImpl.java | 0 .../v1/HubServiceGrpc.java | 1087 ++ .../networkconnectivity/v1/CommonProto.java | 72 + .../v1/CreateHubRequest.java | 715 +- .../v1/CreateHubRequestOrBuilder.java | 93 +- .../v1/CreateSpokeRequest.java | 721 +- .../v1/CreateSpokeRequestOrBuilder.java | 93 +- .../v1/DeleteHubRequest.java | 504 +- .../v1/DeleteHubRequestOrBuilder.java | 64 +- .../v1/DeleteSpokeRequest.java | 504 +- .../v1/DeleteSpokeRequestOrBuilder.java | 64 +- .../networkconnectivity/v1/GetHubRequest.java | 364 +- .../v1/GetHubRequestOrBuilder.java | 29 + .../v1/GetSpokeRequest.java | 362 +- .../v1/GetSpokeRequestOrBuilder.java | 29 + .../cloud/networkconnectivity/v1/Hub.java | 1266 +-- .../cloud/networkconnectivity/v1/HubName.java | 0 .../networkconnectivity/v1/HubOrBuilder.java | 153 +- .../networkconnectivity/v1/HubProto.java | 478 + .../v1/LinkedInterconnectAttachments.java | 627 +- ...inkedInterconnectAttachmentsOrBuilder.java | 68 +- .../v1/LinkedRouterApplianceInstances.java | 798 +- ...nkedRouterApplianceInstancesOrBuilder.java | 81 +- .../v1/LinkedVpnTunnels.java | 592 +- .../v1/LinkedVpnTunnelsOrBuilder.java | 68 +- .../v1/ListHubsRequest.java | 615 +- .../v1/ListHubsRequestOrBuilder.java | 65 +- .../v1/ListHubsResponse.java | 598 +- .../v1/ListHubsResponseOrBuilder.java | 63 +- .../v1/ListSpokesRequest.java | 613 +- .../v1/ListSpokesRequestOrBuilder.java | 65 +- .../v1/ListSpokesResponse.java | 593 +- .../v1/ListSpokesResponseOrBuilder.java | 63 +- .../v1/LocationFeature.java | 84 +- .../v1/LocationMetadata.java | 454 +- .../v1/LocationMetadataOrBuilder.java | 51 +- .../networkconnectivity/v1/LocationName.java | 0 .../v1/OperationMetadata.java | 835 +- .../v1/OperationMetadataOrBuilder.java | 91 +- .../v1/RouterApplianceInstance.java | 423 +- .../v1/RouterApplianceInstanceOrBuilder.java | 36 +- .../networkconnectivity/v1/RoutingVPC.java | 409 +- .../v1/RoutingVPCOrBuilder.java | 38 +- .../cloud/networkconnectivity/v1/Spoke.java | 1698 ++-- .../networkconnectivity/v1/SpokeName.java | 0 .../v1/SpokeOrBuilder.java | 212 +- .../cloud/networkconnectivity/v1/State.java | 113 +- .../v1/UpdateHubRequest.java | 788 +- .../v1/UpdateHubRequestOrBuilder.java | 114 +- .../v1/UpdateSpokeRequest.java | 724 +- .../v1/UpdateSpokeRequestOrBuilder.java | 96 +- .../cloud/networkconnectivity/v1/common.proto | 9 - .../cloud/networkconnectivity/v1/hub.proto | 266 +- .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../hubservice/createhub/AsyncCreateHub.java | 0 .../createhub/AsyncCreateHubLRO.java | 0 .../hubservice/createhub/SyncCreateHub.java | 0 .../SyncCreateHubLocationnameHubString.java | 0 .../SyncCreateHubStringHubString.java | 0 .../createspoke/AsyncCreateSpoke.java | 0 .../createspoke/AsyncCreateSpokeLRO.java | 0 .../createspoke/SyncCreateSpoke.java | 0 ...yncCreateSpokeLocationnameSpokeString.java | 0 .../SyncCreateSpokeStringSpokeString.java | 0 .../hubservice/deletehub/AsyncDeleteHub.java | 0 .../deletehub/AsyncDeleteHubLRO.java | 0 .../hubservice/deletehub/SyncDeleteHub.java | 0 .../deletehub/SyncDeleteHubHubname.java | 0 .../deletehub/SyncDeleteHubString.java | 0 .../deletespoke/AsyncDeleteSpoke.java | 0 .../deletespoke/AsyncDeleteSpokeLRO.java | 0 .../deletespoke/SyncDeleteSpoke.java | 0 .../deletespoke/SyncDeleteSpokeSpokename.java | 0 .../deletespoke/SyncDeleteSpokeString.java | 0 .../v1/hubservice/gethub/AsyncGetHub.java | 0 .../v1/hubservice/gethub/SyncGetHub.java | 0 .../hubservice/gethub/SyncGetHubHubname.java | 0 .../hubservice/gethub/SyncGetHubString.java | 0 .../v1/hubservice/getspoke/AsyncGetSpoke.java | 0 .../v1/hubservice/getspoke/SyncGetSpoke.java | 0 .../getspoke/SyncGetSpokeSpokename.java | 0 .../getspoke/SyncGetSpokeString.java | 0 .../v1/hubservice/listhubs/AsyncListHubs.java | 0 .../listhubs/AsyncListHubsPaged.java | 0 .../v1/hubservice/listhubs/SyncListHubs.java | 0 .../listhubs/SyncListHubsLocationname.java | 0 .../listhubs/SyncListHubsString.java | 0 .../listspokes/AsyncListSpokes.java | 0 .../listspokes/AsyncListSpokesPaged.java | 0 .../hubservice/listspokes/SyncListSpokes.java | 0 .../SyncListSpokesLocationname.java | 0 .../listspokes/SyncListSpokesString.java | 0 .../hubservice/updatehub/AsyncUpdateHub.java | 0 .../updatehub/AsyncUpdateHubLRO.java | 0 .../hubservice/updatehub/SyncUpdateHub.java | 0 .../updatehub/SyncUpdateHubHubFieldmask.java | 0 .../updatespoke/AsyncUpdateSpoke.java | 0 .../updatespoke/AsyncUpdateSpokeLRO.java | 0 .../updatespoke/SyncUpdateSpoke.java | 0 .../SyncUpdateSpokeSpokeFieldmask.java | 0 .../hubservicesettings/gethub/SyncGetHub.java | 0 .../gethub/SyncGetHub.java | 0 .../v1alpha1/HubServiceClient.java | 0 .../v1alpha1/HubServiceSettings.java | 1 + .../v1alpha1/gapic_metadata.json | 0 .../v1alpha1/package-info.java | 0 .../stub/GrpcHubServiceCallableFactory.java | 0 .../v1alpha1/stub/GrpcHubServiceStub.java | 1 + .../v1alpha1/stub/HubServiceStub.java | 0 .../v1alpha1/stub/HubServiceStubSettings.java | 0 .../v1alpha1/HubServiceClientTest.java | 0 .../v1alpha1/MockHubService.java | 0 .../v1alpha1/MockHubServiceImpl.java | 0 .../v1alpha1/HubServiceGrpc.java | 1092 ++ .../v1alpha1/CommonProto.java | 73 + .../v1alpha1/CreateHubRequest.java | 662 +- .../v1alpha1/CreateHubRequestOrBuilder.java | 73 +- .../v1alpha1/CreateSpokeRequest.java | 665 +- .../v1alpha1/CreateSpokeRequestOrBuilder.java | 73 +- .../v1alpha1/DeleteHubRequest.java | 448 +- .../v1alpha1/DeleteHubRequestOrBuilder.java | 44 +- .../v1alpha1/DeleteSpokeRequest.java | 451 +- .../v1alpha1/DeleteSpokeRequestOrBuilder.java | 44 +- .../v1alpha1/GetHubRequest.java | 356 +- .../v1alpha1/GetHubRequestOrBuilder.java | 29 + .../v1alpha1/GetSpokeRequest.java | 366 +- .../v1alpha1/GetSpokeRequestOrBuilder.java | 29 + .../networkconnectivity/v1alpha1/Hub.java | 1148 +-- .../networkconnectivity/v1alpha1/HubName.java | 0 .../v1alpha1/HubOrBuilder.java | 139 +- .../v1alpha1/HubProto.java | 408 + .../v1alpha1/ListHubsRequest.java | 617 +- .../v1alpha1/ListHubsRequestOrBuilder.java | 65 +- .../v1alpha1/ListHubsResponse.java | 609 +- .../v1alpha1/ListHubsResponseOrBuilder.java | 63 +- .../v1alpha1/ListSpokesRequest.java | 630 +- .../v1alpha1/ListSpokesRequestOrBuilder.java | 65 +- .../v1alpha1/ListSpokesResponse.java | 609 +- .../v1alpha1/ListSpokesResponseOrBuilder.java | 63 +- .../v1alpha1/LocationName.java | 0 .../v1alpha1/OperationMetadata.java | 858 +- .../v1alpha1/OperationMetadataOrBuilder.java | 91 +- .../v1alpha1/RouterApplianceInstance.java | 539 +- .../RouterApplianceInstanceOrBuilder.java | 53 +- .../networkconnectivity/v1alpha1/Spoke.java | 1653 ++- .../v1alpha1/SpokeName.java | 0 .../v1alpha1/SpokeOrBuilder.java | 220 +- .../networkconnectivity/v1alpha1/State.java | 93 +- .../v1alpha1/UpdateHubRequest.java | 615 +- .../v1alpha1/UpdateHubRequestOrBuilder.java | 64 +- .../v1alpha1/UpdateSpokeRequest.java | 618 +- .../v1alpha1/UpdateSpokeRequestOrBuilder.java | 64 +- .../networkconnectivity/v1alpha1/common.proto | 0 .../networkconnectivity/v1alpha1/hub.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../hubservice/createhub/AsyncCreateHub.java | 0 .../createhub/AsyncCreateHubLRO.java | 0 .../hubservice/createhub/SyncCreateHub.java | 0 .../SyncCreateHubLocationnameHubString.java | 0 .../SyncCreateHubStringHubString.java | 0 .../createspoke/AsyncCreateSpoke.java | 0 .../createspoke/AsyncCreateSpokeLRO.java | 0 .../createspoke/SyncCreateSpoke.java | 0 ...yncCreateSpokeLocationnameSpokeString.java | 0 .../SyncCreateSpokeStringSpokeString.java | 0 .../hubservice/deletehub/AsyncDeleteHub.java | 0 .../deletehub/AsyncDeleteHubLRO.java | 0 .../hubservice/deletehub/SyncDeleteHub.java | 0 .../deletehub/SyncDeleteHubHubname.java | 0 .../deletehub/SyncDeleteHubString.java | 0 .../deletespoke/AsyncDeleteSpoke.java | 0 .../deletespoke/AsyncDeleteSpokeLRO.java | 0 .../deletespoke/SyncDeleteSpoke.java | 0 .../deletespoke/SyncDeleteSpokeSpokename.java | 0 .../deletespoke/SyncDeleteSpokeString.java | 0 .../hubservice/gethub/AsyncGetHub.java | 0 .../hubservice/gethub/SyncGetHub.java | 0 .../hubservice/gethub/SyncGetHubHubname.java | 0 .../hubservice/gethub/SyncGetHubString.java | 0 .../hubservice/getspoke/AsyncGetSpoke.java | 0 .../hubservice/getspoke/SyncGetSpoke.java | 0 .../getspoke/SyncGetSpokeSpokename.java | 0 .../getspoke/SyncGetSpokeString.java | 0 .../hubservice/listhubs/AsyncListHubs.java | 0 .../listhubs/AsyncListHubsPaged.java | 0 .../hubservice/listhubs/SyncListHubs.java | 0 .../listhubs/SyncListHubsLocationname.java | 0 .../listhubs/SyncListHubsString.java | 0 .../listspokes/AsyncListSpokes.java | 0 .../listspokes/AsyncListSpokesPaged.java | 0 .../hubservice/listspokes/SyncListSpokes.java | 0 .../SyncListSpokesLocationname.java | 0 .../listspokes/SyncListSpokesString.java | 0 .../hubservice/updatehub/AsyncUpdateHub.java | 0 .../updatehub/AsyncUpdateHubLRO.java | 0 .../hubservice/updatehub/SyncUpdateHub.java | 0 .../updatehub/SyncUpdateHubHubFieldmask.java | 0 .../updatespoke/AsyncUpdateSpoke.java | 0 .../updatespoke/AsyncUpdateSpokeLRO.java | 0 .../updatespoke/SyncUpdateSpoke.java | 0 .../SyncUpdateSpokeSpokeFieldmask.java | 0 .../hubservicesettings/gethub/SyncGetHub.java | 0 .../gethub/SyncGetHub.java | 0 273 files changed, 13525 insertions(+), 44034 deletions(-) delete mode 100644 java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java delete mode 100644 java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java delete mode 100644 java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceCallableFactory.java delete mode 100644 java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceStub.java delete mode 100644 java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java delete mode 100644 java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java delete mode 100644 java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingService.java delete mode 100644 java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingServiceImpl.java delete mode 100644 java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClientTest.java delete mode 100644 java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java delete mode 100644 java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java delete mode 100644 java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequest.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequest.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequest.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequest.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponse.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponseOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoute.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingProto.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/policy_based_routing.proto delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetCredentialsProvider.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetEndpoint.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRoute.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRouteLRO.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRoute.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteStringPolicybasedrouteString.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRoute.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRouteLRO.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoute.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoutePolicybasedroutename.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRouteString.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/AsyncGetPolicyBasedRoute.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoute.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoutePolicybasedroutename.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRouteString.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutes.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutesPaged.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutes.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesLocationname.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesString.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservicesettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/policybasedroutingservicestubsettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java (95%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java (99%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json (64%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java (62%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java (99%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java (100%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java (64%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java (58%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java (63%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java (58%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java (64%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java (55%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java (64%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java (56%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java (60%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java (60%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java (68%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java (74%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachments.java (55%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java (54%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java (55%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java (52%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java (57%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java (53%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java (58%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java (71%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java (71%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java (66%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java (58%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java (72%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java (73%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java (62%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java (75%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java (65%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java (57%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java (63%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java (54%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java (61%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java (66%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java (62%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java (59%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java (53%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java (64%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java (63%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto (86%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto (74%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java (99%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java (99%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java (100%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java (68%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java (68%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java (69%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java (69%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java (63%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java (61%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java (66%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java (67%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequest.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java (59%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java (71%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java (73%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java (66%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java (59%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java (71%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java (73%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java (75%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java (63%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java (55%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java (66%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java (65%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java (66%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java (76%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java (76%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java (100%) diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java deleted file mode 100644 index c006579e4952..000000000000 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java +++ /dev/null @@ -1,944 +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.networkconnectivity.v1; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.networkconnectivity.v1.stub.PolicyBasedRoutingServiceStub; -import com.google.cloud.networkconnectivity.v1.stub.PolicyBasedRoutingServiceStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Policy-Based Routing allows GCP customers to specify flexibile routing - * policies for Layer 4 traffic traversing through the connected service. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
- *     PolicyBasedRoutingServiceClient.create()) {
- *   PolicyBasedRouteName name =
- *       PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]");
- *   PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(name);
- * }
- * }
- * - *

Note: close() needs to be called on the PolicyBasedRoutingServiceClient object to clean up - * resources such as threads. In the example above, try-with-resources is used, which automatically - * calls close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. 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. - *
  2. 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. - *
  3. 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. - *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of - * PolicyBasedRoutingServiceSettings to create(). For example: - * - *

To customize credentials: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyBasedRoutingServiceSettings policyBasedRoutingServiceSettings =
- *     PolicyBasedRoutingServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
- *     PolicyBasedRoutingServiceClient.create(policyBasedRoutingServiceSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyBasedRoutingServiceSettings policyBasedRoutingServiceSettings =
- *     PolicyBasedRoutingServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
- *     PolicyBasedRoutingServiceClient.create(policyBasedRoutingServiceSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class PolicyBasedRoutingServiceClient implements BackgroundResource { - private final PolicyBasedRoutingServiceSettings settings; - private final PolicyBasedRoutingServiceStub stub; - private final OperationsClient operationsClient; - - /** Constructs an instance of PolicyBasedRoutingServiceClient with default settings. */ - public static final PolicyBasedRoutingServiceClient create() throws IOException { - return create(PolicyBasedRoutingServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of PolicyBasedRoutingServiceClient, using the given settings. The - * channels are created based on the settings passed in, or defaults for any settings that are not - * set. - */ - public static final PolicyBasedRoutingServiceClient create( - PolicyBasedRoutingServiceSettings settings) throws IOException { - return new PolicyBasedRoutingServiceClient(settings); - } - - /** - * Constructs an instance of PolicyBasedRoutingServiceClient, using the given stub for making - * calls. This is for advanced usage - prefer using create(PolicyBasedRoutingServiceSettings). - */ - public static final PolicyBasedRoutingServiceClient create(PolicyBasedRoutingServiceStub stub) { - return new PolicyBasedRoutingServiceClient(stub); - } - - /** - * Constructs an instance of PolicyBasedRoutingServiceClient, 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 PolicyBasedRoutingServiceClient(PolicyBasedRoutingServiceSettings settings) - throws IOException { - this.settings = settings; - this.stub = ((PolicyBasedRoutingServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - protected PolicyBasedRoutingServiceClient(PolicyBasedRoutingServiceStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - public final PolicyBasedRoutingServiceSettings getSettings() { - return settings; - } - - public PolicyBasedRoutingServiceStub getStub() { - return stub; - } - - /** - * 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() { - return operationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists PolicyBasedRoutes in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (PolicyBasedRoute element :
-   *       policyBasedRoutingServiceClient.listPolicyBasedRoutes(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListPolicyBasedRoutesPagedResponse listPolicyBasedRoutes(LocationName parent) { - ListPolicyBasedRoutesRequest request = - ListPolicyBasedRoutesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listPolicyBasedRoutes(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists PolicyBasedRoutes in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (PolicyBasedRoute element :
-   *       policyBasedRoutingServiceClient.listPolicyBasedRoutes(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListPolicyBasedRoutesPagedResponse listPolicyBasedRoutes(String parent) { - ListPolicyBasedRoutesRequest request = - ListPolicyBasedRoutesRequest.newBuilder().setParent(parent).build(); - return listPolicyBasedRoutes(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists PolicyBasedRoutes in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   ListPolicyBasedRoutesRequest request =
-   *       ListPolicyBasedRoutesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   for (PolicyBasedRoute element :
-   *       policyBasedRoutingServiceClient.listPolicyBasedRoutes(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 ListPolicyBasedRoutesPagedResponse listPolicyBasedRoutes( - ListPolicyBasedRoutesRequest request) { - return listPolicyBasedRoutesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists PolicyBasedRoutes in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   ListPolicyBasedRoutesRequest request =
-   *       ListPolicyBasedRoutesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   ApiFuture future =
-   *       policyBasedRoutingServiceClient.listPolicyBasedRoutesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (PolicyBasedRoute element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listPolicyBasedRoutesPagedCallable() { - return stub.listPolicyBasedRoutesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists PolicyBasedRoutes in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   ListPolicyBasedRoutesRequest request =
-   *       ListPolicyBasedRoutesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   while (true) {
-   *     ListPolicyBasedRoutesResponse response =
-   *         policyBasedRoutingServiceClient.listPolicyBasedRoutesCallable().call(request);
-   *     for (PolicyBasedRoute element : response.getPolicyBasedRoutesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listPolicyBasedRoutesCallable() { - return stub.listPolicyBasedRoutesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single PolicyBasedRoute. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   PolicyBasedRouteName name =
-   *       PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]");
-   *   PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(name);
-   * }
-   * }
- * - * @param name Required. Name of the PolicyBasedRoute resource to get. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final PolicyBasedRoute getPolicyBasedRoute(PolicyBasedRouteName name) { - GetPolicyBasedRouteRequest request = - GetPolicyBasedRouteRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getPolicyBasedRoute(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single PolicyBasedRoute. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   String name =
-   *       PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]").toString();
-   *   PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(name);
-   * }
-   * }
- * - * @param name Required. Name of the PolicyBasedRoute resource to get. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final PolicyBasedRoute getPolicyBasedRoute(String name) { - GetPolicyBasedRouteRequest request = - GetPolicyBasedRouteRequest.newBuilder().setName(name).build(); - return getPolicyBasedRoute(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single PolicyBasedRoute. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   GetPolicyBasedRouteRequest request =
-   *       GetPolicyBasedRouteRequest.newBuilder()
-   *           .setName(
-   *               PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]")
-   *                   .toString())
-   *           .build();
-   *   PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(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 PolicyBasedRoute getPolicyBasedRoute(GetPolicyBasedRouteRequest request) { - return getPolicyBasedRouteCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single PolicyBasedRoute. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   GetPolicyBasedRouteRequest request =
-   *       GetPolicyBasedRouteRequest.newBuilder()
-   *           .setName(
-   *               PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       policyBasedRoutingServiceClient.getPolicyBasedRouteCallable().futureCall(request);
-   *   // Do something.
-   *   PolicyBasedRoute response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getPolicyBasedRouteCallable() { - return stub.getPolicyBasedRouteCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new PolicyBasedRoute in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build();
-   *   String policyBasedRouteId = "policyBasedRouteId-18034589";
-   *   PolicyBasedRoute response =
-   *       policyBasedRoutingServiceClient
-   *           .createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. The parent resource's name of the PolicyBasedRoute. - * @param policyBasedRoute Required. Initial values for a new Policy Based Route. - * @param policyBasedRouteId Optional. Unique id for the Policy Based Route to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createPolicyBasedRouteAsync( - LocationName parent, PolicyBasedRoute policyBasedRoute, String policyBasedRouteId) { - CreatePolicyBasedRouteRequest request = - CreatePolicyBasedRouteRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setPolicyBasedRoute(policyBasedRoute) - .setPolicyBasedRouteId(policyBasedRouteId) - .build(); - return createPolicyBasedRouteAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new PolicyBasedRoute in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build();
-   *   String policyBasedRouteId = "policyBasedRouteId-18034589";
-   *   PolicyBasedRoute response =
-   *       policyBasedRoutingServiceClient
-   *           .createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. The parent resource's name of the PolicyBasedRoute. - * @param policyBasedRoute Required. Initial values for a new Policy Based Route. - * @param policyBasedRouteId Optional. Unique id for the Policy Based Route to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createPolicyBasedRouteAsync( - String parent, PolicyBasedRoute policyBasedRoute, String policyBasedRouteId) { - CreatePolicyBasedRouteRequest request = - CreatePolicyBasedRouteRequest.newBuilder() - .setParent(parent) - .setPolicyBasedRoute(policyBasedRoute) - .setPolicyBasedRouteId(policyBasedRouteId) - .build(); - return createPolicyBasedRouteAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new PolicyBasedRoute in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   CreatePolicyBasedRouteRequest request =
-   *       CreatePolicyBasedRouteRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPolicyBasedRouteId("policyBasedRouteId-18034589")
-   *           .setPolicyBasedRoute(PolicyBasedRoute.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   PolicyBasedRoute response =
-   *       policyBasedRoutingServiceClient.createPolicyBasedRouteAsync(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 createPolicyBasedRouteAsync( - CreatePolicyBasedRouteRequest request) { - return createPolicyBasedRouteOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new PolicyBasedRoute in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   CreatePolicyBasedRouteRequest request =
-   *       CreatePolicyBasedRouteRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPolicyBasedRouteId("policyBasedRouteId-18034589")
-   *           .setPolicyBasedRoute(PolicyBasedRoute.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   OperationFuture future =
-   *       policyBasedRoutingServiceClient
-   *           .createPolicyBasedRouteOperationCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   PolicyBasedRoute response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - createPolicyBasedRouteOperationCallable() { - return stub.createPolicyBasedRouteOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new PolicyBasedRoute in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   CreatePolicyBasedRouteRequest request =
-   *       CreatePolicyBasedRouteRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPolicyBasedRouteId("policyBasedRouteId-18034589")
-   *           .setPolicyBasedRoute(PolicyBasedRoute.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future =
-   *       policyBasedRoutingServiceClient.createPolicyBasedRouteCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createPolicyBasedRouteCallable() { - return stub.createPolicyBasedRouteCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single PolicyBasedRoute. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   PolicyBasedRouteName name =
-   *       PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]");
-   *   policyBasedRoutingServiceClient.deletePolicyBasedRouteAsync(name).get();
-   * }
-   * }
- * - * @param name Required. Name of the PolicyBasedRoute resource to delete. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deletePolicyBasedRouteAsync( - PolicyBasedRouteName name) { - DeletePolicyBasedRouteRequest request = - DeletePolicyBasedRouteRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return deletePolicyBasedRouteAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single PolicyBasedRoute. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   String name =
-   *       PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]").toString();
-   *   policyBasedRoutingServiceClient.deletePolicyBasedRouteAsync(name).get();
-   * }
-   * }
- * - * @param name Required. Name of the PolicyBasedRoute resource to delete. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deletePolicyBasedRouteAsync(String name) { - DeletePolicyBasedRouteRequest request = - DeletePolicyBasedRouteRequest.newBuilder().setName(name).build(); - return deletePolicyBasedRouteAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single PolicyBasedRoute. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   DeletePolicyBasedRouteRequest request =
-   *       DeletePolicyBasedRouteRequest.newBuilder()
-   *           .setName(
-   *               PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]")
-   *                   .toString())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   policyBasedRoutingServiceClient.deletePolicyBasedRouteAsync(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 deletePolicyBasedRouteAsync( - DeletePolicyBasedRouteRequest request) { - return deletePolicyBasedRouteOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single PolicyBasedRoute. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   DeletePolicyBasedRouteRequest request =
-   *       DeletePolicyBasedRouteRequest.newBuilder()
-   *           .setName(
-   *               PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]")
-   *                   .toString())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   OperationFuture future =
-   *       policyBasedRoutingServiceClient
-   *           .deletePolicyBasedRouteOperationCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final OperationCallable - deletePolicyBasedRouteOperationCallable() { - return stub.deletePolicyBasedRouteOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single PolicyBasedRoute. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   DeletePolicyBasedRouteRequest request =
-   *       DeletePolicyBasedRouteRequest.newBuilder()
-   *           .setName(
-   *               PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]")
-   *                   .toString())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future =
-   *       policyBasedRoutingServiceClient.deletePolicyBasedRouteCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - deletePolicyBasedRouteCallable() { - return stub.deletePolicyBasedRouteCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListPolicyBasedRoutesPagedResponse - extends AbstractPagedListResponse< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - PolicyBasedRoute, - ListPolicyBasedRoutesPage, - ListPolicyBasedRoutesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListPolicyBasedRoutesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListPolicyBasedRoutesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListPolicyBasedRoutesPagedResponse(ListPolicyBasedRoutesPage page) { - super(page, ListPolicyBasedRoutesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListPolicyBasedRoutesPage - extends AbstractPage< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - PolicyBasedRoute, - ListPolicyBasedRoutesPage> { - - private ListPolicyBasedRoutesPage( - PageContext - context, - ListPolicyBasedRoutesResponse response) { - super(context, response); - } - - private static ListPolicyBasedRoutesPage createEmptyPage() { - return new ListPolicyBasedRoutesPage(null, null); - } - - @Override - protected ListPolicyBasedRoutesPage createPage( - PageContext - context, - ListPolicyBasedRoutesResponse response) { - return new ListPolicyBasedRoutesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListPolicyBasedRoutesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - PolicyBasedRoute, - ListPolicyBasedRoutesPage, - ListPolicyBasedRoutesFixedSizeCollection> { - - private ListPolicyBasedRoutesFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListPolicyBasedRoutesFixedSizeCollection createEmptyCollection() { - return new ListPolicyBasedRoutesFixedSizeCollection(null, 0); - } - - @Override - protected ListPolicyBasedRoutesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListPolicyBasedRoutesFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java deleted file mode 100644 index b88372c68322..000000000000 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java +++ /dev/null @@ -1,271 +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.networkconnectivity.v1; - -import static com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient.ListPolicyBasedRoutesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -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.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.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.networkconnectivity.v1.stub.PolicyBasedRoutingServiceStubSettings; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link PolicyBasedRoutingServiceClient}. - * - *

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

    - *
  • The default service address (networkconnectivity.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getPolicyBasedRoute to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyBasedRoutingServiceSettings.Builder policyBasedRoutingServiceSettingsBuilder =
- *     PolicyBasedRoutingServiceSettings.newBuilder();
- * policyBasedRoutingServiceSettingsBuilder
- *     .getPolicyBasedRouteSettings()
- *     .setRetrySettings(
- *         policyBasedRoutingServiceSettingsBuilder
- *             .getPolicyBasedRouteSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * PolicyBasedRoutingServiceSettings policyBasedRoutingServiceSettings =
- *     policyBasedRoutingServiceSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class PolicyBasedRoutingServiceSettings - extends ClientSettings { - - /** Returns the object with the settings used for calls to listPolicyBasedRoutes. */ - public PagedCallSettings< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - ListPolicyBasedRoutesPagedResponse> - listPolicyBasedRoutesSettings() { - return ((PolicyBasedRoutingServiceStubSettings) getStubSettings()) - .listPolicyBasedRoutesSettings(); - } - - /** Returns the object with the settings used for calls to getPolicyBasedRoute. */ - public UnaryCallSettings - getPolicyBasedRouteSettings() { - return ((PolicyBasedRoutingServiceStubSettings) getStubSettings()) - .getPolicyBasedRouteSettings(); - } - - /** Returns the object with the settings used for calls to createPolicyBasedRoute. */ - public UnaryCallSettings - createPolicyBasedRouteSettings() { - return ((PolicyBasedRoutingServiceStubSettings) getStubSettings()) - .createPolicyBasedRouteSettings(); - } - - /** Returns the object with the settings used for calls to createPolicyBasedRoute. */ - public OperationCallSettings - createPolicyBasedRouteOperationSettings() { - return ((PolicyBasedRoutingServiceStubSettings) getStubSettings()) - .createPolicyBasedRouteOperationSettings(); - } - - /** Returns the object with the settings used for calls to deletePolicyBasedRoute. */ - public UnaryCallSettings - deletePolicyBasedRouteSettings() { - return ((PolicyBasedRoutingServiceStubSettings) getStubSettings()) - .deletePolicyBasedRouteSettings(); - } - - /** Returns the object with the settings used for calls to deletePolicyBasedRoute. */ - public OperationCallSettings - deletePolicyBasedRouteOperationSettings() { - return ((PolicyBasedRoutingServiceStubSettings) getStubSettings()) - .deletePolicyBasedRouteOperationSettings(); - } - - public static final PolicyBasedRoutingServiceSettings create( - PolicyBasedRoutingServiceStubSettings stub) throws IOException { - return new PolicyBasedRoutingServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return PolicyBasedRoutingServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return PolicyBasedRoutingServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return PolicyBasedRoutingServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return PolicyBasedRoutingServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return PolicyBasedRoutingServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return PolicyBasedRoutingServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return PolicyBasedRoutingServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected PolicyBasedRoutingServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for PolicyBasedRoutingServiceSettings. */ - public static class Builder - extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(PolicyBasedRoutingServiceStubSettings.newBuilder(clientContext)); - } - - protected Builder(PolicyBasedRoutingServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(PolicyBasedRoutingServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(PolicyBasedRoutingServiceStubSettings.newBuilder()); - } - - public PolicyBasedRoutingServiceStubSettings.Builder getStubSettingsBuilder() { - return ((PolicyBasedRoutingServiceStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to listPolicyBasedRoutes. */ - public PagedCallSettings.Builder< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - ListPolicyBasedRoutesPagedResponse> - listPolicyBasedRoutesSettings() { - return getStubSettingsBuilder().listPolicyBasedRoutesSettings(); - } - - /** Returns the builder for the settings used for calls to getPolicyBasedRoute. */ - public UnaryCallSettings.Builder - getPolicyBasedRouteSettings() { - return getStubSettingsBuilder().getPolicyBasedRouteSettings(); - } - - /** Returns the builder for the settings used for calls to createPolicyBasedRoute. */ - public UnaryCallSettings.Builder - createPolicyBasedRouteSettings() { - return getStubSettingsBuilder().createPolicyBasedRouteSettings(); - } - - /** Returns the builder for the settings used for calls to createPolicyBasedRoute. */ - public OperationCallSettings.Builder< - CreatePolicyBasedRouteRequest, PolicyBasedRoute, OperationMetadata> - createPolicyBasedRouteOperationSettings() { - return getStubSettingsBuilder().createPolicyBasedRouteOperationSettings(); - } - - /** Returns the builder for the settings used for calls to deletePolicyBasedRoute. */ - public UnaryCallSettings.Builder - deletePolicyBasedRouteSettings() { - return getStubSettingsBuilder().deletePolicyBasedRouteSettings(); - } - - /** Returns the builder for the settings used for calls to deletePolicyBasedRoute. */ - public OperationCallSettings.Builder - deletePolicyBasedRouteOperationSettings() { - return getStubSettingsBuilder().deletePolicyBasedRouteOperationSettings(); - } - - @Override - public PolicyBasedRoutingServiceSettings build() throws IOException { - return new PolicyBasedRoutingServiceSettings(this); - } - } -} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceCallableFactory.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceCallableFactory.java deleted file mode 100644 index 30603bafc32f..000000000000 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceCallableFactory.java +++ /dev/null @@ -1,113 +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.networkconnectivity.v1.stub; - -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -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.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the PolicyBasedRoutingService service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -public class GrpcPolicyBasedRoutingServiceCallableFactory implements GrpcStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } -} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceStub.java deleted file mode 100644 index db36eab6cc86..000000000000 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceStub.java +++ /dev/null @@ -1,325 +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.networkconnectivity.v1.stub; - -import static com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient.ListPolicyBasedRoutesPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest; -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse; -import com.google.cloud.networkconnectivity.v1.OperationMetadata; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -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.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the PolicyBasedRoutingService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public class GrpcPolicyBasedRoutingServiceStub extends PolicyBasedRoutingServiceStub { - private static final MethodDescriptor - listPolicyBasedRoutesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService/ListPolicyBasedRoutes") - .setRequestMarshaller( - ProtoUtils.marshaller(ListPolicyBasedRoutesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListPolicyBasedRoutesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getPolicyBasedRouteMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService/GetPolicyBasedRoute") - .setRequestMarshaller( - ProtoUtils.marshaller(GetPolicyBasedRouteRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(PolicyBasedRoute.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createPolicyBasedRouteMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService/CreatePolicyBasedRoute") - .setRequestMarshaller( - ProtoUtils.marshaller(CreatePolicyBasedRouteRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deletePolicyBasedRouteMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService/DeletePolicyBasedRoute") - .setRequestMarshaller( - ProtoUtils.marshaller(DeletePolicyBasedRouteRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private final UnaryCallable - listPolicyBasedRoutesCallable; - private final UnaryCallable - listPolicyBasedRoutesPagedCallable; - private final UnaryCallable - getPolicyBasedRouteCallable; - private final UnaryCallable - createPolicyBasedRouteCallable; - private final OperationCallable< - CreatePolicyBasedRouteRequest, PolicyBasedRoute, OperationMetadata> - createPolicyBasedRouteOperationCallable; - private final UnaryCallable - deletePolicyBasedRouteCallable; - private final OperationCallable - deletePolicyBasedRouteOperationCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcPolicyBasedRoutingServiceStub create( - PolicyBasedRoutingServiceStubSettings settings) throws IOException { - return new GrpcPolicyBasedRoutingServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcPolicyBasedRoutingServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcPolicyBasedRoutingServiceStub( - PolicyBasedRoutingServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcPolicyBasedRoutingServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcPolicyBasedRoutingServiceStub( - PolicyBasedRoutingServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcPolicyBasedRoutingServiceStub, 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 GrpcPolicyBasedRoutingServiceStub( - PolicyBasedRoutingServiceStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcPolicyBasedRoutingServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcPolicyBasedRoutingServiceStub, 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 GrpcPolicyBasedRoutingServiceStub( - PolicyBasedRoutingServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings - listPolicyBasedRoutesTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listPolicyBasedRoutesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - getPolicyBasedRouteTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getPolicyBasedRouteMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - createPolicyBasedRouteTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createPolicyBasedRouteMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - deletePolicyBasedRouteTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deletePolicyBasedRouteMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - - this.listPolicyBasedRoutesCallable = - callableFactory.createUnaryCallable( - listPolicyBasedRoutesTransportSettings, - settings.listPolicyBasedRoutesSettings(), - clientContext); - this.listPolicyBasedRoutesPagedCallable = - callableFactory.createPagedCallable( - listPolicyBasedRoutesTransportSettings, - settings.listPolicyBasedRoutesSettings(), - clientContext); - this.getPolicyBasedRouteCallable = - callableFactory.createUnaryCallable( - getPolicyBasedRouteTransportSettings, - settings.getPolicyBasedRouteSettings(), - clientContext); - this.createPolicyBasedRouteCallable = - callableFactory.createUnaryCallable( - createPolicyBasedRouteTransportSettings, - settings.createPolicyBasedRouteSettings(), - clientContext); - this.createPolicyBasedRouteOperationCallable = - callableFactory.createOperationCallable( - createPolicyBasedRouteTransportSettings, - settings.createPolicyBasedRouteOperationSettings(), - clientContext, - operationsStub); - this.deletePolicyBasedRouteCallable = - callableFactory.createUnaryCallable( - deletePolicyBasedRouteTransportSettings, - settings.deletePolicyBasedRouteSettings(), - clientContext); - this.deletePolicyBasedRouteOperationCallable = - callableFactory.createOperationCallable( - deletePolicyBasedRouteTransportSettings, - settings.deletePolicyBasedRouteOperationSettings(), - clientContext, - operationsStub); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable - listPolicyBasedRoutesCallable() { - return listPolicyBasedRoutesCallable; - } - - @Override - public UnaryCallable - listPolicyBasedRoutesPagedCallable() { - return listPolicyBasedRoutesPagedCallable; - } - - @Override - public UnaryCallable getPolicyBasedRouteCallable() { - return getPolicyBasedRouteCallable; - } - - @Override - public UnaryCallable createPolicyBasedRouteCallable() { - return createPolicyBasedRouteCallable; - } - - @Override - public OperationCallable - createPolicyBasedRouteOperationCallable() { - return createPolicyBasedRouteOperationCallable; - } - - @Override - public UnaryCallable deletePolicyBasedRouteCallable() { - return deletePolicyBasedRouteCallable; - } - - @Override - public OperationCallable - deletePolicyBasedRouteOperationCallable() { - return deletePolicyBasedRouteOperationCallable; - } - - @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/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java deleted file mode 100644 index d1cb115a8e14..000000000000 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java +++ /dev/null @@ -1,86 +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.networkconnectivity.v1.stub; - -import static com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient.ListPolicyBasedRoutesPagedResponse; - -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.networkconnectivity.v1.CreatePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest; -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse; -import com.google.cloud.networkconnectivity.v1.OperationMetadata; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -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. -/** - * Base stub class for the PolicyBasedRoutingService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public abstract class PolicyBasedRoutingServiceStub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); - } - - public UnaryCallable - listPolicyBasedRoutesPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listPolicyBasedRoutesPagedCallable()"); - } - - public UnaryCallable - listPolicyBasedRoutesCallable() { - throw new UnsupportedOperationException("Not implemented: listPolicyBasedRoutesCallable()"); - } - - public UnaryCallable getPolicyBasedRouteCallable() { - throw new UnsupportedOperationException("Not implemented: getPolicyBasedRouteCallable()"); - } - - public OperationCallable - createPolicyBasedRouteOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: createPolicyBasedRouteOperationCallable()"); - } - - public UnaryCallable createPolicyBasedRouteCallable() { - throw new UnsupportedOperationException("Not implemented: createPolicyBasedRouteCallable()"); - } - - public OperationCallable - deletePolicyBasedRouteOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: deletePolicyBasedRouteOperationCallable()"); - } - - public UnaryCallable deletePolicyBasedRouteCallable() { - throw new UnsupportedOperationException("Not implemented: deletePolicyBasedRouteCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java deleted file mode 100644 index e113fcb8d78d..000000000000 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java +++ /dev/null @@ -1,572 +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.networkconnectivity.v1.stub; - -import static com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient.ListPolicyBasedRoutesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.grpc.ProtoOperationTransformers; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -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.networkconnectivity.v1.CreatePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest; -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse; -import com.google.cloud.networkconnectivity.v1.OperationMetadata; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -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; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link PolicyBasedRoutingServiceStub}. - * - *

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

    - *
  • The default service address (networkconnectivity.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getPolicyBasedRoute to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyBasedRoutingServiceStubSettings.Builder policyBasedRoutingServiceSettingsBuilder =
- *     PolicyBasedRoutingServiceStubSettings.newBuilder();
- * policyBasedRoutingServiceSettingsBuilder
- *     .getPolicyBasedRouteSettings()
- *     .setRetrySettings(
- *         policyBasedRoutingServiceSettingsBuilder
- *             .getPolicyBasedRouteSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * PolicyBasedRoutingServiceStubSettings policyBasedRoutingServiceSettings =
- *     policyBasedRoutingServiceSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class PolicyBasedRoutingServiceStubSettings - extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final PagedCallSettings< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - ListPolicyBasedRoutesPagedResponse> - listPolicyBasedRoutesSettings; - private final UnaryCallSettings - getPolicyBasedRouteSettings; - private final UnaryCallSettings - createPolicyBasedRouteSettings; - private final OperationCallSettings< - CreatePolicyBasedRouteRequest, PolicyBasedRoute, OperationMetadata> - createPolicyBasedRouteOperationSettings; - private final UnaryCallSettings - deletePolicyBasedRouteSettings; - private final OperationCallSettings - deletePolicyBasedRouteOperationSettings; - - private static final PagedListDescriptor< - ListPolicyBasedRoutesRequest, ListPolicyBasedRoutesResponse, PolicyBasedRoute> - LIST_POLICY_BASED_ROUTES_PAGE_STR_DESC = - new PagedListDescriptor< - ListPolicyBasedRoutesRequest, ListPolicyBasedRoutesResponse, PolicyBasedRoute>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListPolicyBasedRoutesRequest injectToken( - ListPolicyBasedRoutesRequest payload, String token) { - return ListPolicyBasedRoutesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListPolicyBasedRoutesRequest injectPageSize( - ListPolicyBasedRoutesRequest payload, int pageSize) { - return ListPolicyBasedRoutesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListPolicyBasedRoutesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListPolicyBasedRoutesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListPolicyBasedRoutesResponse payload) { - return payload.getPolicyBasedRoutesList() == null - ? ImmutableList.of() - : payload.getPolicyBasedRoutesList(); - } - }; - - private static final PagedListResponseFactory< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - ListPolicyBasedRoutesPagedResponse> - LIST_POLICY_BASED_ROUTES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - ListPolicyBasedRoutesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListPolicyBasedRoutesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListPolicyBasedRoutesRequest, ListPolicyBasedRoutesResponse, PolicyBasedRoute> - pageContext = - PageContext.create( - callable, LIST_POLICY_BASED_ROUTES_PAGE_STR_DESC, request, context); - return ListPolicyBasedRoutesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to listPolicyBasedRoutes. */ - public PagedCallSettings< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - ListPolicyBasedRoutesPagedResponse> - listPolicyBasedRoutesSettings() { - return listPolicyBasedRoutesSettings; - } - - /** Returns the object with the settings used for calls to getPolicyBasedRoute. */ - public UnaryCallSettings - getPolicyBasedRouteSettings() { - return getPolicyBasedRouteSettings; - } - - /** Returns the object with the settings used for calls to createPolicyBasedRoute. */ - public UnaryCallSettings - createPolicyBasedRouteSettings() { - return createPolicyBasedRouteSettings; - } - - /** Returns the object with the settings used for calls to createPolicyBasedRoute. */ - public OperationCallSettings - createPolicyBasedRouteOperationSettings() { - return createPolicyBasedRouteOperationSettings; - } - - /** Returns the object with the settings used for calls to deletePolicyBasedRoute. */ - public UnaryCallSettings - deletePolicyBasedRouteSettings() { - return deletePolicyBasedRouteSettings; - } - - /** Returns the object with the settings used for calls to deletePolicyBasedRoute. */ - public OperationCallSettings - deletePolicyBasedRouteOperationSettings() { - return deletePolicyBasedRouteOperationSettings; - } - - public PolicyBasedRoutingServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcPolicyBasedRoutingServiceStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "networkconnectivity.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "networkconnectivity.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - 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() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(PolicyBasedRoutingServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected PolicyBasedRoutingServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - listPolicyBasedRoutesSettings = settingsBuilder.listPolicyBasedRoutesSettings().build(); - getPolicyBasedRouteSettings = settingsBuilder.getPolicyBasedRouteSettings().build(); - createPolicyBasedRouteSettings = settingsBuilder.createPolicyBasedRouteSettings().build(); - createPolicyBasedRouteOperationSettings = - settingsBuilder.createPolicyBasedRouteOperationSettings().build(); - deletePolicyBasedRouteSettings = settingsBuilder.deletePolicyBasedRouteSettings().build(); - deletePolicyBasedRouteOperationSettings = - settingsBuilder.deletePolicyBasedRouteOperationSettings().build(); - } - - /** Builder for PolicyBasedRoutingServiceStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final PagedCallSettings.Builder< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - ListPolicyBasedRoutesPagedResponse> - listPolicyBasedRoutesSettings; - private final UnaryCallSettings.Builder - getPolicyBasedRouteSettings; - private final UnaryCallSettings.Builder - createPolicyBasedRouteSettings; - private final OperationCallSettings.Builder< - CreatePolicyBasedRouteRequest, PolicyBasedRoute, OperationMetadata> - createPolicyBasedRouteOperationSettings; - private final UnaryCallSettings.Builder - deletePolicyBasedRouteSettings; - private final OperationCallSettings.Builder< - DeletePolicyBasedRouteRequest, Empty, OperationMetadata> - deletePolicyBasedRouteOperationSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_0_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put( - "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("retry_policy_0_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("no_retry_1_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - listPolicyBasedRoutesSettings = - PagedCallSettings.newBuilder(LIST_POLICY_BASED_ROUTES_PAGE_STR_FACT); - getPolicyBasedRouteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createPolicyBasedRouteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createPolicyBasedRouteOperationSettings = OperationCallSettings.newBuilder(); - deletePolicyBasedRouteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deletePolicyBasedRouteOperationSettings = OperationCallSettings.newBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listPolicyBasedRoutesSettings, - getPolicyBasedRouteSettings, - createPolicyBasedRouteSettings, - deletePolicyBasedRouteSettings); - initDefaults(this); - } - - protected Builder(PolicyBasedRoutingServiceStubSettings settings) { - super(settings); - - listPolicyBasedRoutesSettings = settings.listPolicyBasedRoutesSettings.toBuilder(); - getPolicyBasedRouteSettings = settings.getPolicyBasedRouteSettings.toBuilder(); - createPolicyBasedRouteSettings = settings.createPolicyBasedRouteSettings.toBuilder(); - createPolicyBasedRouteOperationSettings = - settings.createPolicyBasedRouteOperationSettings.toBuilder(); - deletePolicyBasedRouteSettings = settings.deletePolicyBasedRouteSettings.toBuilder(); - deletePolicyBasedRouteOperationSettings = - settings.deletePolicyBasedRouteOperationSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listPolicyBasedRoutesSettings, - getPolicyBasedRouteSettings, - createPolicyBasedRouteSettings, - deletePolicyBasedRouteSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .listPolicyBasedRoutesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getPolicyBasedRouteSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createPolicyBasedRouteSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deletePolicyBasedRouteSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .createPolicyBasedRouteOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(PolicyBasedRoute.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 - .deletePolicyBasedRouteOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.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())); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to listPolicyBasedRoutes. */ - public PagedCallSettings.Builder< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - ListPolicyBasedRoutesPagedResponse> - listPolicyBasedRoutesSettings() { - return listPolicyBasedRoutesSettings; - } - - /** Returns the builder for the settings used for calls to getPolicyBasedRoute. */ - public UnaryCallSettings.Builder - getPolicyBasedRouteSettings() { - return getPolicyBasedRouteSettings; - } - - /** Returns the builder for the settings used for calls to createPolicyBasedRoute. */ - public UnaryCallSettings.Builder - createPolicyBasedRouteSettings() { - return createPolicyBasedRouteSettings; - } - - /** Returns the builder for the settings used for calls to createPolicyBasedRoute. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - CreatePolicyBasedRouteRequest, PolicyBasedRoute, OperationMetadata> - createPolicyBasedRouteOperationSettings() { - return createPolicyBasedRouteOperationSettings; - } - - /** Returns the builder for the settings used for calls to deletePolicyBasedRoute. */ - public UnaryCallSettings.Builder - deletePolicyBasedRouteSettings() { - return deletePolicyBasedRouteSettings; - } - - /** Returns the builder for the settings used for calls to deletePolicyBasedRoute. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deletePolicyBasedRouteOperationSettings() { - return deletePolicyBasedRouteOperationSettings; - } - - @Override - public PolicyBasedRoutingServiceStubSettings build() throws IOException { - return new PolicyBasedRoutingServiceStubSettings(this); - } - } -} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingService.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingService.java deleted file mode 100644 index 14c65288159c..000000000000 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingService.java +++ /dev/null @@ -1,59 +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.networkconnectivity.v1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockPolicyBasedRoutingService implements MockGrpcService { - private final MockPolicyBasedRoutingServiceImpl serviceImpl; - - public MockPolicyBasedRoutingService() { - serviceImpl = new MockPolicyBasedRoutingServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingServiceImpl.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingServiceImpl.java deleted file mode 100644 index a57877e4d35a..000000000000 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingServiceImpl.java +++ /dev/null @@ -1,146 +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.networkconnectivity.v1; - -import com.google.api.core.BetaApi; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceGrpc.PolicyBasedRoutingServiceImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockPolicyBasedRoutingServiceImpl extends PolicyBasedRoutingServiceImplBase { - private List requests; - private Queue responses; - - public MockPolicyBasedRoutingServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void listPolicyBasedRoutes( - ListPolicyBasedRoutesRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListPolicyBasedRoutesResponse) { - requests.add(request); - responseObserver.onNext(((ListPolicyBasedRoutesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListPolicyBasedRoutes, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListPolicyBasedRoutesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getPolicyBasedRoute( - GetPolicyBasedRouteRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof PolicyBasedRoute) { - requests.add(request); - responseObserver.onNext(((PolicyBasedRoute) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetPolicyBasedRoute, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - PolicyBasedRoute.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createPolicyBasedRoute( - CreatePolicyBasedRouteRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreatePolicyBasedRoute, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deletePolicyBasedRoute( - DeletePolicyBasedRouteRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeletePolicyBasedRoute, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClientTest.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClientTest.java deleted file mode 100644 index eb5fa73866eb..000000000000 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClientTest.java +++ /dev/null @@ -1,501 +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.networkconnectivity.v1; - -import static com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient.ListPolicyBasedRoutesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -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 PolicyBasedRoutingServiceClientTest { - private static MockPolicyBasedRoutingService mockPolicyBasedRoutingService; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private PolicyBasedRoutingServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockPolicyBasedRoutingService = new MockPolicyBasedRoutingService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockPolicyBasedRoutingService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - PolicyBasedRoutingServiceSettings settings = - PolicyBasedRoutingServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = PolicyBasedRoutingServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void listPolicyBasedRoutesTest() throws Exception { - PolicyBasedRoute responsesElement = PolicyBasedRoute.newBuilder().build(); - ListPolicyBasedRoutesResponse expectedResponse = - ListPolicyBasedRoutesResponse.newBuilder() - .setNextPageToken("") - .addAllPolicyBasedRoutes(Arrays.asList(responsesElement)) - .build(); - mockPolicyBasedRoutingService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListPolicyBasedRoutesPagedResponse pagedListResponse = client.listPolicyBasedRoutes(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPolicyBasedRoutesList().get(0), resources.get(0)); - - List actualRequests = mockPolicyBasedRoutingService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListPolicyBasedRoutesRequest actualRequest = - ((ListPolicyBasedRoutesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listPolicyBasedRoutesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyBasedRoutingService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listPolicyBasedRoutes(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listPolicyBasedRoutesTest2() throws Exception { - PolicyBasedRoute responsesElement = PolicyBasedRoute.newBuilder().build(); - ListPolicyBasedRoutesResponse expectedResponse = - ListPolicyBasedRoutesResponse.newBuilder() - .setNextPageToken("") - .addAllPolicyBasedRoutes(Arrays.asList(responsesElement)) - .build(); - mockPolicyBasedRoutingService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListPolicyBasedRoutesPagedResponse pagedListResponse = client.listPolicyBasedRoutes(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPolicyBasedRoutesList().get(0), resources.get(0)); - - List actualRequests = mockPolicyBasedRoutingService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListPolicyBasedRoutesRequest actualRequest = - ((ListPolicyBasedRoutesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listPolicyBasedRoutesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyBasedRoutingService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listPolicyBasedRoutes(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPolicyBasedRouteTest() throws Exception { - PolicyBasedRoute expectedResponse = - PolicyBasedRoute.newBuilder() - .setName( - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") - .toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDescription("description-1724546052") - .setNetwork("network1843485230") - .setFilter(PolicyBasedRoute.Filter.newBuilder().build()) - .setPriority(-1165461084) - .addAllWarnings(new ArrayList()) - .setSelfLink("selfLink1191800166") - .setKind("kind3292052") - .build(); - mockPolicyBasedRoutingService.addResponse(expectedResponse); - - PolicyBasedRouteName name = - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]"); - - PolicyBasedRoute actualResponse = client.getPolicyBasedRoute(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyBasedRoutingService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetPolicyBasedRouteRequest actualRequest = ((GetPolicyBasedRouteRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getPolicyBasedRouteExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyBasedRoutingService.addException(exception); - - try { - PolicyBasedRouteName name = - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]"); - client.getPolicyBasedRoute(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPolicyBasedRouteTest2() throws Exception { - PolicyBasedRoute expectedResponse = - PolicyBasedRoute.newBuilder() - .setName( - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") - .toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDescription("description-1724546052") - .setNetwork("network1843485230") - .setFilter(PolicyBasedRoute.Filter.newBuilder().build()) - .setPriority(-1165461084) - .addAllWarnings(new ArrayList()) - .setSelfLink("selfLink1191800166") - .setKind("kind3292052") - .build(); - mockPolicyBasedRoutingService.addResponse(expectedResponse); - - String name = "name3373707"; - - PolicyBasedRoute actualResponse = client.getPolicyBasedRoute(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyBasedRoutingService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetPolicyBasedRouteRequest actualRequest = ((GetPolicyBasedRouteRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getPolicyBasedRouteExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyBasedRoutingService.addException(exception); - - try { - String name = "name3373707"; - client.getPolicyBasedRoute(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createPolicyBasedRouteTest() throws Exception { - PolicyBasedRoute expectedResponse = - PolicyBasedRoute.newBuilder() - .setName( - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") - .toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDescription("description-1724546052") - .setNetwork("network1843485230") - .setFilter(PolicyBasedRoute.Filter.newBuilder().build()) - .setPriority(-1165461084) - .addAllWarnings(new ArrayList()) - .setSelfLink("selfLink1191800166") - .setKind("kind3292052") - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createPolicyBasedRouteTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockPolicyBasedRoutingService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build(); - String policyBasedRouteId = "policyBasedRouteId-18034589"; - - PolicyBasedRoute actualResponse = - client.createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyBasedRoutingService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreatePolicyBasedRouteRequest actualRequest = - ((CreatePolicyBasedRouteRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(policyBasedRoute, actualRequest.getPolicyBasedRoute()); - Assert.assertEquals(policyBasedRouteId, actualRequest.getPolicyBasedRouteId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createPolicyBasedRouteExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyBasedRoutingService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build(); - String policyBasedRouteId = "policyBasedRouteId-18034589"; - client.createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId).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()); - } - } - - @Test - public void createPolicyBasedRouteTest2() throws Exception { - PolicyBasedRoute expectedResponse = - PolicyBasedRoute.newBuilder() - .setName( - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") - .toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDescription("description-1724546052") - .setNetwork("network1843485230") - .setFilter(PolicyBasedRoute.Filter.newBuilder().build()) - .setPriority(-1165461084) - .addAllWarnings(new ArrayList()) - .setSelfLink("selfLink1191800166") - .setKind("kind3292052") - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createPolicyBasedRouteTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockPolicyBasedRoutingService.addResponse(resultOperation); - - String parent = "parent-995424086"; - PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build(); - String policyBasedRouteId = "policyBasedRouteId-18034589"; - - PolicyBasedRoute actualResponse = - client.createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyBasedRoutingService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreatePolicyBasedRouteRequest actualRequest = - ((CreatePolicyBasedRouteRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(policyBasedRoute, actualRequest.getPolicyBasedRoute()); - Assert.assertEquals(policyBasedRouteId, actualRequest.getPolicyBasedRouteId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createPolicyBasedRouteExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyBasedRoutingService.addException(exception); - - try { - String parent = "parent-995424086"; - PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build(); - String policyBasedRouteId = "policyBasedRouteId-18034589"; - client.createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId).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()); - } - } - - @Test - public void deletePolicyBasedRouteTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deletePolicyBasedRouteTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockPolicyBasedRoutingService.addResponse(resultOperation); - - PolicyBasedRouteName name = - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]"); - - client.deletePolicyBasedRouteAsync(name).get(); - - List actualRequests = mockPolicyBasedRoutingService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeletePolicyBasedRouteRequest actualRequest = - ((DeletePolicyBasedRouteRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deletePolicyBasedRouteExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyBasedRoutingService.addException(exception); - - try { - PolicyBasedRouteName name = - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]"); - client.deletePolicyBasedRouteAsync(name).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()); - } - } - - @Test - public void deletePolicyBasedRouteTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deletePolicyBasedRouteTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockPolicyBasedRoutingService.addResponse(resultOperation); - - String name = "name3373707"; - - client.deletePolicyBasedRouteAsync(name).get(); - - List actualRequests = mockPolicyBasedRoutingService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeletePolicyBasedRouteRequest actualRequest = - ((DeletePolicyBasedRouteRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deletePolicyBasedRouteExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyBasedRoutingService.addException(exception); - - try { - String name = "name3373707"; - client.deletePolicyBasedRouteAsync(name).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/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java deleted file mode 100644 index 2c1620fb084e..000000000000 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java +++ /dev/null @@ -1,1396 +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.networkconnectivity.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Network Connectivity Center is a hub-and-spoke abstraction for network
- * connectivity management in Google Cloud. It reduces operational complexity
- * through a simple, centralized connectivity management model.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1/hub.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class HubServiceGrpc { - - private HubServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1.HubService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1.ListHubsResponse> - getListHubsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListHubs", - requestType = com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1.ListHubsResponse> - getListHubsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1.ListHubsResponse> - getListHubsMethod; - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - HubServiceGrpc.getListHubsMethod = - getListHubsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListHubsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListHubsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) - .build(); - } - } - } - return getListHubsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetHubRequest, - com.google.cloud.networkconnectivity.v1.Hub> - getGetHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetHub", - requestType = com.google.cloud.networkconnectivity.v1.GetHubRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.Hub.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetHubRequest, - com.google.cloud.networkconnectivity.v1.Hub> - getGetHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetHubRequest, - com.google.cloud.networkconnectivity.v1.Hub> - getGetHubMethod; - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - HubServiceGrpc.getGetHubMethod = - getGetHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.GetHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) - .build(); - } - } - } - return getGetHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreateHubRequest, - com.google.longrunning.Operation> - getCreateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateHub", - requestType = com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreateHubRequest, - com.google.longrunning.Operation> - getCreateHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreateHubRequest, - com.google.longrunning.Operation> - getCreateHubMethod; - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - HubServiceGrpc.getCreateHubMethod = - getCreateHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.CreateHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) - .build(); - } - } - } - return getCreateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.UpdateHubRequest, - com.google.longrunning.Operation> - getUpdateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateHub", - requestType = com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.UpdateHubRequest, - com.google.longrunning.Operation> - getUpdateHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.UpdateHubRequest, - com.google.longrunning.Operation> - getUpdateHubMethod; - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - HubServiceGrpc.getUpdateHubMethod = - getUpdateHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) - .build(); - } - } - } - return getUpdateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeleteHubRequest, - com.google.longrunning.Operation> - getDeleteHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteHub", - requestType = com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeleteHubRequest, - com.google.longrunning.Operation> - getDeleteHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeleteHubRequest, - com.google.longrunning.Operation> - getDeleteHubMethod; - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - HubServiceGrpc.getDeleteHubMethod = - getDeleteHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) - .build(); - } - } - } - return getDeleteHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1.ListSpokesResponse> - getListSpokesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSpokes", - requestType = com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1.ListSpokesResponse> - getListSpokesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1.ListSpokesResponse> - getListSpokesMethod; - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - HubServiceGrpc.getListSpokesMethod = - getListSpokesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListSpokesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) - .build(); - } - } - } - return getListSpokesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1.Spoke> - getGetSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSpoke", - requestType = com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.Spoke.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1.Spoke> - getGetSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1.Spoke> - getGetSpokeMethod; - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - HubServiceGrpc.getGetSpokeMethod = - getGetSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) - .build(); - } - } - } - return getGetSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, - com.google.longrunning.Operation> - getCreateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", - requestType = com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, - com.google.longrunning.Operation> - getCreateSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, - com.google.longrunning.Operation> - getCreateSpokeMethod; - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - HubServiceGrpc.getCreateSpokeMethod = - getCreateSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) - .build(); - } - } - } - return getCreateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, - com.google.longrunning.Operation> - getUpdateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", - requestType = com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, - com.google.longrunning.Operation> - getUpdateSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, - com.google.longrunning.Operation> - getUpdateSpokeMethod; - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - HubServiceGrpc.getUpdateSpokeMethod = - getUpdateSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) - .build(); - } - } - } - return getUpdateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, - com.google.longrunning.Operation> - getDeleteSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", - requestType = com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, - com.google.longrunning.Operation> - getDeleteSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, - com.google.longrunning.Operation> - getDeleteSpokeMethod; - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - HubServiceGrpc.getDeleteSpokeMethod = - getDeleteSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) - .build(); - } - } - } - return getDeleteSpokeMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static HubServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - }; - return HubServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static HubServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - }; - return HubServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static HubServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - }; - return HubServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public abstract static class HubServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists the Network Connectivity Center hubs associated with a given project.
-     * 
- */ - public void listHubs( - com.google.cloud.networkconnectivity.v1.ListHubsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details about a Network Connectivity Center hub.
-     * 
- */ - public void getHub( - com.google.cloud.networkconnectivity.v1.GetHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Network Connectivity Center hub in the specified project.
-     * 
- */ - public void createHub( - com.google.cloud.networkconnectivity.v1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the description and/or labels of a Network Connectivity Center
-     * hub.
-     * 
- */ - public void updateHub( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a Network Connectivity Center hub.
-     * 
- */ - public void deleteHub( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the Network Connectivity Center spokes in a specified project and
-     * location.
-     * 
- */ - public void listSpokes( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details about a Network Connectivity Center spoke.
-     * 
- */ - public void getSpoke( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a Network Connectivity Center spoke.
-     * 
- */ - public void createSpoke( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSpokeMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a Network Connectivity Center spoke.
-     * 
- */ - public void updateSpoke( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSpokeMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a Network Connectivity Center spoke.
-     * 
- */ - public void deleteSpoke( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSpokeMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListHubsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1.ListHubsResponse>( - this, METHODID_LIST_HUBS))) - .addMethod( - getGetHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.GetHubRequest, - com.google.cloud.networkconnectivity.v1.Hub>(this, METHODID_GET_HUB))) - .addMethod( - getCreateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.CreateHubRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_HUB))) - .addMethod( - getUpdateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.UpdateHubRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_HUB))) - .addMethod( - getDeleteHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.DeleteHubRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_HUB))) - .addMethod( - getListSpokesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1.ListSpokesResponse>( - this, METHODID_LIST_SPOKES))) - .addMethod( - getGetSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1.Spoke>(this, METHODID_GET_SPOKE))) - .addMethod( - getCreateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_SPOKE))) - .addMethod( - getUpdateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_SPOKE))) - .addMethod( - getDeleteSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_SPOKE))) - .build(); - } - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { - private HubServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists the Network Connectivity Center hubs associated with a given project.
-     * 
- */ - public void listHubs( - com.google.cloud.networkconnectivity.v1.ListHubsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets details about a Network Connectivity Center hub.
-     * 
- */ - public void getHub( - com.google.cloud.networkconnectivity.v1.GetHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a new Network Connectivity Center hub in the specified project.
-     * 
- */ - public void createHub( - com.google.cloud.networkconnectivity.v1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates the description and/or labels of a Network Connectivity Center
-     * hub.
-     * 
- */ - public void updateHub( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Deletes a Network Connectivity Center hub.
-     * 
- */ - public void deleteHub( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists the Network Connectivity Center spokes in a specified project and
-     * location.
-     * 
- */ - public void listSpokes( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets details about a Network Connectivity Center spoke.
-     * 
- */ - public void getSpoke( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a Network Connectivity Center spoke.
-     * 
- */ - public void createSpoke( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a Network Connectivity Center spoke.
-     * 
- */ - public void updateSpoke( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a Network Connectivity Center spoke.
-     * 
- */ - public void deleteSpoke( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static final class HubServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private HubServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists the Network Connectivity Center hubs associated with a given project.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.ListHubsResponse listHubs( - com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListHubsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details about a Network Connectivity Center hub.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.Hub getHub( - com.google.cloud.networkconnectivity.v1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Network Connectivity Center hub in the specified project.
-     * 
- */ - public com.google.longrunning.Operation createHub( - com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the description and/or labels of a Network Connectivity Center
-     * hub.
-     * 
- */ - public com.google.longrunning.Operation updateHub( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a Network Connectivity Center hub.
-     * 
- */ - public com.google.longrunning.Operation deleteHub( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the Network Connectivity Center spokes in a specified project and
-     * location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.ListSpokesResponse listSpokes( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSpokesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details about a Network Connectivity Center spoke.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.Spoke getSpoke( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSpokeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a Network Connectivity Center spoke.
-     * 
- */ - public com.google.longrunning.Operation createSpoke( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSpokeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a Network Connectivity Center spoke.
-     * 
- */ - public com.google.longrunning.Operation updateSpoke( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a Network Connectivity Center spoke.
-     * 
- */ - public com.google.longrunning.Operation deleteSpoke( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static final class HubServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private HubServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists the Network Connectivity Center hubs associated with a given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1.ListHubsResponse> - listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details about a Network Connectivity Center hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1.Hub> - getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Network Connectivity Center hub in the specified project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the description and/or labels of a Network Connectivity Center
-     * hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a Network Connectivity Center hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the Network Connectivity Center spokes in a specified project and
-     * location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1.ListSpokesResponse> - listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details about a Network Connectivity Center spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1.Spoke> - getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a Network Connectivity Center spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a Network Connectivity Center spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a Network Connectivity Center spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_HUBS = 0; - private static final int METHODID_GET_HUB = 1; - private static final int METHODID_CREATE_HUB = 2; - private static final int METHODID_UPDATE_HUB = 3; - private static final int METHODID_DELETE_HUB = 4; - private static final int METHODID_LIST_SPOKES = 5; - private static final int METHODID_GET_SPOKE = 6; - private static final int METHODID_CREATE_SPOKE = 7; - private static final int METHODID_UPDATE_SPOKE = 8; - private static final int METHODID_DELETE_SPOKE = 9; - - 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 HubServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(HubServiceImplBase 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_HUBS: - serviceImpl.listHubs( - (com.google.cloud.networkconnectivity.v1.ListHubsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1.ListHubsResponse>) - responseObserver); - break; - case METHODID_GET_HUB: - serviceImpl.getHub( - (com.google.cloud.networkconnectivity.v1.GetHubRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_HUB: - serviceImpl.createHub( - (com.google.cloud.networkconnectivity.v1.CreateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_HUB: - serviceImpl.updateHub( - (com.google.cloud.networkconnectivity.v1.UpdateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_HUB: - serviceImpl.deleteHub( - (com.google.cloud.networkconnectivity.v1.DeleteHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SPOKES: - serviceImpl.listSpokes( - (com.google.cloud.networkconnectivity.v1.ListSpokesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1.ListSpokesResponse>) - responseObserver); - break; - case METHODID_GET_SPOKE: - serviceImpl.getSpoke( - (com.google.cloud.networkconnectivity.v1.GetSpokeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_SPOKE: - serviceImpl.createSpoke( - (com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SPOKE: - serviceImpl.updateSpoke( - (com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SPOKE: - serviceImpl.deleteSpoke( - (com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - HubServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("HubService"); - } - } - - private static final class HubServiceFileDescriptorSupplier - extends HubServiceBaseDescriptorSupplier { - HubServiceFileDescriptorSupplier() {} - } - - private static final class HubServiceMethodDescriptorSupplier - extends HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) - .addMethod(getListHubsMethod()) - .addMethod(getGetHubMethod()) - .addMethod(getCreateHubMethod()) - .addMethod(getUpdateHubMethod()) - .addMethod(getDeleteHubMethod()) - .addMethod(getListSpokesMethod()) - .addMethod(getGetSpokeMethod()) - .addMethod(getCreateSpokeMethod()) - .addMethod(getUpdateSpokeMethod()) - .addMethod(getDeleteSpokeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java deleted file mode 100644 index 40eca2fa82af..000000000000 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java +++ /dev/null @@ -1,757 +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.networkconnectivity.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Policy-Based Routing allows GCP customers to specify flexibile routing
- * policies for Layer 4 traffic traversing through the connected service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1/policy_based_routing.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class PolicyBasedRoutingServiceGrpc { - - private PolicyBasedRoutingServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest, - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> - getListPolicyBasedRoutesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPolicyBasedRoutes", - requestType = com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest, - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> - getListPolicyBasedRoutesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest, - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> - getListPolicyBasedRoutesMethod; - if ((getListPolicyBasedRoutesMethod = - PolicyBasedRoutingServiceGrpc.getListPolicyBasedRoutesMethod) - == null) { - synchronized (PolicyBasedRoutingServiceGrpc.class) { - if ((getListPolicyBasedRoutesMethod = - PolicyBasedRoutingServiceGrpc.getListPolicyBasedRoutesMethod) - == null) { - PolicyBasedRoutingServiceGrpc.getListPolicyBasedRoutesMethod = - getListPolicyBasedRoutesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListPolicyBasedRoutes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new PolicyBasedRoutingServiceMethodDescriptorSupplier( - "ListPolicyBasedRoutes")) - .build(); - } - } - } - return getListPolicyBasedRoutesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute> - getGetPolicyBasedRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPolicyBasedRoute", - requestType = com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute> - getGetPolicyBasedRouteMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute> - getGetPolicyBasedRouteMethod; - if ((getGetPolicyBasedRouteMethod = PolicyBasedRoutingServiceGrpc.getGetPolicyBasedRouteMethod) - == null) { - synchronized (PolicyBasedRoutingServiceGrpc.class) { - if ((getGetPolicyBasedRouteMethod = - PolicyBasedRoutingServiceGrpc.getGetPolicyBasedRouteMethod) - == null) { - PolicyBasedRoutingServiceGrpc.getGetPolicyBasedRouteMethod = - getGetPolicyBasedRouteMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetPolicyBasedRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute - .getDefaultInstance())) - .setSchemaDescriptor( - new PolicyBasedRoutingServiceMethodDescriptorSupplier( - "GetPolicyBasedRoute")) - .build(); - } - } - } - return getGetPolicyBasedRouteMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest, - com.google.longrunning.Operation> - getCreatePolicyBasedRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePolicyBasedRoute", - requestType = com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest, - com.google.longrunning.Operation> - getCreatePolicyBasedRouteMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest, - com.google.longrunning.Operation> - getCreatePolicyBasedRouteMethod; - if ((getCreatePolicyBasedRouteMethod = - PolicyBasedRoutingServiceGrpc.getCreatePolicyBasedRouteMethod) - == null) { - synchronized (PolicyBasedRoutingServiceGrpc.class) { - if ((getCreatePolicyBasedRouteMethod = - PolicyBasedRoutingServiceGrpc.getCreatePolicyBasedRouteMethod) - == null) { - PolicyBasedRoutingServiceGrpc.getCreatePolicyBasedRouteMethod = - getCreatePolicyBasedRouteMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreatePolicyBasedRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyBasedRoutingServiceMethodDescriptorSupplier( - "CreatePolicyBasedRoute")) - .build(); - } - } - } - return getCreatePolicyBasedRouteMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest, - com.google.longrunning.Operation> - getDeletePolicyBasedRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePolicyBasedRoute", - requestType = com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest, - com.google.longrunning.Operation> - getDeletePolicyBasedRouteMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest, - com.google.longrunning.Operation> - getDeletePolicyBasedRouteMethod; - if ((getDeletePolicyBasedRouteMethod = - PolicyBasedRoutingServiceGrpc.getDeletePolicyBasedRouteMethod) - == null) { - synchronized (PolicyBasedRoutingServiceGrpc.class) { - if ((getDeletePolicyBasedRouteMethod = - PolicyBasedRoutingServiceGrpc.getDeletePolicyBasedRouteMethod) - == null) { - PolicyBasedRoutingServiceGrpc.getDeletePolicyBasedRouteMethod = - getDeletePolicyBasedRouteMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeletePolicyBasedRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyBasedRoutingServiceMethodDescriptorSupplier( - "DeletePolicyBasedRoute")) - .build(); - } - } - } - return getDeletePolicyBasedRouteMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static PolicyBasedRoutingServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyBasedRoutingServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyBasedRoutingServiceStub(channel, callOptions); - } - }; - return PolicyBasedRoutingServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static PolicyBasedRoutingServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyBasedRoutingServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyBasedRoutingServiceBlockingStub(channel, callOptions); - } - }; - return PolicyBasedRoutingServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static PolicyBasedRoutingServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyBasedRoutingServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyBasedRoutingServiceFutureStub(channel, callOptions); - } - }; - return PolicyBasedRoutingServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Policy-Based Routing allows GCP customers to specify flexibile routing
-   * policies for Layer 4 traffic traversing through the connected service.
-   * 
- */ - public abstract static class PolicyBasedRoutingServiceImplBase - implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists PolicyBasedRoutes in a given project and location.
-     * 
- */ - public void listPolicyBasedRoutes( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPolicyBasedRoutesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single PolicyBasedRoute.
-     * 
- */ - public void getPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetPolicyBasedRouteMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new PolicyBasedRoute in a given project and location.
-     * 
- */ - public void createPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePolicyBasedRouteMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single PolicyBasedRoute.
-     * 
- */ - public void deletePolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePolicyBasedRouteMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListPolicyBasedRoutesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest, - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse>( - this, METHODID_LIST_POLICY_BASED_ROUTES))) - .addMethod( - getGetPolicyBasedRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute>( - this, METHODID_GET_POLICY_BASED_ROUTE))) - .addMethod( - getCreatePolicyBasedRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_POLICY_BASED_ROUTE))) - .addMethod( - getDeletePolicyBasedRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_POLICY_BASED_ROUTE))) - .build(); - } - } - - /** - * - * - *
-   * Policy-Based Routing allows GCP customers to specify flexibile routing
-   * policies for Layer 4 traffic traversing through the connected service.
-   * 
- */ - public static final class PolicyBasedRoutingServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private PolicyBasedRoutingServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyBasedRoutingServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyBasedRoutingServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists PolicyBasedRoutes in a given project and location.
-     * 
- */ - public void listPolicyBasedRoutes( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPolicyBasedRoutesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single PolicyBasedRoute.
-     * 
- */ - public void getPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPolicyBasedRouteMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new PolicyBasedRoute in a given project and location.
-     * 
- */ - public void createPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePolicyBasedRouteMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single PolicyBasedRoute.
-     * 
- */ - public void deletePolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePolicyBasedRouteMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Policy-Based Routing allows GCP customers to specify flexibile routing
-   * policies for Layer 4 traffic traversing through the connected service.
-   * 
- */ - public static final class PolicyBasedRoutingServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private PolicyBasedRoutingServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyBasedRoutingServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyBasedRoutingServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists PolicyBasedRoutes in a given project and location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse - listPolicyBasedRoutes( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPolicyBasedRoutesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single PolicyBasedRoute.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPolicyBasedRouteMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new PolicyBasedRoute in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePolicyBasedRouteMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single PolicyBasedRoute.
-     * 
- */ - public com.google.longrunning.Operation deletePolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePolicyBasedRouteMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Policy-Based Routing allows GCP customers to specify flexibile routing
-   * policies for Layer 4 traffic traversing through the connected service.
-   * 
- */ - public static final class PolicyBasedRoutingServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private PolicyBasedRoutingServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyBasedRoutingServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyBasedRoutingServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists PolicyBasedRoutes in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> - listPolicyBasedRoutes( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPolicyBasedRoutesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single PolicyBasedRoute.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute> - getPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPolicyBasedRouteMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new PolicyBasedRoute in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePolicyBasedRouteMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single PolicyBasedRoute.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deletePolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePolicyBasedRouteMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_POLICY_BASED_ROUTES = 0; - private static final int METHODID_GET_POLICY_BASED_ROUTE = 1; - private static final int METHODID_CREATE_POLICY_BASED_ROUTE = 2; - private static final int METHODID_DELETE_POLICY_BASED_ROUTE = 3; - - 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 PolicyBasedRoutingServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(PolicyBasedRoutingServiceImplBase 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_POLICY_BASED_ROUTES: - serviceImpl.listPolicyBasedRoutes( - (com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse>) - responseObserver); - break; - case METHODID_GET_POLICY_BASED_ROUTE: - serviceImpl.getPolicyBasedRoute( - (com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute>) - responseObserver); - break; - case METHODID_CREATE_POLICY_BASED_ROUTE: - serviceImpl.createPolicyBasedRoute( - (com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_POLICY_BASED_ROUTE: - serviceImpl.deletePolicyBasedRoute( - (com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) 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 PolicyBasedRoutingServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - PolicyBasedRoutingServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("PolicyBasedRoutingService"); - } - } - - private static final class PolicyBasedRoutingServiceFileDescriptorSupplier - extends PolicyBasedRoutingServiceBaseDescriptorSupplier { - PolicyBasedRoutingServiceFileDescriptorSupplier() {} - } - - private static final class PolicyBasedRoutingServiceMethodDescriptorSupplier - extends PolicyBasedRoutingServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - PolicyBasedRoutingServiceMethodDescriptorSupplier(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 (PolicyBasedRoutingServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PolicyBasedRoutingServiceFileDescriptorSupplier()) - .addMethod(getListPolicyBasedRoutesMethod()) - .addMethod(getGetPolicyBasedRouteMethod()) - .addMethod(getCreatePolicyBasedRouteMethod()) - .addMethod(getDeletePolicyBasedRouteMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java deleted file mode 100644 index aae81be9d5c9..000000000000 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java +++ /dev/null @@ -1,1400 +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.networkconnectivity.v1alpha1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Network Connectivity Center is a hub-and-spoke abstraction for
- * network connectivity management in Google Cloud. It reduces
- * operational complexity through a simple, centralized connectivity management
- * model.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1alpha1/hub.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class HubServiceGrpc { - - private HubServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1alpha1.HubService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> - getListHubsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListHubs", - requestType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> - getListHubsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> - getListHubsMethod; - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - HubServiceGrpc.getListHubsMethod = - getListHubsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) - .build(); - } - } - } - return getListHubsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, - com.google.cloud.networkconnectivity.v1alpha1.Hub> - getGetHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.Hub.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, - com.google.cloud.networkconnectivity.v1alpha1.Hub> - getGetHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, - com.google.cloud.networkconnectivity.v1alpha1.Hub> - getGetHubMethod; - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - HubServiceGrpc.getGetHubMethod = - getGetHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.Hub - .getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) - .build(); - } - } - } - return getGetHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, - com.google.longrunning.Operation> - getCreateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, - com.google.longrunning.Operation> - getCreateHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, - com.google.longrunning.Operation> - getCreateHubMethod; - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - HubServiceGrpc.getCreateHubMethod = - getCreateHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) - .build(); - } - } - } - return getCreateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, - com.google.longrunning.Operation> - getUpdateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, - com.google.longrunning.Operation> - getUpdateHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, - com.google.longrunning.Operation> - getUpdateHubMethod; - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - HubServiceGrpc.getUpdateHubMethod = - getUpdateHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) - .build(); - } - } - } - return getUpdateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, - com.google.longrunning.Operation> - getDeleteHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, - com.google.longrunning.Operation> - getDeleteHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, - com.google.longrunning.Operation> - getDeleteHubMethod; - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - HubServiceGrpc.getDeleteHubMethod = - getDeleteHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) - .build(); - } - } - } - return getDeleteHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> - getListSpokesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSpokes", - requestType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> - getListSpokesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> - getListSpokesMethod; - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - HubServiceGrpc.getListSpokesMethod = - getListSpokesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) - .build(); - } - } - } - return getListSpokesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1alpha1.Spoke> - getGetSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1alpha1.Spoke> - getGetSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1alpha1.Spoke> - getGetSpokeMethod; - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - HubServiceGrpc.getGetSpokeMethod = - getGetSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.Spoke - .getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) - .build(); - } - } - } - return getGetSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, - com.google.longrunning.Operation> - getCreateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, - com.google.longrunning.Operation> - getCreateSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, - com.google.longrunning.Operation> - getCreateSpokeMethod; - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - HubServiceGrpc.getCreateSpokeMethod = - getCreateSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) - .build(); - } - } - } - return getCreateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, - com.google.longrunning.Operation> - getUpdateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, - com.google.longrunning.Operation> - getUpdateSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, - com.google.longrunning.Operation> - getUpdateSpokeMethod; - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - HubServiceGrpc.getUpdateSpokeMethod = - getUpdateSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) - .build(); - } - } - } - return getUpdateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, - com.google.longrunning.Operation> - getDeleteSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, - com.google.longrunning.Operation> - getDeleteSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, - com.google.longrunning.Operation> - getDeleteSpokeMethod; - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - HubServiceGrpc.getDeleteSpokeMethod = - getDeleteSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) - .build(); - } - } - } - return getDeleteSpokeMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static HubServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - }; - return HubServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static HubServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - }; - return HubServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static HubServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - }; - return HubServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public abstract static class HubServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public void listHubs( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Hub.
-     * 
- */ - public void getHub( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public void createHub( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public void updateHub( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single Hub.
-     * 
- */ - public void deleteHub( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public void listSpokes( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Spoke.
-     * 
- */ - public void getSpoke( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public void createSpoke( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSpokeMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public void updateSpoke( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSpokeMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single Spoke.
-     * 
- */ - public void deleteSpoke( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSpokeMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListHubsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>( - this, METHODID_LIST_HUBS))) - .addMethod( - getGetHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, - com.google.cloud.networkconnectivity.v1alpha1.Hub>(this, METHODID_GET_HUB))) - .addMethod( - getCreateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_HUB))) - .addMethod( - getUpdateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_HUB))) - .addMethod( - getDeleteHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_HUB))) - .addMethod( - getListSpokesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>( - this, METHODID_LIST_SPOKES))) - .addMethod( - getGetSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1alpha1.Spoke>( - this, METHODID_GET_SPOKE))) - .addMethod( - getCreateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_SPOKE))) - .addMethod( - getUpdateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_SPOKE))) - .addMethod( - getDeleteSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_SPOKE))) - .build(); - } - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { - private HubServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public void listHubs( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Hub.
-     * 
- */ - public void getHub( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public void createHub( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public void updateHub( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Deletes a single Hub.
-     * 
- */ - public void deleteHub( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public void listSpokes( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Spoke.
-     * 
- */ - public void getSpoke( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public void createSpoke( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public void updateSpoke( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single Spoke.
-     * 
- */ - public void deleteSpoke( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static final class HubServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private HubServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse listHubs( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListHubsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single Hub.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createHub( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public com.google.longrunning.Operation updateHub( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single Hub.
-     * 
- */ - public com.google.longrunning.Operation deleteHub( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse listSpokes( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSpokesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single Spoke.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSpokeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createSpoke( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSpokeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public com.google.longrunning.Operation updateSpoke( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single Spoke.
-     * 
- */ - public com.google.longrunning.Operation deleteSpoke( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static final class HubServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private HubServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> - listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single Hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1alpha1.Hub> - getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single Hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> - listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single Spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1alpha1.Spoke> - getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single Spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_HUBS = 0; - private static final int METHODID_GET_HUB = 1; - private static final int METHODID_CREATE_HUB = 2; - private static final int METHODID_UPDATE_HUB = 3; - private static final int METHODID_DELETE_HUB = 4; - private static final int METHODID_LIST_SPOKES = 5; - private static final int METHODID_GET_SPOKE = 6; - private static final int METHODID_CREATE_SPOKE = 7; - private static final int METHODID_UPDATE_SPOKE = 8; - private static final int METHODID_DELETE_SPOKE = 9; - - 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 HubServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(HubServiceImplBase 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_HUBS: - serviceImpl.listHubs( - (com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>) - responseObserver); - break; - case METHODID_GET_HUB: - serviceImpl.getHub( - (com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_HUB: - serviceImpl.createHub( - (com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_HUB: - serviceImpl.updateHub( - (com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_HUB: - serviceImpl.deleteHub( - (com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SPOKES: - serviceImpl.listSpokes( - (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>) - responseObserver); - break; - case METHODID_GET_SPOKE: - serviceImpl.getSpoke( - (com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_SPOKE: - serviceImpl.createSpoke( - (com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SPOKE: - serviceImpl.updateSpoke( - (com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SPOKE: - serviceImpl.deleteSpoke( - (com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - HubServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("HubService"); - } - } - - private static final class HubServiceFileDescriptorSupplier - extends HubServiceBaseDescriptorSupplier { - HubServiceFileDescriptorSupplier() {} - } - - private static final class HubServiceMethodDescriptorSupplier - extends HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) - .addMethod(getListHubsMethod()) - .addMethod(getGetHubMethod()) - .addMethod(getCreateHubMethod()) - .addMethod(getUpdateHubMethod()) - .addMethod(getDeleteHubMethod()) - .addMethod(getListSpokesMethod()) - .addMethod(getGetSpokeMethod()) - .addMethod(getCreateSpokeMethod()) - .addMethod(getUpdateSpokeMethod()) - .addMethod(getDeleteSpokeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java deleted file mode 100644 index 721a7326cff4..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java +++ /dev/null @@ -1,102 +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/networkconnectivity/v1/common.proto - -package com.google.cloud.networkconnectivity.v1; - -public final class CommonProto { - private CommonProto() {} - - 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_networkconnectivity_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/networkconnectivity/v1/co" - + "mmon.proto\022#google.cloud.networkconnecti" - + "vity.v1\032\037google/api/field_behavior.proto" - + "\032\031google/api/resource.proto\032\037google/prot" - + "obuf/timestamp.proto\"\200\002\n\021OperationMetada" - + "ta\0224\n\013create_time\030\001 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.goo" - + "gle.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_me" - + "ssage\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellati" - + "on\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003B" - + "\327\003\n\'com.google.cloud.networkconnectivity" - + ".v1B\013CommonProtoP\001ZVgoogle.golang.org/ge" - + "nproto/googleapis/cloud/networkconnectiv" - + "ity/v1;networkconnectivity\252\002#Google.Clou" - + "d.NetworkConnectivity.V1\312\002#Google\\Cloud\\" - + "NetworkConnectivity\\V1\352\002&Google::Cloud::" - + "NetworkConnectivity::V1\352Az\n-compute.goog" - + "leapis.com/InterconnectAttachment\022Iproje" - + "cts/{project}/regions/{region}/interconn" - + "ectAttachments/{resource_id}\352AR\n\036compute" - + ".googleapis.com/Network\0220projects/{proje" - + "ct}/global/networks/{resource_id}b\006proto" - + "3" - }; - 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.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resourceDefinition); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequest.java deleted file mode 100644 index 655d49d58a4d..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequest.java +++ /dev/null @@ -1,1386 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -/** - * - * - *
- * Request for [PolicyBasedRouting.CreatePolicyBasedRoute][] method.
- * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest} - */ -public final class CreatePolicyBasedRouteRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) - CreatePolicyBasedRouteRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreatePolicyBasedRouteRequest.newBuilder() to construct. - private CreatePolicyBasedRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreatePolicyBasedRouteRequest() { - parent_ = ""; - policyBasedRouteId_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreatePolicyBasedRouteRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.class, - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * Required. The parent resource's name of the PolicyBasedRoute.
-   * 
- * - * - * 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 resource's name of the PolicyBasedRoute.
-   * 
- * - * - * 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 POLICY_BASED_ROUTE_ID_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object policyBasedRouteId_ = ""; - /** - * - * - *
-   * Optional. Unique id for the Policy Based Route to create.
-   * 
- * - * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The policyBasedRouteId. - */ - @java.lang.Override - public java.lang.String getPolicyBasedRouteId() { - java.lang.Object ref = policyBasedRouteId_; - 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(); - policyBasedRouteId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Unique id for the Policy Based Route to create.
-   * 
- * - * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for policyBasedRouteId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPolicyBasedRouteIdBytes() { - java.lang.Object ref = policyBasedRouteId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - policyBasedRouteId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int POLICY_BASED_ROUTE_FIELD_NUMBER = 3; - private com.google.cloud.networkconnectivity.v1.PolicyBasedRoute policyBasedRoute_; - /** - * - * - *
-   * Required. Initial values for a new Policy Based Route.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the policyBasedRoute field is set. - */ - @java.lang.Override - public boolean hasPolicyBasedRoute() { - return policyBasedRoute_ != null; - } - /** - * - * - *
-   * Required. Initial values for a new Policy Based Route.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The policyBasedRoute. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoute() { - return policyBasedRoute_ == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() - : policyBasedRoute_; - } - /** - * - * - *
-   * Required. Initial values for a new Policy Based Route.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder - getPolicyBasedRouteOrBuilder() { - return policyBasedRoute_ == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() - : policyBasedRoute_; - } - - public static final int REQUEST_ID_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object requestId_ = ""; - /** - * - * - *
-   * Optional. An optional request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - 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(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. An optional request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyBasedRouteId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, policyBasedRouteId_); - } - if (policyBasedRoute_ != null) { - output.writeMessage(3, getPolicyBasedRoute()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); - } - getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyBasedRouteId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, policyBasedRouteId_); - } - if (policyBasedRoute_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPolicyBasedRoute()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); - } - size += getUnknownFields().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.networkconnectivity.v1.CreatePolicyBasedRouteRequest)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest other = - (com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getPolicyBasedRouteId().equals(other.getPolicyBasedRouteId())) return false; - if (hasPolicyBasedRoute() != other.hasPolicyBasedRoute()) return false; - if (hasPolicyBasedRoute()) { - if (!getPolicyBasedRoute().equals(other.getPolicyBasedRoute())) return false; - } - if (!getRequestId().equals(other.getRequestId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + POLICY_BASED_ROUTE_ID_FIELD_NUMBER; - hash = (53 * hash) + getPolicyBasedRouteId().hashCode(); - if (hasPolicyBasedRoute()) { - hash = (37 * hash) + POLICY_BASED_ROUTE_FIELD_NUMBER; - hash = (53 * hash) + getPolicyBasedRoute().hashCode(); - } - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest - 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest 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 [PolicyBasedRouting.CreatePolicyBasedRoute][] method.
-   * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.class, - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.Builder.class); - } - - // Construct using - // com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - policyBasedRouteId_ = ""; - policyBasedRoute_ = null; - if (policyBasedRouteBuilder_ != null) { - policyBasedRouteBuilder_.dispose(); - policyBasedRouteBuilder_ = null; - } - requestId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest build() { - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest result = - new com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.policyBasedRouteId_ = policyBasedRouteId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.policyBasedRoute_ = - policyBasedRouteBuilder_ == null ? policyBasedRoute_ : policyBasedRouteBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.requestId_ = requestId_; - } - } - - @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.networkconnectivity.v1.CreatePolicyBasedRouteRequest) { - return mergeFrom( - (com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest - .getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getPolicyBasedRouteId().isEmpty()) { - policyBasedRouteId_ = other.policyBasedRouteId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasPolicyBasedRoute()) { - mergePolicyBasedRoute(other.getPolicyBasedRoute()); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - policyBasedRouteId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getPolicyBasedRouteFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource's name of the PolicyBasedRoute.
-     * 
- * - * - * 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 resource's name of the PolicyBasedRoute.
-     * 
- * - * - * 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 resource's name of the PolicyBasedRoute.
-     * 
- * - * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource's name of the PolicyBasedRoute.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource's name of the PolicyBasedRoute.
-     * 
- * - * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object policyBasedRouteId_ = ""; - /** - * - * - *
-     * Optional. Unique id for the Policy Based Route to create.
-     * 
- * - * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The policyBasedRouteId. - */ - public java.lang.String getPolicyBasedRouteId() { - java.lang.Object ref = policyBasedRouteId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - policyBasedRouteId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Unique id for the Policy Based Route to create.
-     * 
- * - * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for policyBasedRouteId. - */ - public com.google.protobuf.ByteString getPolicyBasedRouteIdBytes() { - java.lang.Object ref = policyBasedRouteId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - policyBasedRouteId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Unique id for the Policy Based Route to create.
-     * 
- * - * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The policyBasedRouteId to set. - * @return This builder for chaining. - */ - public Builder setPolicyBasedRouteId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - policyBasedRouteId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Unique id for the Policy Based Route to create.
-     * 
- * - * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPolicyBasedRouteId() { - policyBasedRouteId_ = getDefaultInstance().getPolicyBasedRouteId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Unique id for the Policy Based Route to create.
-     * 
- * - * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for policyBasedRouteId to set. - * @return This builder for chaining. - */ - public Builder setPolicyBasedRouteIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - policyBasedRouteId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.cloud.networkconnectivity.v1.PolicyBasedRoute policyBasedRoute_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> - policyBasedRouteBuilder_; - /** - * - * - *
-     * Required. Initial values for a new Policy Based Route.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the policyBasedRoute field is set. - */ - public boolean hasPolicyBasedRoute() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Required. Initial values for a new Policy Based Route.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The policyBasedRoute. - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoute() { - if (policyBasedRouteBuilder_ == null) { - return policyBasedRoute_ == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() - : policyBasedRoute_; - } else { - return policyBasedRouteBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Initial values for a new Policy Based Route.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { - if (policyBasedRouteBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - policyBasedRoute_ = value; - } else { - policyBasedRouteBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Initial values for a new Policy Based Route.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder builderForValue) { - if (policyBasedRouteBuilder_ == null) { - policyBasedRoute_ = builderForValue.build(); - } else { - policyBasedRouteBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Initial values for a new Policy Based Route.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergePolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { - if (policyBasedRouteBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && policyBasedRoute_ != null - && policyBasedRoute_ - != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance()) { - getPolicyBasedRouteBuilder().mergeFrom(value); - } else { - policyBasedRoute_ = value; - } - } else { - policyBasedRouteBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Initial values for a new Policy Based Route.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearPolicyBasedRoute() { - bitField0_ = (bitField0_ & ~0x00000004); - policyBasedRoute_ = null; - if (policyBasedRouteBuilder_ != null) { - policyBasedRouteBuilder_.dispose(); - policyBasedRouteBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Initial values for a new Policy Based Route.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder - getPolicyBasedRouteBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getPolicyBasedRouteFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Initial values for a new Policy Based Route.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder - getPolicyBasedRouteOrBuilder() { - if (policyBasedRouteBuilder_ != null) { - return policyBasedRouteBuilder_.getMessageOrBuilder(); - } else { - return policyBasedRoute_ == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() - : policyBasedRoute_; - } - } - /** - * - * - *
-     * Required. Initial values for a new Policy Based Route.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> - getPolicyBasedRouteFieldBuilder() { - if (policyBasedRouteBuilder_ == null) { - policyBasedRouteBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder>( - getPolicyBasedRoute(), getParentForChildren(), isClean()); - policyBasedRoute_ = null; - } - return policyBasedRouteBuilder_; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - requestId_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - requestId_ = getDefaultInstance().getRequestId(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - requestId_ = value; - bitField0_ |= 0x00000008; - 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) - private static final com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest(); - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePolicyBasedRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequestOrBuilder.java deleted file mode 100644 index f67bf3a1716d..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequestOrBuilder.java +++ /dev/null @@ -1,165 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface CreatePolicyBasedRouteRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource's name of the PolicyBasedRoute.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource's name of the PolicyBasedRoute.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Optional. Unique id for the Policy Based Route to create.
-   * 
- * - * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The policyBasedRouteId. - */ - java.lang.String getPolicyBasedRouteId(); - /** - * - * - *
-   * Optional. Unique id for the Policy Based Route to create.
-   * 
- * - * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for policyBasedRouteId. - */ - com.google.protobuf.ByteString getPolicyBasedRouteIdBytes(); - - /** - * - * - *
-   * Required. Initial values for a new Policy Based Route.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the policyBasedRoute field is set. - */ - boolean hasPolicyBasedRoute(); - /** - * - * - *
-   * Required. Initial values for a new Policy Based Route.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The policyBasedRoute. - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoute(); - /** - * - * - *
-   * Required. Initial values for a new Policy Based Route.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPolicyBasedRouteOrBuilder(); - - /** - * - * - *
-   * Optional. An optional request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. An optional request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequest.java deleted file mode 100644 index 02c6a215f7ff..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequest.java +++ /dev/null @@ -1,907 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -/** - * - * - *
- * Request for [PolicyBasedRouting.DeletePolicyBasedRoute][] method.
- * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest} - */ -public final class DeletePolicyBasedRouteRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) - DeletePolicyBasedRouteRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeletePolicyBasedRouteRequest.newBuilder() to construct. - private DeletePolicyBasedRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeletePolicyBasedRouteRequest() { - name_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeletePolicyBasedRouteRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.class, - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. Name of the PolicyBasedRoute resource 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. Name of the PolicyBasedRoute resource 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; - } - } - - public static final int REQUEST_ID_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object requestId_ = ""; - /** - * - * - *
-   * Optional. An optional request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes after the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - 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(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. An optional request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes after the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = 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(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); - } - getUnknownFields().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(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); - } - size += getUnknownFields().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.networkconnectivity.v1.DeletePolicyBasedRouteRequest)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest other = - (com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest - 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest 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 [PolicyBasedRouting.DeletePolicyBasedRoute][] method.
-   * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.class, - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.Builder.class); - } - - // Construct using - // com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - requestId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest build() { - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest result = - new com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.requestId_ = requestId_; - } - } - - @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.networkconnectivity.v1.DeletePolicyBasedRouteRequest) { - return mergeFrom( - (com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest - .getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. Name of the PolicyBasedRoute resource 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. Name of the PolicyBasedRoute resource 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. Name of the PolicyBasedRoute resource 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Name of the PolicyBasedRoute resource 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(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Name of the PolicyBasedRoute resource 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - requestId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - requestId_ = getDefaultInstance().getRequestId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - requestId_ = value; - bitField0_ |= 0x00000002; - 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) - private static final com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest(); - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePolicyBasedRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequestOrBuilder.java deleted file mode 100644 index 829c45f69a4b..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequestOrBuilder.java +++ /dev/null @@ -1,99 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface DeletePolicyBasedRouteRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the PolicyBasedRoute resource to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the PolicyBasedRoute resource to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Optional. An optional request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes after the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. An optional request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes after the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java deleted file mode 100644 index 8ab3d81a3f94..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.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/networkconnectivity/v1/hub.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface GetHubRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetHubRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the hub resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the hub resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequest.java deleted file mode 100644 index 845b618e3a6f..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequest.java +++ /dev/null @@ -1,655 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -/** - * - * - *
- * Request for [PolicyBasedRouting.GetPolicyBasedRoute][] method.
- * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest} - */ -public final class GetPolicyBasedRouteRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) - GetPolicyBasedRouteRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetPolicyBasedRouteRequest.newBuilder() to construct. - private GetPolicyBasedRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetPolicyBasedRouteRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetPolicyBasedRouteRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.class, - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. Name of the PolicyBasedRoute resource to get.
-   * 
- * - * - * 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 PolicyBasedRoute resource to get.
-   * 
- * - * - * 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_); - } - getUnknownFields().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 += getUnknownFields().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.networkconnectivity.v1.GetPolicyBasedRouteRequest)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest other = - (com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest 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.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest 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.networkconnectivity.v1.GetPolicyBasedRouteRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest - 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.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest 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.networkconnectivity.v1.GetPolicyBasedRouteRequest 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 [PolicyBasedRouting.GetPolicyBasedRoute][] method.
-   * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.class, - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.Builder.class); - } - - // Construct using - // com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest build() { - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest result = - new com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @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.networkconnectivity.v1.GetPolicyBasedRouteRequest) { - return mergeFrom( - (com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest - .getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. Name of the PolicyBasedRoute resource to get.
-     * 
- * - * - * 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 PolicyBasedRoute resource to get.
-     * 
- * - * - * 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 PolicyBasedRoute resource to get.
-     * 
- * - * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Name of the PolicyBasedRoute resource to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Name of the PolicyBasedRoute resource to get.
-     * 
- * - * - * 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; - bitField0_ |= 0x00000001; - 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.networkconnectivity.v1.GetPolicyBasedRouteRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) - private static final com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest(); - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPolicyBasedRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.GetPolicyBasedRouteRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.java deleted file mode 100644 index 6622d3957f44..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface GetPolicyBasedRouteRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the PolicyBasedRoute resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the PolicyBasedRoute resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java deleted file mode 100644 index dda46174d3d7..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.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/networkconnectivity/v1/hub.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface GetSpokeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetSpokeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the spoke resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the spoke 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java deleted file mode 100644 index 961ad32eae1a..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java +++ /dev/null @@ -1,532 +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/networkconnectivity/v1/hub.proto - -package com.google.cloud.networkconnectivity.v1; - -public final class HubProto { - private HubProto() {} - - 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_networkconnectivity_v1_Hub_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_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/networkconnectivity/v1/hu" - + "b.proto\022#google.cloud.networkconnectivit" - + "y.v1\032\034google/api/annotations.proto\032\027goog" - + "le/api/client.proto\032\037google/api/field_be" - + "havior.proto\032\031google/api/resource.proto\032" - + "#google/longrunning/operations.proto\032 go" - + "ogle/protobuf/field_mask.proto\032\037google/p" - + "rotobuf/timestamp.proto\"\212\004\n\003Hub\022\021\n\004name\030" - + "\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" - + "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022D" - + "\n\006labels\030\004 \003(\01324.google.cloud.networkcon" - + "nectivity.v1.Hub.LabelsEntry\022\023\n\013descript" - + "ion\030\005 \001(\t\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022>\n\005sta" - + "te\030\t \001(\0162*.google.cloud.networkconnectiv" - + "ity.v1.StateB\003\340A\003\022E\n\014routing_vpcs\030\n \003(\0132" - + "/.google.cloud.networkconnectivity.v1.Ro" - + "utingVPC\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001:[\352AX\n&networkconnectivit" - + "y.googleapis.com/Hub\022.projects/{project}" - + "/locations/global/hubs/{hub}\"\177\n\nRoutingV" - + "PC\0220\n\003uri\030\001 \001(\tB#\372A \n\036compute.googleapis" - + ".com/Network\022?\n2required_for_new_site_to" - + "_site_data_transfer_spokes\030\002 \001(\010B\003\340A\003\"\276\006" - + "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create_tim" - + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\022F\n\006labels\030\004 \003(\01326.google." - + "cloud.networkconnectivity.v1.Spoke.Label" - + "sEntry\022\023\n\013description\030\005 \001(\t\022;\n\003hub\030\006 \001(\t" - + "B.\340A\005\372A(\n&networkconnectivity.googleapis" - + ".com/Hub\022Q\n\022linked_vpn_tunnels\030\021 \001(\01325.g" - + "oogle.cloud.networkconnectivity.v1.Linke" - + "dVpnTunnels\022k\n\037linked_interconnect_attac" - + "hments\030\022 \001(\0132B.google.cloud.networkconne" - + "ctivity.v1.LinkedInterconnectAttachments" - + "\022n\n!linked_router_appliance_instances\030\023 " - + "\001(\0132C.google.cloud.networkconnectivity.v" - + "1.LinkedRouterApplianceInstances\022\026\n\tuniq" - + "ue_id\030\013 \001(\tB\003\340A\003\022>\n\005state\030\017 \001(\0162*.google" - + ".cloud.networkconnectivity.v1.StateB\003\340A\003" - + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001:e\352Ab\n(networkconnectivity.google" - + "apis.com/Spoke\0226projects/{project}/locat" - + "ions/{location}/spokes/{spoke}\"\225\001\n\017ListH" - + "ubsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" - + "tions.googleapis.com/Location\022\021\n\tpage_si" - + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004" - + " \001(\t\022\020\n\010order_by\030\005 \001(\t\"x\n\020ListHubsRespon" - + "se\0226\n\004hubs\030\001 \003(\0132(.google.cloud.networkc" - + "onnectivity.v1.Hub\022\027\n\017next_page_token\030\002 " - + "\001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\rGetHubReques" - + "t\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&networkconnecti" - + "vity.googleapis.com/Hub\"\267\001\n\020CreateHubReq" - + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." - + "googleapis.com/Location\022\023\n\006hub_id\030\002 \001(\tB" - + "\003\340A\002\022:\n\003hub\030\003 \001(\0132(.google.cloud.network" - + "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\004" - + " \001(\tB\003\340A\001\"\235\001\n\020UpdateHubRequest\0224\n\013update" - + "_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB" - + "\003\340A\001\022:\n\003hub\030\002 \001(\0132(.google.cloud.network" - + "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\003" - + " \001(\tB\003\340A\001\"i\n\020DeleteHubRequest\022<\n\004name\030\001 " - + "\001(\tB.\340A\002\372A(\n&networkconnectivity.googlea" - + "pis.com/Hub\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\227\001\n" - + "\021ListSpokesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" - + "A#\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\006" - + "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\022ListSp" - + "okesResponse\022:\n\006spokes\030\001 \003(\0132*.google.cl" - + "oud.networkconnectivity.v1.Spoke\022\027\n\017next" - + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q" - + "\n\017GetSpokeRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n" - + "(networkconnectivity.googleapis.com/Spok" - + "e\"\277\001\n\022CreateSpokeRequest\0229\n\006parent\030\001 \001(\t" - + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" - + "ion\022\025\n\010spoke_id\030\002 \001(\tB\003\340A\002\022>\n\005spoke\030\003 \001(" - + "\0132*.google.cloud.networkconnectivity.v1." - + "SpokeB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\022" - + "UpdateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132" - + "\032.google.protobuf.FieldMaskB\003\340A\001\022>\n\005spok" - + "e\030\002 \001(\0132*.google.cloud.networkconnectivi" - + "ty.v1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A" - + "\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\tB0\340" - + "A\002\372A*\n(networkconnectivity.googleapis.co" - + "m/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\250\001\n\020Lin" - + "kedVpnTunnels\0223\n\004uris\030\001 \003(\tB%\372A\"\n comput" - + "e.googleapis.com/VpnTunnel\022\"\n\032site_to_si" - + "te_data_transfer\030\002 \001(\010\022;\n\013vpc_network\030\003 " - + "\001(\tB&\340A\003\372A \n\036compute.googleapis.com/Netw" - + "ork\"\302\001\n\035LinkedInterconnectAttachments\022@\n" - + "\004uris\030\001 \003(\tB2\372A/\n-compute.googleapis.com" - + "/InterconnectAttachment\022\"\n\032site_to_site_" - + "data_transfer\030\002 \001(\010\022;\n\013vpc_network\030\003 \001(\t" - + "B&\340A\003\372A \n\036compute.googleapis.com/Network" - + "\"\322\001\n\036LinkedRouterApplianceInstances\022O\n\ti" - + "nstances\030\001 \003(\0132<.google.cloud.networkcon" - + "nectivity.v1.RouterApplianceInstance\022\"\n\032" - + "site_to_site_data_transfer\030\002 \001(\010\022;\n\013vpc_" - + "network\030\003 \001(\tB&\340A\003\372A \n\036compute.googleapi" - + "s.com/Network\"l\n\027RouterApplianceInstance" - + "\022=\n\017virtual_machine\030\001 \001(\tB$\372A!\n\037compute." - + "googleapis.com/Instance\022\022\n\nip_address\030\003 " - + "\001(\t\"c\n\020LocationMetadata\022O\n\021location_feat" - + "ures\030\001 \003(\01624.google.cloud.networkconnect" - + "ivity.v1.LocationFeature*f\n\017LocationFeat" - + "ure\022 \n\034LOCATION_FEATURE_UNSPECIFIED\020\000\022\030\n" - + "\024SITE_TO_CLOUD_SPOKES\020\001\022\027\n\023SITE_TO_SITE_" - + "SPOKES\020\002*T\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" - + "\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003" - + "\022\014\n\010UPDATING\020\0062\235\020\n\nHubService\022\267\001\n\010ListHu" - + "bs\0224.google.cloud.networkconnectivity.v1" - + ".ListHubsRequest\0325.google.cloud.networkc" - + "onnectivity.v1.ListHubsResponse\">\202\323\344\223\002/\022" - + "-/v1/{parent=projects/*/locations/global" - + "}/hubs\332A\006parent\022\244\001\n\006GetHub\0222.google.clou" - + "d.networkconnectivity.v1.GetHubRequest\032(" - + ".google.cloud.networkconnectivity.v1.Hub" - + "\"<\202\323\344\223\002/\022-/v1/{name=projects/*/locations" - + "/global/hubs/*}\332A\004name\022\314\001\n\tCreateHub\0225.g" - + "oogle.cloud.networkconnectivity.v1.Creat" - + "eHubRequest\032\035.google.longrunning.Operati" - + "on\"i\202\323\344\223\0024\"-/v1/{parent=projects/*/locat" - + "ions/global}/hubs:\003hub\332A\021parent,hub,hub_" - + "id\312A\030\n\003Hub\022\021OperationMetadata\022\316\001\n\tUpdate" - + "Hub\0225.google.cloud.networkconnectivity.v" - + "1.UpdateHubRequest\032\035.google.longrunning." - + "Operation\"k\202\323\344\223\002821/v1/{hub.name=project" - + "s/*/locations/global/hubs/*}:\003hub\332A\017hub," - + "update_mask\312A\030\n\003Hub\022\021OperationMetadata\022\314" - + "\001\n\tDeleteHub\0225.google.cloud.networkconne" - + "ctivity.v1.DeleteHubRequest\032\035.google.lon" - + "grunning.Operation\"i\202\323\344\223\002/*-/v1/{name=pr" - + "ojects/*/locations/global/hubs/*}\332A\004name" - + "\312A*\n\025google.protobuf.Empty\022\021OperationMet" - + "adata\022\272\001\n\nListSpokes\0226.google.cloud.netw" - + "orkconnectivity.v1.ListSpokesRequest\0327.g" - + "oogle.cloud.networkconnectivity.v1.ListS" - + "pokesResponse\";\202\323\344\223\002,\022*/v1/{parent=proje" - + "cts/*/locations/*}/spokes\332A\006parent\022\247\001\n\010G" - + "etSpoke\0224.google.cloud.networkconnectivi" - + "ty.v1.GetSpokeRequest\032*.google.cloud.net" - + "workconnectivity.v1.Spoke\"9\202\323\344\223\002,\022*/v1/{" - + "name=projects/*/locations/*/spokes/*}\332A\004" - + "name\022\325\001\n\013CreateSpoke\0227.google.cloud.netw" - + "orkconnectivity.v1.CreateSpokeRequest\032\035." - + "google.longrunning.Operation\"n\202\323\344\223\0023\"*/v" - + "1/{parent=projects/*/locations/*}/spokes" - + ":\005spoke\332A\025parent,spoke,spoke_id\312A\032\n\005Spok" - + "e\022\021OperationMetadata\022\327\001\n\013UpdateSpoke\0227.g" - + "oogle.cloud.networkconnectivity.v1.Updat" - + "eSpokeRequest\032\035.google.longrunning.Opera" - + "tion\"p\202\323\344\223\002920/v1/{spoke.name=projects/*" - + "/locations/*/spokes/*}:\005spoke\332A\021spoke,up" - + "date_mask\312A\032\n\005Spoke\022\021OperationMetadata\022\315" - + "\001\n\013DeleteSpoke\0227.google.cloud.networkcon" - + "nectivity.v1.DeleteSpokeRequest\032\035.google" - + ".longrunning.Operation\"f\202\323\344\223\002,**/v1/{nam" - + "e=projects/*/locations/*/spokes/*}\332A\004nam" - + "e\312A*\n\025google.protobuf.Empty\022\021OperationMe" - + "tadata\032V\312A\"networkconnectivity.googleapi" - + "s.com\322A.https://www.googleapis.com/auth/" - + "cloud-platformB\277\003\n\'com.google.cloud.netw" - + "orkconnectivity.v1B\010HubProtoP\001ZVgoogle.g" - + "olang.org/genproto/googleapis/cloud/netw" - + "orkconnectivity/v1;networkconnectivity\252\002" - + "#Google.Cloud.NetworkConnectivity.V1\312\002#G" - + "oogle\\Cloud\\NetworkConnectivity\\V1\352\002&Goo" - + "gle::Cloud::NetworkConnectivity::V1\352A`\n " - + "compute.googleapis.com/VpnTunnel\022 - * Request for [PolicyBasedRouting.ListPolicyBasedRoutes][] method. - * - * - * Protobuf type {@code google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest} - */ -public final class ListPolicyBasedRoutesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) - ListPolicyBasedRoutesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListPolicyBasedRoutesRequest.newBuilder() to construct. - private ListPolicyBasedRoutesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListPolicyBasedRoutesRequest() { - parent_ = ""; - pageToken_ = ""; - filter_ = ""; - orderBy_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListPolicyBasedRoutesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.class, - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * Required. The parent resource's name.
-   * 
- * - * - * 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 resource's name.
-   * 
- * - * - * 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_ = 0; - /** - * - * - *
-   * The maximum number of results per page that should be returned.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - * - * - *
-   * The page token.
-   * 
- * - * 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 page token.
-   * 
- * - * 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object filter_ = ""; - /** - * - * - *
-   * A filter expression that filters the results listed in the response.
-   * 
- * - * 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; - } - } - /** - * - * - *
-   * A filter expression that filters the results listed in the response.
-   * 
- * - * 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; - } - } - - public static final int ORDER_BY_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object orderBy_ = ""; - /** - * - * - *
-   * Sort the results by a certain order.
-   * 
- * - * string order_by = 5; - * - * @return The orderBy. - */ - @java.lang.Override - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - 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(); - orderBy_ = s; - return s; - } - } - /** - * - * - *
-   * Sort the results by a certain order.
-   * 
- * - * string order_by = 5; - * - * @return The bytes for orderBy. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = 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_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); - } - getUnknownFields().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_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); - } - size += getUnknownFields().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.networkconnectivity.v1.ListPolicyBasedRoutesRequest)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest other = - (com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + ORDER_BY_FIELD_NUMBER; - hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest - 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest 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 [PolicyBasedRouting.ListPolicyBasedRoutes][] method.
-   * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.class, - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.Builder.class); - } - - // Construct using - // com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - filter_ = ""; - orderBy_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest build() { - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest result = - new com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.filter_ = filter_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.orderBy_ = orderBy_; - } - } - - @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.networkconnectivity.v1.ListPolicyBasedRoutesRequest) { - return mergeFrom( - (com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest - .getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getOrderBy().isEmpty()) { - orderBy_ = other.orderBy_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource's name.
-     * 
- * - * - * 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 resource's name.
-     * 
- * - * - * 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 resource's name.
-     * 
- * - * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource's name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource's name.
-     * 
- * - * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of results per page that should be returned.
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of results per page that should be returned.
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of results per page that should be returned.
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * The page token.
-     * 
- * - * 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 page token.
-     * 
- * - * 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 page token.
-     * 
- * - * 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The page token.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * The page token.
-     * 
- * - * 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * A filter expression that filters the results listed in the response.
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * A filter expression that filters the results listed in the response.
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * A filter expression that filters the results listed in the response.
-     * 
- * - * 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * A filter expression that filters the results listed in the response.
-     * 
- * - * string filter = 4; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * A filter expression that filters the results listed in the response.
-     * 
- * - * 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object orderBy_ = ""; - /** - * - * - *
-     * Sort the results by a certain order.
-     * 
- * - * string order_by = 5; - * - * @return The orderBy. - */ - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Sort the results by a certain order.
-     * 
- * - * string order_by = 5; - * - * @return The bytes for orderBy. - */ - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Sort the results by a certain order.
-     * 
- * - * string order_by = 5; - * - * @param value The orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - orderBy_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Sort the results by a certain order.
-     * 
- * - * string order_by = 5; - * - * @return This builder for chaining. - */ - public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * Sort the results by a certain order.
-     * 
- * - * string order_by = 5; - * - * @param value The bytes for orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - orderBy_ = value; - bitField0_ |= 0x00000010; - 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) - private static final com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest(); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPolicyBasedRoutesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequestOrBuilder.java deleted file mode 100644 index 40cc72dd34cc..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequestOrBuilder.java +++ /dev/null @@ -1,142 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface ListPolicyBasedRoutesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource's name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource's name.
-   * 
- * - * - * 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 results per page that should be returned.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * The page token.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * The page token.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * A filter expression that filters the results listed in the response.
-   * 
- * - * string filter = 4; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * A filter expression that filters the results listed in the response.
-   * 
- * - * string filter = 4; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); - - /** - * - * - *
-   * Sort the results by a certain order.
-   * 
- * - * string order_by = 5; - * - * @return The orderBy. - */ - java.lang.String getOrderBy(); - /** - * - * - *
-   * Sort the results by a certain order.
-   * 
- * - * string order_by = 5; - * - * @return The bytes for orderBy. - */ - com.google.protobuf.ByteString getOrderByBytes(); -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponse.java deleted file mode 100644 index 3d4543567852..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponse.java +++ /dev/null @@ -1,1462 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -/** - * - * - *
- * Response for [PolicyBasedRouting.ListPolicyBasedRoutes][] method.
- * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse} - */ -public final class ListPolicyBasedRoutesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) - ListPolicyBasedRoutesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListPolicyBasedRoutesResponse.newBuilder() to construct. - private ListPolicyBasedRoutesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListPolicyBasedRoutesResponse() { - policyBasedRoutes_ = 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 ListPolicyBasedRoutesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.class, - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.Builder.class); - } - - public static final int POLICY_BASED_ROUTES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List - policyBasedRoutes_; - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - @java.lang.Override - public java.util.List - getPolicyBasedRoutesList() { - return policyBasedRoutes_; - } - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - @java.lang.Override - public java.util.List - getPolicyBasedRoutesOrBuilderList() { - return policyBasedRoutes_; - } - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - @java.lang.Override - public int getPolicyBasedRoutesCount() { - return policyBasedRoutes_.size(); - } - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoutes(int index) { - return policyBasedRoutes_.get(index); - } - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder - getPolicyBasedRoutesOrBuilder(int index) { - return policyBasedRoutes_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-   * The next pagination token in the List response. It should be used as
-   * page_token for the following request. An empty value means no more result.
-   * 
- * - * 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; - } - } - /** - * - * - *
-   * The next pagination token in the List response. It should be used as
-   * page_token for the following request. An empty value means no more result.
-   * 
- * - * 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; - - @SuppressWarnings("serial") - 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 < policyBasedRoutes_.size(); i++) { - output.writeMessage(1, policyBasedRoutes_.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)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < policyBasedRoutes_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, policyBasedRoutes_.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 += getUnknownFields().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.networkconnectivity.v1.ListPolicyBasedRoutesResponse)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse other = - (com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) obj; - - if (!getPolicyBasedRoutesList().equals(other.getPolicyBasedRoutesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPolicyBasedRoutesCount() > 0) { - hash = (37 * hash) + POLICY_BASED_ROUTES_FIELD_NUMBER; - hash = (53 * hash) + getPolicyBasedRoutesList().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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse - 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse 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 for [PolicyBasedRouting.ListPolicyBasedRoutes][] method.
-   * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.class, - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.Builder.class); - } - - // Construct using - // com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (policyBasedRoutesBuilder_ == null) { - policyBasedRoutes_ = java.util.Collections.emptyList(); - } else { - policyBasedRoutes_ = null; - policyBasedRoutesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse build() { - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse buildPartial() { - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse result = - new com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse result) { - if (policyBasedRoutesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - policyBasedRoutes_ = java.util.Collections.unmodifiableList(policyBasedRoutes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.policyBasedRoutes_ = policyBasedRoutes_; - } else { - result.policyBasedRoutes_ = policyBasedRoutesBuilder_.build(); - } - if (((bitField0_ & 0x00000004) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.unreachable_ = unreachable_; - } - - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @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.networkconnectivity.v1.ListPolicyBasedRoutesResponse) { - return mergeFrom( - (com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse other) { - if (other - == com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse - .getDefaultInstance()) return this; - if (policyBasedRoutesBuilder_ == null) { - if (!other.policyBasedRoutes_.isEmpty()) { - if (policyBasedRoutes_.isEmpty()) { - policyBasedRoutes_ = other.policyBasedRoutes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePolicyBasedRoutesIsMutable(); - policyBasedRoutes_.addAll(other.policyBasedRoutes_); - } - onChanged(); - } - } else { - if (!other.policyBasedRoutes_.isEmpty()) { - if (policyBasedRoutesBuilder_.isEmpty()) { - policyBasedRoutesBuilder_.dispose(); - policyBasedRoutesBuilder_ = null; - policyBasedRoutes_ = other.policyBasedRoutes_; - bitField0_ = (bitField0_ & ~0x00000001); - policyBasedRoutesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPolicyBasedRoutesFieldBuilder() - : null; - } else { - policyBasedRoutesBuilder_.addAllMessages(other.policyBasedRoutes_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.unreachable_.isEmpty()) { - if (unreachable_.isEmpty()) { - unreachable_ = other.unreachable_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureUnreachableIsMutable(); - unreachable_.addAll(other.unreachable_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute m = - input.readMessage( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.parser(), - extensionRegistry); - if (policyBasedRoutesBuilder_ == null) { - ensurePolicyBasedRoutesIsMutable(); - policyBasedRoutes_.add(m); - } else { - policyBasedRoutesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List - policyBasedRoutes_ = java.util.Collections.emptyList(); - - private void ensurePolicyBasedRoutesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - policyBasedRoutes_ = - new java.util.ArrayList( - policyBasedRoutes_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> - policyBasedRoutesBuilder_; - - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public java.util.List - getPolicyBasedRoutesList() { - if (policyBasedRoutesBuilder_ == null) { - return java.util.Collections.unmodifiableList(policyBasedRoutes_); - } else { - return policyBasedRoutesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public int getPolicyBasedRoutesCount() { - if (policyBasedRoutesBuilder_ == null) { - return policyBasedRoutes_.size(); - } else { - return policyBasedRoutesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoutes( - int index) { - if (policyBasedRoutesBuilder_ == null) { - return policyBasedRoutes_.get(index); - } else { - return policyBasedRoutesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public Builder setPolicyBasedRoutes( - int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { - if (policyBasedRoutesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyBasedRoutesIsMutable(); - policyBasedRoutes_.set(index, value); - onChanged(); - } else { - policyBasedRoutesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public Builder setPolicyBasedRoutes( - int index, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder builderForValue) { - if (policyBasedRoutesBuilder_ == null) { - ensurePolicyBasedRoutesIsMutable(); - policyBasedRoutes_.set(index, builderForValue.build()); - onChanged(); - } else { - policyBasedRoutesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public Builder addPolicyBasedRoutes( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { - if (policyBasedRoutesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyBasedRoutesIsMutable(); - policyBasedRoutes_.add(value); - onChanged(); - } else { - policyBasedRoutesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public Builder addPolicyBasedRoutes( - int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { - if (policyBasedRoutesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyBasedRoutesIsMutable(); - policyBasedRoutes_.add(index, value); - onChanged(); - } else { - policyBasedRoutesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public Builder addPolicyBasedRoutes( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder builderForValue) { - if (policyBasedRoutesBuilder_ == null) { - ensurePolicyBasedRoutesIsMutable(); - policyBasedRoutes_.add(builderForValue.build()); - onChanged(); - } else { - policyBasedRoutesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public Builder addPolicyBasedRoutes( - int index, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder builderForValue) { - if (policyBasedRoutesBuilder_ == null) { - ensurePolicyBasedRoutesIsMutable(); - policyBasedRoutes_.add(index, builderForValue.build()); - onChanged(); - } else { - policyBasedRoutesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public Builder addAllPolicyBasedRoutes( - java.lang.Iterable - values) { - if (policyBasedRoutesBuilder_ == null) { - ensurePolicyBasedRoutesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyBasedRoutes_); - onChanged(); - } else { - policyBasedRoutesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public Builder clearPolicyBasedRoutes() { - if (policyBasedRoutesBuilder_ == null) { - policyBasedRoutes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - policyBasedRoutesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public Builder removePolicyBasedRoutes(int index) { - if (policyBasedRoutesBuilder_ == null) { - ensurePolicyBasedRoutesIsMutable(); - policyBasedRoutes_.remove(index); - onChanged(); - } else { - policyBasedRoutesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder - getPolicyBasedRoutesBuilder(int index) { - return getPolicyBasedRoutesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder - getPolicyBasedRoutesOrBuilder(int index) { - if (policyBasedRoutesBuilder_ == null) { - return policyBasedRoutes_.get(index); - } else { - return policyBasedRoutesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public java.util.List< - ? extends com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> - getPolicyBasedRoutesOrBuilderList() { - if (policyBasedRoutesBuilder_ != null) { - return policyBasedRoutesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(policyBasedRoutes_); - } - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder - addPolicyBasedRoutesBuilder() { - return getPolicyBasedRoutesFieldBuilder() - .addBuilder( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance()); - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder - addPolicyBasedRoutesBuilder(int index) { - return getPolicyBasedRoutesFieldBuilder() - .addBuilder( - index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance()); - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public java.util.List - getPolicyBasedRoutesBuilderList() { - return getPolicyBasedRoutesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> - getPolicyBasedRoutesFieldBuilder() { - if (policyBasedRoutesBuilder_ == null) { - policyBasedRoutesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder>( - policyBasedRoutes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - policyBasedRoutes_ = null; - } - return policyBasedRoutesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * The next pagination token in the List response. It should be used as
-     * page_token for the following request. An empty value means no more result.
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * The next pagination token in the List response. It should be used as
-     * page_token for the following request. An empty value means no more result.
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * The next pagination token in the List response. It should be used as
-     * page_token for the following request. An empty value means no more result.
-     * 
- * - * 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The next pagination token in the List response. It should be used as
-     * page_token for the following request. An empty value means no more result.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The next pagination token in the List response. It should be used as
-     * page_token for the following request. An empty value means no more result.
-     * 
- * - * 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureUnreachableIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * 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_ & ~0x00000004); - 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) - private static final com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse(); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPolicyBasedRoutesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponseOrBuilder.java deleted file mode 100644 index 876654c552f5..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponseOrBuilder.java +++ /dev/null @@ -1,162 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface ListPolicyBasedRoutesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - java.util.List - getPolicyBasedRoutesList(); - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoutes(int index); - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - int getPolicyBasedRoutesCount(); - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - java.util.List - getPolicyBasedRoutesOrBuilderList(); - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPolicyBasedRoutesOrBuilder( - int index); - - /** - * - * - *
-   * The next pagination token in the List response. It should be used as
-   * page_token for the following request. An empty value means no more result.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * The next pagination token in the List response. It should be used as
-   * page_token for the following request. An empty value means no more result.
-   * 
- * - * 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoute.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoute.java deleted file mode 100644 index 0d5216a57065..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoute.java +++ /dev/null @@ -1,8859 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -/** - * - * - *
- * Policy Based Routes (PBR) are more powerful routes that allows GCP customers
- * to route their L4 network traffic based on not just destination IP, but also
- * source IP, protocol and more. A PBR always take precedence when it conflicts
- * with other types of routes.
- * Next id: 19
- * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute} - */ -public final class PolicyBasedRoute extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute) - PolicyBasedRouteOrBuilder { - private static final long serialVersionUID = 0L; - // Use PolicyBasedRoute.newBuilder() to construct. - private PolicyBasedRoute(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PolicyBasedRoute() { - name_ = ""; - description_ = ""; - network_ = ""; - warnings_ = java.util.Collections.emptyList(); - selfLink_ = ""; - kind_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PolicyBasedRoute(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - 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.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder.class); - } - - public interface VirtualMachineOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Optional. A list of VM instance tags to which this policy based route applies to.
-     * VM instances that have ANY of tags specified here will install this
-     * PBR.
-     * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the tags. - */ - java.util.List getTagsList(); - /** - * - * - *
-     * Optional. A list of VM instance tags to which this policy based route applies to.
-     * VM instances that have ANY of tags specified here will install this
-     * PBR.
-     * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of tags. - */ - int getTagsCount(); - /** - * - * - *
-     * Optional. A list of VM instance tags to which this policy based route applies to.
-     * VM instances that have ANY of tags specified here will install this
-     * PBR.
-     * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - java.lang.String getTags(int index); - /** - * - * - *
-     * Optional. A list of VM instance tags to which this policy based route applies to.
-     * VM instances that have ANY of tags specified here will install this
-     * PBR.
-     * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - com.google.protobuf.ByteString getTagsBytes(int index); - } - /** - * - * - *
-   * VM instances to which this policy based route applies to.
-   * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine} - */ - public static final class VirtualMachine extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) - VirtualMachineOrBuilder { - private static final long serialVersionUID = 0L; - // Use VirtualMachine.newBuilder() to construct. - private VirtualMachine(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private VirtualMachine() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new VirtualMachine(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder - .class); - } - - public static final int TAGS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList tags_; - /** - * - * - *
-     * Optional. A list of VM instance tags to which this policy based route applies to.
-     * VM instances that have ANY of tags specified here will install this
-     * PBR.
-     * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - return tags_; - } - /** - * - * - *
-     * Optional. A list of VM instance tags to which this policy based route applies to.
-     * VM instances that have ANY of tags specified here will install this
-     * PBR.
-     * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-     * Optional. A list of VM instance tags to which this policy based route applies to.
-     * VM instances that have ANY of tags specified here will install this
-     * PBR.
-     * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * - * - *
-     * Optional. A list of VM instance tags to which this policy based route applies to.
-     * VM instances that have ANY of tags specified here will install this
-     * PBR.
-     * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString getTagsBytes(int index) { - return tags_.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 < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tags_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - size += getUnknownFields().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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine other = - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) obj; - - if (!getTagsList().equals(other.getTagsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine 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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine 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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - 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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine 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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine 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; - } - /** - * - * - *
-     * VM instances to which this policy based route applies to.
-     * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder - .class); - } - - // Construct using - // com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine build() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - buildPartial() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result = - new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result) { - if (((bitField0_ & 0x00000001) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tags_ = tags_; - } - - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result) { - int from_bitField0_ = bitField0_; - } - - @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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) { - return mergeFrom( - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine other) { - if (other - == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - .getDefaultInstance()) return this; - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList tags_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-       * Optional. A list of VM instance tags to which this policy based route applies to.
-       * VM instances that have ANY of tags specified here will install this
-       * PBR.
-       * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - * - * - *
-       * Optional. A list of VM instance tags to which this policy based route applies to.
-       * VM instances that have ANY of tags specified here will install this
-       * PBR.
-       * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-       * Optional. A list of VM instance tags to which this policy based route applies to.
-       * VM instances that have ANY of tags specified here will install this
-       * PBR.
-       * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * - * - *
-       * Optional. A list of VM instance tags to which this policy based route applies to.
-       * VM instances that have ANY of tags specified here will install this
-       * PBR.
-       * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - * - * - *
-       * Optional. A list of VM instance tags to which this policy based route applies to.
-       * VM instances that have ANY of tags specified here will install this
-       * PBR.
-       * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The tags to set. - * @return This builder for chaining. - */ - public Builder setTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. A list of VM instance tags to which this policy based route applies to.
-       * VM instances that have ANY of tags specified here will install this
-       * PBR.
-       * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The tags to add. - * @return This builder for chaining. - */ - public Builder addTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. A list of VM instance tags to which this policy based route applies to.
-       * VM instances that have ANY of tags specified here will install this
-       * PBR.
-       * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The tags to add. - * @return This builder for chaining. - */ - public Builder addAllTags(java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. A list of VM instance tags to which this policy based route applies to.
-       * VM instances that have ANY of tags specified here will install this
-       * PBR.
-       * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. A list of VM instance tags to which this policy based route applies to.
-       * VM instances that have ANY of tags specified here will install this
-       * PBR.
-       * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the tags to add. - * @return This builder for chaining. - */ - public Builder addTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) - private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine(); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VirtualMachine parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface InterconnectAttachmentOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Optional. Cloud region to install this policy based route on interconnect
-     * attachment. Use `all` to install it on all interconnect attachments.
-     * 
- * - * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-     * Optional. Cloud region to install this policy based route on interconnect
-     * attachment. Use `all` to install it on all interconnect attachments.
-     * 
- * - * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - } - /** - * - * - *
-   * InterconnectAttachment to which this route applies to.
-   * 
- * - * Protobuf type {@code - * google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment} - */ - public static final class InterconnectAttachment extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - InterconnectAttachmentOrBuilder { - private static final long serialVersionUID = 0L; - // Use InterconnectAttachment.newBuilder() to construct. - private InterconnectAttachment(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private InterconnectAttachment() { - region_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new InterconnectAttachment(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .Builder.class); - } - - public static final int REGION_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object region_ = ""; - /** - * - * - *
-     * Optional. Cloud region to install this policy based route on interconnect
-     * attachment. Use `all` to install it on all interconnect attachments.
-     * 
- * - * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - 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(); - region_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. Cloud region to install this policy based route on interconnect
-     * attachment. Use `all` to install it on all interconnect attachments.
-     * 
- * - * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = 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(region_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, region_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, region_); - } - size += getUnknownFields().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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment other = - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) obj; - - if (!getRegion().equals(other.getRegion())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment 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; - } - /** - * - * - *
-     * InterconnectAttachment to which this route applies to.
-     * 
- * - * Protobuf type {@code - * google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .Builder.class); - } - - // Construct using - // com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - region_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - build() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - buildPartial() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment result = - new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.region_ = region_; - } - } - - @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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) { - return mergeFrom( - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment other) { - if (other - == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .getDefaultInstance()) return this; - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - region_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object region_ = ""; - /** - * - * - *
-       * Optional. Cloud region to install this policy based route on interconnect
-       * attachment. Use `all` to install it on all interconnect attachments.
-       * 
- * - * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. Cloud region to install this policy based route on interconnect
-       * attachment. Use `all` to install it on all interconnect attachments.
-       * 
- * - * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. Cloud region to install this policy based route on interconnect
-       * attachment. Use `all` to install it on all interconnect attachments.
-       * 
- * - * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - region_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. Cloud region to install this policy based route on interconnect
-       * attachment. Use `all` to install it on all interconnect attachments.
-       * 
- * - * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - region_ = getDefaultInstance().getRegion(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. Cloud region to install this policy based route on interconnect
-       * attachment. Use `all` to install it on all interconnect attachments.
-       * 
- * - * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - region_ = value; - bitField0_ |= 0x00000001; - 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute - .InterconnectAttachment - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment(); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InterconnectAttachment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface FilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Optional. The IP protocol that this policy based route applies to. Valid values are
-     * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
-     * 
- * - * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The ipProtocol. - */ - java.lang.String getIpProtocol(); - /** - * - * - *
-     * Optional. The IP protocol that this policy based route applies to. Valid values are
-     * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
-     * 
- * - * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for ipProtocol. - */ - com.google.protobuf.ByteString getIpProtocolBytes(); - - /** - * - * - *
-     * Optional. The source IP range of outgoing packets that this policy based route
-     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-     * 
- * - * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The srcRange. - */ - java.lang.String getSrcRange(); - /** - * - * - *
-     * Optional. The source IP range of outgoing packets that this policy based route
-     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-     * 
- * - * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for srcRange. - */ - com.google.protobuf.ByteString getSrcRangeBytes(); - - /** - * - * - *
-     * Optional. The destination IP range of outgoing packets that this policy based route
-     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-     * 
- * - * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The destRange. - */ - java.lang.String getDestRange(); - /** - * - * - *
-     * Optional. The destination IP range of outgoing packets that this policy based route
-     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-     * 
- * - * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for destRange. - */ - com.google.protobuf.ByteString getDestRangeBytes(); - - /** - * - * - *
-     * Required. Internet protocol versions this policy based route applies to. For this
-     * version, only IPV4 is supported.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for protocolVersion. - */ - int getProtocolVersionValue(); - /** - * - * - *
-     * Required. Internet protocol versions this policy based route applies to. For this
-     * version, only IPV4 is supported.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The protocolVersion. - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion - getProtocolVersion(); - } - /** - * - * - *
-   * Filter matches L4 traffic.
-   * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter} - */ - public static final class Filter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) - FilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use Filter.newBuilder() to construct. - private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Filter() { - ipProtocol_ = ""; - srcRange_ = ""; - destRange_ = ""; - protocolVersion_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Filter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder.class); - } - - /** - * - * - *
-     * The internet protocol version.
-     * 
- * - * Protobuf enum {@code - * google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion} - */ - public enum ProtocolVersion implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Default value.
-       * 
- * - * PROTOCOL_VERSION_UNSPECIFIED = 0; - */ - PROTOCOL_VERSION_UNSPECIFIED(0), - /** - * - * - *
-       * The PBR is for IPv4 internet protocol traffic.
-       * 
- * - * IPV4 = 1; - */ - IPV4(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * Default value.
-       * 
- * - * PROTOCOL_VERSION_UNSPECIFIED = 0; - */ - public static final int PROTOCOL_VERSION_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * The PBR is for IPv4 internet protocol traffic.
-       * 
- * - * IPV4 = 1; - */ - public static final int IPV4_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 ProtocolVersion 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 ProtocolVersion forNumber(int value) { - switch (value) { - case 0: - return PROTOCOL_VERSION_UNSPECIFIED; - case 1: - return IPV4; - 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 ProtocolVersion findValueByNumber(int number) { - return ProtocolVersion.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.networkconnectivity.v1.PolicyBasedRoute.Filter.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final ProtocolVersion[] VALUES = values(); - - public static ProtocolVersion 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 ProtocolVersion(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion) - } - - public static final int IP_PROTOCOL_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object ipProtocol_ = ""; - /** - * - * - *
-     * Optional. The IP protocol that this policy based route applies to. Valid values are
-     * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
-     * 
- * - * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The ipProtocol. - */ - @java.lang.Override - public java.lang.String getIpProtocol() { - java.lang.Object ref = ipProtocol_; - 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(); - ipProtocol_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. The IP protocol that this policy based route applies to. Valid values are
-     * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
-     * 
- * - * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for ipProtocol. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIpProtocolBytes() { - java.lang.Object ref = ipProtocol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - ipProtocol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SRC_RANGE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object srcRange_ = ""; - /** - * - * - *
-     * Optional. The source IP range of outgoing packets that this policy based route
-     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-     * 
- * - * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The srcRange. - */ - @java.lang.Override - public java.lang.String getSrcRange() { - java.lang.Object ref = srcRange_; - 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(); - srcRange_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. The source IP range of outgoing packets that this policy based route
-     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-     * 
- * - * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for srcRange. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSrcRangeBytes() { - java.lang.Object ref = srcRange_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - srcRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEST_RANGE_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object destRange_ = ""; - /** - * - * - *
-     * Optional. The destination IP range of outgoing packets that this policy based route
-     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-     * 
- * - * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The destRange. - */ - @java.lang.Override - public java.lang.String getDestRange() { - java.lang.Object ref = destRange_; - 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(); - destRange_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. The destination IP range of outgoing packets that this policy based route
-     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-     * 
- * - * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for destRange. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDestRangeBytes() { - java.lang.Object ref = destRange_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - destRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROTOCOL_VERSION_FIELD_NUMBER = 6; - private int protocolVersion_ = 0; - /** - * - * - *
-     * Required. Internet protocol versions this policy based route applies to. For this
-     * version, only IPV4 is supported.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for protocolVersion. - */ - @java.lang.Override - public int getProtocolVersionValue() { - return protocolVersion_; - } - /** - * - * - *
-     * Required. Internet protocol versions this policy based route applies to. For this
-     * version, only IPV4 is supported.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The protocolVersion. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion - getProtocolVersion() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion result = - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion.forNumber( - protocolVersion_); - return result == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion - .UNRECOGNIZED - : result; - } - - 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(ipProtocol_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipProtocol_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(srcRange_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, srcRange_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destRange_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, destRange_); - } - if (protocolVersion_ - != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion - .PROTOCOL_VERSION_UNSPECIFIED - .getNumber()) { - output.writeEnum(6, protocolVersion_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipProtocol_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ipProtocol_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(srcRange_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, srcRange_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destRange_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, destRange_); - } - if (protocolVersion_ - != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion - .PROTOCOL_VERSION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, protocolVersion_); - } - size += getUnknownFields().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.networkconnectivity.v1.PolicyBasedRoute.Filter)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter other = - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) obj; - - if (!getIpProtocol().equals(other.getIpProtocol())) return false; - if (!getSrcRange().equals(other.getSrcRange())) return false; - if (!getDestRange().equals(other.getDestRange())) return false; - if (protocolVersion_ != other.protocolVersion_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + IP_PROTOCOL_FIELD_NUMBER; - hash = (53 * hash) + getIpProtocol().hashCode(); - hash = (37 * hash) + SRC_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getSrcRange().hashCode(); - hash = (37 * hash) + DEST_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getDestRange().hashCode(); - hash = (37 * hash) + PROTOCOL_VERSION_FIELD_NUMBER; - hash = (53 * hash) + protocolVersion_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter 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.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter 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.networkconnectivity.v1.PolicyBasedRoute.Filter - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter - 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.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter 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.networkconnectivity.v1.PolicyBasedRoute.Filter 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; - } - /** - * - * - *
-     * Filter matches L4 traffic.
-     * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder.class); - } - - // Construct using - // com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - ipProtocol_ = ""; - srcRange_ = ""; - destRange_ = ""; - protocolVersion_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter build() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter buildPartial() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter result = - new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.ipProtocol_ = ipProtocol_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.srcRange_ = srcRange_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.destRange_ = destRange_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.protocolVersion_ = protocolVersion_; - } - } - - @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.networkconnectivity.v1.PolicyBasedRoute.Filter) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter other) { - if (other - == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance()) - return this; - if (!other.getIpProtocol().isEmpty()) { - ipProtocol_ = other.ipProtocol_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getSrcRange().isEmpty()) { - srcRange_ = other.srcRange_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDestRange().isEmpty()) { - destRange_ = other.destRange_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.protocolVersion_ != 0) { - setProtocolVersionValue(other.getProtocolVersionValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - ipProtocol_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - srcRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - destRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 48: - { - protocolVersion_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 48 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object ipProtocol_ = ""; - /** - * - * - *
-       * Optional. The IP protocol that this policy based route applies to. Valid values are
-       * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
-       * 
- * - * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The ipProtocol. - */ - public java.lang.String getIpProtocol() { - java.lang.Object ref = ipProtocol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ipProtocol_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. The IP protocol that this policy based route applies to. Valid values are
-       * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
-       * 
- * - * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for ipProtocol. - */ - public com.google.protobuf.ByteString getIpProtocolBytes() { - java.lang.Object ref = ipProtocol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - ipProtocol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. The IP protocol that this policy based route applies to. Valid values are
-       * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
-       * 
- * - * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The ipProtocol to set. - * @return This builder for chaining. - */ - public Builder setIpProtocol(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ipProtocol_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The IP protocol that this policy based route applies to. Valid values are
-       * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
-       * 
- * - * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearIpProtocol() { - ipProtocol_ = getDefaultInstance().getIpProtocol(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The IP protocol that this policy based route applies to. Valid values are
-       * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
-       * 
- * - * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for ipProtocol to set. - * @return This builder for chaining. - */ - public Builder setIpProtocolBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ipProtocol_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object srcRange_ = ""; - /** - * - * - *
-       * Optional. The source IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The srcRange. - */ - public java.lang.String getSrcRange() { - java.lang.Object ref = srcRange_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - srcRange_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. The source IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for srcRange. - */ - public com.google.protobuf.ByteString getSrcRangeBytes() { - java.lang.Object ref = srcRange_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - srcRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. The source IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The srcRange to set. - * @return This builder for chaining. - */ - public Builder setSrcRange(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - srcRange_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The source IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearSrcRange() { - srcRange_ = getDefaultInstance().getSrcRange(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The source IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for srcRange to set. - * @return This builder for chaining. - */ - public Builder setSrcRangeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - srcRange_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object destRange_ = ""; - /** - * - * - *
-       * Optional. The destination IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The destRange. - */ - public java.lang.String getDestRange() { - java.lang.Object ref = destRange_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - destRange_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. The destination IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for destRange. - */ - public com.google.protobuf.ByteString getDestRangeBytes() { - java.lang.Object ref = destRange_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - destRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. The destination IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The destRange to set. - * @return This builder for chaining. - */ - public Builder setDestRange(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - destRange_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The destination IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDestRange() { - destRange_ = getDefaultInstance().getDestRange(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The destination IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for destRange to set. - * @return This builder for chaining. - */ - public Builder setDestRangeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - destRange_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private int protocolVersion_ = 0; - /** - * - * - *
-       * Required. Internet protocol versions this policy based route applies to. For this
-       * version, only IPV4 is supported.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for protocolVersion. - */ - @java.lang.Override - public int getProtocolVersionValue() { - return protocolVersion_; - } - /** - * - * - *
-       * Required. Internet protocol versions this policy based route applies to. For this
-       * version, only IPV4 is supported.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enum numeric value on the wire for protocolVersion to set. - * @return This builder for chaining. - */ - public Builder setProtocolVersionValue(int value) { - protocolVersion_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Internet protocol versions this policy based route applies to. For this
-       * version, only IPV4 is supported.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The protocolVersion. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion - getProtocolVersion() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion result = - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion - .forNumber(protocolVersion_); - return result == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion - .UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Required. Internet protocol versions this policy based route applies to. For this
-       * version, only IPV4 is supported.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The protocolVersion to set. - * @return This builder for chaining. - */ - public Builder setProtocolVersion( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - protocolVersion_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Internet protocol versions this policy based route applies to. For this
-       * version, only IPV4 is supported.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearProtocolVersion() { - bitField0_ = (bitField0_ & ~0x00000008); - protocolVersion_ = 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.networkconnectivity.v1.PolicyBasedRoute.Filter) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) - private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter(); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Filter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.PolicyBasedRoute.Filter - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface WarningsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Output only. A warning code, if applicable.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for code. - */ - int getCodeValue(); - /** - * - * - *
-     * Output only. A warning code, if applicable.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The code. - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code getCode(); - - /** - * - * - *
-     * Output only. Metadata about this warning in key: value format. The key should provides
-     * more detail on the warning being returned. For example, for warnings
-     * where there are no results in a list request for a particular zone, this
-     * key might be scope and the key value might be the zone name. Other
-     * examples might be a key indicating a deprecated resource and a suggested
-     * replacement.
-     * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - int getDataCount(); - /** - * - * - *
-     * Output only. Metadata about this warning in key: value format. The key should provides
-     * more detail on the warning being returned. For example, for warnings
-     * where there are no results in a list request for a particular zone, this
-     * key might be scope and the key value might be the zone name. Other
-     * examples might be a key indicating a deprecated resource and a suggested
-     * replacement.
-     * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - boolean containsData(java.lang.String key); - /** Use {@link #getDataMap()} instead. */ - @java.lang.Deprecated - java.util.Map getData(); - /** - * - * - *
-     * Output only. Metadata about this warning in key: value format. The key should provides
-     * more detail on the warning being returned. For example, for warnings
-     * where there are no results in a list request for a particular zone, this
-     * key might be scope and the key value might be the zone name. Other
-     * examples might be a key indicating a deprecated resource and a suggested
-     * replacement.
-     * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - java.util.Map getDataMap(); - /** - * - * - *
-     * Output only. Metadata about this warning in key: value format. The key should provides
-     * more detail on the warning being returned. For example, for warnings
-     * where there are no results in a list request for a particular zone, this
-     * key might be scope and the key value might be the zone name. Other
-     * examples might be a key indicating a deprecated resource and a suggested
-     * replacement.
-     * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - /* nullable */ - java.lang.String getDataOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-     * Output only. Metadata about this warning in key: value format. The key should provides
-     * more detail on the warning being returned. For example, for warnings
-     * where there are no results in a list request for a particular zone, this
-     * key might be scope and the key value might be the zone name. Other
-     * examples might be a key indicating a deprecated resource and a suggested
-     * replacement.
-     * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - java.lang.String getDataOrThrow(java.lang.String key); - - /** - * - * - *
-     * Output only. A human-readable description of the warning code.
-     * 
- * - * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The warningMessage. - */ - java.lang.String getWarningMessage(); - /** - * - * - *
-     * Output only. A human-readable description of the warning code.
-     * 
- * - * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for warningMessage. - */ - com.google.protobuf.ByteString getWarningMessageBytes(); - } - /** - * - * - *
-   * Informational warning message.
-   * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings} - */ - public static final class Warnings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) - WarningsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Warnings.newBuilder() to construct. - private Warnings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Warnings() { - code_ = 0; - warningMessage_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Warnings(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetData(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder.class); - } - - /** - * - * - *
-     * Warning code for Policy Based Routing. Expect to add values in the
-     * future.
-     * 
- * - * Protobuf enum {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code} - */ - public enum Code implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Default value.
-       * 
- * - * WARNING_UNSPECIFIED = 0; - */ - WARNING_UNSPECIFIED(0), - /** - * - * - *
-       * The policy based route is not active and functioning. Common causes are
-       * the dependent network was deleted or the resource project was turned
-       * off.
-       * 
- * - * RESOURCE_NOT_ACTIVE = 1; - */ - RESOURCE_NOT_ACTIVE(1), - /** - * - * - *
-       * The policy based route is being modified (e.g. created/deleted) at this
-       * time.
-       * 
- * - * RESOURCE_BEING_MODIFIED = 2; - */ - RESOURCE_BEING_MODIFIED(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * Default value.
-       * 
- * - * WARNING_UNSPECIFIED = 0; - */ - public static final int WARNING_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * The policy based route is not active and functioning. Common causes are
-       * the dependent network was deleted or the resource project was turned
-       * off.
-       * 
- * - * RESOURCE_NOT_ACTIVE = 1; - */ - public static final int RESOURCE_NOT_ACTIVE_VALUE = 1; - /** - * - * - *
-       * The policy based route is being modified (e.g. created/deleted) at this
-       * time.
-       * 
- * - * RESOURCE_BEING_MODIFIED = 2; - */ - public static final int RESOURCE_BEING_MODIFIED_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 Code 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 Code forNumber(int value) { - switch (value) { - case 0: - return WARNING_UNSPECIFIED; - case 1: - return RESOURCE_NOT_ACTIVE; - case 2: - return RESOURCE_BEING_MODIFIED; - 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 Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Code[] VALUES = values(); - - public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Code(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code) - } - - public static final int CODE_FIELD_NUMBER = 1; - private int code_ = 0; - /** - * - * - *
-     * Output only. A warning code, if applicable.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for code. - */ - @java.lang.Override - public int getCodeValue() { - return code_; - } - /** - * - * - *
-     * Output only. A warning code, if applicable.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The code. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code getCode() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code result = - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.forNumber(code_); - return result == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.UNRECOGNIZED - : result; - } - - public static final int DATA_FIELD_NUMBER = 2; - - private static final class DataDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField data_; - - private com.google.protobuf.MapField internalGetData() { - if (data_ == null) { - return com.google.protobuf.MapField.emptyMapField(DataDefaultEntryHolder.defaultEntry); - } - return data_; - } - - public int getDataCount() { - return internalGetData().getMap().size(); - } - /** - * - * - *
-     * Output only. Metadata about this warning in key: value format. The key should provides
-     * more detail on the warning being returned. For example, for warnings
-     * where there are no results in a list request for a particular zone, this
-     * key might be scope and the key value might be the zone name. Other
-     * examples might be a key indicating a deprecated resource and a suggested
-     * replacement.
-     * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public boolean containsData(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetData().getMap().containsKey(key); - } - /** Use {@link #getDataMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getData() { - return getDataMap(); - } - /** - * - * - *
-     * Output only. Metadata about this warning in key: value format. The key should provides
-     * more detail on the warning being returned. For example, for warnings
-     * where there are no results in a list request for a particular zone, this
-     * key might be scope and the key value might be the zone name. Other
-     * examples might be a key indicating a deprecated resource and a suggested
-     * replacement.
-     * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public java.util.Map getDataMap() { - return internalGetData().getMap(); - } - /** - * - * - *
-     * Output only. Metadata about this warning in key: value format. The key should provides
-     * more detail on the warning being returned. For example, for warnings
-     * where there are no results in a list request for a particular zone, this
-     * key might be scope and the key value might be the zone name. Other
-     * examples might be a key indicating a deprecated resource and a suggested
-     * replacement.
-     * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public /* nullable */ java.lang.String getDataOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetData().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Output only. Metadata about this warning in key: value format. The key should provides
-     * more detail on the warning being returned. For example, for warnings
-     * where there are no results in a list request for a particular zone, this
-     * key might be scope and the key value might be the zone name. Other
-     * examples might be a key indicating a deprecated resource and a suggested
-     * replacement.
-     * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public java.lang.String getDataOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetData().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int WARNING_MESSAGE_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object warningMessage_ = ""; - /** - * - * - *
-     * Output only. A human-readable description of the warning code.
-     * 
- * - * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The warningMessage. - */ - @java.lang.Override - public java.lang.String getWarningMessage() { - java.lang.Object ref = warningMessage_; - 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(); - warningMessage_ = s; - return s; - } - } - /** - * - * - *
-     * Output only. A human-readable description of the warning code.
-     * 
- * - * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for warningMessage. - */ - @java.lang.Override - public com.google.protobuf.ByteString getWarningMessageBytes() { - java.lang.Object ref = warningMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - warningMessage_ = 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 (code_ - != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code - .WARNING_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, code_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetData(), DataDefaultEntryHolder.defaultEntry, 2); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warningMessage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, warningMessage_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (code_ - != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code - .WARNING_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); - } - for (java.util.Map.Entry entry : - internalGetData().getMap().entrySet()) { - com.google.protobuf.MapEntry data__ = - DataDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, data__); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warningMessage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, warningMessage_); - } - size += getUnknownFields().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.networkconnectivity.v1.PolicyBasedRoute.Warnings)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings other = - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) obj; - - if (code_ != other.code_) return false; - if (!internalGetData().equals(other.internalGetData())) return false; - if (!getWarningMessage().equals(other.getWarningMessage())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + CODE_FIELD_NUMBER; - hash = (53 * hash) + code_; - if (!internalGetData().getMap().isEmpty()) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + internalGetData().hashCode(); - } - hash = (37 * hash) + WARNING_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getWarningMessage().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings 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.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings 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.networkconnectivity.v1.PolicyBasedRoute.Warnings - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings - 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.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings 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.networkconnectivity.v1.PolicyBasedRoute.Warnings 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; - } - /** - * - * - *
-     * Informational warning message.
-     * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetData(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 2: - return internalGetMutableData(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder.class); - } - - // Construct using - // com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - code_ = 0; - internalGetMutableData().clear(); - warningMessage_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings build() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings buildPartial() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings result = - new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.code_ = code_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.data_ = internalGetData(); - result.data_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.warningMessage_ = warningMessage_; - } - } - - @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.networkconnectivity.v1.PolicyBasedRoute.Warnings) { - return mergeFrom( - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings other) { - if (other - == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings - .getDefaultInstance()) return this; - if (other.code_ != 0) { - setCodeValue(other.getCodeValue()); - } - internalGetMutableData().mergeFrom(other.internalGetData()); - bitField0_ |= 0x00000002; - if (!other.getWarningMessage().isEmpty()) { - warningMessage_ = other.warningMessage_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - code_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - com.google.protobuf.MapEntry data__ = - input.readMessage( - DataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableData().getMutableMap().put(data__.getKey(), data__.getValue()); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - warningMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int code_ = 0; - /** - * - * - *
-       * Output only. A warning code, if applicable.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for code. - */ - @java.lang.Override - public int getCodeValue() { - return code_; - } - /** - * - * - *
-       * Output only. A warning code, if applicable.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for code to set. - * @return This builder for chaining. - */ - public Builder setCodeValue(int value) { - code_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A warning code, if applicable.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The code. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code getCode() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code result = - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.forNumber(code_); - return result == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Output only. A warning code, if applicable.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The code to set. - * @return This builder for chaining. - */ - public Builder setCode( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - code_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A warning code, if applicable.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearCode() { - bitField0_ = (bitField0_ & ~0x00000001); - code_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField data_; - - private com.google.protobuf.MapField internalGetData() { - if (data_ == null) { - return com.google.protobuf.MapField.emptyMapField(DataDefaultEntryHolder.defaultEntry); - } - return data_; - } - - private com.google.protobuf.MapField - internalGetMutableData() { - if (data_ == null) { - data_ = com.google.protobuf.MapField.newMapField(DataDefaultEntryHolder.defaultEntry); - } - if (!data_.isMutable()) { - data_ = data_.copy(); - } - bitField0_ |= 0x00000002; - onChanged(); - return data_; - } - - public int getDataCount() { - return internalGetData().getMap().size(); - } - /** - * - * - *
-       * Output only. Metadata about this warning in key: value format. The key should provides
-       * more detail on the warning being returned. For example, for warnings
-       * where there are no results in a list request for a particular zone, this
-       * key might be scope and the key value might be the zone name. Other
-       * examples might be a key indicating a deprecated resource and a suggested
-       * replacement.
-       * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public boolean containsData(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetData().getMap().containsKey(key); - } - /** Use {@link #getDataMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getData() { - return getDataMap(); - } - /** - * - * - *
-       * Output only. Metadata about this warning in key: value format. The key should provides
-       * more detail on the warning being returned. For example, for warnings
-       * where there are no results in a list request for a particular zone, this
-       * key might be scope and the key value might be the zone name. Other
-       * examples might be a key indicating a deprecated resource and a suggested
-       * replacement.
-       * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.Map getDataMap() { - return internalGetData().getMap(); - } - /** - * - * - *
-       * Output only. Metadata about this warning in key: value format. The key should provides
-       * more detail on the warning being returned. For example, for warnings
-       * where there are no results in a list request for a particular zone, this
-       * key might be scope and the key value might be the zone name. Other
-       * examples might be a key indicating a deprecated resource and a suggested
-       * replacement.
-       * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public /* nullable */ java.lang.String getDataOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetData().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-       * Output only. Metadata about this warning in key: value format. The key should provides
-       * more detail on the warning being returned. For example, for warnings
-       * where there are no results in a list request for a particular zone, this
-       * key might be scope and the key value might be the zone name. Other
-       * examples might be a key indicating a deprecated resource and a suggested
-       * replacement.
-       * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.lang.String getDataOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetData().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearData() { - bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableData().getMutableMap().clear(); - return this; - } - /** - * - * - *
-       * Output only. Metadata about this warning in key: value format. The key should provides
-       * more detail on the warning being returned. For example, for warnings
-       * where there are no results in a list request for a particular zone, this
-       * key might be scope and the key value might be the zone name. Other
-       * examples might be a key indicating a deprecated resource and a suggested
-       * replacement.
-       * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeData(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableData().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableData() { - bitField0_ |= 0x00000002; - return internalGetMutableData().getMutableMap(); - } - /** - * - * - *
-       * Output only. Metadata about this warning in key: value format. The key should provides
-       * more detail on the warning being returned. For example, for warnings
-       * where there are no results in a list request for a particular zone, this
-       * key might be scope and the key value might be the zone name. Other
-       * examples might be a key indicating a deprecated resource and a suggested
-       * replacement.
-       * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder putData(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableData().getMutableMap().put(key, value); - bitField0_ |= 0x00000002; - return this; - } - /** - * - * - *
-       * Output only. Metadata about this warning in key: value format. The key should provides
-       * more detail on the warning being returned. For example, for warnings
-       * where there are no results in a list request for a particular zone, this
-       * key might be scope and the key value might be the zone name. Other
-       * examples might be a key indicating a deprecated resource and a suggested
-       * replacement.
-       * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder putAllData(java.util.Map values) { - internalGetMutableData().getMutableMap().putAll(values); - bitField0_ |= 0x00000002; - return this; - } - - private java.lang.Object warningMessage_ = ""; - /** - * - * - *
-       * Output only. A human-readable description of the warning code.
-       * 
- * - * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The warningMessage. - */ - public java.lang.String getWarningMessage() { - java.lang.Object ref = warningMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - warningMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Output only. A human-readable description of the warning code.
-       * 
- * - * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for warningMessage. - */ - public com.google.protobuf.ByteString getWarningMessageBytes() { - java.lang.Object ref = warningMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - warningMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Output only. A human-readable description of the warning code.
-       * 
- * - * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The warningMessage to set. - * @return This builder for chaining. - */ - public Builder setWarningMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - warningMessage_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A human-readable description of the warning code.
-       * 
- * - * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearWarningMessage() { - warningMessage_ = getDefaultInstance().getWarningMessage(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A human-readable description of the warning code.
-       * 
- * - * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for warningMessage to set. - * @return This builder for chaining. - */ - public Builder setWarningMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - warningMessage_ = value; - bitField0_ |= 0x00000004; - 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.networkconnectivity.v1.PolicyBasedRoute.Warnings) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) - private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings(); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Warnings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.PolicyBasedRoute.Warnings - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int targetCase_ = 0; - private java.lang.Object target_; - - public enum TargetCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VIRTUAL_MACHINE(18), - INTERCONNECT_ATTACHMENT(9), - TARGET_NOT_SET(0); - private final int value; - - private TargetCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TargetCase valueOf(int value) { - return forNumber(value); - } - - public static TargetCase forNumber(int value) { - switch (value) { - case 18: - return VIRTUAL_MACHINE; - case 9: - return INTERCONNECT_ATTACHMENT; - case 0: - return TARGET_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public TargetCase getTargetCase() { - return TargetCase.forNumber(targetCase_); - } - - private int nextHopCase_ = 0; - private java.lang.Object nextHop_; - - public enum NextHopCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - NEXT_HOP_ILB_IP(12), - NEXTHOP_NOT_SET(0); - private final int value; - - private NextHopCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static NextHopCase valueOf(int value) { - return forNumber(value); - } - - public static NextHopCase forNumber(int value) { - switch (value) { - case 12: - return NEXT_HOP_ILB_IP; - case 0: - return NEXTHOP_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public NextHopCase getNextHopCase() { - return NextHopCase.forNumber(nextHopCase_); - } - - public static final int VIRTUAL_MACHINE_FIELD_NUMBER = 18; - /** - * - * - *
-   * Optional. VM instances to which this policy based route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the virtualMachine field is set. - */ - @java.lang.Override - public boolean hasVirtualMachine() { - return targetCase_ == 18; - } - /** - * - * - *
-   * Optional. VM instances to which this policy based route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The virtualMachine. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - getVirtualMachine() { - if (targetCase_ == 18) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_; - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - .getDefaultInstance(); - } - /** - * - * - *
-   * Optional. VM instances to which this policy based route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder - getVirtualMachineOrBuilder() { - if (targetCase_ == 18) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_; - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - .getDefaultInstance(); - } - - public static final int INTERCONNECT_ATTACHMENT_FIELD_NUMBER = 9; - /** - * - * - *
-   * Optional. The interconnect attachments to which this route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the interconnectAttachment field is set. - */ - @java.lang.Override - public boolean hasInterconnectAttachment() { - return targetCase_ == 9; - } - /** - * - * - *
-   * Optional. The interconnect attachments to which this route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The interconnectAttachment. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - getInterconnectAttachment() { - if (targetCase_ == 9) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - target_; - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .getDefaultInstance(); - } - /** - * - * - *
-   * Optional. The interconnect attachments to which this route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder - getInterconnectAttachmentOrBuilder() { - if (targetCase_ == 9) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - target_; - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .getDefaultInstance(); - } - - public static final int NEXT_HOP_ILB_IP_FIELD_NUMBER = 12; - /** - * - * - *
-   * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-   * handle matching packets. For this version, only next_hop_ilb_ip is
-   * supported.
-   * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the nextHopIlbIp field is set. - */ - public boolean hasNextHopIlbIp() { - return nextHopCase_ == 12; - } - /** - * - * - *
-   * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-   * handle matching packets. For this version, only next_hop_ilb_ip is
-   * supported.
-   * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The nextHopIlbIp. - */ - public java.lang.String getNextHopIlbIp() { - java.lang.Object ref = ""; - if (nextHopCase_ == 12) { - ref = nextHop_; - } - 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(); - if (nextHopCase_ == 12) { - nextHop_ = s; - } - return s; - } - } - /** - * - * - *
-   * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-   * handle matching packets. For this version, only next_hop_ilb_ip is
-   * supported.
-   * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for nextHopIlbIp. - */ - public com.google.protobuf.ByteString getNextHopIlbIpBytes() { - java.lang.Object ref = ""; - if (nextHopCase_ == 12) { - ref = nextHop_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (nextHopCase_ == 12) { - nextHop_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Immutable. A unique name of the resource in the form of
-   * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @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; - } - } - /** - * - * - *
-   * Immutable. A unique name of the resource in the form of
-   * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @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. Time when the PolicyBasedRoute was created.
-   * 
- * - * .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. Time when the PolicyBasedRoute was created.
-   * 
- * - * .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. Time when the PolicyBasedRoute was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. Time when the PolicyBasedRoute was updated.
-   * 
- * - * .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. Time when the PolicyBasedRoute was updated.
-   * 
- * - * .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. Time when the PolicyBasedRoute was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - - public static final int LABELS_FIELD_NUMBER = 4; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - 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(); - } - /** - * - * - *
-   * User-defined labels.
-   * 
- * - * map<string, string> labels = 4; - */ - @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(); - } - /** - * - * - *
-   * User-defined labels.
-   * 
- * - * map<string, string> labels = 4; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * User-defined labels.
-   * 
- * - * map<string, string> labels = 4; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - 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; - } - /** - * - * - *
-   * User-defined labels.
-   * 
- * - * map<string, string> labels = 4; - */ - @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 DESCRIPTION_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - * - * - *
-   * Optional. An optional description of this resource. Provide this field when you
-   * create the resource.
-   * 
- * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-   * Optional. An optional description of this resource. Provide this field when you
-   * create the resource.
-   * 
- * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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 NETWORK_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object network_ = ""; - /** - * - * - *
-   * Required. Fully-qualified URL of the network that this route applies to. e.g.
-   * projects/my-project/global/networks/my-network.
-   * 
- * - * - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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; - } - } - /** - * - * - *
-   * Required. Fully-qualified URL of the network that this route applies to. e.g.
-   * projects/my-project/global/networks/my-network.
-   * 
- * - * - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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 FILTER_FIELD_NUMBER = 10; - private com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter_; - /** - * - * - *
-   * Required. The filter to match L4 traffic.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the filter field is set. - */ - @java.lang.Override - public boolean hasFilter() { - return filter_ != null; - } - /** - * - * - *
-   * Required. The filter to match L4 traffic.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The filter. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter getFilter() { - return filter_ == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() - : filter_; - } - /** - * - * - *
-   * Required. The filter to match L4 traffic.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder - getFilterOrBuilder() { - return filter_ == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() - : filter_; - } - - public static final int PRIORITY_FIELD_NUMBER = 11; - private int priority_ = 0; - /** - * - * - *
-   * Optional. The priority of this policy based route. Priority is used to break ties in
-   * cases where there are more than one matching policy based routes found. In
-   * cases where multiple policy based routes are matched, the one with the
-   * lowest-numbered priority value wins. The default value is 1000. The
-   * priority value must be from 1 to 65535, inclusive.
-   * 
- * - * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The priority. - */ - @java.lang.Override - public int getPriority() { - return priority_; - } - - public static final int WARNINGS_FIELD_NUMBER = 14; - - @SuppressWarnings("serial") - private java.util.List - warnings_; - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getWarningsList() { - return warnings_; - } - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder> - getWarningsOrBuilderList() { - return warnings_; - } - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getWarningsCount() { - return warnings_.size(); - } - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings getWarnings(int index) { - return warnings_.get(index); - } - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder - getWarningsOrBuilder(int index) { - return warnings_.get(index); - } - - public static final int SELF_LINK_FIELD_NUMBER = 15; - - @SuppressWarnings("serial") - private volatile java.lang.Object selfLink_ = ""; - /** - * - * - *
-   * Output only. Server-defined fully-qualified URL for this resource.
-   * 
- * - * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The selfLink. - */ - @java.lang.Override - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - 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(); - selfLink_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Server-defined fully-qualified URL for this resource.
-   * 
- * - * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for selfLink. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - selfLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KIND_FIELD_NUMBER = 16; - - @SuppressWarnings("serial") - private volatile java.lang.Object kind_ = ""; - /** - * - * - *
-   * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
-   * Policy Based Route resources.
-   * 
- * - * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The kind. - */ - @java.lang.Override - public java.lang.String getKind() { - java.lang.Object ref = kind_; - 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(); - kind_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
-   * Policy Based Route resources.
-   * 
- * - * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for kind. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKindBytes() { - java.lang.Object ref = kind_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kind_ = 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 (createTime_ != null) { - output.writeMessage(2, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(3, getUpdateTime()); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, network_); - } - if (targetCase_ == 9) { - output.writeMessage( - 9, - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - target_); - } - if (filter_ != null) { - output.writeMessage(10, getFilter()); - } - if (priority_ != 0) { - output.writeInt32(11, priority_); - } - if (nextHopCase_ == 12) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, nextHop_); - } - for (int i = 0; i < warnings_.size(); i++) { - output.writeMessage(14, warnings_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 15, selfLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, kind_); - } - if (targetCase_ == 18) { - output.writeMessage( - 18, (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_); - } - getUnknownFields().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()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, network_); - } - if (targetCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - target_); - } - if (filter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getFilter()); - } - if (priority_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, priority_); - } - if (nextHopCase_ == 12) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, nextHop_); - } - for (int i = 0; i < warnings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, warnings_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, selfLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, kind_); - } - if (targetCase_ == 18) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 18, - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_); - } - size += getUnknownFields().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.networkconnectivity.v1.PolicyBasedRoute)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute other = - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute) 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 (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getNetwork().equals(other.getNetwork())) return false; - if (hasFilter() != other.hasFilter()) return false; - if (hasFilter()) { - if (!getFilter().equals(other.getFilter())) return false; - } - if (getPriority() != other.getPriority()) return false; - if (!getWarningsList().equals(other.getWarningsList())) return false; - if (!getSelfLink().equals(other.getSelfLink())) return false; - if (!getKind().equals(other.getKind())) return false; - if (!getTargetCase().equals(other.getTargetCase())) return false; - switch (targetCase_) { - case 18: - if (!getVirtualMachine().equals(other.getVirtualMachine())) return false; - break; - case 9: - if (!getInterconnectAttachment().equals(other.getInterconnectAttachment())) return false; - break; - case 0: - default: - } - if (!getNextHopCase().equals(other.getNextHopCase())) return false; - switch (nextHopCase_) { - case 12: - if (!getNextHopIlbIp().equals(other.getNextHopIlbIp())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + NETWORK_FIELD_NUMBER; - hash = (53 * hash) + getNetwork().hashCode(); - if (hasFilter()) { - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - } - hash = (37 * hash) + PRIORITY_FIELD_NUMBER; - hash = (53 * hash) + getPriority(); - if (getWarningsCount() > 0) { - hash = (37 * hash) + WARNINGS_FIELD_NUMBER; - hash = (53 * hash) + getWarningsList().hashCode(); - } - hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; - hash = (53 * hash) + getSelfLink().hashCode(); - hash = (37 * hash) + KIND_FIELD_NUMBER; - hash = (53 * hash) + getKind().hashCode(); - switch (targetCase_) { - case 18: - hash = (37 * hash) + VIRTUAL_MACHINE_FIELD_NUMBER; - hash = (53 * hash) + getVirtualMachine().hashCode(); - break; - case 9: - hash = (37 * hash) + INTERCONNECT_ATTACHMENT_FIELD_NUMBER; - hash = (53 * hash) + getInterconnectAttachment().hashCode(); - break; - case 0: - default: - } - switch (nextHopCase_) { - case 12: - hash = (37 * hash) + NEXT_HOP_ILB_IP_FIELD_NUMBER; - hash = (53 * hash) + getNextHopIlbIp().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute 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.networkconnectivity.v1.PolicyBasedRoute parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute 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.networkconnectivity.v1.PolicyBasedRoute parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute 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.networkconnectivity.v1.PolicyBasedRoute parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute 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.networkconnectivity.v1.PolicyBasedRoute 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; - } - /** - * - * - *
-   * Policy Based Routes (PBR) are more powerful routes that allows GCP customers
-   * to route their L4 network traffic based on not just destination IP, but also
-   * source IP, protocol and more. A PBR always take precedence when it conflicts
-   * with other types of routes.
-   * Next id: 19
-   * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute) - com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - 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.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder.class); - } - - // Construct using com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (virtualMachineBuilder_ != null) { - virtualMachineBuilder_.clear(); - } - if (interconnectAttachmentBuilder_ != null) { - interconnectAttachmentBuilder_.clear(); - } - name_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - internalGetMutableLabels().clear(); - description_ = ""; - network_ = ""; - filter_ = null; - if (filterBuilder_ != null) { - filterBuilder_.dispose(); - filterBuilder_ = null; - } - priority_ = 0; - if (warningsBuilder_ == null) { - warnings_ = java.util.Collections.emptyList(); - } else { - warnings_ = null; - warningsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - selfLink_ = ""; - kind_ = ""; - targetCase_ = 0; - target_ = null; - nextHopCase_ = 0; - nextHop_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute build() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute buildPartial() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result = - new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result) { - if (warningsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { - warnings_ = java.util.Collections.unmodifiableList(warnings_); - bitField0_ = (bitField0_ & ~0x00000800); - } - result.warnings_ = warnings_; - } else { - result.warnings_ = warningsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.network_ = network_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.filter_ = filterBuilder_ == null ? filter_ : filterBuilder_.build(); - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.priority_ = priority_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.selfLink_ = selfLink_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.kind_ = kind_; - } - } - - private void buildPartialOneofs( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result) { - result.targetCase_ = targetCase_; - result.target_ = this.target_; - if (targetCase_ == 18 && virtualMachineBuilder_ != null) { - result.target_ = virtualMachineBuilder_.build(); - } - if (targetCase_ == 9 && interconnectAttachmentBuilder_ != null) { - result.target_ = interconnectAttachmentBuilder_.build(); - } - result.nextHopCase_ = nextHopCase_; - result.nextHop_ = this.nextHop_; - } - - @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.networkconnectivity.v1.PolicyBasedRoute) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute other) { - if (other == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000040; - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (other.hasFilter()) { - mergeFilter(other.getFilter()); - } - if (other.getPriority() != 0) { - setPriority(other.getPriority()); - } - if (warningsBuilder_ == null) { - if (!other.warnings_.isEmpty()) { - if (warnings_.isEmpty()) { - warnings_ = other.warnings_; - bitField0_ = (bitField0_ & ~0x00000800); - } else { - ensureWarningsIsMutable(); - warnings_.addAll(other.warnings_); - } - onChanged(); - } - } else { - if (!other.warnings_.isEmpty()) { - if (warningsBuilder_.isEmpty()) { - warningsBuilder_.dispose(); - warningsBuilder_ = null; - warnings_ = other.warnings_; - bitField0_ = (bitField0_ & ~0x00000800); - warningsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWarningsFieldBuilder() - : null; - } else { - warningsBuilder_.addAllMessages(other.warnings_); - } - } - } - if (!other.getSelfLink().isEmpty()) { - selfLink_ = other.selfLink_; - bitField0_ |= 0x00001000; - onChanged(); - } - if (!other.getKind().isEmpty()) { - kind_ = other.kind_; - bitField0_ |= 0x00002000; - onChanged(); - } - switch (other.getTargetCase()) { - case VIRTUAL_MACHINE: - { - mergeVirtualMachine(other.getVirtualMachine()); - break; - } - case INTERCONNECT_ATTACHMENT: - { - mergeInterconnectAttachment(other.getInterconnectAttachment()); - break; - } - case TARGET_NOT_SET: - { - break; - } - } - switch (other.getNextHopCase()) { - case NEXT_HOP_ILB_IP: - { - nextHopCase_ = 12; - nextHop_ = other.nextHop_; - onChanged(); - break; - } - case NEXTHOP_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 10 - case 18: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 34 - case 42: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 42 - case 50: - { - network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 50 - case 74: - { - input.readMessage( - getInterconnectAttachmentFieldBuilder().getBuilder(), extensionRegistry); - targetCase_ = 9; - break; - } // case 74 - case 82: - { - input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 88: - { - priority_ = input.readInt32(); - bitField0_ |= 0x00000400; - break; - } // case 88 - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - nextHopCase_ = 12; - nextHop_ = s; - break; - } // case 98 - case 114: - { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings m = - input.readMessage( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.parser(), - extensionRegistry); - if (warningsBuilder_ == null) { - ensureWarningsIsMutable(); - warnings_.add(m); - } else { - warningsBuilder_.addMessage(m); - } - break; - } // case 114 - case 122: - { - selfLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 122 - case 130: - { - kind_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; - break; - } // case 130 - case 146: - { - input.readMessage(getVirtualMachineFieldBuilder().getBuilder(), extensionRegistry); - targetCase_ = 18; - break; - } // case 146 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int targetCase_ = 0; - private java.lang.Object target_; - - public TargetCase getTargetCase() { - return TargetCase.forNumber(targetCase_); - } - - public Builder clearTarget() { - targetCase_ = 0; - target_ = null; - onChanged(); - return this; - } - - private int nextHopCase_ = 0; - private java.lang.Object nextHop_; - - public NextHopCase getNextHopCase() { - return NextHopCase.forNumber(nextHopCase_); - } - - public Builder clearNextHop() { - nextHopCase_ = 0; - nextHop_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder> - virtualMachineBuilder_; - /** - * - * - *
-     * Optional. VM instances to which this policy based route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the virtualMachine field is set. - */ - @java.lang.Override - public boolean hasVirtualMachine() { - return targetCase_ == 18; - } - /** - * - * - *
-     * Optional. VM instances to which this policy based route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The virtualMachine. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - getVirtualMachine() { - if (virtualMachineBuilder_ == null) { - if (targetCase_ == 18) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_; - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - .getDefaultInstance(); - } else { - if (targetCase_ == 18) { - return virtualMachineBuilder_.getMessage(); - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. VM instances to which this policy based route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setVirtualMachine( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine value) { - if (virtualMachineBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - virtualMachineBuilder_.setMessage(value); - } - targetCase_ = 18; - return this; - } - /** - * - * - *
-     * Optional. VM instances to which this policy based route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setVirtualMachine( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder - builderForValue) { - if (virtualMachineBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - virtualMachineBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 18; - return this; - } - /** - * - * - *
-     * Optional. VM instances to which this policy based route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeVirtualMachine( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine value) { - if (virtualMachineBuilder_ == null) { - if (targetCase_ == 18 - && target_ - != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - .getDefaultInstance()) { - target_ = - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.newBuilder( - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) - target_) - .mergeFrom(value) - .buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 18) { - virtualMachineBuilder_.mergeFrom(value); - } else { - virtualMachineBuilder_.setMessage(value); - } - } - targetCase_ = 18; - return this; - } - /** - * - * - *
-     * Optional. VM instances to which this policy based route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearVirtualMachine() { - if (virtualMachineBuilder_ == null) { - if (targetCase_ == 18) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 18) { - targetCase_ = 0; - target_ = null; - } - virtualMachineBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. VM instances to which this policy based route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder - getVirtualMachineBuilder() { - return getVirtualMachineFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. VM instances to which this policy based route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder - getVirtualMachineOrBuilder() { - if ((targetCase_ == 18) && (virtualMachineBuilder_ != null)) { - return virtualMachineBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 18) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_; - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. VM instances to which this policy based route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder> - getVirtualMachineFieldBuilder() { - if (virtualMachineBuilder_ == null) { - if (!(targetCase_ == 18)) { - target_ = - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - .getDefaultInstance(); - } - virtualMachineBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder>( - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 18; - onChanged(); - return virtualMachineBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute - .InterconnectAttachmentOrBuilder> - interconnectAttachmentBuilder_; - /** - * - * - *
-     * Optional. The interconnect attachments to which this route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the interconnectAttachment field is set. - */ - @java.lang.Override - public boolean hasInterconnectAttachment() { - return targetCase_ == 9; - } - /** - * - * - *
-     * Optional. The interconnect attachments to which this route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The interconnectAttachment. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - getInterconnectAttachment() { - if (interconnectAttachmentBuilder_ == null) { - if (targetCase_ == 9) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - target_; - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .getDefaultInstance(); - } else { - if (targetCase_ == 9) { - return interconnectAttachmentBuilder_.getMessage(); - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. The interconnect attachments to which this route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setInterconnectAttachment( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment value) { - if (interconnectAttachmentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - interconnectAttachmentBuilder_.setMessage(value); - } - targetCase_ = 9; - return this; - } - /** - * - * - *
-     * Optional. The interconnect attachments to which this route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setInterconnectAttachment( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder - builderForValue) { - if (interconnectAttachmentBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - interconnectAttachmentBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 9; - return this; - } - /** - * - * - *
-     * Optional. The interconnect attachments to which this route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeInterconnectAttachment( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment value) { - if (interconnectAttachmentBuilder_ == null) { - if (targetCase_ == 9 - && target_ - != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .getDefaultInstance()) { - target_ = - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .newBuilder( - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute - .InterconnectAttachment) - target_) - .mergeFrom(value) - .buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 9) { - interconnectAttachmentBuilder_.mergeFrom(value); - } else { - interconnectAttachmentBuilder_.setMessage(value); - } - } - targetCase_ = 9; - return this; - } - /** - * - * - *
-     * Optional. The interconnect attachments to which this route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearInterconnectAttachment() { - if (interconnectAttachmentBuilder_ == null) { - if (targetCase_ == 9) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 9) { - targetCase_ = 0; - target_ = null; - } - interconnectAttachmentBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. The interconnect attachments to which this route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder - getInterconnectAttachmentBuilder() { - return getInterconnectAttachmentFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The interconnect attachments to which this route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder - getInterconnectAttachmentOrBuilder() { - if ((targetCase_ == 9) && (interconnectAttachmentBuilder_ != null)) { - return interconnectAttachmentBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 9) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - target_; - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. The interconnect attachments to which this route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute - .InterconnectAttachmentOrBuilder> - getInterconnectAttachmentFieldBuilder() { - if (interconnectAttachmentBuilder_ == null) { - if (!(targetCase_ == 9)) { - target_ = - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .getDefaultInstance(); - } - interconnectAttachmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute - .InterconnectAttachmentOrBuilder>( - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 9; - onChanged(); - return interconnectAttachmentBuilder_; - } - - /** - * - * - *
-     * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-     * handle matching packets. For this version, only next_hop_ilb_ip is
-     * supported.
-     * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the nextHopIlbIp field is set. - */ - @java.lang.Override - public boolean hasNextHopIlbIp() { - return nextHopCase_ == 12; - } - /** - * - * - *
-     * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-     * handle matching packets. For this version, only next_hop_ilb_ip is
-     * supported.
-     * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The nextHopIlbIp. - */ - @java.lang.Override - public java.lang.String getNextHopIlbIp() { - java.lang.Object ref = ""; - if (nextHopCase_ == 12) { - ref = nextHop_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (nextHopCase_ == 12) { - nextHop_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-     * handle matching packets. For this version, only next_hop_ilb_ip is
-     * supported.
-     * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for nextHopIlbIp. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextHopIlbIpBytes() { - java.lang.Object ref = ""; - if (nextHopCase_ == 12) { - ref = nextHop_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (nextHopCase_ == 12) { - nextHop_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-     * handle matching packets. For this version, only next_hop_ilb_ip is
-     * supported.
-     * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The nextHopIlbIp to set. - * @return This builder for chaining. - */ - public Builder setNextHopIlbIp(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - nextHopCase_ = 12; - nextHop_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-     * handle matching packets. For this version, only next_hop_ilb_ip is
-     * supported.
-     * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearNextHopIlbIp() { - if (nextHopCase_ == 12) { - nextHopCase_ = 0; - nextHop_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-     * handle matching packets. For this version, only next_hop_ilb_ip is
-     * supported.
-     * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for nextHopIlbIp to set. - * @return This builder for chaining. - */ - public Builder setNextHopIlbIpBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - nextHopCase_ = 12; - nextHop_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Immutable. A unique name of the resource in the form of
-     * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @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; - } - } - /** - * - * - *
-     * Immutable. A unique name of the resource in the form of
-     * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @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; - } - } - /** - * - * - *
-     * Immutable. A unique name of the resource in the form of
-     * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. A unique name of the resource in the form of
-     * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. A unique name of the resource in the form of
-     * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @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; - bitField0_ |= 0x00000008; - 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. Time when the PolicyBasedRoute was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was created.
-     * 
- * - * - * .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. Time when the PolicyBasedRoute was created.
-     * 
- * - * - * .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; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was created.
-     * 
- * - * - * .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(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000010); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was created.
-     * 
- * - * - * .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. Time when the PolicyBasedRoute was created.
-     * 
- * - * - * .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. Time when the PolicyBasedRoute was updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was updated.
-     * 
- * - * - * .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. Time when the PolicyBasedRoute was updated.
-     * 
- * - * - * .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; - } else { - updateTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was updated.
-     * 
- * - * - * .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(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000020); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was updated.
-     * 
- * - * - * .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. Time when the PolicyBasedRoute was updated.
-     * 
- * - * - * .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 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() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - bitField0_ |= 0x00000040; - onChanged(); - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-     * User-defined labels.
-     * 
- * - * map<string, string> labels = 4; - */ - @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(); - } - /** - * - * - *
-     * User-defined labels.
-     * 
- * - * map<string, string> labels = 4; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * User-defined labels.
-     * 
- * - * map<string, string> labels = 4; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - 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; - } - /** - * - * - *
-     * User-defined labels.
-     * 
- * - * map<string, string> labels = 4; - */ - @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() { - bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * User-defined labels.
-     * 
- * - * map<string, string> labels = 4; - */ - 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() { - bitField0_ |= 0x00000040; - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * User-defined labels.
-     * 
- * - * map<string, string> labels = 4; - */ - 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); - bitField0_ |= 0x00000040; - return this; - } - /** - * - * - *
-     * User-defined labels.
-     * 
- * - * map<string, string> labels = 4; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000040; - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * Optional. An optional description of this resource. Provide this field when you
-     * create the resource.
-     * 
- * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. An optional description of this resource. Provide this field when you
-     * create the resource.
-     * 
- * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-     * Optional. An optional description of this resource. Provide this field when you
-     * create the resource.
-     * 
- * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An optional description of this resource. Provide this field when you
-     * create the resource.
-     * 
- * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An optional description of this resource. Provide this field when you
-     * create the resource.
-     * 
- * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - private java.lang.Object network_ = ""; - /** - * - * - *
-     * Required. Fully-qualified URL of the network that this route applies to. e.g.
-     * projects/my-project/global/networks/my-network.
-     * 
- * - * - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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; - } - } - /** - * - * - *
-     * Required. Fully-qualified URL of the network that this route applies to. e.g.
-     * projects/my-project/global/networks/my-network.
-     * 
- * - * - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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; - } - } - /** - * - * - *
-     * Required. Fully-qualified URL of the network that this route applies to. e.g.
-     * projects/my-project/global/networks/my-network.
-     * 
- * - * - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Fully-qualified URL of the network that this route applies to. e.g.
-     * projects/my-project/global/networks/my-network.
-     * 
- * - * - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearNetwork() { - network_ = getDefaultInstance().getNetwork(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Fully-qualified URL of the network that this route applies to. e.g.
-     * projects/my-project/global/networks/my-network.
-     * 
- * - * - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - - private com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder> - filterBuilder_; - /** - * - * - *
-     * Required. The filter to match L4 traffic.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the filter field is set. - */ - public boolean hasFilter() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-     * Required. The filter to match L4 traffic.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The filter. - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter getFilter() { - if (filterBuilder_ == null) { - return filter_ == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() - : filter_; - } else { - return filterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The filter to match L4 traffic.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setFilter( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter value) { - if (filterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filter_ = value; - } else { - filterBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The filter to match L4 traffic.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setFilter( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder builderForValue) { - if (filterBuilder_ == null) { - filter_ = builderForValue.build(); - } else { - filterBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The filter to match L4 traffic.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeFilter( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter value) { - if (filterBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && filter_ != null - && filter_ - != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter - .getDefaultInstance()) { - getFilterBuilder().mergeFrom(value); - } else { - filter_ = value; - } - } else { - filterBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The filter to match L4 traffic.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearFilter() { - bitField0_ = (bitField0_ & ~0x00000200); - filter_ = null; - if (filterBuilder_ != null) { - filterBuilder_.dispose(); - filterBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The filter to match L4 traffic.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder - getFilterBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The filter to match L4 traffic.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder - getFilterOrBuilder() { - if (filterBuilder_ != null) { - return filterBuilder_.getMessageOrBuilder(); - } else { - return filter_ == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() - : filter_; - } - } - /** - * - * - *
-     * Required. The filter to match L4 traffic.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder> - getFilterFieldBuilder() { - if (filterBuilder_ == null) { - filterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder>( - getFilter(), getParentForChildren(), isClean()); - filter_ = null; - } - return filterBuilder_; - } - - private int priority_; - /** - * - * - *
-     * Optional. The priority of this policy based route. Priority is used to break ties in
-     * cases where there are more than one matching policy based routes found. In
-     * cases where multiple policy based routes are matched, the one with the
-     * lowest-numbered priority value wins. The default value is 1000. The
-     * priority value must be from 1 to 65535, inclusive.
-     * 
- * - * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The priority. - */ - @java.lang.Override - public int getPriority() { - return priority_; - } - /** - * - * - *
-     * Optional. The priority of this policy based route. Priority is used to break ties in
-     * cases where there are more than one matching policy based routes found. In
-     * cases where multiple policy based routes are matched, the one with the
-     * lowest-numbered priority value wins. The default value is 1000. The
-     * priority value must be from 1 to 65535, inclusive.
-     * 
- * - * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The priority to set. - * @return This builder for chaining. - */ - public Builder setPriority(int value) { - - priority_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The priority of this policy based route. Priority is used to break ties in
-     * cases where there are more than one matching policy based routes found. In
-     * cases where multiple policy based routes are matched, the one with the
-     * lowest-numbered priority value wins. The default value is 1000. The
-     * priority value must be from 1 to 65535, inclusive.
-     * 
- * - * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPriority() { - bitField0_ = (bitField0_ & ~0x00000400); - priority_ = 0; - onChanged(); - return this; - } - - private java.util.List - warnings_ = java.util.Collections.emptyList(); - - private void ensureWarningsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { - warnings_ = - new java.util.ArrayList< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings>(warnings_); - bitField0_ |= 0x00000800; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder> - warningsBuilder_; - - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getWarningsList() { - if (warningsBuilder_ == null) { - return java.util.Collections.unmodifiableList(warnings_); - } else { - return warningsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getWarningsCount() { - if (warningsBuilder_ == null) { - return warnings_.size(); - } else { - return warningsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings getWarnings( - int index) { - if (warningsBuilder_ == null) { - return warnings_.get(index); - } else { - return warningsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setWarnings( - int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings value) { - if (warningsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); - warnings_.set(index, value); - onChanged(); - } else { - warningsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setWarnings( - int index, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder builderForValue) { - if (warningsBuilder_ == null) { - ensureWarningsIsMutable(); - warnings_.set(index, builderForValue.build()); - onChanged(); - } else { - warningsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addWarnings( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings value) { - if (warningsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); - warnings_.add(value); - onChanged(); - } else { - warningsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addWarnings( - int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings value) { - if (warningsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); - warnings_.add(index, value); - onChanged(); - } else { - warningsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addWarnings( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder builderForValue) { - if (warningsBuilder_ == null) { - ensureWarningsIsMutable(); - warnings_.add(builderForValue.build()); - onChanged(); - } else { - warningsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addWarnings( - int index, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder builderForValue) { - if (warningsBuilder_ == null) { - ensureWarningsIsMutable(); - warnings_.add(index, builderForValue.build()); - onChanged(); - } else { - warningsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllWarnings( - java.lang.Iterable< - ? extends com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings> - values) { - if (warningsBuilder_ == null) { - ensureWarningsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); - onChanged(); - } else { - warningsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearWarnings() { - if (warningsBuilder_ == null) { - warnings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - } else { - warningsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeWarnings(int index) { - if (warningsBuilder_ == null) { - ensureWarningsIsMutable(); - warnings_.remove(index); - onChanged(); - } else { - warningsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder - getWarningsBuilder(int index) { - return getWarningsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder - getWarningsOrBuilder(int index) { - if (warningsBuilder_ == null) { - return warnings_.get(index); - } else { - return warningsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List< - ? extends com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder> - getWarningsOrBuilderList() { - if (warningsBuilder_ != null) { - return warningsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(warnings_); - } - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder - addWarningsBuilder() { - return getWarningsFieldBuilder() - .addBuilder( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings - .getDefaultInstance()); - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder - addWarningsBuilder(int index) { - return getWarningsFieldBuilder() - .addBuilder( - index, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings - .getDefaultInstance()); - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getWarningsBuilderList() { - return getWarningsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder> - getWarningsFieldBuilder() { - if (warningsBuilder_ == null) { - warningsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder>( - warnings_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); - warnings_ = null; - } - return warningsBuilder_; - } - - private java.lang.Object selfLink_ = ""; - /** - * - * - *
-     * Output only. Server-defined fully-qualified URL for this resource.
-     * 
- * - * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The selfLink. - */ - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selfLink_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Server-defined fully-qualified URL for this resource.
-     * 
- * - * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for selfLink. - */ - public com.google.protobuf.ByteString getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - selfLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Server-defined fully-qualified URL for this resource.
-     * 
- * - * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The selfLink to set. - * @return This builder for chaining. - */ - public Builder setSelfLink(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - selfLink_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Server-defined fully-qualified URL for this resource.
-     * 
- * - * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearSelfLink() { - selfLink_ = getDefaultInstance().getSelfLink(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Server-defined fully-qualified URL for this resource.
-     * 
- * - * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for selfLink to set. - * @return This builder for chaining. - */ - public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - selfLink_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - private java.lang.Object kind_ = ""; - /** - * - * - *
-     * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
-     * Policy Based Route resources.
-     * 
- * - * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The kind. - */ - public java.lang.String getKind() { - java.lang.Object ref = kind_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kind_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
-     * Policy Based Route resources.
-     * 
- * - * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for kind. - */ - public com.google.protobuf.ByteString getKindBytes() { - java.lang.Object ref = kind_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kind_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
-     * Policy Based Route resources.
-     * 
- * - * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The kind to set. - * @return This builder for chaining. - */ - public Builder setKind(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
-     * Policy Based Route resources.
-     * 
- * - * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearKind() { - kind_ = getDefaultInstance().getKind(); - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
-     * Policy Based Route resources.
-     * 
- * - * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for kind to set. - * @return This builder for chaining. - */ - public Builder setKindBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - kind_ = value; - bitField0_ |= 0x00002000; - 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.networkconnectivity.v1.PolicyBasedRoute) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute) - private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute(); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyBasedRoute parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.PolicyBasedRoute getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java deleted file mode 100644 index 653b1a5507d8..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java +++ /dev/null @@ -1,228 +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.networkconnectivity.v1; - -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 PolicyBasedRouteName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_POLICY_BASED_ROUTE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/{location}/global/PolicyBasedRoutes/{policy_based_route}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String policyBasedRoute; - - @Deprecated - protected PolicyBasedRouteName() { - project = null; - location = null; - policyBasedRoute = null; - } - - private PolicyBasedRouteName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - policyBasedRoute = Preconditions.checkNotNull(builder.getPolicyBasedRoute()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getPolicyBasedRoute() { - return policyBasedRoute; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static PolicyBasedRouteName of(String project, String location, String policyBasedRoute) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setPolicyBasedRoute(policyBasedRoute) - .build(); - } - - public static String format(String project, String location, String policyBasedRoute) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setPolicyBasedRoute(policyBasedRoute) - .build() - .toString(); - } - - public static PolicyBasedRouteName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_POLICY_BASED_ROUTE.validatedMatch( - formattedString, "PolicyBasedRouteName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), matchMap.get("location"), matchMap.get("policy_based_route")); - } - - 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 (PolicyBasedRouteName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_POLICY_BASED_ROUTE.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 (policyBasedRoute != null) { - fieldMapBuilder.put("policy_based_route", policyBasedRoute); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_POLICY_BASED_ROUTE.instantiate( - "project", project, "location", location, "policy_based_route", policyBasedRoute); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - PolicyBasedRouteName that = ((PolicyBasedRouteName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.policyBasedRoute, that.policyBasedRoute); - } - 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(policyBasedRoute); - return h; - } - - /** Builder for projects/{project}/{location}/global/PolicyBasedRoutes/{policy_based_route}. */ - public static class Builder { - private String project; - private String location; - private String policyBasedRoute; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getPolicyBasedRoute() { - return policyBasedRoute; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setPolicyBasedRoute(String policyBasedRoute) { - this.policyBasedRoute = policyBasedRoute; - return this; - } - - private Builder(PolicyBasedRouteName policyBasedRouteName) { - this.project = policyBasedRouteName.project; - this.location = policyBasedRouteName.location; - this.policyBasedRoute = policyBasedRouteName.policyBasedRoute; - } - - public PolicyBasedRouteName build() { - return new PolicyBasedRouteName(this); - } - } -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteOrBuilder.java deleted file mode 100644 index 86836923ee85..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteOrBuilder.java +++ /dev/null @@ -1,556 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface PolicyBasedRouteOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. VM instances to which this policy based route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the virtualMachine field is set. - */ - boolean hasVirtualMachine(); - /** - * - * - *
-   * Optional. VM instances to which this policy based route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The virtualMachine. - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine getVirtualMachine(); - /** - * - * - *
-   * Optional. VM instances to which this policy based route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder - getVirtualMachineOrBuilder(); - - /** - * - * - *
-   * Optional. The interconnect attachments to which this route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the interconnectAttachment field is set. - */ - boolean hasInterconnectAttachment(); - /** - * - * - *
-   * Optional. The interconnect attachments to which this route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The interconnectAttachment. - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - getInterconnectAttachment(); - /** - * - * - *
-   * Optional. The interconnect attachments to which this route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder - getInterconnectAttachmentOrBuilder(); - - /** - * - * - *
-   * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-   * handle matching packets. For this version, only next_hop_ilb_ip is
-   * supported.
-   * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the nextHopIlbIp field is set. - */ - boolean hasNextHopIlbIp(); - /** - * - * - *
-   * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-   * handle matching packets. For this version, only next_hop_ilb_ip is
-   * supported.
-   * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The nextHopIlbIp. - */ - java.lang.String getNextHopIlbIp(); - /** - * - * - *
-   * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-   * handle matching packets. For this version, only next_hop_ilb_ip is
-   * supported.
-   * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for nextHopIlbIp. - */ - com.google.protobuf.ByteString getNextHopIlbIpBytes(); - - /** - * - * - *
-   * Immutable. A unique name of the resource in the form of
-   * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Immutable. A unique name of the resource in the form of
-   * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Output only. Time when the PolicyBasedRoute was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. Time when the PolicyBasedRoute was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. Time when the PolicyBasedRoute was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. Time when the PolicyBasedRoute was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - * - * - *
-   * Output only. Time when the PolicyBasedRoute was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - * - * - *
-   * Output only. Time when the PolicyBasedRoute was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - * - * - *
-   * User-defined labels.
-   * 
- * - * map<string, string> labels = 4; - */ - int getLabelsCount(); - /** - * - * - *
-   * User-defined labels.
-   * 
- * - * map<string, string> labels = 4; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * User-defined labels.
-   * 
- * - * map<string, string> labels = 4; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * User-defined labels.
-   * 
- * - * map<string, string> labels = 4; - */ - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * User-defined labels.
-   * 
- * - * map<string, string> labels = 4; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. An optional description of this resource. Provide this field when you
-   * create the resource.
-   * 
- * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * Optional. An optional description of this resource. Provide this field when you
-   * create the resource.
-   * 
- * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Required. Fully-qualified URL of the network that this route applies to. e.g.
-   * projects/my-project/global/networks/my-network.
-   * 
- * - * - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The network. - */ - java.lang.String getNetwork(); - /** - * - * - *
-   * Required. Fully-qualified URL of the network that this route applies to. e.g.
-   * projects/my-project/global/networks/my-network.
-   * 
- * - * - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for network. - */ - com.google.protobuf.ByteString getNetworkBytes(); - - /** - * - * - *
-   * Required. The filter to match L4 traffic.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the filter field is set. - */ - boolean hasFilter(); - /** - * - * - *
-   * Required. The filter to match L4 traffic.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The filter. - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter getFilter(); - /** - * - * - *
-   * Required. The filter to match L4 traffic.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder getFilterOrBuilder(); - - /** - * - * - *
-   * Optional. The priority of this policy based route. Priority is used to break ties in
-   * cases where there are more than one matching policy based routes found. In
-   * cases where multiple policy based routes are matched, the one with the
-   * lowest-numbered priority value wins. The default value is 1000. The
-   * priority value must be from 1 to 65535, inclusive.
-   * 
- * - * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The priority. - */ - int getPriority(); - - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getWarningsList(); - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings getWarnings(int index); - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getWarningsCount(); - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List< - ? extends com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder> - getWarningsOrBuilderList(); - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder getWarningsOrBuilder( - int index); - - /** - * - * - *
-   * Output only. Server-defined fully-qualified URL for this resource.
-   * 
- * - * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The selfLink. - */ - java.lang.String getSelfLink(); - /** - * - * - *
-   * Output only. Server-defined fully-qualified URL for this resource.
-   * 
- * - * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for selfLink. - */ - com.google.protobuf.ByteString getSelfLinkBytes(); - - /** - * - * - *
-   * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
-   * Policy Based Route resources.
-   * 
- * - * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The kind. - */ - java.lang.String getKind(); - /** - * - * - *
-   * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
-   * Policy Based Route resources.
-   * 
- * - * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for kind. - */ - com.google.protobuf.ByteString getKindBytes(); - - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.TargetCase getTargetCase(); - - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.NextHopCase getNextHopCase(); -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingProto.java deleted file mode 100644 index 35f1499abf05..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingProto.java +++ /dev/null @@ -1,349 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -public final class PolicyBasedRoutingProto { - private PolicyBasedRoutingProto() {} - - 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_networkconnectivity_v1_PolicyBasedRoute_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_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/networkconnectivity/v1/po" - + "licy_based_routing.proto\022#google.cloud.n" - + "etworkconnectivity.v1\032\034google/api/annota" - + "tions.proto\032\027google/api/client.proto\032\037go" - + "ogle/api/field_behavior.proto\032\031google/ap" - + "i/resource.proto\032#google/longrunning/ope" - + "rations.proto\032\037google/protobuf/timestamp" - + ".proto\"\247\r\n\020PolicyBasedRoute\022d\n\017virtual_m" - + "achine\030\022 \001(\0132D.google.cloud.networkconne" - + "ctivity.v1.PolicyBasedRoute.VirtualMachi" - + "neB\003\340A\001H\000\022t\n\027interconnect_attachment\030\t \001" - + "(\0132L.google.cloud.networkconnectivity.v1" - + ".PolicyBasedRoute.InterconnectAttachment" - + "B\003\340A\001H\000\022\036\n\017next_hop_ilb_ip\030\014 \001(\tB\003\340A\001H\001\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upda" - + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003\022Q\n\006labels\030\004 \003(\0132A.google.cloud.ne" - + "tworkconnectivity.v1.PolicyBasedRoute.La" - + "belsEntry\022\030\n\013description\030\005 \001(\tB\003\340A\001\0227\n\007n" - + "etwork\030\006 \001(\tB&\340A\002\372A \n\036compute.googleapis" - + ".com/Network\022Q\n\006filter\030\n \001(\0132<.google.cl" - + "oud.networkconnectivity.v1.PolicyBasedRo" - + "ute.FilterB\003\340A\002\022\025\n\010priority\030\013 \001(\005B\003\340A\001\022U" - + "\n\010warnings\030\016 \003(\0132>.google.cloud.networkc" - + "onnectivity.v1.PolicyBasedRoute.Warnings" - + "B\003\340A\003\022\026\n\tself_link\030\017 \001(\tB\003\340A\003\022\021\n\004kind\030\020 " - + "\001(\tB\003\340A\003\032#\n\016VirtualMachine\022\021\n\004tags\030\001 \003(\t" - + "B\003\340A\001\032-\n\026InterconnectAttachment\022\023\n\006regio" - + "n\030\001 \001(\tB\003\340A\001\032\377\001\n\006Filter\022\030\n\013ip_protocol\030\001" - + " \001(\tB\003\340A\001\022\026\n\tsrc_range\030\002 \001(\tB\003\340A\001\022\027\n\ndes" - + "t_range\030\003 \001(\tB\003\340A\001\022k\n\020protocol_version\030\006" - + " \001(\0162L.google.cloud.networkconnectivity." - + "v1.PolicyBasedRoute.Filter.ProtocolVersi" - + "onB\003\340A\002\"=\n\017ProtocolVersion\022 \n\034PROTOCOL_V" - + "ERSION_UNSPECIFIED\020\000\022\010\n\004IPV4\020\001\032\341\002\n\010Warni" - + "ngs\022V\n\004code\030\001 \001(\0162C.google.cloud.network" - + "connectivity.v1.PolicyBasedRoute.Warning" - + "s.CodeB\003\340A\003\022[\n\004data\030\002 \003(\0132H.google.cloud" - + ".networkconnectivity.v1.PolicyBasedRoute" - + ".Warnings.DataEntryB\003\340A\003\022\034\n\017warning_mess" - + "age\030\003 \001(\tB\003\340A\003\032+\n\tDataEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\004Code\022\027\n\023WARNING_U" - + "NSPECIFIED\020\000\022\027\n\023RESOURCE_NOT_ACTIVE\020\001\022\033\n" - + "\027RESOURCE_BEING_MODIFIED\020\002\032-\n\013LabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\206\001\352A\202\001" - + "\n3networkconnectivity.googleapis.com/Pol" - + "icyBasedRoute\022Kprojects/{project}/{locat" - + "ion}/global/PolicyBasedRoutes/{policy_ba" - + "sed_route}B\010\n\006targetB\n\n\010next_hop\"\242\001\n\034Lis" - + "tPolicyBasedRoutesRequest\0229\n\006parent\030\001 \001(" - + "\tB)\340A\002\372A#\n!locations.googleapis.com/Loca" - + "tion\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\241\001" - + "\n\035ListPolicyBasedRoutesResponse\022R\n\023polic" - + "y_based_routes\030\001 \003(\01325.google.cloud.netw" - + "orkconnectivity.v1.PolicyBasedRoute\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(" - + "\t\"g\n\032GetPolicyBasedRouteRequest\022I\n\004name\030" - + "\001 \001(\tB;\340A\002\372A5\n3networkconnectivity.googl" - + "eapis.com/PolicyBasedRoute\"\357\001\n\035CreatePol" - + "icyBasedRouteRequest\0229\n\006parent\030\001 \001(\tB)\340A" - + "\002\372A#\n!locations.googleapis.com/Location\022" - + "\"\n\025policy_based_route_id\030\002 \001(\tB\003\340A\001\022V\n\022p" - + "olicy_based_route\030\003 \001(\01325.google.cloud.n" - + "etworkconnectivity.v1.PolicyBasedRouteB\003" - + "\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\203\001\n\035DeleteP" - + "olicyBasedRouteRequest\022I\n\004name\030\001 \001(\tB;\340A" - + "\002\372A5\n3networkconnectivity.googleapis.com" - + "/PolicyBasedRoute\022\027\n\nrequest_id\030\002 \001(\tB\003\340" - + "A\0012\343\010\n\031PolicyBasedRoutingService\022\353\001\n\025Lis" - + "tPolicyBasedRoutes\022A.google.cloud.networ" - + "kconnectivity.v1.ListPolicyBasedRoutesRe" - + "quest\032B.google.cloud.networkconnectivity" - + ".v1.ListPolicyBasedRoutesResponse\"K\202\323\344\223\002" - + "<\022:/v1/{parent=projects/*/locations/glob" - + "al}/policyBasedRoutes\332A\006parent\022\330\001\n\023GetPo" - + "licyBasedRoute\022?.google.cloud.networkcon" - + "nectivity.v1.GetPolicyBasedRouteRequest\032" - + "5.google.cloud.networkconnectivity.v1.Po" - + "licyBasedRoute\"I\202\323\344\223\002<\022:/v1/{name=projec" - + "ts/*/locations/global/policyBasedRoutes/" - + "*}\332A\004name\022\256\002\n\026CreatePolicyBasedRoute\022B.g" - + "oogle.cloud.networkconnectivity.v1.Creat" - + "ePolicyBasedRouteRequest\032\035.google.longru" - + "nning.Operation\"\260\001\202\323\344\223\002P\":/v1/{parent=pr" - + "ojects/*/locations/global}/policyBasedRo" - + "utes:\022policy_based_route\332A/parent,policy" - + "_based_route,policy_based_route_id\312A%\n\020P" - + "olicyBasedRoute\022\021OperationMetadata\022\363\001\n\026D" - + "eletePolicyBasedRoute\022B.google.cloud.net" - + "workconnectivity.v1.DeletePolicyBasedRou" - + "teRequest\032\035.google.longrunning.Operation" - + "\"v\202\323\344\223\002<*:/v1/{name=projects/*/locations" - + "/global/policyBasedRoutes/*}\332A\004name\312A*\n\025" - + "google.protobuf.Empty\022\021OperationMetadata" - + "\032V\312A\"networkconnectivity.googleapis.com\322" - + "A.https://www.googleapis.com/auth/cloud-" - + "platformB\221\002\n\'com.google.cloud.networkcon" - + "nectivity.v1B\027PolicyBasedRoutingProtoP\001Z" - + "Vgoogle.golang.org/genproto/googleapis/c" - + "loud/networkconnectivity/v1;networkconne" - + "ctivity\252\002#Google.Cloud.NetworkConnectivi" - + "ty.V1\312\002#Google\\Cloud\\NetworkConnectivity" - + "\\V1\352\002&Google::Cloud::NetworkConnectivity" - + "::V1b\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.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor, - new java.lang.String[] { - "VirtualMachine", - "InterconnectAttachment", - "NextHopIlbIp", - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "Description", - "Network", - "Filter", - "Priority", - "Warnings", - "SelfLink", - "Kind", - "Target", - "NextHop", - }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor = - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor, - new java.lang.String[] { - "Tags", - }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor = - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor, - new java.lang.String[] { - "Region", - }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor = - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor, - new java.lang.String[] { - "IpProtocol", "SrcRange", "DestRange", "ProtocolVersion", - }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor = - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor, - new java.lang.String[] { - "Code", "Data", "WarningMessage", - }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_descriptor = - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_descriptor = - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor - .getNestedTypes() - .get(4); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor, - new java.lang.String[] { - "PolicyBasedRoutes", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor, - new java.lang.String[] { - "Parent", "PolicyBasedRouteId", "PolicyBasedRoute", "RequestId", - }); - internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", - }); - 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.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/policy_based_routing.proto b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/policy_based_routing.proto deleted file mode 100644 index 74c24bd39710..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/policy_based_routing.proto +++ /dev/null @@ -1,338 +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 -// -// 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.networkconnectivity.v1; - -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/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.NetworkConnectivity.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1;networkconnectivity"; -option java_multiple_files = true; -option java_outer_classname = "PolicyBasedRoutingProto"; -option java_package = "com.google.cloud.networkconnectivity.v1"; -option php_namespace = "Google\\Cloud\\NetworkConnectivity\\V1"; -option ruby_package = "Google::Cloud::NetworkConnectivity::V1"; - -// Policy-Based Routing allows GCP customers to specify flexibile routing -// policies for Layer 4 traffic traversing through the connected service. -service PolicyBasedRoutingService { - option (google.api.default_host) = "networkconnectivity.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Lists PolicyBasedRoutes in a given project and location. - rpc ListPolicyBasedRoutes(ListPolicyBasedRoutesRequest) returns (ListPolicyBasedRoutesResponse) { - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/global}/policyBasedRoutes" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets details of a single PolicyBasedRoute. - rpc GetPolicyBasedRoute(GetPolicyBasedRouteRequest) returns (PolicyBasedRoute) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/global/policyBasedRoutes/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a new PolicyBasedRoute in a given project and location. - rpc CreatePolicyBasedRoute(CreatePolicyBasedRouteRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/global}/policyBasedRoutes" - body: "policy_based_route" - }; - option (google.api.method_signature) = "parent,policy_based_route,policy_based_route_id"; - option (google.longrunning.operation_info) = { - response_type: "PolicyBasedRoute" - metadata_type: "OperationMetadata" - }; - } - - // Deletes a single PolicyBasedRoute. - rpc DeletePolicyBasedRoute(DeletePolicyBasedRouteRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/global/policyBasedRoutes/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "OperationMetadata" - }; - } -} - -// Policy Based Routes (PBR) are more powerful routes that allows GCP customers -// to route their L4 network traffic based on not just destination IP, but also -// source IP, protocol and more. A PBR always take precedence when it conflicts -// with other types of routes. -// Next id: 19 -message PolicyBasedRoute { - option (google.api.resource) = { - type: "networkconnectivity.googleapis.com/PolicyBasedRoute" - pattern: "projects/{project}/{location}/global/PolicyBasedRoutes/{policy_based_route}" - }; - - // VM instances to which this policy based route applies to. - message VirtualMachine { - // Optional. A list of VM instance tags to which this policy based route applies to. - // VM instances that have ANY of tags specified here will install this - // PBR. - repeated string tags = 1 [(google.api.field_behavior) = OPTIONAL]; - } - - // InterconnectAttachment to which this route applies to. - message InterconnectAttachment { - // Optional. Cloud region to install this policy based route on interconnect - // attachment. Use `all` to install it on all interconnect attachments. - string region = 1 [(google.api.field_behavior) = OPTIONAL]; - } - - // Filter matches L4 traffic. - message Filter { - // The internet protocol version. - enum ProtocolVersion { - // Default value. - PROTOCOL_VERSION_UNSPECIFIED = 0; - - // The PBR is for IPv4 internet protocol traffic. - IPV4 = 1; - } - - // Optional. The IP protocol that this policy based route applies to. Valid values are - // 'TCP', 'UDP', and 'ALL'. Default is 'ALL'. - string ip_protocol = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The source IP range of outgoing packets that this policy based route - // applies to. Default is "0.0.0.0/0" if protocol version is IPv4. - string src_range = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The destination IP range of outgoing packets that this policy based route - // applies to. Default is "0.0.0.0/0" if protocol version is IPv4. - string dest_range = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Required. Internet protocol versions this policy based route applies to. For this - // version, only IPV4 is supported. - ProtocolVersion protocol_version = 6 [(google.api.field_behavior) = REQUIRED]; - } - - // Informational warning message. - message Warnings { - // Warning code for Policy Based Routing. Expect to add values in the - // future. - enum Code { - // Default value. - WARNING_UNSPECIFIED = 0; - - // The policy based route is not active and functioning. Common causes are - // the dependent network was deleted or the resource project was turned - // off. - RESOURCE_NOT_ACTIVE = 1; - - // The policy based route is being modified (e.g. created/deleted) at this - // time. - RESOURCE_BEING_MODIFIED = 2; - } - - // Output only. A warning code, if applicable. - Code code = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Metadata about this warning in key: value format. The key should provides - // more detail on the warning being returned. For example, for warnings - // where there are no results in a list request for a particular zone, this - // key might be scope and the key value might be the zone name. Other - // examples might be a key indicating a deprecated resource and a suggested - // replacement. - map data = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A human-readable description of the warning code. - string warning_message = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Target specifies network endpoints to which this policy based route applies - // to. If none of the target is specified, the PBR will be installed on all - // network endpoints (e.g. VMs, VPNs, and Interconnects) in the VPC. - oneof target { - // Optional. VM instances to which this policy based route applies to. - VirtualMachine virtual_machine = 18 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The interconnect attachments to which this route applies to. - InterconnectAttachment interconnect_attachment = 9 [(google.api.field_behavior) = OPTIONAL]; - } - - oneof next_hop { - // Optional. The IP of a global access enabled L4 ILB that should be the next hop to - // handle matching packets. For this version, only next_hop_ilb_ip is - // supported. - string next_hop_ilb_ip = 12 [(google.api.field_behavior) = OPTIONAL]; - } - - // Immutable. A unique name of the resource in the form of - // `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}` - string name = 1 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. Time when the PolicyBasedRoute was created. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when the PolicyBasedRoute was updated. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // User-defined labels. - map labels = 4; - - // Optional. An optional description of this resource. Provide this field when you - // create the resource. - string description = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Required. Fully-qualified URL of the network that this route applies to. e.g. - // projects/my-project/global/networks/my-network. - string network = 6 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "compute.googleapis.com/Network" - } - ]; - - // Required. The filter to match L4 traffic. - Filter filter = 10 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The priority of this policy based route. Priority is used to break ties in - // cases where there are more than one matching policy based routes found. In - // cases where multiple policy based routes are matched, the one with the - // lowest-numbered priority value wins. The default value is 1000. The - // priority value must be from 1 to 65535, inclusive. - int32 priority = 11 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. If potential misconfigurations are detected for this route, - // this field will be populated with warning messages. - repeated Warnings warnings = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Server-defined fully-qualified URL for this resource. - string self_link = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for - // Policy Based Route resources. - string kind = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request for [PolicyBasedRouting.ListPolicyBasedRoutes][] method. -message ListPolicyBasedRoutesRequest { - // Required. The parent resource's name. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // The maximum number of results per page that should be returned. - int32 page_size = 2; - - // The page token. - string page_token = 3; - - // A filter expression that filters the results listed in the response. - string filter = 4; - - // Sort the results by a certain order. - string order_by = 5; -} - -// Response for [PolicyBasedRouting.ListPolicyBasedRoutes][] method. -message ListPolicyBasedRoutesResponse { - // Policy based routes to be returned. - repeated PolicyBasedRoute policy_based_routes = 1; - - // The next pagination token in the List response. It should be used as - // page_token for the following request. An empty value means no more result. - string next_page_token = 2; - - // Locations that could not be reached. - repeated string unreachable = 3; -} - -// Request for [PolicyBasedRouting.GetPolicyBasedRoute][] method. -message GetPolicyBasedRouteRequest { - // Required. Name of the PolicyBasedRoute resource to get. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "networkconnectivity.googleapis.com/PolicyBasedRoute" - } - ]; -} - -// Request for [PolicyBasedRouting.CreatePolicyBasedRoute][] method. -message CreatePolicyBasedRouteRequest { - // Required. The parent resource's name of the PolicyBasedRoute. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // Optional. Unique id for the Policy Based Route to create. - string policy_based_route_id = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Required. Initial values for a new Policy Based Route. - PolicyBasedRoute policy_based_route = 3 [(google.api.field_behavior) = REQUIRED]; - - // Optional. An optional request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes since the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// Request for [PolicyBasedRouting.DeletePolicyBasedRoute][] method. -message DeletePolicyBasedRouteRequest { - // Required. Name of the PolicyBasedRoute resource to delete. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "networkconnectivity.googleapis.com/PolicyBasedRoute" - } - ]; - - // Optional. An optional request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes after the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java deleted file mode 100644 index e8e71eaf5f8b..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java +++ /dev/null @@ -1,94 +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/networkconnectivity/v1alpha1/common.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public final class CommonProto { - private CommonProto() {} - - 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_networkconnectivity_v1alpha1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/networkconnectivity/v1alp" - + "ha1/common.proto\022)google.cloud.networkco" - + "nnectivity.v1alpha1\032\037google/api/field_be" - + "havior.proto\032\037google/protobuf/timestamp." - + "proto\"\200\002\n\021OperationMetadata\0224\n\013create_ti" - + "me\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004ver" - + "b\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\003B\243\002\n-com.google." - + "cloud.networkconnectivity.v1alpha1B\013Comm" - + "onProtoP\001Z\\google.golang.org/genproto/go" - + "ogleapis/cloud/networkconnectivity/v1alp" - + "ha1;networkconnectivity\252\002)Google.Cloud.N" - + "etworkConnectivity.V1Alpha1\312\002)Google\\Clo" - + "ud\\NetworkConnectivity\\V1alpha1\352\002,Google" - + "::Cloud::NetworkConnectivity::V1alpha1b\006" - + "proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java deleted file mode 100644 index f27e985b5766..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public interface GetHubRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the Hub resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the Hub resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java deleted file mode 100644 index f96c9a120c67..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public interface GetSpokeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of Spoke resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of Spoke 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java deleted file mode 100644 index 4f2423ff81f4..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java +++ /dev/null @@ -1,460 +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/networkconnectivity/v1alpha1/hub.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public final class HubProto { - private HubProto() {} - - 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_networkconnectivity_v1alpha1_Hub_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/networkconnectivity/v1alp" - + "ha1/hub.proto\022)google.cloud.networkconne" - + "ctivity.v1alpha1\032\034google/api/annotations" - + ".proto\032\027google/api/client.proto\032\037google/" - + "api/field_behavior.proto\032\031google/api/res" - + "ource.proto\032#google/longrunning/operatio" - + "ns.proto\032 google/protobuf/field_mask.pro" - + "to\032\037google/protobuf/timestamp.proto\"\207\004\n\003" - + "Hub\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_time\030\002 " - + "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat" - + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" - + "\022J\n\006labels\030\004 \003(\0132:.google.cloud.networkc" - + "onnectivity.v1alpha1.Hub.LabelsEntry\022\023\n\013" - + "description\030\005 \001(\t\022@\n\006spokes\030\006 \003(\tB0\340A\003\372A" - + "*\n(networkconnectivity.googleapis.com/Sp" - + "oke\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022D\n\005state\030\t \001" - + "(\01620.google.cloud.networkconnectivity.v1" - + "alpha1.StateB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:[\352AX\n&networkco" - + "nnectivity.googleapis.com/Hub\022.projects/" - + "{project}/locations/global/hubs/{hub}\"\234\006" - + "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_tim" - + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022/\n\013u" - + "pdate_time\030\003 \001(\0132\032.google.protobuf.Times" - + "tamp\022L\n\006labels\030\004 \003(\0132<.google.cloud.netw" - + "orkconnectivity.v1alpha1.Spoke.LabelsEnt" - + "ry\022\023\n\013description\030\005 \001(\t\0228\n\003hub\030\006 \001(\tB+\372A" - + "(\n&networkconnectivity.googleapis.com/Hu" - + "b\022A\n\022linked_vpn_tunnels\030\014 \003(\tB%\372A\"\n comp" - + "ute.googleapis.com/VpnTunnel\022[\n\037linked_i" - + "nterconnect_attachments\030\r \003(\tB2\372A/\n-comp" - + "ute.googleapis.com/InterconnectAttachmen" - + "t\022m\n!linked_router_appliance_instances\030\016" - + " \003(\0132B.google.cloud.networkconnectivity." - + "v1alpha1.RouterApplianceInstance\022\026\n\tuniq" - + "ue_id\030\013 \001(\tB\003\340A\003\022D\n\005state\030\017 \001(\01620.google" - + ".cloud.networkconnectivity.v1alpha1.Stat" - + "eB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001:e\352Ab\n(networkconnectivity." - + "googleapis.com/Spoke\0226projects/{project}" - + "/locations/{location}/spokes/{spoke}\"\225\001\n" - + "\017ListHubsRequest\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\022\016\n\006fi" - + "lter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\020ListHubs" - + "Response\022<\n\004hubs\030\001 \003(\0132..google.cloud.ne" - + "tworkconnectivity.v1alpha1.Hub\022\027\n\017next_p" - + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\r" - + "GetHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" - + "workconnectivity.googleapis.com/Hub\"\275\001\n\020" - + "CreateHubRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" - + "\n!locations.googleapis.com/Location\022\023\n\006h" - + "ub_id\030\002 \001(\tB\003\340A\001\022@\n\003hub\030\003 \001(\0132..google.c" - + "loud.networkconnectivity.v1alpha1.HubB\003\340" - + "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\020UpdateHu" - + "bRequest\0224\n\013update_mask\030\001 \001(\0132\032.google.p" - + "rotobuf.FieldMaskB\003\340A\001\022@\n\003hub\030\002 \001(\0132..go" - + "ogle.cloud.networkconnectivity.v1alpha1." - + "HubB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"i\n\020Del" - + "eteHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" - + "workconnectivity.googleapis.com/Hub\022\027\n\nr" - + "equest_id\030\002 \001(\tB\003\340A\001\"\227\001\n\021ListSpokesReque" - + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" - + "ogleapis.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\022\020\n\010" - + "order_by\030\005 \001(\t\"\204\001\n\022ListSpokesResponse\022@\n" - + "\006spokes\030\001 \003(\01320.google.cloud.networkconn" - + "ectivity.v1alpha1.Spoke\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\017GetSpok" - + "eRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(networkc" - + "onnectivity.googleapis.com/Spoke\"\305\001\n\022Cre" - + "ateSpokeRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n" - + "!locations.googleapis.com/Location\022\025\n\010sp" - + "oke_id\030\002 \001(\tB\003\340A\001\022D\n\005spoke\030\003 \001(\01320.googl" - + "e.cloud.networkconnectivity.v1alpha1.Spo" - + "keB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\251\001\n\022Upd" - + "ateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\003\340A\001\022D\n\005spoke\030\002" - + " \001(\01320.google.cloud.networkconnectivity." - + "v1alpha1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB" - + "\003\340A\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\t" - + "B0\340A\002\372A*\n(networkconnectivity.googleapis" - + ".com/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\213\001\n\027" - + "RouterApplianceInstance\022=\n\017virtual_machi" - + "ne\030\001 \001(\tB$\372A!\n\037compute.googleapis.com/In" - + "stance\022\022\n\nip_address\030\003 \001(\t\022\035\n\021network_in" - + "terface\030\002 \001(\tB\002\030\001*F\n\005State\022\025\n\021STATE_UNSP" - + "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010D" - + "ELETING\020\0032\255\021\n\nHubService\022\311\001\n\010ListHubs\022:." - + "google.cloud.networkconnectivity.v1alpha" - + "1.ListHubsRequest\032;.google.cloud.network" - + "connectivity.v1alpha1.ListHubsResponse\"D" - + "\202\323\344\223\0025\0223/v1alpha1/{parent=projects/*/loc" - + "ations/global}/hubs\332A\006parent\022\266\001\n\006GetHub\022" - + "8.google.cloud.networkconnectivity.v1alp" - + "ha1.GetHubRequest\032..google.cloud.network" - + "connectivity.v1alpha1.Hub\"B\202\323\344\223\0025\0223/v1al" - + "pha1/{name=projects/*/locations/global/h" - + "ubs/*}\332A\004name\022\330\001\n\tCreateHub\022;.google.clo" - + "ud.networkconnectivity.v1alpha1.CreateHu" - + "bRequest\032\035.google.longrunning.Operation\"" - + "o\202\323\344\223\002:\"3/v1alpha1/{parent=projects/*/lo" - + "cations/global}/hubs:\003hub\332A\021parent,hub,h" - + "ub_id\312A\030\n\003Hub\022\021OperationMetadata\022\332\001\n\tUpd" - + "ateHub\022;.google.cloud.networkconnectivit" - + "y.v1alpha1.UpdateHubRequest\032\035.google.lon" - + "grunning.Operation\"q\202\323\344\223\002>27/v1alpha1/{h" - + "ub.name=projects/*/locations/global/hubs" - + "/*}:\003hub\332A\017hub,update_mask\312A\030\n\003Hub\022\021Oper" - + "ationMetadata\022\330\001\n\tDeleteHub\022;.google.clo" - + "ud.networkconnectivity.v1alpha1.DeleteHu" - + "bRequest\032\035.google.longrunning.Operation\"" - + "o\202\323\344\223\0025*3/v1alpha1/{name=projects/*/loca" - + "tions/global/hubs/*}\332A\004name\312A*\n\025google.p" - + "rotobuf.Empty\022\021OperationMetadata\022\314\001\n\nLis" - + "tSpokes\022<.google.cloud.networkconnectivi" - + "ty.v1alpha1.ListSpokesRequest\032=.google.c" - + "loud.networkconnectivity.v1alpha1.ListSp" - + "okesResponse\"A\202\323\344\223\0022\0220/v1alpha1/{parent=" - + "projects/*/locations/*}/spokes\332A\006parent\022" - + "\271\001\n\010GetSpoke\022:.google.cloud.networkconne" - + "ctivity.v1alpha1.GetSpokeRequest\0320.googl" - + "e.cloud.networkconnectivity.v1alpha1.Spo" - + "ke\"?\202\323\344\223\0022\0220/v1alpha1/{name=projects/*/l" - + "ocations/*/spokes/*}\332A\004name\022\341\001\n\013CreateSp" - + "oke\022=.google.cloud.networkconnectivity.v" - + "1alpha1.CreateSpokeRequest\032\035.google.long" - + "running.Operation\"t\202\323\344\223\0029\"0/v1alpha1/{pa" - + "rent=projects/*/locations/*}/spokes:\005spo" - + "ke\332A\025parent,spoke,spoke_id\312A\032\n\005Spoke\022\021Op" - + "erationMetadata\022\343\001\n\013UpdateSpoke\022=.google" - + ".cloud.networkconnectivity.v1alpha1.Upda" - + "teSpokeRequest\032\035.google.longrunning.Oper" - + "ation\"v\202\323\344\223\002?26/v1alpha1/{spoke.name=pro" - + "jects/*/locations/*/spokes/*}:\005spoke\332A\021s" - + "poke,update_mask\312A\032\n\005Spoke\022\021OperationMet" - + "adata\022\331\001\n\013DeleteSpoke\022=.google.cloud.net" - + "workconnectivity.v1alpha1.DeleteSpokeReq" - + "uest\032\035.google.longrunning.Operation\"l\202\323\344" - + "\223\0022*0/v1alpha1/{name=projects/*/location" - + "s/*/spokes/*}\332A\004name\312A*\n\025google.protobuf" - + ".Empty\022\021OperationMetadata\032V\312A\"networkcon" - + "nectivity.googleapis.com\322A.https://www.g" - + "oogleapis.com/auth/cloud-platformB\332\004\n-co" - + "m.google.cloud.networkconnectivity.v1alp" - + "ha1B\010HubProtoP\001Z\\google.golang.org/genpr" - + "oto/googleapis/cloud/networkconnectivity" - + "/v1alpha1;networkconnectivity\252\002)Google.C" - + "loud.NetworkConnectivity.V1Alpha1\312\002)Goog" - + "le\\Cloud\\NetworkConnectivity\\V1alpha1\352\002," - + "Google::Cloud::NetworkConnectivity::V1al" - + "pha1\352A`\n compute.googleapis.com/VpnTunne" - + "l\022 future = - policyBasedRoutingServiceClient.createPolicyBasedRouteCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRouteLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRouteLRO.java deleted file mode 100644 index cd0c58c53a5b..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRouteLRO.java +++ /dev/null @@ -1,57 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_LRO_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.LocationName; -import com.google.cloud.networkconnectivity.v1.OperationMetadata; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class AsyncCreatePolicyBasedRouteLRO { - - public static void main(String[] args) throws Exception { - asyncCreatePolicyBasedRouteLRO(); - } - - public static void asyncCreatePolicyBasedRouteLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - CreatePolicyBasedRouteRequest request = - CreatePolicyBasedRouteRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPolicyBasedRouteId("policyBasedRouteId-18034589") - .setPolicyBasedRoute(PolicyBasedRoute.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - OperationFuture future = - policyBasedRoutingServiceClient - .createPolicyBasedRouteOperationCallable() - .futureCall(request); - // Do something. - PolicyBasedRoute response = future.get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_LRO_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRoute.java deleted file mode 100644 index c38346f59456..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRoute.java +++ /dev/null @@ -1,51 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_sync] -import com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.LocationName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class SyncCreatePolicyBasedRoute { - - public static void main(String[] args) throws Exception { - syncCreatePolicyBasedRoute(); - } - - public static void syncCreatePolicyBasedRoute() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - CreatePolicyBasedRouteRequest request = - CreatePolicyBasedRouteRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPolicyBasedRouteId("policyBasedRouteId-18034589") - .setPolicyBasedRoute(PolicyBasedRoute.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - PolicyBasedRoute response = - policyBasedRoutingServiceClient.createPolicyBasedRouteAsync(request).get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString.java deleted file mode 100644 index a6c175209bab..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString.java +++ /dev/null @@ -1,49 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_LocationnamePolicybasedrouteString_sync] -import com.google.cloud.networkconnectivity.v1.LocationName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString { - - public static void main(String[] args) throws Exception { - syncCreatePolicyBasedRouteLocationnamePolicybasedrouteString(); - } - - public static void syncCreatePolicyBasedRouteLocationnamePolicybasedrouteString() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build(); - String policyBasedRouteId = "policyBasedRouteId-18034589"; - PolicyBasedRoute response = - policyBasedRoutingServiceClient - .createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId) - .get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_LocationnamePolicybasedrouteString_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteStringPolicybasedrouteString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteStringPolicybasedrouteString.java deleted file mode 100644 index 4b9e769b8ff3..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteStringPolicybasedrouteString.java +++ /dev/null @@ -1,48 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_StringPolicybasedrouteString_sync] -import com.google.cloud.networkconnectivity.v1.LocationName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class SyncCreatePolicyBasedRouteStringPolicybasedrouteString { - - public static void main(String[] args) throws Exception { - syncCreatePolicyBasedRouteStringPolicybasedrouteString(); - } - - public static void syncCreatePolicyBasedRouteStringPolicybasedrouteString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build(); - String policyBasedRouteId = "policyBasedRouteId-18034589"; - PolicyBasedRoute response = - policyBasedRoutingServiceClient - .createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId) - .get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_StringPolicybasedrouteString_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRoute.java deleted file mode 100644 index 0bff00a01f98..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRoute.java +++ /dev/null @@ -1,54 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; -import com.google.longrunning.Operation; - -public class AsyncDeletePolicyBasedRoute { - - public static void main(String[] args) throws Exception { - asyncDeletePolicyBasedRoute(); - } - - public static void asyncDeletePolicyBasedRoute() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - DeletePolicyBasedRouteRequest request = - DeletePolicyBasedRouteRequest.newBuilder() - .setName( - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") - .toString()) - .setRequestId("requestId693933066") - .build(); - ApiFuture future = - policyBasedRoutingServiceClient.deletePolicyBasedRouteCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRouteLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRouteLRO.java deleted file mode 100644 index 0f2ed3f57753..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRouteLRO.java +++ /dev/null @@ -1,57 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_LRO_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.OperationMetadata; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; -import com.google.protobuf.Empty; - -public class AsyncDeletePolicyBasedRouteLRO { - - public static void main(String[] args) throws Exception { - asyncDeletePolicyBasedRouteLRO(); - } - - public static void asyncDeletePolicyBasedRouteLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - DeletePolicyBasedRouteRequest request = - DeletePolicyBasedRouteRequest.newBuilder() - .setName( - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") - .toString()) - .setRequestId("requestId693933066") - .build(); - OperationFuture future = - policyBasedRoutingServiceClient - .deletePolicyBasedRouteOperationCallable() - .futureCall(request); - // Do something. - future.get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_LRO_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoute.java deleted file mode 100644 index e827f253b362..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoute.java +++ /dev/null @@ -1,50 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_sync] -import com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; -import com.google.protobuf.Empty; - -public class SyncDeletePolicyBasedRoute { - - public static void main(String[] args) throws Exception { - syncDeletePolicyBasedRoute(); - } - - public static void syncDeletePolicyBasedRoute() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - DeletePolicyBasedRouteRequest request = - DeletePolicyBasedRouteRequest.newBuilder() - .setName( - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") - .toString()) - .setRequestId("requestId693933066") - .build(); - policyBasedRoutingServiceClient.deletePolicyBasedRouteAsync(request).get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoutePolicybasedroutename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoutePolicybasedroutename.java deleted file mode 100644 index d319ba4559c5..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoutePolicybasedroutename.java +++ /dev/null @@ -1,44 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_Policybasedroutename_sync] -import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; -import com.google.protobuf.Empty; - -public class SyncDeletePolicyBasedRoutePolicybasedroutename { - - public static void main(String[] args) throws Exception { - syncDeletePolicyBasedRoutePolicybasedroutename(); - } - - public static void syncDeletePolicyBasedRoutePolicybasedroutename() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - PolicyBasedRouteName name = - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]"); - policyBasedRoutingServiceClient.deletePolicyBasedRouteAsync(name).get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_Policybasedroutename_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRouteString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRouteString.java deleted file mode 100644 index f11380a6868b..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRouteString.java +++ /dev/null @@ -1,44 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_String_sync] -import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; -import com.google.protobuf.Empty; - -public class SyncDeletePolicyBasedRouteString { - - public static void main(String[] args) throws Exception { - syncDeletePolicyBasedRouteString(); - } - - public static void syncDeletePolicyBasedRouteString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - String name = - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]").toString(); - policyBasedRoutingServiceClient.deletePolicyBasedRouteAsync(name).get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_String_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/AsyncGetPolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/AsyncGetPolicyBasedRoute.java deleted file mode 100644 index d635942640e1..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/AsyncGetPolicyBasedRoute.java +++ /dev/null @@ -1,53 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class AsyncGetPolicyBasedRoute { - - public static void main(String[] args) throws Exception { - asyncGetPolicyBasedRoute(); - } - - public static void asyncGetPolicyBasedRoute() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - GetPolicyBasedRouteRequest request = - GetPolicyBasedRouteRequest.newBuilder() - .setName( - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") - .toString()) - .build(); - ApiFuture future = - policyBasedRoutingServiceClient.getPolicyBasedRouteCallable().futureCall(request); - // Do something. - PolicyBasedRoute response = future.get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoute.java deleted file mode 100644 index 16c3941ea7c8..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoute.java +++ /dev/null @@ -1,49 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_sync] -import com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class SyncGetPolicyBasedRoute { - - public static void main(String[] args) throws Exception { - syncGetPolicyBasedRoute(); - } - - public static void syncGetPolicyBasedRoute() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - GetPolicyBasedRouteRequest request = - GetPolicyBasedRouteRequest.newBuilder() - .setName( - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") - .toString()) - .build(); - PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(request); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoutePolicybasedroutename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoutePolicybasedroutename.java deleted file mode 100644 index dc7b9b61a3ef..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoutePolicybasedroutename.java +++ /dev/null @@ -1,44 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_Policybasedroutename_sync] -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class SyncGetPolicyBasedRoutePolicybasedroutename { - - public static void main(String[] args) throws Exception { - syncGetPolicyBasedRoutePolicybasedroutename(); - } - - public static void syncGetPolicyBasedRoutePolicybasedroutename() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - PolicyBasedRouteName name = - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]"); - PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(name); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_Policybasedroutename_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRouteString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRouteString.java deleted file mode 100644 index 46bdd59470d5..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRouteString.java +++ /dev/null @@ -1,44 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_String_sync] -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class SyncGetPolicyBasedRouteString { - - public static void main(String[] args) throws Exception { - syncGetPolicyBasedRouteString(); - } - - public static void syncGetPolicyBasedRouteString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - String name = - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]").toString(); - PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(name); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_String_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutes.java deleted file mode 100644 index eb8cc1abef51..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutes.java +++ /dev/null @@ -1,57 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest; -import com.google.cloud.networkconnectivity.v1.LocationName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class AsyncListPolicyBasedRoutes { - - public static void main(String[] args) throws Exception { - asyncListPolicyBasedRoutes(); - } - - public static void asyncListPolicyBasedRoutes() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - ListPolicyBasedRoutesRequest request = - ListPolicyBasedRoutesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .build(); - ApiFuture future = - policyBasedRoutingServiceClient.listPolicyBasedRoutesPagedCallable().futureCall(request); - // Do something. - for (PolicyBasedRoute element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutesPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutesPaged.java deleted file mode 100644 index a0c7ac9eb18b..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutesPaged.java +++ /dev/null @@ -1,65 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_Paged_async] -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest; -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse; -import com.google.cloud.networkconnectivity.v1.LocationName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; -import com.google.common.base.Strings; - -public class AsyncListPolicyBasedRoutesPaged { - - public static void main(String[] args) throws Exception { - asyncListPolicyBasedRoutesPaged(); - } - - public static void asyncListPolicyBasedRoutesPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - ListPolicyBasedRoutesRequest request = - ListPolicyBasedRoutesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .build(); - while (true) { - ListPolicyBasedRoutesResponse response = - policyBasedRoutingServiceClient.listPolicyBasedRoutesCallable().call(request); - for (PolicyBasedRoute element : response.getPolicyBasedRoutesList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_Paged_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutes.java deleted file mode 100644 index 3b39b2b51744..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutes.java +++ /dev/null @@ -1,54 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_sync] -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest; -import com.google.cloud.networkconnectivity.v1.LocationName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class SyncListPolicyBasedRoutes { - - public static void main(String[] args) throws Exception { - syncListPolicyBasedRoutes(); - } - - public static void syncListPolicyBasedRoutes() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - ListPolicyBasedRoutesRequest request = - ListPolicyBasedRoutesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .build(); - for (PolicyBasedRoute element : - policyBasedRoutingServiceClient.listPolicyBasedRoutes(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesLocationname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesLocationname.java deleted file mode 100644 index 24af9caa5beb..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesLocationname.java +++ /dev/null @@ -1,46 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_Locationname_sync] -import com.google.cloud.networkconnectivity.v1.LocationName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class SyncListPolicyBasedRoutesLocationname { - - public static void main(String[] args) throws Exception { - syncListPolicyBasedRoutesLocationname(); - } - - public static void syncListPolicyBasedRoutesLocationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (PolicyBasedRoute element : - policyBasedRoutingServiceClient.listPolicyBasedRoutes(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_Locationname_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesString.java deleted file mode 100644 index ee527aedb77a..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesString.java +++ /dev/null @@ -1,46 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_String_sync] -import com.google.cloud.networkconnectivity.v1.LocationName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class SyncListPolicyBasedRoutesString { - - public static void main(String[] args) throws Exception { - syncListPolicyBasedRoutesString(); - } - - public static void syncListPolicyBasedRoutesString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - for (PolicyBasedRoute element : - policyBasedRoutingServiceClient.listPolicyBasedRoutes(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_String_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservicesettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservicesettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java deleted file mode 100644 index d48c4e1b12c2..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservicesettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java +++ /dev/null @@ -1,50 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingServiceSettings_GetPolicyBasedRoute_sync] -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceSettings; -import java.time.Duration; - -public class SyncGetPolicyBasedRoute { - - public static void main(String[] args) throws Exception { - syncGetPolicyBasedRoute(); - } - - public static void syncGetPolicyBasedRoute() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PolicyBasedRoutingServiceSettings.Builder policyBasedRoutingServiceSettingsBuilder = - PolicyBasedRoutingServiceSettings.newBuilder(); - policyBasedRoutingServiceSettingsBuilder - .getPolicyBasedRouteSettings() - .setRetrySettings( - policyBasedRoutingServiceSettingsBuilder - .getPolicyBasedRouteSettings() - .getRetrySettings() - .toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - PolicyBasedRoutingServiceSettings policyBasedRoutingServiceSettings = - policyBasedRoutingServiceSettingsBuilder.build(); - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingServiceSettings_GetPolicyBasedRoute_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/policybasedroutingservicestubsettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/policybasedroutingservicestubsettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java deleted file mode 100644 index 7a68c4310f48..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/policybasedroutingservicestubsettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java +++ /dev/null @@ -1,50 +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.networkconnectivity.v1.stub.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingServiceStubSettings_GetPolicyBasedRoute_sync] -import com.google.cloud.networkconnectivity.v1.stub.PolicyBasedRoutingServiceStubSettings; -import java.time.Duration; - -public class SyncGetPolicyBasedRoute { - - public static void main(String[] args) throws Exception { - syncGetPolicyBasedRoute(); - } - - public static void syncGetPolicyBasedRoute() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PolicyBasedRoutingServiceStubSettings.Builder policyBasedRoutingServiceSettingsBuilder = - PolicyBasedRoutingServiceStubSettings.newBuilder(); - policyBasedRoutingServiceSettingsBuilder - .getPolicyBasedRouteSettings() - .setRetrySettings( - policyBasedRoutingServiceSettingsBuilder - .getPolicyBasedRouteSettings() - .getRetrySettings() - .toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - PolicyBasedRoutingServiceStubSettings policyBasedRoutingServiceSettings = - policyBasedRoutingServiceSettingsBuilder.build(); - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingServiceStubSettings_GetPolicyBasedRoute_sync] diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java similarity index 95% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java index 1cec02a56527..efc7947c9a9a 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java @@ -176,7 +176,7 @@ public final OperationsClient getOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the Network Connectivity Center hubs associated with a given project. + * Lists hubs in a given project. * *

Sample code: * @@ -205,7 +205,7 @@ public final ListHubsPagedResponse listHubs(LocationName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the Network Connectivity Center hubs associated with a given project. + * Lists hubs in a given project. * *

Sample code: * @@ -233,7 +233,7 @@ public final ListHubsPagedResponse listHubs(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the Network Connectivity Center hubs associated with a given project. + * Lists hubs in a given project. * *

Sample code: * @@ -267,7 +267,7 @@ public final ListHubsPagedResponse listHubs(ListHubsRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the Network Connectivity Center hubs associated with a given project. + * Lists hubs in a given project. * *

Sample code: * @@ -300,7 +300,7 @@ public final UnaryCallable listHubsPaged // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the Network Connectivity Center hubs associated with a given project. + * Lists hubs in a given project. * *

Sample code: * @@ -340,7 +340,7 @@ public final UnaryCallable listHubsCallable() // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details about a Network Connectivity Center hub. + * Gets details about the specified hub. * *

Sample code: * @@ -367,7 +367,7 @@ public final Hub getHub(HubName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details about a Network Connectivity Center hub. + * Gets details about the specified hub. * *

Sample code: * @@ -393,7 +393,7 @@ public final Hub getHub(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details about a Network Connectivity Center hub. + * Gets details about the specified hub. * *

Sample code: * @@ -419,7 +419,7 @@ public final Hub getHub(GetHubRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details about a Network Connectivity Center hub. + * Gets details about the specified hub. * *

Sample code: * @@ -444,7 +444,7 @@ public final UnaryCallable getHubCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Network Connectivity Center hub in the specified project. + * Creates a new hub in the specified project. * *

Sample code: * @@ -480,7 +480,7 @@ public final OperationFuture createHubAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Network Connectivity Center hub in the specified project. + * Creates a new hub in the specified project. * *

Sample code: * @@ -512,7 +512,7 @@ public final OperationFuture createHubAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Network Connectivity Center hub in the specified project. + * Creates a new hub in the specified project. * *

Sample code: * @@ -543,7 +543,7 @@ public final OperationFuture createHubAsync(CreateHubReq // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Network Connectivity Center hub in the specified project. + * Creates a new hub in the specified project. * *

Sample code: * @@ -575,7 +575,7 @@ public final OperationFuture createHubAsync(CreateHubReq // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Network Connectivity Center hub in the specified project. + * Creates a new hub in the specified project. * *

Sample code: * @@ -605,7 +605,7 @@ public final UnaryCallable createHubCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the description and/or labels of a Network Connectivity Center hub. + * Updates the description and/or labels of the specified hub. * *

Sample code: * @@ -638,7 +638,7 @@ public final OperationFuture updateHubAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the description and/or labels of a Network Connectivity Center hub. + * Updates the description and/or labels of the specified hub. * *

Sample code: * @@ -668,7 +668,7 @@ public final OperationFuture updateHubAsync(UpdateHubReq // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the description and/or labels of a Network Connectivity Center hub. + * Updates the description and/or labels of the specified hub. * *

Sample code: * @@ -699,7 +699,7 @@ public final OperationFuture updateHubAsync(UpdateHubReq // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the description and/or labels of a Network Connectivity Center hub. + * Updates the description and/or labels of the specified hub. * *

Sample code: * @@ -728,7 +728,7 @@ public final UnaryCallable updateHubCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Network Connectivity Center hub. + * Deletes the specified hub. * *

Sample code: * @@ -755,7 +755,7 @@ public final OperationFuture deleteHubAsync(HubName na // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Network Connectivity Center hub. + * Deletes the specified hub. * *

Sample code: * @@ -781,7 +781,7 @@ public final OperationFuture deleteHubAsync(String nam // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Network Connectivity Center hub. + * Deletes the specified hub. * *

Sample code: * @@ -810,7 +810,7 @@ public final OperationFuture deleteHubAsync(DeleteHubR // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Network Connectivity Center hub. + * Deletes the specified hub. * *

Sample code: * @@ -840,7 +840,7 @@ public final OperationFuture deleteHubAsync(DeleteHubR // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Network Connectivity Center hub. + * Deletes the specified hub. * *

Sample code: * @@ -868,7 +868,7 @@ public final UnaryCallable deleteHubCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the Network Connectivity Center spokes in a specified project and location. + * Lists the spokes in the specified project and location. * *

Sample code: * @@ -897,7 +897,7 @@ public final ListSpokesPagedResponse listSpokes(LocationName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the Network Connectivity Center spokes in a specified project and location. + * Lists the spokes in the specified project and location. * *

Sample code: * @@ -925,7 +925,7 @@ public final ListSpokesPagedResponse listSpokes(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the Network Connectivity Center spokes in a specified project and location. + * Lists the spokes in the specified project and location. * *

Sample code: * @@ -959,7 +959,7 @@ public final ListSpokesPagedResponse listSpokes(ListSpokesRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the Network Connectivity Center spokes in a specified project and location. + * Lists the spokes in the specified project and location. * *

Sample code: * @@ -992,7 +992,7 @@ public final UnaryCallable listSpoke // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the Network Connectivity Center spokes in a specified project and location. + * Lists the spokes in the specified project and location. * *

Sample code: * @@ -1032,7 +1032,7 @@ public final UnaryCallable listSpokesCall // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details about a Network Connectivity Center spoke. + * Gets details about the specified spoke. * *

Sample code: * @@ -1059,7 +1059,7 @@ public final Spoke getSpoke(SpokeName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details about a Network Connectivity Center spoke. + * Gets details about the specified spoke. * *

Sample code: * @@ -1085,7 +1085,7 @@ public final Spoke getSpoke(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details about a Network Connectivity Center spoke. + * Gets details about the specified spoke. * *

Sample code: * @@ -1113,7 +1113,7 @@ public final Spoke getSpoke(GetSpokeRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details about a Network Connectivity Center spoke. + * Gets details about the specified spoke. * *

Sample code: * @@ -1140,7 +1140,7 @@ public final UnaryCallable getSpokeCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a Network Connectivity Center spoke. + * Creates a spoke in the specified project and location. * *

Sample code: * @@ -1176,7 +1176,7 @@ public final OperationFuture createSpokeAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a Network Connectivity Center spoke. + * Creates a spoke in the specified project and location. * *

Sample code: * @@ -1212,7 +1212,7 @@ public final OperationFuture createSpokeAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a Network Connectivity Center spoke. + * Creates a spoke in the specified project and location. * *

Sample code: * @@ -1244,7 +1244,7 @@ public final OperationFuture createSpokeAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a Network Connectivity Center spoke. + * Creates a spoke in the specified project and location. * *

Sample code: * @@ -1276,7 +1276,7 @@ public final OperationFuture createSpokeAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a Network Connectivity Center spoke. + * Creates a spoke in the specified project and location. * *

Sample code: * @@ -1306,7 +1306,7 @@ public final UnaryCallable createSpokeCallable() // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a Network Connectivity Center spoke. + * Updates the parameters of the specified spoke. * *

Sample code: * @@ -1339,7 +1339,7 @@ public final OperationFuture updateSpokeAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a Network Connectivity Center spoke. + * Updates the parameters of the specified spoke. * *

Sample code: * @@ -1370,7 +1370,7 @@ public final OperationFuture updateSpokeAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a Network Connectivity Center spoke. + * Updates the parameters of the specified spoke. * *

Sample code: * @@ -1401,7 +1401,7 @@ public final OperationFuture updateSpokeAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a Network Connectivity Center spoke. + * Updates the parameters of the specified spoke. * *

Sample code: * @@ -1430,7 +1430,7 @@ public final UnaryCallable updateSpokeCallable() // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Network Connectivity Center spoke. + * Deletes the specified spoke. * *

Sample code: * @@ -1457,7 +1457,7 @@ public final OperationFuture deleteSpokeAsync(SpokeNam // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Network Connectivity Center spoke. + * Deletes the specified spoke. * *

Sample code: * @@ -1483,7 +1483,7 @@ public final OperationFuture deleteSpokeAsync(String n // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Network Connectivity Center spoke. + * Deletes the specified spoke. * *

Sample code: * @@ -1513,7 +1513,7 @@ public final OperationFuture deleteSpokeAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Network Connectivity Center spoke. + * Deletes the specified spoke. * *

Sample code: * @@ -1543,7 +1543,7 @@ public final OperationFuture deleteSpokeAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Network Connectivity Center spoke. + * Deletes the specified spoke. * *

Sample code: * diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java similarity index 99% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java index 8602b8d3a73f..0f54d6e73b8d 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.networkconnectivity.v1.stub.HubServiceStubSettings; diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json similarity index 64% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json index c2a68318d1b1..466ca6374aa6 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json @@ -43,27 +43,6 @@ } } } - }, - "PolicyBasedRoutingService": { - "clients": { - "grpc": { - "libraryClient": "PolicyBasedRoutingServiceClient", - "rpcs": { - "CreatePolicyBasedRoute": { - "methods": ["createPolicyBasedRouteAsync", "createPolicyBasedRouteAsync", "createPolicyBasedRouteAsync", "createPolicyBasedRouteOperationCallable", "createPolicyBasedRouteCallable"] - }, - "DeletePolicyBasedRoute": { - "methods": ["deletePolicyBasedRouteAsync", "deletePolicyBasedRouteAsync", "deletePolicyBasedRouteAsync", "deletePolicyBasedRouteOperationCallable", "deletePolicyBasedRouteCallable"] - }, - "GetPolicyBasedRoute": { - "methods": ["getPolicyBasedRoute", "getPolicyBasedRoute", "getPolicyBasedRoute", "getPolicyBasedRouteCallable"] - }, - "ListPolicyBasedRoutes": { - "methods": ["listPolicyBasedRoutes", "listPolicyBasedRoutes", "listPolicyBasedRoutes", "listPolicyBasedRoutesPagedCallable", "listPolicyBasedRoutesCallable"] - } - } - } - } } } } \ No newline at end of file diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java similarity index 62% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java index daeb8017fa34..0aa0afcf4e1a 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java @@ -38,27 +38,6 @@ * Hub response = hubServiceClient.getHub(name); * } * } - * - *

======================= PolicyBasedRoutingServiceClient ======================= - * - *

Service Description: Policy-Based Routing allows GCP customers to specify flexibile routing - * policies for Layer 4 traffic traversing through the connected service. - * - *

Sample for PolicyBasedRoutingServiceClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
- *     PolicyBasedRoutingServiceClient.create()) {
- *   PolicyBasedRouteName name =
- *       PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]");
- *   PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(name);
- * }
- * }
*/ @Generated("by gapic-generator-java") package com.google.cloud.networkconnectivity.v1; diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java similarity index 99% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java index 91b811c5fc87..a4c973ff1360 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java @@ -48,6 +48,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java b/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java new file mode 100644 index 000000000000..bbd7409c5e31 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java @@ -0,0 +1,1087 @@ +package com.google.cloud.networkconnectivity.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Network Connectivity Center is a hub-and-spoke abstraction for network
+ * connectivity management in Google Cloud. It reduces operational complexity
+ * through a simple, centralized connectivity management model.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networkconnectivity/v1/hub.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class HubServiceGrpc { + + private HubServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1.HubService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListHubsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListHubs", + requestType = com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListHubsMethod() { + io.grpc.MethodDescriptor getListHubsMethod; + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + HubServiceGrpc.getListHubsMethod = getListHubsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListHubsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListHubsResponse.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) + .build(); + } + } + } + return getListHubsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetHub", + requestType = com.google.cloud.networkconnectivity.v1.GetHubRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.Hub.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetHubMethod() { + io.grpc.MethodDescriptor getGetHubMethod; + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + HubServiceGrpc.getGetHubMethod = getGetHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.GetHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) + .build(); + } + } + } + return getGetHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateHub", + requestType = com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateHubMethod() { + io.grpc.MethodDescriptor getCreateHubMethod; + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + HubServiceGrpc.getCreateHubMethod = getCreateHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.CreateHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) + .build(); + } + } + } + return getCreateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateHub", + requestType = com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateHubMethod() { + io.grpc.MethodDescriptor getUpdateHubMethod; + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + HubServiceGrpc.getUpdateHubMethod = getUpdateHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) + .build(); + } + } + } + return getUpdateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteHub", + requestType = com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteHubMethod() { + io.grpc.MethodDescriptor getDeleteHubMethod; + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + HubServiceGrpc.getDeleteHubMethod = getDeleteHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) + .build(); + } + } + } + return getDeleteHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSpokesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSpokes", + requestType = com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSpokesMethod() { + io.grpc.MethodDescriptor getListSpokesMethod; + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + HubServiceGrpc.getListSpokesMethod = getListSpokesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListSpokesResponse.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) + .build(); + } + } + } + return getListSpokesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSpoke", + requestType = com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.Spoke.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSpokeMethod() { + io.grpc.MethodDescriptor getGetSpokeMethod; + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + HubServiceGrpc.getGetSpokeMethod = getGetSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) + .build(); + } + } + } + return getGetSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", + requestType = com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSpokeMethod() { + io.grpc.MethodDescriptor getCreateSpokeMethod; + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + HubServiceGrpc.getCreateSpokeMethod = getCreateSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) + .build(); + } + } + } + return getCreateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", + requestType = com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSpokeMethod() { + io.grpc.MethodDescriptor getUpdateSpokeMethod; + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + HubServiceGrpc.getUpdateSpokeMethod = getUpdateSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) + .build(); + } + } + } + return getUpdateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", + requestType = com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSpokeMethod() { + io.grpc.MethodDescriptor getDeleteSpokeMethod; + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + HubServiceGrpc.getDeleteSpokeMethod = getDeleteSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) + .build(); + } + } + } + return getDeleteSpokeMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static HubServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + }; + return HubServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static HubServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + }; + return HubServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static HubServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + }; + return HubServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static abstract class HubServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists hubs in a given project.
+     * 
+ */ + public void listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); + } + + /** + *
+     * Gets details about the specified hub.
+     * 
+ */ + public void getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); + } + + /** + *
+     * Creates a new hub in the specified project.
+     * 
+ */ + public void createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); + } + + /** + *
+     * Updates the description and/or labels of the specified hub.
+     * 
+ */ + public void updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified hub.
+     * 
+ */ + public void deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); + } + + /** + *
+     * Lists the spokes in the specified project and location.
+     * 
+ */ + public void listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); + } + + /** + *
+     * Gets details about the specified spoke.
+     * 
+ */ + public void getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); + } + + /** + *
+     * Creates a spoke in the specified project and location.
+     * 
+ */ + public void createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSpokeMethod(), responseObserver); + } + + /** + *
+     * Updates the parameters of the specified spoke.
+     * 
+ */ + public void updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSpokeMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified spoke.
+     * 
+ */ + public void deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSpokeMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListHubsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1.ListHubsResponse>( + this, METHODID_LIST_HUBS))) + .addMethod( + getGetHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.GetHubRequest, + com.google.cloud.networkconnectivity.v1.Hub>( + this, METHODID_GET_HUB))) + .addMethod( + getCreateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.CreateHubRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_HUB))) + .addMethod( + getUpdateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.UpdateHubRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_HUB))) + .addMethod( + getDeleteHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.DeleteHubRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_HUB))) + .addMethod( + getListSpokesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1.ListSpokesResponse>( + this, METHODID_LIST_SPOKES))) + .addMethod( + getGetSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1.Spoke>( + this, METHODID_GET_SPOKE))) + .addMethod( + getCreateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_SPOKE))) + .addMethod( + getUpdateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_SPOKE))) + .addMethod( + getDeleteSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_SPOKE))) + .build(); + } + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { + private HubServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + + /** + *
+     * Lists hubs in a given project.
+     * 
+ */ + public void listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details about the specified hub.
+     * 
+ */ + public void getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new hub in the specified project.
+     * 
+ */ + public void createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the description and/or labels of the specified hub.
+     * 
+ */ + public void updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified hub.
+     * 
+ */ + public void deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the spokes in the specified project and location.
+     * 
+ */ + public void listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details about the specified spoke.
+     * 
+ */ + public void getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a spoke in the specified project and location.
+     * 
+ */ + public void createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the parameters of the specified spoke.
+     * 
+ */ + public void updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified spoke.
+     * 
+ */ + public void deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static final class HubServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private HubServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists hubs in a given project.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.ListHubsResponse listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListHubsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details about the specified hub.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.Hub getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new hub in the specified project.
+     * 
+ */ + public com.google.longrunning.Operation createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the description and/or labels of the specified hub.
+     * 
+ */ + public com.google.longrunning.Operation updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified hub.
+     * 
+ */ + public com.google.longrunning.Operation deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists the spokes in the specified project and location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.ListSpokesResponse listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSpokesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details about the specified spoke.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.Spoke getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSpokeMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a spoke in the specified project and location.
+     * 
+ */ + public com.google.longrunning.Operation createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSpokeMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the parameters of the specified spoke.
+     * 
+ */ + public com.google.longrunning.Operation updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified spoke.
+     * 
+ */ + public com.google.longrunning.Operation deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static final class HubServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private HubServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Lists hubs in a given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listHubs( + com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details about the specified hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getHub( + com.google.cloud.networkconnectivity.v1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new hub in the specified project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createHub( + com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the description and/or labels of the specified hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateHub( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteHub( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists the spokes in the specified project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSpokes( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details about the specified spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSpoke( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a spoke in the specified project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSpoke( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the parameters of the specified spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSpoke( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSpoke( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_HUBS = 0; + private static final int METHODID_GET_HUB = 1; + private static final int METHODID_CREATE_HUB = 2; + private static final int METHODID_UPDATE_HUB = 3; + private static final int METHODID_DELETE_HUB = 4; + private static final int METHODID_LIST_SPOKES = 5; + private static final int METHODID_GET_SPOKE = 6; + private static final int METHODID_CREATE_SPOKE = 7; + private static final int METHODID_UPDATE_SPOKE = 8; + private static final int METHODID_DELETE_SPOKE = 9; + + 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 HubServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(HubServiceImplBase 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_HUBS: + serviceImpl.listHubs((com.google.cloud.networkconnectivity.v1.ListHubsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_HUB: + serviceImpl.getHub((com.google.cloud.networkconnectivity.v1.GetHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_HUB: + serviceImpl.createHub((com.google.cloud.networkconnectivity.v1.CreateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_HUB: + serviceImpl.updateHub((com.google.cloud.networkconnectivity.v1.UpdateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_HUB: + serviceImpl.deleteHub((com.google.cloud.networkconnectivity.v1.DeleteHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SPOKES: + serviceImpl.listSpokes((com.google.cloud.networkconnectivity.v1.ListSpokesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SPOKE: + serviceImpl.getSpoke((com.google.cloud.networkconnectivity.v1.GetSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SPOKE: + serviceImpl.createSpoke((com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SPOKE: + serviceImpl.updateSpoke((com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SPOKE: + serviceImpl.deleteSpoke((com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + HubServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("HubService"); + } + } + + private static final class HubServiceFileDescriptorSupplier + extends HubServiceBaseDescriptorSupplier { + HubServiceFileDescriptorSupplier() {} + } + + private static final class HubServiceMethodDescriptorSupplier + extends HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) + .addMethod(getListHubsMethod()) + .addMethod(getGetHubMethod()) + .addMethod(getCreateHubMethod()) + .addMethod(getUpdateHubMethod()) + .addMethod(getDeleteHubMethod()) + .addMethod(getListSpokesMethod()) + .addMethod(getGetSpokeMethod()) + .addMethod(getCreateSpokeMethod()) + .addMethod(getUpdateSpokeMethod()) + .addMethod(getDeleteSpokeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java new file mode 100644 index 000000000000..4b78603a39ae --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java @@ -0,0 +1,72 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/common.proto + +package com.google.cloud.networkconnectivity.v1; + +public final class CommonProto { + private CommonProto() {} + 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_networkconnectivity_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/networkconnectivity/v1/co" + + "mmon.proto\022#google.cloud.networkconnecti" + + "vity.v1\032\037google/api/field_behavior.proto" + + "\032\037google/protobuf/timestamp.proto\"\200\002\n\021Op" + + "erationMetadata\0224\n\013create_time\030\001 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\0221\n\010end_tim" + + "e\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\026request" + + "ed_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_versio" + + "n\030\007 \001(\tB\003\340A\003B\205\002\n\'com.google.cloud.networ" + + "kconnectivity.v1B\013CommonProtoP\001ZVgoogle." + + "golang.org/genproto/googleapis/cloud/net" + + "workconnectivity/v1;networkconnectivity\252" + + "\002#Google.Cloud.NetworkConnectivity.V1\312\002#" + + "Google\\Cloud\\NetworkConnectivity\\V1\352\002&Go" + + "ogle::Cloud::NetworkConnectivity::V1b\006pr" + + "oto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java similarity index 64% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java index 4ed8eff83002..7431c28ad1b1 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java @@ -1,44 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * Request for
- * [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub]
- * method.
+ * Request for [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateHubRequest} */ -public final class CreateHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.CreateHubRequest) CreateHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateHubRequest.newBuilder() to construct. private CreateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateHubRequest() { parent_ = ""; hubId_ = ""; @@ -47,45 +27,38 @@ private CreateHubRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, - com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 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 @@ -94,31 +67,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 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 { @@ -127,18 +98,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int HUB_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object hubId_ = ""; /** - * - * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hubId. */ @java.lang.Override @@ -147,29 +114,29 @@ public java.lang.String getHubId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; } } /** - * - * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hubId. */ @java.lang.Override - public com.google.protobuf.ByteString getHubIdBytes() { + public com.google.protobuf.ByteString + getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hubId_ = b; return b; } else { @@ -180,16 +147,11 @@ public com.google.protobuf.ByteString getHubIdBytes() { public static final int HUB_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1.Hub hub_; /** - * - * *
    * Required. The initial values for a new hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ @java.lang.Override @@ -197,16 +159,11 @@ public boolean hasHub() { return hub_ != null; } /** - * - * *
    * Required. The initial values for a new hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ @java.lang.Override @@ -214,15 +171,11 @@ public com.google.cloud.networkconnectivity.v1.Hub getHub() { return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } /** - * - * *
    * Required. The initial values for a new hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { @@ -230,18 +183,15 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -252,7 +202,6 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -261,21 +210,20 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -286,15 +234,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -303,7 +252,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,7 +263,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -344,7 +293,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hubId_); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHub()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -357,21 +307,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.networkconnectivity.v1.CreateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.CreateHubRequest other = - (com.google.cloud.networkconnectivity.v1.CreateHubRequest) obj; + com.google.cloud.networkconnectivity.v1.CreateHubRequest other = (com.google.cloud.networkconnectivity.v1.CreateHubRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getHubId().equals(other.getHubId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getHubId() + .equals(other.getHubId())) return false; if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub().equals(other.getHub())) return false; + if (!getHub() + .equals(other.getHub())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -399,138 +352,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.CreateHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.CreateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
-   * [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub]
-   * method.
+   * Request for [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.CreateHubRequest) com.google.cloud.networkconnectivity.v1.CreateHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, - com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.CreateHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -547,9 +491,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; } @java.lang.Override @@ -568,11 +512,8 @@ public com.google.cloud.networkconnectivity.v1.CreateHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.CreateHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.CreateHubRequest result = - new com.google.cloud.networkconnectivity.v1.CreateHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.CreateHubRequest result = new com.google.cloud.networkconnectivity.v1.CreateHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -586,7 +527,9 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateHubRequ result.hubId_ = hubId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build(); + result.hub_ = hubBuilder_ == null + ? hub_ + : hubBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -597,39 +540,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateHubRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.CreateHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateHubRequest)other); } else { super.mergeFrom(other); return this; @@ -637,8 +579,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.CreateHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.CreateHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.CreateHubRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -683,37 +624,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - hubId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + hubId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getHubFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -723,27 +661,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string parent = 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; @@ -752,23 +685,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string parent = 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 { @@ -776,39 +706,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string 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() { @@ -818,23 +737,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -844,20 +757,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object hubId_ = ""; /** - * - * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hubId. */ public java.lang.String getHubId() { java.lang.Object ref = hubId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; @@ -866,21 +777,20 @@ public java.lang.String getHubId() { } } /** - * - * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hubId. */ - public com.google.protobuf.ByteString getHubIdBytes() { + public com.google.protobuf.ByteString + getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hubId_ = b; return b; } else { @@ -888,35 +798,28 @@ public com.google.protobuf.ByteString getHubIdBytes() { } } /** - * - * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The hubId to set. * @return This builder for chaining. */ - public Builder setHubId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHubId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hubId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearHubId() { @@ -926,21 +829,17 @@ public Builder clearHubId() { return this; } /** - * - * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for hubId to set. * @return This builder for chaining. */ - public Builder setHubIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHubIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hubId_ = value; bitField0_ |= 0x00000002; @@ -950,58 +849,39 @@ public Builder setHubIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networkconnectivity.v1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder> - hubBuilder_; + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> hubBuilder_; /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ public com.google.cloud.networkconnectivity.v1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } else { return hubBuilder_.getMessage(); } } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { @@ -1017,17 +897,14 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { + public Builder setHub( + com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { if (hubBuilder_ == null) { hub_ = builderForValue.build(); } else { @@ -1038,21 +915,17 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub.Builder builde return this; } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && hub_ != null - && hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + hub_ != null && + hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -1065,15 +938,11 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1086,15 +955,11 @@ public Builder clearHub() { return this; } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000004; @@ -1102,48 +967,36 @@ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { return getHubFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? + com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder>( - getHub(), getParentForChildren(), isClean()); + hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder>( + getHub(), + getParentForChildren(), + isClean()); hub_ = null; } return hubBuilder_; @@ -1151,14 +1004,12 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1169,13 +1020,13 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1184,14 +1035,12 @@ public java.lang.String getRequestId() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1202,14 +1051,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1217,14 +1067,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1235,28 +1083,24 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1267,7 +1111,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1277,14 +1120,12 @@ public Builder clearRequestId() { return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1295,23 +1136,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1321,12 +1160,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.CreateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.CreateHubRequest) private static final com.google.cloud.networkconnectivity.v1.CreateHubRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.CreateHubRequest(); } @@ -1335,27 +1174,27 @@ public static com.google.cloud.networkconnectivity.v1.CreateHubRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1370,4 +1209,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.CreateHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java similarity index 58% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java index 1147de9a80e2..36f4ab8728ec 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java @@ -1,132 +1,86 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface CreateHubRequestOrBuilder - extends +public interface CreateHubRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.CreateHubRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hubId. */ java.lang.String getHubId(); /** - * - * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hubId. */ - com.google.protobuf.ByteString getHubIdBytes(); + com.google.protobuf.ByteString + getHubIdBytes(); /** - * - * *
    * Required. The initial values for a new hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ boolean hasHub(); /** - * - * *
    * Required. The initial values for a new hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ com.google.cloud.networkconnectivity.v1.Hub getHub(); /** - * - * *
    * Required. The initial values for a new hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -137,19 +91,16 @@ public interface CreateHubRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -160,8 +111,8 @@ public interface CreateHubRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java similarity index 63% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java index 873790ebef0c..dbbdb408180c 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * The request for
- * [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke].
+ * The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateSpokeRequest} */ -public final class CreateSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.CreateSpokeRequest) CreateSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSpokeRequest.newBuilder() to construct. private CreateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSpokeRequest() { parent_ = ""; spokeId_ = ""; @@ -46,45 +27,38 @@ private CreateSpokeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 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 @@ -93,31 +67,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 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 { @@ -126,18 +98,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SPOKE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object spokeId_ = ""; /** - * - * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The spokeId. */ @java.lang.Override @@ -146,29 +114,29 @@ public java.lang.String getSpokeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; } } /** - * - * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for spokeId. */ @java.lang.Override - public com.google.protobuf.ByteString getSpokeIdBytes() { + public com.google.protobuf.ByteString + getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); spokeId_ = b; return b; } else { @@ -179,16 +147,11 @@ public com.google.protobuf.ByteString getSpokeIdBytes() { public static final int SPOKE_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1.Spoke spoke_; /** - * - * *
    * Required. The initial values for a new spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ @java.lang.Override @@ -196,55 +159,39 @@ public boolean hasSpoke() { return spoke_ != null; } /** - * - * *
    * Required. The initial values for a new spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } /** - * - * *
    * Required. The initial values for a new spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -255,7 +202,6 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -264,21 +210,20 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -289,15 +234,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -306,7 +252,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -318,7 +263,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -347,7 +293,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, spokeId_); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSpoke()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -360,21 +307,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.networkconnectivity.v1.CreateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest other = - (com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest other = (com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getSpokeId().equals(other.getSpokeId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getSpokeId() + .equals(other.getSpokeId())) return false; if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke().equals(other.getSpoke())) return false; + if (!getSpoke() + .equals(other.getSpoke())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -402,137 +352,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * The request for
-   * [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke].
+   * The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.CreateSpokeRequest) com.google.cloud.networkconnectivity.v1.CreateSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -549,9 +491,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; } @java.lang.Override @@ -570,11 +512,8 @@ public com.google.cloud.networkconnectivity.v1.CreateSpokeRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.CreateSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest result = - new com.google.cloud.networkconnectivity.v1.CreateSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest result = new com.google.cloud.networkconnectivity.v1.CreateSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -588,7 +527,9 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateSpokeRe result.spokeId_ = spokeId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build(); + result.spoke_ = spokeBuilder_ == null + ? spoke_ + : spokeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -599,39 +540,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateSpokeRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateSpokeRequest)other); } else { super.mergeFrom(other); return this; @@ -639,8 +579,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -685,37 +624,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - spokeId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + spokeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getSpokeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -725,27 +661,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string parent = 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; @@ -754,23 +685,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string parent = 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 { @@ -778,39 +706,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string 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() { @@ -820,23 +737,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -846,20 +757,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object spokeId_ = ""; /** - * - * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The spokeId. */ public java.lang.String getSpokeId() { java.lang.Object ref = spokeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; @@ -868,21 +777,20 @@ public java.lang.String getSpokeId() { } } /** - * - * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for spokeId. */ - public com.google.protobuf.ByteString getSpokeIdBytes() { + public com.google.protobuf.ByteString + getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); spokeId_ = b; return b; } else { @@ -890,35 +798,28 @@ public com.google.protobuf.ByteString getSpokeIdBytes() { } } /** - * - * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpokeId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } spokeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSpokeId() { @@ -928,21 +829,17 @@ public Builder clearSpokeId() { return this; } /** - * - * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpokeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); spokeId_ = value; bitField0_ |= 0x00000002; @@ -952,58 +849,39 @@ public Builder setSpokeIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networkconnectivity.v1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> - spokeBuilder_; + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> spokeBuilder_; /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } else { return spokeBuilder_.getMessage(); } } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { @@ -1019,17 +897,14 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { + public Builder setSpoke( + com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { if (spokeBuilder_ == null) { spoke_ = builderForValue.build(); } else { @@ -1040,21 +915,17 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke.Builder bu return this; } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && spoke_ != null - && spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + spoke_ != null && + spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -1067,15 +938,11 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1088,15 +955,11 @@ public Builder clearSpoke() { return this; } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000004; @@ -1104,48 +967,36 @@ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { return getSpokeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? + com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( - getSpoke(), getParentForChildren(), isClean()); + spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( + getSpoke(), + getParentForChildren(), + isClean()); spoke_ = null; } return spokeBuilder_; @@ -1153,14 +1004,12 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder( private java.lang.Object requestId_ = ""; /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1171,13 +1020,13 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1186,14 +1035,12 @@ public java.lang.String getRequestId() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1204,14 +1051,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1219,14 +1067,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1237,28 +1083,24 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1269,7 +1111,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1279,14 +1120,12 @@ public Builder clearRequestId() { return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1297,23 +1136,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1323,12 +1160,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.CreateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.CreateSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.CreateSpokeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.CreateSpokeRequest(); } @@ -1337,27 +1174,27 @@ public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1372,4 +1209,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.CreateSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java similarity index 58% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java index 338f9447116a..6425ab22bdf2 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java @@ -1,132 +1,86 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface CreateSpokeRequestOrBuilder - extends +public interface CreateSpokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.CreateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The spokeId. */ java.lang.String getSpokeId(); /** - * - * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for spokeId. */ - com.google.protobuf.ByteString getSpokeIdBytes(); + com.google.protobuf.ByteString + getSpokeIdBytes(); /** - * - * *
    * Required. The initial values for a new spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ boolean hasSpoke(); /** - * - * *
    * Required. The initial values for a new spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ com.google.cloud.networkconnectivity.v1.Spoke getSpoke(); /** - * - * *
    * Required. The initial values for a new spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -137,19 +91,16 @@ public interface CreateSpokeRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -160,8 +111,8 @@ public interface CreateSpokeRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java similarity index 64% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java index a28e0d689c24..139a72b86337 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * The request for
- * [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub].
+ * The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteHubRequest} */ -public final class DeleteHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.DeleteHubRequest) DeleteHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteHubRequest.newBuilder() to construct. private DeleteHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteHubRequest() { name_ = ""; requestId_ = ""; @@ -45,45 +26,38 @@ private DeleteHubRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, - com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,31 +66,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,18 +97,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -147,7 +116,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -156,21 +124,20 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -181,15 +148,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -198,7 +166,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +177,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -240,16 +208,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.networkconnectivity.v1.DeleteHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.DeleteHubRequest other = - (com.google.cloud.networkconnectivity.v1.DeleteHubRequest) obj; + com.google.cloud.networkconnectivity.v1.DeleteHubRequest other = (com.google.cloud.networkconnectivity.v1.DeleteHubRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -271,137 +240,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.DeleteHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * The request for
-   * [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub].
+   * The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.DeleteHubRequest) com.google.cloud.networkconnectivity.v1.DeleteHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, - com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.DeleteHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +373,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; } @java.lang.Override @@ -433,11 +394,8 @@ public com.google.cloud.networkconnectivity.v1.DeleteHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.DeleteHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.DeleteHubRequest result = - new com.google.cloud.networkconnectivity.v1.DeleteHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.DeleteHubRequest result = new com.google.cloud.networkconnectivity.v1.DeleteHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -456,39 +414,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.DeleteHubRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.DeleteHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteHubRequest)other); } else { super.mergeFrom(other); return this; @@ -496,8 +453,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.DeleteHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.DeleteHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.DeleteHubRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -534,25 +490,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -562,27 +515,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -591,23 +539,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -615,39 +560,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -657,23 +591,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -683,14 +611,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -701,13 +627,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -716,14 +642,12 @@ public java.lang.String getRequestId() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -734,14 +658,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -749,14 +674,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -767,28 +690,24 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -799,7 +718,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -809,14 +727,12 @@ public Builder clearRequestId() { return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -827,23 +743,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -853,12 +767,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.DeleteHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.DeleteHubRequest) private static final com.google.cloud.networkconnectivity.v1.DeleteHubRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.DeleteHubRequest(); } @@ -867,27 +781,27 @@ public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -902,4 +816,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.DeleteHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java similarity index 55% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java index 3a53452ec2c6..58c0eaa76c8b 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java @@ -1,66 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface DeleteHubRequestOrBuilder - extends +public interface DeleteHubRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.DeleteHubRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -71,19 +44,16 @@ public interface DeleteHubRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -94,8 +64,8 @@ public interface DeleteHubRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java similarity index 64% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java index d78f1befbd1a..01a4aea32908 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * The request for
- * [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke].
+ * The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteSpokeRequest} */ -public final class DeleteSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) DeleteSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteSpokeRequest.newBuilder() to construct. private DeleteSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteSpokeRequest() { name_ = ""; requestId_ = ""; @@ -45,45 +26,38 @@ private DeleteSpokeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,31 +66,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,18 +97,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -147,7 +116,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -156,21 +124,20 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -181,15 +148,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -198,7 +166,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +177,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -240,16 +208,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.networkconnectivity.v1.DeleteSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest other = - (com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest other = (com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -271,137 +240,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * The request for
-   * [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke].
+   * The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) com.google.cloud.networkconnectivity.v1.DeleteSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +373,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; } @java.lang.Override @@ -433,11 +394,8 @@ public com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest result = - new com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest result = new com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -456,39 +414,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.DeleteSpokeRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest)other); } else { super.mergeFrom(other); return this; @@ -496,8 +453,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -534,25 +490,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -562,27 +515,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -591,23 +539,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -615,39 +560,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -657,23 +591,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -683,14 +611,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -701,13 +627,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -716,14 +642,12 @@ public java.lang.String getRequestId() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -734,14 +658,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -749,14 +674,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -767,28 +690,24 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -799,7 +718,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -809,14 +727,12 @@ public Builder clearRequestId() { return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -827,23 +743,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -853,12 +767,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(); } @@ -867,27 +781,27 @@ public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -902,4 +816,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java similarity index 56% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java index 60ff849c2aea..ac5ecee8d939 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java @@ -1,66 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface DeleteSpokeRequestOrBuilder - extends +public interface DeleteSpokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -71,19 +44,16 @@ public interface DeleteSpokeRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -94,8 +64,8 @@ public interface DeleteSpokeRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java similarity index 60% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java index ca2d6281af30..5a0dced3b654 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java @@ -1,89 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * Request for
- * [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub]
- * method.
+ * Request for [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.GetHubRequest} */ -public final class GetHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetHubRequest) GetHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetHubRequest.newBuilder() to construct. private GetHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetHubRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.GetHubRequest.class, - com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the hub resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,31 +65,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the hub resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -161,15 +132,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.networkconnectivity.v1.GetHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.GetHubRequest other = - (com.google.cloud.networkconnectivity.v1.GetHubRequest) obj; + com.google.cloud.networkconnectivity.v1.GetHubRequest other = (com.google.cloud.networkconnectivity.v1.GetHubRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,138 +160,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.GetHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.GetHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
-   * [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub]
-   * method.
+   * Request for [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.GetHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetHubRequest) com.google.cloud.networkconnectivity.v1.GetHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.GetHubRequest.class, - com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.GetHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -330,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; } @java.lang.Override @@ -351,11 +313,8 @@ public com.google.cloud.networkconnectivity.v1.GetHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.GetHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.GetHubRequest result = - new com.google.cloud.networkconnectivity.v1.GetHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.GetHubRequest result = new com.google.cloud.networkconnectivity.v1.GetHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -371,39 +330,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.GetHubRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.GetHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.GetHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.GetHubRequest)other); } else { super.mergeFrom(other); return this; @@ -411,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.GetHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.GetHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.GetHubRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -444,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -466,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -495,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -519,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -561,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -596,12 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.GetHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetHubRequest) private static final com.google.cloud.networkconnectivity.v1.GetHubRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.GetHubRequest(); } @@ -610,27 +540,27 @@ public static com.google.cloud.networkconnectivity.v1.GetHubRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -645,4 +575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.GetHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java new file mode 100644 index 000000000000..4517f9b39e40 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/hub.proto + +package com.google.cloud.networkconnectivity.v1; + +public interface GetHubRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetHubRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the hub resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the hub resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java similarity index 60% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java index 7fc42f029d5d..306b036053bb 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java @@ -1,88 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * The request for
- * [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke].
+ * The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.GetSpokeRequest} */ -public final class GetSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetSpokeRequest) GetSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSpokeRequest.newBuilder() to construct. private GetSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSpokeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, - com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the spoke resource.
    * 
* - * - * string name = 1 [(.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 @@ -91,31 +65,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the spoke resource.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -124,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -160,15 +132,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.networkconnectivity.v1.GetSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.GetSpokeRequest other = - (com.google.cloud.networkconnectivity.v1.GetSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.GetSpokeRequest other = (com.google.cloud.networkconnectivity.v1.GetSpokeRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -188,137 +160,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.GetSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * The request for
-   * [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke].
+   * The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.GetSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetSpokeRequest) com.google.cloud.networkconnectivity.v1.GetSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, - com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.GetSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; } @java.lang.Override @@ -349,11 +313,8 @@ public com.google.cloud.networkconnectivity.v1.GetSpokeRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.GetSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.GetSpokeRequest result = - new com.google.cloud.networkconnectivity.v1.GetSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.GetSpokeRequest result = new com.google.cloud.networkconnectivity.v1.GetSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -369,39 +330,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.GetSpokeReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.GetSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.GetSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.GetSpokeRequest)other); } else { super.mergeFrom(other); return this; @@ -409,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.GetSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.GetSpokeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.GetSpokeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -442,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the spoke resource.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -493,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the spoke resource.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -517,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the spoke resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the spoke resource.
      * 
* - * - * string 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() { @@ -559,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the spoke resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.GetSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.GetSpokeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.GetSpokeRequest(); } @@ -608,27 +540,27 @@ public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.GetSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java new file mode 100644 index 000000000000..3293c5872324 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/hub.proto + +package com.google.cloud.networkconnectivity.v1; + +public interface GetSpokeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetSpokeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the spoke resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the spoke 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java similarity index 68% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java index 846ccda2f133..67ddeb441b5c 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java @@ -1,46 +1,28 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * A Network Connectivity Center hub is a collection of spokes. A single hub
- * can contain spokes from multiple regions. However, if any of a hub's spokes
- * use the data transfer feature, the resources associated with those spokes
- * must all reside in the same VPC network. Spokes that do not use data
- * transfer can be associated with any VPC network in your project.
+ * A hub is a collection of spokes. A single hub can contain spokes from
+ * multiple regions. However, if any of a hub's spokes use the data transfer
+ * feature, the resources associated with those spokes must all reside in the
+ * same VPC network. Spokes that do not use data transfer can be associated
+ * with any VPC network in your project.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.Hub} */ -public final class Hub extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Hub extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.Hub) HubOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Hub.newBuilder() to construct. private Hub(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Hub() { name_ = ""; description_ = ""; @@ -51,48 +33,45 @@ private Hub() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Hub(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.Hub.class, - com.google.cloud.networkconnectivity.v1.Hub.Builder.class); + com.google.cloud.networkconnectivity.v1.Hub.class, com.google.cloud.networkconnectivity.v1.Hub.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -100,7 +79,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -109,15 +87,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; } } /** - * - * *
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -125,15 +102,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -144,15 +122,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the hub was created.
    * 
* - * .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 @@ -160,15 +134,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the hub was created.
    * 
* - * .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 @@ -176,14 +146,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the hub was created.
    * 
* - * .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() { @@ -193,15 +160,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time the hub was last updated.
    * 
* - * .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 @@ -209,15 +172,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time the hub was last updated.
    * 
* - * .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 @@ -225,14 +184,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time the hub was last updated.
    * 
* - * .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() { @@ -240,34 +196,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_Hub_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.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - 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_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -277,21 +231,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 4;
    */
   @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();
   }
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -305,8 +258,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -316,19 +267,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+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;
   }
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -338,11 +287,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @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();
     }
@@ -350,18 +299,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   public static final int DESCRIPTION_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object description_ = "";
   /**
-   *
-   *
    * 
    * An optional description of the hub.
    * 
* * string description = 5; - * * @return The description. */ @java.lang.Override @@ -370,29 +315,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * An optional description of the hub.
    * 
* * string description = 5; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -401,20 +346,16 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int UNIQUE_ID_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** - * - * *
-   * Output only. The Google-generated UUID for the hub. This value is unique
-   * across all hub resources. If a hub is deleted and another with the same
-   * name is created, the new hub is assigned a different unique_id.
+   * Output only. The Google-generated UUID for the hub. This value is unique across all hub
+   * resources. If a hub is deleted and another with the same name is created,
+   * the new hub is assigned a different unique_id.
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ @java.lang.Override @@ -423,31 +364,31 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** - * - * *
-   * Output only. The Google-generated UUID for the hub. This value is unique
-   * across all hub resources. If a hub is deleted and another with the same
-   * name is created, the new hub is assigned a different unique_id.
+   * Output only. The Google-generated UUID for the hub. This value is unique across all hub
+   * resources. If a hub is deleted and another with the same name is created,
+   * the new hub is assigned a different unique_id.
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -458,49 +399,33 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; /** - * - * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = - com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { + com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } public static final int ROUTING_VPCS_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private java.util.List routingVpcs_; /** - * - * *
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -514,8 +439,6 @@ public java.util.List getRou
     return routingVpcs_;
   }
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -525,13 +448,11 @@ public java.util.List getRou
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getRoutingVpcsOrBuilderList() {
     return routingVpcs_;
   }
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -545,8 +466,6 @@ public int getRoutingVpcsCount() {
     return routingVpcs_.size();
   }
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -560,8 +479,6 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int ind
     return routingVpcs_.get(index);
   }
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -577,7 +494,6 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -589,7 +505,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.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_);
     }
@@ -599,8 +516,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (updateTime_ != null) {
       output.writeMessage(3, getUpdateTime());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        4);
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_);
     }
@@ -626,20 +547,22 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime());
-    }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getUpdateTime());
+    }
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(4, labels__);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_);
@@ -648,10 +571,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, uniqueId_);
     }
     if (state_ != com.google.cloud.networkconnectivity.v1.State.STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(9, state_);
     }
     for (int i = 0; i < routingVpcs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, routingVpcs_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, routingVpcs_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -661,28 +586,34 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.networkconnectivity.v1.Hub)) {
       return super.equals(obj);
     }
-    com.google.cloud.networkconnectivity.v1.Hub other =
-        (com.google.cloud.networkconnectivity.v1.Hub) obj;
+    com.google.cloud.networkconnectivity.v1.Hub other = (com.google.cloud.networkconnectivity.v1.Hub) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime().equals(other.getCreateTime())) return false;
+      if (!getCreateTime()
+          .equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
-    }
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
-    if (!getDescription().equals(other.getDescription())) return false;
-    if (!getUniqueId().equals(other.getUniqueId())) return false;
+      if (!getUpdateTime()
+          .equals(other.getUpdateTime())) return false;
+    }
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
+    if (!getDescription()
+        .equals(other.getDescription())) return false;
+    if (!getUniqueId()
+        .equals(other.getUniqueId())) return false;
     if (state_ != other.state_) return false;
-    if (!getRoutingVpcsList().equals(other.getRoutingVpcsList())) return false;
+    if (!getRoutingVpcsList()
+        .equals(other.getRoutingVpcsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -723,160 +654,156 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub 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.networkconnectivity.v1.Hub parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.networkconnectivity.v1.Hub parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.networkconnectivity.v1.Hub parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.Hub prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 Connectivity Center hub is a collection of spokes. A single hub
-   * can contain spokes from multiple regions. However, if any of a hub's spokes
-   * use the data transfer feature, the resources associated with those spokes
-   * must all reside in the same VPC network. Spokes that do not use data
-   * transfer can be associated with any VPC network in your project.
+   * A hub is a collection of spokes. A single hub can contain spokes from
+   * multiple regions. However, if any of a hub's spokes use the data transfer
+   * feature, the resources associated with those spokes must all reside in the
+   * same VPC network. Spokes that do not use data transfer can be associated
+   * with any VPC network in your project.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.Hub} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.Hub) com.google.cloud.networkconnectivity.v1.HubOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 4: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.Hub.class, - com.google.cloud.networkconnectivity.v1.Hub.Builder.class); + com.google.cloud.networkconnectivity.v1.Hub.class, com.google.cloud.networkconnectivity.v1.Hub.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.Hub.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -907,9 +834,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor; } @java.lang.Override @@ -928,12 +855,9 @@ public com.google.cloud.networkconnectivity.v1.Hub build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.Hub buildPartial() { - com.google.cloud.networkconnectivity.v1.Hub result = - new com.google.cloud.networkconnectivity.v1.Hub(this); + com.google.cloud.networkconnectivity.v1.Hub result = new com.google.cloud.networkconnectivity.v1.Hub(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -956,10 +880,14 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Hub result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.labels_ = internalGetLabels(); @@ -980,39 +908,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Hub result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.Hub) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.Hub) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.Hub)other); } else { super.mergeFrom(other); return this; @@ -1032,7 +959,8 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Hub other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000008; if (!other.getDescription().isEmpty()) { description_ = other.description_; @@ -1065,10 +993,9 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Hub other) { routingVpcsBuilder_ = null; routingVpcs_ = other.routingVpcs_; bitField0_ = (bitField0_ & ~0x00000080); - routingVpcsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRoutingVpcsFieldBuilder() - : null; + routingVpcsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRoutingVpcsFieldBuilder() : null; } else { routingVpcsBuilder_.addAllMessages(other.routingVpcs_); } @@ -1100,75 +1027,68 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 66: - { - uniqueId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 66 - case 72: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 72 - case 82: - { - com.google.cloud.networkconnectivity.v1.RoutingVPC m = - input.readMessage( - com.google.cloud.networkconnectivity.v1.RoutingVPC.parser(), - extensionRegistry); - if (routingVpcsBuilder_ == null) { - ensureRoutingVpcsIsMutable(); - routingVpcs_.add(m); - } else { - routingVpcsBuilder_.addMessage(m); - } - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 66: { + uniqueId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 72: { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 72 + case 82: { + com.google.cloud.networkconnectivity.v1.RoutingVPC m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.RoutingVPC.parser(), + extensionRegistry); + if (routingVpcsBuilder_ == null) { + ensureRoutingVpcsIsMutable(); + routingVpcs_.add(m); + } else { + routingVpcsBuilder_.addMessage(m); + } + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1178,13 +1098,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1192,13 +1109,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1207,8 +1124,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1216,14 +1131,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1231,8 +1147,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1240,22 +1154,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1263,7 +1173,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1273,8 +1182,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1282,14 +1189,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1299,58 +1204,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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) { @@ -1366,17 +1252,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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(); } else { @@ -1387,21 +1270,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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 (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1414,15 +1293,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1435,15 +1310,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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() { bitField0_ |= 0x00000002; @@ -1451,48 +1322,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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_; @@ -1500,58 +1359,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .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) { @@ -1567,17 +1407,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .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(); } else { @@ -1588,21 +1425,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .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 (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1615,15 +1448,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1636,15 +1465,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .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() { bitField0_ |= 0x00000004; @@ -1652,66 +1477,56 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1720,13 +1535,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1736,21 +1548,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 4;
      */
     @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();
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1764,8 +1575,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1775,19 +1584,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+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;
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1797,25 +1604,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @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();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1824,22 +1629,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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() {
       bitField0_ |= 0x00000008;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1848,20 +1654,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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);
+    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);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1870,28 +1673,28 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 4;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.lang.Object description_ = "";
     /**
-     *
-     *
      * 
      * An optional description of the hub.
      * 
* * string description = 5; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1900,21 +1703,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * An optional description of the hub.
      * 
* * string description = 5; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1922,35 +1724,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * An optional description of the hub.
      * 
* * string description = 5; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * An optional description of the hub.
      * 
* * string description = 5; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1960,21 +1755,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * An optional description of the hub.
      * 
* * string description = 5; - * * @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(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -1984,22 +1775,20 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object uniqueId_ = ""; /** - * - * *
-     * Output only. The Google-generated UUID for the hub. This value is unique
-     * across all hub resources. If a hub is deleted and another with the same
-     * name is created, the new hub is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the hub. This value is unique across all hub
+     * resources. If a hub is deleted and another with the same name is created,
+     * the new hub is assigned a different unique_id.
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -2008,23 +1797,22 @@ public java.lang.String getUniqueId() { } } /** - * - * *
-     * Output only. The Google-generated UUID for the hub. This value is unique
-     * across all hub resources. If a hub is deleted and another with the same
-     * name is created, the new hub is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the hub. This value is unique across all hub
+     * resources. If a hub is deleted and another with the same name is created,
+     * the new hub is assigned a different unique_id.
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -2032,39 +1820,32 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { } } /** - * - * *
-     * Output only. The Google-generated UUID for the hub. This value is unique
-     * across all hub resources. If a hub is deleted and another with the same
-     * name is created, the new hub is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the hub. This value is unique across all hub
+     * resources. If a hub is deleted and another with the same name is created,
+     * the new hub is assigned a different unique_id.
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uniqueId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
-     * Output only. The Google-generated UUID for the hub. This value is unique
-     * across all hub resources. If a hub is deleted and another with the same
-     * name is created, the new hub is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the hub. This value is unique across all hub
+     * resources. If a hub is deleted and another with the same name is created,
+     * the new hub is assigned a different unique_id.
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -2074,23 +1855,19 @@ public Builder clearUniqueId() { return this; } /** - * - * *
-     * Output only. The Google-generated UUID for the hub. This value is unique
-     * across all hub resources. If a hub is deleted and another with the same
-     * name is created, the new hub is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the hub. This value is unique across all hub
+     * resources. If a hub is deleted and another with the same name is created,
+     * the new hub is assigned a different unique_id.
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000020; @@ -2100,33 +1877,22 @@ public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2137,35 +1903,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = - com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2179,16 +1934,11 @@ public Builder setState(com.google.cloud.networkconnectivity.v1.State value) { return this; } /** - * - * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -2199,26 +1949,18 @@ public Builder clearState() { } private java.util.List routingVpcs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRoutingVpcsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - routingVpcs_ = - new java.util.ArrayList( - routingVpcs_); + routingVpcs_ = new java.util.ArrayList(routingVpcs_); bitField0_ |= 0x00000080; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.RoutingVPC, - com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, - com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder> - routingVpcsBuilder_; + com.google.cloud.networkconnectivity.v1.RoutingVPC, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder> routingVpcsBuilder_; /** - * - * *
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2235,8 +1977,6 @@ public java.util.List getRou
       }
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2253,8 +1993,6 @@ public int getRoutingVpcsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2271,8 +2009,6 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int ind
       }
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2296,8 +2032,6 @@ public Builder setRoutingVpcs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2318,8 +2052,6 @@ public Builder setRoutingVpcs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2342,8 +2074,6 @@ public Builder addRoutingVpcs(com.google.cloud.networkconnectivity.v1.RoutingVPC
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2367,8 +2097,6 @@ public Builder addRoutingVpcs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2389,8 +2117,6 @@ public Builder addRoutingVpcs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2411,8 +2137,6 @@ public Builder addRoutingVpcs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2425,7 +2149,8 @@ public Builder addAllRoutingVpcs(
         java.lang.Iterable values) {
       if (routingVpcsBuilder_ == null) {
         ensureRoutingVpcsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, routingVpcs_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, routingVpcs_);
         onChanged();
       } else {
         routingVpcsBuilder_.addAllMessages(values);
@@ -2433,8 +2158,6 @@ public Builder addAllRoutingVpcs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2454,8 +2177,6 @@ public Builder clearRoutingVpcs() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2475,8 +2196,6 @@ public Builder removeRoutingVpcs(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2490,8 +2209,6 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder getRoutingVpcs
       return getRoutingVpcsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2503,14 +2220,11 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder getRoutingVpcs
     public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder(
         int index) {
       if (routingVpcsBuilder_ == null) {
-        return routingVpcs_.get(index);
-      } else {
+        return routingVpcs_.get(index);  } else {
         return routingVpcsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2519,8 +2233,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
      *
      * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
      */
-    public java.util.List
-        getRoutingVpcsOrBuilderList() {
+    public java.util.List 
+         getRoutingVpcsOrBuilderList() {
       if (routingVpcsBuilder_ != null) {
         return routingVpcsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2528,8 +2242,6 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
       }
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2539,12 +2251,10 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
      * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
      */
     public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcsBuilder() {
-      return getRoutingVpcsFieldBuilder()
-          .addBuilder(com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
+      return getRoutingVpcsFieldBuilder().addBuilder(
+          com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2555,13 +2265,10 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcs
      */
     public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcsBuilder(
         int index) {
-      return getRoutingVpcsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
+      return getRoutingVpcsFieldBuilder().addBuilder(
+          index, com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2570,30 +2277,27 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcs
      *
      * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
      */
-    public java.util.List
-        getRoutingVpcsBuilderList() {
+    public java.util.List 
+         getRoutingVpcsBuilderList() {
       return getRoutingVpcsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.networkconnectivity.v1.RoutingVPC,
-            com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder,
-            com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder>
+        com.google.cloud.networkconnectivity.v1.RoutingVPC, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder> 
         getRoutingVpcsFieldBuilder() {
       if (routingVpcsBuilder_ == null) {
-        routingVpcsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.networkconnectivity.v1.RoutingVPC,
-                com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder,
-                com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder>(
-                routingVpcs_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean());
+        routingVpcsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.networkconnectivity.v1.RoutingVPC, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder>(
+                routingVpcs_,
+                ((bitField0_ & 0x00000080) != 0),
+                getParentForChildren(),
+                isClean());
         routingVpcs_ = null;
       }
       return routingVpcsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2603,12 +2307,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.Hub)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.Hub)
   private static final com.google.cloud.networkconnectivity.v1.Hub DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.Hub();
   }
@@ -2617,27 +2321,27 @@ public static com.google.cloud.networkconnectivity.v1.Hub getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Hub parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Hub parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2652,4 +2356,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.networkconnectivity.v1.Hub getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
similarity index 100%
rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
similarity index 74%
rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
index bfdd93c1ac4d..b2d4c22b5e4d 100644
--- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
+++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.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/networkconnectivity/v1/hub.proto
 
 package com.google.cloud.networkconnectivity.v1;
 
-public interface HubOrBuilder
-    extends
+public interface HubOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.Hub)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -33,13 +15,10 @@ public interface HubOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -47,90 +26,66 @@ public interface HubOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The time the hub was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the hub was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the hub was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the hub was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time the hub was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time the hub was last updated.
    * 
* - * .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(); /** - * - * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -141,8 +96,6 @@ public interface HubOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -151,13 +104,15 @@ public interface HubOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -166,10 +121,9 @@ public interface HubOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -179,13 +133,11 @@ public interface HubOrBuilder
    * map<string, string> labels = 4;
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -194,94 +146,73 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * An optional description of the hub.
    * 
* * string description = 5; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * An optional description of the hub.
    * 
* * string description = 5; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
-   * Output only. The Google-generated UUID for the hub. This value is unique
-   * across all hub resources. If a hub is deleted and another with the same
-   * name is created, the new hub is assigned a different unique_id.
+   * Output only. The Google-generated UUID for the hub. This value is unique across all hub
+   * resources. If a hub is deleted and another with the same name is created,
+   * the new hub is assigned a different unique_id.
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ java.lang.String getUniqueId(); /** - * - * *
-   * Output only. The Google-generated UUID for the hub. This value is unique
-   * across all hub resources. If a hub is deleted and another with the same
-   * name is created, the new hub is assigned a different unique_id.
+   * Output only. The Google-generated UUID for the hub. This value is unique across all hub
+   * resources. If a hub is deleted and another with the same name is created,
+   * the new hub is assigned a different unique_id.
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString getUniqueIdBytes(); + com.google.protobuf.ByteString + getUniqueIdBytes(); /** - * - * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.networkconnectivity.v1.State getState(); /** - * - * *
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -290,10 +221,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
-  java.util.List getRoutingVpcsList();
+  java.util.List 
+      getRoutingVpcsList();
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -304,8 +234,6 @@ java.lang.String getLabelsOrDefault(
    */
   com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int index);
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -316,8 +244,6 @@ java.lang.String getLabelsOrDefault(
    */
   int getRoutingVpcsCount();
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -326,11 +252,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
-  java.util.List
+  java.util.List 
       getRoutingVpcsOrBuilderList();
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -339,5 +263,6 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
-  com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder(int index);
+  com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder(
+      int index);
 }
diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java
new file mode 100644
index 000000000000..708d0df3c973
--- /dev/null
+++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java
@@ -0,0 +1,478 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/networkconnectivity/v1/hub.proto
+
+package com.google.cloud.networkconnectivity.v1;
+
+public final class HubProto {
+  private HubProto() {}
+  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_networkconnectivity_v1_Hub_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_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/networkconnectivity/v1/hu" +
+      "b.proto\022#google.cloud.networkconnectivit" +
+      "y.v1\032\034google/api/annotations.proto\032\027goog" +
+      "le/api/client.proto\032\037google/api/field_be" +
+      "havior.proto\032\031google/api/resource.proto\032" +
+      "#google/longrunning/operations.proto\032 go" +
+      "ogle/protobuf/field_mask.proto\032\037google/p" +
+      "rotobuf/timestamp.proto\"\212\004\n\003Hub\022\021\n\004name\030" +
+      "\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132\032.google" +
+      ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" +
+      "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022D" +
+      "\n\006labels\030\004 \003(\01324.google.cloud.networkcon" +
+      "nectivity.v1.Hub.LabelsEntry\022\023\n\013descript" +
+      "ion\030\005 \001(\t\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022>\n\005sta" +
+      "te\030\t \001(\0162*.google.cloud.networkconnectiv" +
+      "ity.v1.StateB\003\340A\003\022E\n\014routing_vpcs\030\n \003(\0132" +
+      "/.google.cloud.networkconnectivity.v1.Ro" +
+      "utingVPC\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" +
+      "value\030\002 \001(\t:\0028\001:[\352AX\n&networkconnectivit" +
+      "y.googleapis.com/Hub\022.projects/{project}" +
+      "/locations/global/hubs/{hub}\"\177\n\nRoutingV" +
+      "PC\0220\n\003uri\030\001 \001(\tB#\372A \n\036compute.googleapis" +
+      ".com/Network\022?\n2required_for_new_site_to" +
+      "_site_data_transfer_spokes\030\002 \001(\010B\003\340A\003\"\276\006" +
+      "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create_tim" +
+      "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" +
+      "\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf." +
+      "TimestampB\003\340A\003\022F\n\006labels\030\004 \003(\01326.google." +
+      "cloud.networkconnectivity.v1.Spoke.Label" +
+      "sEntry\022\023\n\013description\030\005 \001(\t\022;\n\003hub\030\006 \001(\t" +
+      "B.\340A\005\372A(\n&networkconnectivity.googleapis" +
+      ".com/Hub\022Q\n\022linked_vpn_tunnels\030\021 \001(\01325.g" +
+      "oogle.cloud.networkconnectivity.v1.Linke" +
+      "dVpnTunnels\022k\n\037linked_interconnect_attac" +
+      "hments\030\022 \001(\0132B.google.cloud.networkconne" +
+      "ctivity.v1.LinkedInterconnectAttachments" +
+      "\022n\n!linked_router_appliance_instances\030\023 " +
+      "\001(\0132C.google.cloud.networkconnectivity.v" +
+      "1.LinkedRouterApplianceInstances\022\026\n\tuniq" +
+      "ue_id\030\013 \001(\tB\003\340A\003\022>\n\005state\030\017 \001(\0162*.google" +
+      ".cloud.networkconnectivity.v1.StateB\003\340A\003" +
+      "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " +
+      "\001(\t:\0028\001:e\352Ab\n(networkconnectivity.google" +
+      "apis.com/Spoke\0226projects/{project}/locat" +
+      "ions/{location}/spokes/{spoke}\"\225\001\n\017ListH" +
+      "ubsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" +
+      "tions.googleapis.com/Location\022\021\n\tpage_si" +
+      "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004" +
+      " \001(\t\022\020\n\010order_by\030\005 \001(\t\"x\n\020ListHubsRespon" +
+      "se\0226\n\004hubs\030\001 \003(\0132(.google.cloud.networkc" +
+      "onnectivity.v1.Hub\022\027\n\017next_page_token\030\002 " +
+      "\001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\rGetHubReques" +
+      "t\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&networkconnecti" +
+      "vity.googleapis.com/Hub\"\267\001\n\020CreateHubReq" +
+      "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." +
+      "googleapis.com/Location\022\023\n\006hub_id\030\002 \001(\tB" +
+      "\003\340A\002\022:\n\003hub\030\003 \001(\0132(.google.cloud.network" +
+      "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\004" +
+      " \001(\tB\003\340A\001\"\235\001\n\020UpdateHubRequest\0224\n\013update" +
+      "_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB" +
+      "\003\340A\001\022:\n\003hub\030\002 \001(\0132(.google.cloud.network" +
+      "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\003" +
+      " \001(\tB\003\340A\001\"i\n\020DeleteHubRequest\022<\n\004name\030\001 " +
+      "\001(\tB.\340A\002\372A(\n&networkconnectivity.googlea" +
+      "pis.com/Hub\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\227\001\n" +
+      "\021ListSpokesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" +
+      "A#\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\006" +
+      "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\022ListSp" +
+      "okesResponse\022:\n\006spokes\030\001 \003(\0132*.google.cl" +
+      "oud.networkconnectivity.v1.Spoke\022\027\n\017next" +
+      "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q" +
+      "\n\017GetSpokeRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n" +
+      "(networkconnectivity.googleapis.com/Spok" +
+      "e\"\277\001\n\022CreateSpokeRequest\0229\n\006parent\030\001 \001(\t" +
+      "B)\340A\002\372A#\n!locations.googleapis.com/Locat" +
+      "ion\022\025\n\010spoke_id\030\002 \001(\tB\003\340A\002\022>\n\005spoke\030\003 \001(" +
+      "\0132*.google.cloud.networkconnectivity.v1." +
+      "SpokeB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\022" +
+      "UpdateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132" +
+      "\032.google.protobuf.FieldMaskB\003\340A\001\022>\n\005spok" +
+      "e\030\002 \001(\0132*.google.cloud.networkconnectivi" +
+      "ty.v1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A" +
+      "\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\tB0\340" +
+      "A\002\372A*\n(networkconnectivity.googleapis.co" +
+      "m/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"k\n\020Link" +
+      "edVpnTunnels\0223\n\004uris\030\001 \003(\tB%\372A\"\n compute" +
+      ".googleapis.com/VpnTunnel\022\"\n\032site_to_sit" +
+      "e_data_transfer\030\002 \001(\010\"\205\001\n\035LinkedIntercon" +
+      "nectAttachments\022@\n\004uris\030\001 \003(\tB2\372A/\n-comp" +
+      "ute.googleapis.com/InterconnectAttachmen" +
+      "t\022\"\n\032site_to_site_data_transfer\030\002 \001(\010\"\225\001" +
+      "\n\036LinkedRouterApplianceInstances\022O\n\tinst" +
+      "ances\030\001 \003(\0132<.google.cloud.networkconnec" +
+      "tivity.v1.RouterApplianceInstance\022\"\n\032sit" +
+      "e_to_site_data_transfer\030\002 \001(\010\"l\n\027RouterA" +
+      "pplianceInstance\022=\n\017virtual_machine\030\001 \001(" +
+      "\tB$\372A!\n\037compute.googleapis.com/Instance\022" +
+      "\022\n\nip_address\030\003 \001(\t\"c\n\020LocationMetadata\022" +
+      "O\n\021location_features\030\001 \003(\01624.google.clou" +
+      "d.networkconnectivity.v1.LocationFeature" +
+      "*F\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREA" +
+      "TING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003*f\n\017Loca" +
+      "tionFeature\022 \n\034LOCATION_FEATURE_UNSPECIF" +
+      "IED\020\000\022\030\n\024SITE_TO_CLOUD_SPOKES\020\001\022\027\n\023SITE_" +
+      "TO_SITE_SPOKES\020\0022\235\020\n\nHubService\022\267\001\n\010List" +
+      "Hubs\0224.google.cloud.networkconnectivity." +
+      "v1.ListHubsRequest\0325.google.cloud.networ" +
+      "kconnectivity.v1.ListHubsResponse\">\202\323\344\223\002" +
+      "/\022-/v1/{parent=projects/*/locations/glob" +
+      "al}/hubs\332A\006parent\022\244\001\n\006GetHub\0222.google.cl" +
+      "oud.networkconnectivity.v1.GetHubRequest" +
+      "\032(.google.cloud.networkconnectivity.v1.H" +
+      "ub\"<\202\323\344\223\002/\022-/v1/{name=projects/*/locatio" +
+      "ns/global/hubs/*}\332A\004name\022\314\001\n\tCreateHub\0225" +
+      ".google.cloud.networkconnectivity.v1.Cre" +
+      "ateHubRequest\032\035.google.longrunning.Opera" +
+      "tion\"i\202\323\344\223\0024\"-/v1/{parent=projects/*/loc" +
+      "ations/global}/hubs:\003hub\332A\021parent,hub,hu" +
+      "b_id\312A\030\n\003Hub\022\021OperationMetadata\022\316\001\n\tUpda" +
+      "teHub\0225.google.cloud.networkconnectivity" +
+      ".v1.UpdateHubRequest\032\035.google.longrunnin" +
+      "g.Operation\"k\202\323\344\223\002821/v1/{hub.name=proje" +
+      "cts/*/locations/global/hubs/*}:\003hub\332A\017hu" +
+      "b,update_mask\312A\030\n\003Hub\022\021OperationMetadata" +
+      "\022\314\001\n\tDeleteHub\0225.google.cloud.networkcon" +
+      "nectivity.v1.DeleteHubRequest\032\035.google.l" +
+      "ongrunning.Operation\"i\202\323\344\223\002/*-/v1/{name=" +
+      "projects/*/locations/global/hubs/*}\332A\004na" +
+      "me\312A*\n\025google.protobuf.Empty\022\021OperationM" +
+      "etadata\022\272\001\n\nListSpokes\0226.google.cloud.ne" +
+      "tworkconnectivity.v1.ListSpokesRequest\0327" +
+      ".google.cloud.networkconnectivity.v1.Lis" +
+      "tSpokesResponse\";\202\323\344\223\002,\022*/v1/{parent=pro" +
+      "jects/*/locations/*}/spokes\332A\006parent\022\247\001\n" +
+      "\010GetSpoke\0224.google.cloud.networkconnecti" +
+      "vity.v1.GetSpokeRequest\032*.google.cloud.n" +
+      "etworkconnectivity.v1.Spoke\"9\202\323\344\223\002,\022*/v1" +
+      "/{name=projects/*/locations/*/spokes/*}\332" +
+      "A\004name\022\325\001\n\013CreateSpoke\0227.google.cloud.ne" +
+      "tworkconnectivity.v1.CreateSpokeRequest\032" +
+      "\035.google.longrunning.Operation\"n\202\323\344\223\0023\"*" +
+      "/v1/{parent=projects/*/locations/*}/spok" +
+      "es:\005spoke\332A\025parent,spoke,spoke_id\312A\032\n\005Sp" +
+      "oke\022\021OperationMetadata\022\327\001\n\013UpdateSpoke\0227" +
+      ".google.cloud.networkconnectivity.v1.Upd" +
+      "ateSpokeRequest\032\035.google.longrunning.Ope" +
+      "ration\"p\202\323\344\223\002920/v1/{spoke.name=projects" +
+      "/*/locations/*/spokes/*}:\005spoke\332A\021spoke," +
+      "update_mask\312A\032\n\005Spoke\022\021OperationMetadata" +
+      "\022\315\001\n\013DeleteSpoke\0227.google.cloud.networkc" +
+      "onnectivity.v1.DeleteSpokeRequest\032\035.goog" +
+      "le.longrunning.Operation\"f\202\323\344\223\002,**/v1/{n" +
+      "ame=projects/*/locations/*/spokes/*}\332A\004n" +
+      "ame\312A*\n\025google.protobuf.Empty\022\021Operation" +
+      "Metadata\032V\312A\"networkconnectivity.googlea" +
+      "pis.com\322A.https://www.googleapis.com/aut" +
+      "h/cloud-platformB\221\005\n\'com.google.cloud.ne" +
+      "tworkconnectivity.v1B\010HubProtoP\001ZVgoogle" +
+      ".golang.org/genproto/googleapis/cloud/ne" +
+      "tworkconnectivity/v1;networkconnectivity" +
+      "\252\002#Google.Cloud.NetworkConnectivity.V1\312\002" +
+      "#Google\\Cloud\\NetworkConnectivity\\V1\352\002&G" +
+      "oogle::Cloud::NetworkConnectivity::V1\352A`" +
+      "\n compute.googleapis.com/VpnTunnel\022
  * A collection of VLAN attachment resources. These resources should
  * be redundant attachments that all advertise the same prefixes to Google
@@ -30,88 +13,76 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments}
  */
-public final class LinkedInterconnectAttachments extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LinkedInterconnectAttachments extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments)
     LinkedInterconnectAttachmentsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LinkedInterconnectAttachments.newBuilder() to construct.
   private LinkedInterconnectAttachments(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LinkedInterconnectAttachments() {
     uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-    vpcNetwork_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LinkedInterconnectAttachments();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class,
-            com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
+            com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
   }
 
   public static final int URIS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringList uris_;
   /**
-   *
-   *
    * 
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_; } /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -119,26 +90,22 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 2; private boolean siteToSiteDataTransfer_ = false; /** - * - * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -146,7 +113,6 @@ public com.google.protobuf.ByteString getUrisBytes(int index) {
    * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -154,63 +120,7 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } - public static final int VPC_NETWORK_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object vpcNetwork_ = ""; - /** - * - * - *
-   * Output only. The VPC network where these VLAN attachments are located.
-   * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The vpcNetwork. - */ - @java.lang.Override - public java.lang.String getVpcNetwork() { - java.lang.Object ref = vpcNetwork_; - 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(); - vpcNetwork_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The VPC network where these VLAN attachments are located.
-   * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for vpcNetwork. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVpcNetworkBytes() { - java.lang.Object ref = vpcNetwork_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - vpcNetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,16 +132,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 { for (int i = 0; i < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); } if (siteToSiteDataTransfer_ != false) { output.writeBool(2, siteToSiteDataTransfer_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, vpcNetwork_); - } getUnknownFields().writeTo(output); } @@ -250,10 +158,8 @@ public int getSerializedSize() { size += 1 * getUrisList().size(); } if (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vpcNetwork_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, siteToSiteDataTransfer_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -263,17 +169,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.networkconnectivity.v1.LinkedInterconnectAttachments)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other = - (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) obj; + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other = (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) obj; - if (!getUrisList().equals(other.getUrisList())) return false; - if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; - if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; + if (!getUrisList() + .equals(other.getUrisList())) return false; + if (getSiteToSiteDataTransfer() + != other.getSiteToSiteDataTransfer()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -290,114 +196,104 @@ public int hashCode() { hash = (53 * hash) + getUrisList().hashCode(); } hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); - hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; - hash = (53 * hash) + getVpcNetwork().hashCode(); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSiteToSiteDataTransfer()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - 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.networkconnectivity.v1.LinkedInterconnectAttachments 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.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 collection of VLAN attachment resources. These resources should
    * be redundant attachments that all advertise the same prefixes to Google
@@ -407,33 +303,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments)
       com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class,
-              com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
+              com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -441,21 +337,18 @@ public Builder clear() {
       uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
       bitField0_ = (bitField0_ & ~0x00000001);
       siteToSiteDataTransfer_ = false;
-      vpcNetwork_ = "";
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments
-        getDefaultInstanceForType() {
-      return com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments
-          .getDefaultInstance();
+    public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getDefaultInstanceForType() {
+      return com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -469,18 +362,14 @@ public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments bui
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments buildPartial() {
-      com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result =
-          new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(this);
+      com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result = new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
+    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         uris_ = uris_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -488,66 +377,57 @@ private void buildPartialRepeatedFields(
       result.uris_ = uris_;
     }
 
-    private void buildPartial0(
-        com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
+    private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_;
       }
-      if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.vpcNetwork_ = vpcNetwork_;
-      }
     }
 
     @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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) {
-        return mergeFrom(
-            (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other) {
-      if (other
-          == com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other) {
+      if (other == com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance()) return this;
       if (!other.uris_.isEmpty()) {
         if (uris_.isEmpty()) {
           uris_ = other.uris_;
@@ -561,11 +441,6 @@ public Builder mergeFrom(
       if (other.getSiteToSiteDataTransfer() != false) {
         setSiteToSiteDataTransfer(other.getSiteToSiteDataTransfer());
       }
-      if (!other.getVpcNetwork().isEmpty()) {
-        vpcNetwork_ = other.vpcNetwork_;
-        bitField0_ |= 0x00000004;
-        onChanged();
-      }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -592,32 +467,23 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureUrisIsMutable();
-                uris_.add(s);
-                break;
-              } // case 10
-            case 16:
-              {
-                siteToSiteDataTransfer_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                vpcNetwork_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureUrisIsMutable();
+              uris_.add(s);
+              break;
+            } // case 10
+            case 16: {
+              siteToSiteDataTransfer_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -627,55 +493,44 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList uris_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensureUrisIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         uris_ = new com.google.protobuf.LazyStringArrayList(uris_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_.getUnmodifiableView(); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -683,90 +538,76 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUris( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUris( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris(java.lang.Iterable values) { + public Builder addAllUris( + java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uris_); onChanged(); return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearUris() { @@ -776,21 +617,17 @@ public Builder clearUris() { return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUrisBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); @@ -798,10 +635,8 @@ public Builder addUrisBytes(com.google.protobuf.ByteString value) { return this; } - private boolean siteToSiteDataTransfer_; + private boolean siteToSiteDataTransfer_ ; /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -809,7 +644,6 @@ public Builder addUrisBytes(com.google.protobuf.ByteString value) {
      * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -817,8 +651,6 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -826,20 +658,17 @@ public boolean getSiteToSiteDataTransfer() {
      * 
* * bool site_to_site_data_transfer = 2; - * * @param value The siteToSiteDataTransfer to set. * @return This builder for chaining. */ public Builder setSiteToSiteDataTransfer(boolean value) { - + siteToSiteDataTransfer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -847,7 +676,6 @@ public Builder setSiteToSiteDataTransfer(boolean value) {
      * 
* * bool site_to_site_data_transfer = 2; - * * @return This builder for chaining. */ public Builder clearSiteToSiteDataTransfer() { @@ -856,125 +684,9 @@ public Builder clearSiteToSiteDataTransfer() { onChanged(); return this; } - - private java.lang.Object vpcNetwork_ = ""; - /** - * - * - *
-     * Output only. The VPC network where these VLAN attachments are located.
-     * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The vpcNetwork. - */ - public java.lang.String getVpcNetwork() { - java.lang.Object ref = vpcNetwork_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - vpcNetwork_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The VPC network where these VLAN attachments are located.
-     * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for vpcNetwork. - */ - public com.google.protobuf.ByteString getVpcNetworkBytes() { - java.lang.Object ref = vpcNetwork_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - vpcNetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The VPC network where these VLAN attachments are located.
-     * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @param value The vpcNetwork to set. - * @return This builder for chaining. - */ - public Builder setVpcNetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - vpcNetwork_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The VPC network where these VLAN attachments are located.
-     * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearVpcNetwork() { - vpcNetwork_ = getDefaultInstance().getVpcNetwork(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The VPC network where these VLAN attachments are located.
-     * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for vpcNetwork to set. - * @return This builder for chaining. - */ - public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - vpcNetwork_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,43 +696,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) - private static final com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkedInterconnectAttachments parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkedInterconnectAttachments parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1032,8 +742,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java similarity index 54% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java index 57208804dc85..55bab1b7d7d6 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java @@ -1,82 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LinkedInterconnectAttachmentsOrBuilder - extends +public interface LinkedInterconnectAttachmentsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the uris. */ - java.util.List getUrisList(); + java.util.List + getUrisList(); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of uris. */ int getUrisCount(); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString getUrisBytes(int index); + com.google.protobuf.ByteString + getUrisBytes(int index); /** - * - * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -84,37 +56,7 @@ public interface LinkedInterconnectAttachmentsOrBuilder
    * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ boolean getSiteToSiteDataTransfer(); - - /** - * - * - *
-   * Output only. The VPC network where these VLAN attachments are located.
-   * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The vpcNetwork. - */ - java.lang.String getVpcNetwork(); - /** - * - * - *
-   * Output only. The VPC network where these VLAN attachments are located.
-   * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for vpcNetwork. - */ - com.google.protobuf.ByteString getVpcNetworkBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java similarity index 55% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java index 3cab3c06b2f9..5d307b4c432c 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * A collection of router appliance instances. If you configure multiple router
  * appliance instances to receive data from the same set of sites outside of
@@ -30,133 +13,108 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances}
  */
-public final class LinkedRouterApplianceInstances extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LinkedRouterApplianceInstances extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)
     LinkedRouterApplianceInstancesOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LinkedRouterApplianceInstances.newBuilder() to construct.
-  private LinkedRouterApplianceInstances(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private LinkedRouterApplianceInstances(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LinkedRouterApplianceInstances() {
     instances_ = java.util.Collections.emptyList();
-    vpcNetwork_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LinkedRouterApplianceInstances();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class,
-            com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
+            com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
   }
 
   public static final int INSTANCES_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
-  private java.util.List
-      instances_;
+  private java.util.List instances_;
   /**
-   *
-   *
    * 
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ @java.lang.Override - public java.util.List - getInstancesList() { + public java.util.List getInstancesList() { return instances_; } /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> + public java.util.List getInstancesOrBuilderList() { return instances_; } /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ @java.lang.Override public int getInstancesCount() { return instances_.size(); } /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index) { return instances_.get(index); } /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder - getInstancesOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInstancesOrBuilder( + int index) { return instances_.get(index); } public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 2; private boolean siteToSiteDataTransfer_ = false; /** - * - * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -164,7 +122,6 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstan
    * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -172,65 +129,7 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } - public static final int VPC_NETWORK_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object vpcNetwork_ = ""; - /** - * - * - *
-   * Output only. The VPC network where these router appliance instances are
-   * located.
-   * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The vpcNetwork. - */ - @java.lang.Override - public java.lang.String getVpcNetwork() { - java.lang.Object ref = vpcNetwork_; - 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(); - vpcNetwork_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The VPC network where these router appliance instances are
-   * located.
-   * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for vpcNetwork. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVpcNetworkBytes() { - java.lang.Object ref = vpcNetwork_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - vpcNetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,16 +141,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 { for (int i = 0; i < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } if (siteToSiteDataTransfer_ != false) { output.writeBool(2, siteToSiteDataTransfer_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, vpcNetwork_); - } getUnknownFields().writeTo(output); } @@ -262,13 +159,12 @@ 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 (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vpcNetwork_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, siteToSiteDataTransfer_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -278,17 +174,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.networkconnectivity.v1.LinkedRouterApplianceInstances)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other = - (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) obj; + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other = (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) obj; - if (!getInstancesList().equals(other.getInstancesList())) return false; - if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; - if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; + if (!getInstancesList() + .equals(other.getInstancesList())) return false; + if (getSiteToSiteDataTransfer() + != other.getSiteToSiteDataTransfer()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -305,114 +201,104 @@ public int hashCode() { hash = (53 * hash) + getInstancesList().hashCode(); } hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); - hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; - hash = (53 * hash) + getVpcNetwork().hashCode(); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSiteToSiteDataTransfer()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - 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.networkconnectivity.v1.LinkedRouterApplianceInstances 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.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 collection of router appliance instances. If you configure multiple router
    * appliance instances to receive data from the same set of sites outside of
@@ -422,33 +308,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)
       com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class,
-              com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
+              com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -461,27 +347,23 @@ public Builder clear() {
       }
       bitField0_ = (bitField0_ & ~0x00000001);
       siteToSiteDataTransfer_ = false;
-      vpcNetwork_ = "";
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances
-        getDefaultInstanceForType() {
-      return com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances
-          .getDefaultInstance();
+    public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getDefaultInstanceForType() {
+      return com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances build() {
-      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result =
-          buildPartial();
+      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -490,18 +372,14 @@ public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances bu
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances buildPartial() {
-      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result =
-          new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(this);
+      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result = new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
+    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
       if (instancesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           instances_ = java.util.Collections.unmodifiableList(instances_);
@@ -513,66 +391,57 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
+    private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_;
       }
-      if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.vpcNetwork_ = vpcNetwork_;
-      }
     }
 
     @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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) {
-        return mergeFrom(
-            (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other) {
-      if (other
-          == com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other) {
+      if (other == com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance()) return this;
       if (instancesBuilder_ == null) {
         if (!other.instances_.isEmpty()) {
           if (instances_.isEmpty()) {
@@ -591,10 +460,9 @@ public Builder mergeFrom(
             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_);
           }
@@ -603,11 +471,6 @@ public Builder mergeFrom(
       if (other.getSiteToSiteDataTransfer() != false) {
         setSiteToSiteDataTransfer(other.getSiteToSiteDataTransfer());
       }
-      if (!other.getVpcNetwork().isEmpty()) {
-        vpcNetwork_ = other.vpcNetwork_;
-        bitField0_ |= 0x00000004;
-        onChanged();
-      }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -634,39 +497,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.networkconnectivity.v1.RouterApplianceInstance m =
-                    input.readMessage(
-                        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.parser(),
-                        extensionRegistry);
-                if (instancesBuilder_ == null) {
-                  ensureInstancesIsMutable();
-                  instances_.add(m);
-                } else {
-                  instancesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 16:
-              {
-                siteToSiteDataTransfer_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                vpcNetwork_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance m =
+                  input.readMessage(
+                      com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.parser(),
+                      extensionRegistry);
+              if (instancesBuilder_ == null) {
+                ensureInstancesIsMutable();
+                instances_.add(m);
+              } else {
+                instancesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 16: {
+              siteToSiteDataTransfer_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -676,39 +530,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List
-        instances_ = java.util.Collections.emptyList();
-
+    private java.util.List instances_ =
+      java.util.Collections.emptyList();
     private void ensureInstancesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        instances_ =
-            new java.util.ArrayList<
-                com.google.cloud.networkconnectivity.v1.RouterApplianceInstance>(instances_);
+        instances_ = new java.util.ArrayList(instances_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance,
-            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder,
-            com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>
-        instancesBuilder_;
+        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> instancesBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public java.util.List - getInstancesList() { + public java.util.List getInstancesList() { if (instancesBuilder_ == null) { return java.util.Collections.unmodifiableList(instances_); } else { @@ -716,14 +559,11 @@ private void ensureInstancesIsMutable() { } } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public int getInstancesCount() { if (instancesBuilder_ == null) { @@ -733,14 +573,11 @@ public int getInstancesCount() { } } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index) { if (instancesBuilder_ == null) { @@ -750,14 +587,11 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstan } } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder setInstances( int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { @@ -774,18 +608,14 @@ public Builder setInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder setInstances( - int index, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { + int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.set(index, builderForValue.build()); @@ -796,17 +626,13 @@ public Builder setInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public Builder addInstances( - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { + public Builder addInstances(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -820,14 +646,11 @@ public Builder addInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder addInstances( int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { @@ -844,14 +667,11 @@ public Builder addInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder addInstances( com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { @@ -865,18 +685,14 @@ public Builder addInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder addInstances( - int index, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { + int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(index, builderForValue.build()); @@ -887,22 +703,18 @@ public Builder addInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder addAllInstances( - java.lang.Iterable< - ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstance> - values) { + 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); @@ -910,14 +722,11 @@ public Builder addAllInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder clearInstances() { if (instancesBuilder_ == null) { @@ -930,14 +739,11 @@ public Builder clearInstances() { return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder removeInstances(int index) { if (instancesBuilder_ == null) { @@ -950,50 +756,39 @@ public Builder removeInstances(int index) { return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder - getInstancesBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder getInstancesBuilder( + int index) { return getInstancesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder - getInstancesOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInstancesOrBuilder( + int index) { if (instancesBuilder_ == null) { - return instances_.get(index); - } else { + return instances_.get(index); } else { return instancesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public java.util.List< - ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> - getInstancesOrBuilderList() { + public java.util.List + getInstancesOrBuilderList() { if (instancesBuilder_ != null) { return instancesBuilder_.getMessageOrBuilderList(); } else { @@ -1001,74 +796,56 @@ public Builder removeInstances(int index) { } } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder - addInstancesBuilder() { - return getInstancesFieldBuilder() - .addBuilder( - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder addInstancesBuilder() { + return getInstancesFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder - addInstancesBuilder(int index) { - return getInstancesFieldBuilder() - .addBuilder( - index, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder addInstancesBuilder( + int index) { + return getInstancesFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public java.util.List - getInstancesBuilderList() { + public java.util.List + getInstancesBuilderList() { return getInstancesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> getInstancesFieldBuilder() { if (instancesBuilder_ == null) { - instancesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>( - instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>( + instances_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); instances_ = null; } return instancesBuilder_; } - private boolean siteToSiteDataTransfer_; + private boolean siteToSiteDataTransfer_ ; /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -1076,7 +853,6 @@ public Builder removeInstances(int index) {
      * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -1084,8 +860,6 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -1093,20 +867,17 @@ public boolean getSiteToSiteDataTransfer() {
      * 
* * bool site_to_site_data_transfer = 2; - * * @param value The siteToSiteDataTransfer to set. * @return This builder for chaining. */ public Builder setSiteToSiteDataTransfer(boolean value) { - + siteToSiteDataTransfer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -1114,7 +885,6 @@ public Builder setSiteToSiteDataTransfer(boolean value) {
      * 
* * bool site_to_site_data_transfer = 2; - * * @return This builder for chaining. */ public Builder clearSiteToSiteDataTransfer() { @@ -1123,130 +893,9 @@ public Builder clearSiteToSiteDataTransfer() { onChanged(); return this; } - - private java.lang.Object vpcNetwork_ = ""; - /** - * - * - *
-     * Output only. The VPC network where these router appliance instances are
-     * located.
-     * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The vpcNetwork. - */ - public java.lang.String getVpcNetwork() { - java.lang.Object ref = vpcNetwork_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - vpcNetwork_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The VPC network where these router appliance instances are
-     * located.
-     * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for vpcNetwork. - */ - public com.google.protobuf.ByteString getVpcNetworkBytes() { - java.lang.Object ref = vpcNetwork_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - vpcNetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The VPC network where these router appliance instances are
-     * located.
-     * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @param value The vpcNetwork to set. - * @return This builder for chaining. - */ - public Builder setVpcNetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - vpcNetwork_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The VPC network where these router appliance instances are
-     * located.
-     * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearVpcNetwork() { - vpcNetwork_ = getDefaultInstance().getVpcNetwork(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The VPC network where these router appliance instances are
-     * located.
-     * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for vpcNetwork to set. - * @return This builder for chaining. - */ - public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - vpcNetwork_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1256,43 +905,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) - private static final com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkedRouterApplianceInstances parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkedRouterApplianceInstances parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1304,8 +951,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java similarity index 52% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java index cbca453e5f07..834f24a59f2a 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java @@ -1,90 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LinkedRouterApplianceInstancesOrBuilder - extends +public interface LinkedRouterApplianceInstancesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - java.util.List + java.util.List getInstancesList(); /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index); /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ int getInstancesCount(); /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - java.util.List + java.util.List getInstancesOrBuilderList(); /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInstancesOrBuilder( int index); /** - * - * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -92,39 +59,7 @@ com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInst
    * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ boolean getSiteToSiteDataTransfer(); - - /** - * - * - *
-   * Output only. The VPC network where these router appliance instances are
-   * located.
-   * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The vpcNetwork. - */ - java.lang.String getVpcNetwork(); - /** - * - * - *
-   * Output only. The VPC network where these router appliance instances are
-   * located.
-   * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for vpcNetwork. - */ - com.google.protobuf.ByteString getVpcNetworkBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java similarity index 57% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java index 79d15797258c..af17021a0bbe 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * A collection of Cloud VPN tunnel resources. These resources should be
  * redundant HA VPN tunnels that all advertise the same prefixes to Google
@@ -30,88 +13,76 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedVpnTunnels}
  */
-public final class LinkedVpnTunnels extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LinkedVpnTunnels extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LinkedVpnTunnels)
     LinkedVpnTunnelsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LinkedVpnTunnels.newBuilder() to construct.
   private LinkedVpnTunnels(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LinkedVpnTunnels() {
     uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-    vpcNetwork_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LinkedVpnTunnels();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class,
-            com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
+            com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
   }
 
   public static final int URIS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringList uris_;
   /**
-   *
-   *
    * 
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_; } /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -119,26 +90,22 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 2; private boolean siteToSiteDataTransfer_ = false; /** - * - * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -146,7 +113,6 @@ public com.google.protobuf.ByteString getUrisBytes(int index) {
    * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -154,63 +120,7 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } - public static final int VPC_NETWORK_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object vpcNetwork_ = ""; - /** - * - * - *
-   * Output only. The VPC network where these VPN tunnels are located.
-   * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The vpcNetwork. - */ - @java.lang.Override - public java.lang.String getVpcNetwork() { - java.lang.Object ref = vpcNetwork_; - 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(); - vpcNetwork_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The VPC network where these VPN tunnels are located.
-   * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for vpcNetwork. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVpcNetworkBytes() { - java.lang.Object ref = vpcNetwork_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - vpcNetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,16 +132,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 { for (int i = 0; i < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); } if (siteToSiteDataTransfer_ != false) { output.writeBool(2, siteToSiteDataTransfer_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, vpcNetwork_); - } getUnknownFields().writeTo(output); } @@ -250,10 +158,8 @@ public int getSerializedSize() { size += 1 * getUrisList().size(); } if (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vpcNetwork_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, siteToSiteDataTransfer_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -263,17 +169,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.networkconnectivity.v1.LinkedVpnTunnels)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other = - (com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) obj; + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other = (com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) obj; - if (!getUrisList().equals(other.getUrisList())) return false; - if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; - if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; + if (!getUrisList() + .equals(other.getUrisList())) return false; + if (getSiteToSiteDataTransfer() + != other.getSiteToSiteDataTransfer()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -290,113 +196,104 @@ public int hashCode() { hash = (53 * hash) + getUrisList().hashCode(); } hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); - hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; - hash = (53 * hash) + getVpcNetwork().hashCode(); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSiteToSiteDataTransfer()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 collection of Cloud VPN tunnel resources. These resources should be
    * redundant HA VPN tunnels that all advertise the same prefixes to Google
@@ -406,32 +303,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedVpnTunnels}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedVpnTunnels)
       com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class,
-              com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
+              com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -439,14 +337,13 @@ public Builder clear() {
       uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
       bitField0_ = (bitField0_ & ~0x00000001);
       siteToSiteDataTransfer_ = false;
-      vpcNetwork_ = "";
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
     }
 
     @java.lang.Override
@@ -465,18 +362,14 @@ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels buildPartial() {
-      com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result =
-          new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(this);
+      com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result = new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result) {
+    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         uris_ = uris_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -489,48 +382,44 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedVpnTunn
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_;
       }
-      if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.vpcNetwork_ = vpcNetwork_;
-      }
     }
 
     @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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -538,8 +427,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other) {
-      if (other == com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) return this;
       if (!other.uris_.isEmpty()) {
         if (uris_.isEmpty()) {
           uris_ = other.uris_;
@@ -553,11 +441,6 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnel
       if (other.getSiteToSiteDataTransfer() != false) {
         setSiteToSiteDataTransfer(other.getSiteToSiteDataTransfer());
       }
-      if (!other.getVpcNetwork().isEmpty()) {
-        vpcNetwork_ = other.vpcNetwork_;
-        bitField0_ |= 0x00000004;
-        onChanged();
-      }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -584,32 +467,23 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureUrisIsMutable();
-                uris_.add(s);
-                break;
-              } // case 10
-            case 16:
-              {
-                siteToSiteDataTransfer_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                vpcNetwork_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureUrisIsMutable();
+              uris_.add(s);
+              break;
+            } // case 10
+            case 16: {
+              siteToSiteDataTransfer_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -619,55 +493,44 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList uris_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensureUrisIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         uris_ = new com.google.protobuf.LazyStringArrayList(uris_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_.getUnmodifiableView(); } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -675,90 +538,76 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUris( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUris( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris(java.lang.Iterable values) { + public Builder addAllUris( + java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uris_); onChanged(); return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearUris() { @@ -768,21 +617,17 @@ public Builder clearUris() { return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUrisBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); @@ -790,10 +635,8 @@ public Builder addUrisBytes(com.google.protobuf.ByteString value) { return this; } - private boolean siteToSiteDataTransfer_; + private boolean siteToSiteDataTransfer_ ; /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -801,7 +644,6 @@ public Builder addUrisBytes(com.google.protobuf.ByteString value) {
      * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -809,8 +651,6 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -818,20 +658,17 @@ public boolean getSiteToSiteDataTransfer() {
      * 
* * bool site_to_site_data_transfer = 2; - * * @param value The siteToSiteDataTransfer to set. * @return This builder for chaining. */ public Builder setSiteToSiteDataTransfer(boolean value) { - + siteToSiteDataTransfer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -839,7 +676,6 @@ public Builder setSiteToSiteDataTransfer(boolean value) {
      * 
* * bool site_to_site_data_transfer = 2; - * * @return This builder for chaining. */ public Builder clearSiteToSiteDataTransfer() { @@ -848,125 +684,9 @@ public Builder clearSiteToSiteDataTransfer() { onChanged(); return this; } - - private java.lang.Object vpcNetwork_ = ""; - /** - * - * - *
-     * Output only. The VPC network where these VPN tunnels are located.
-     * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The vpcNetwork. - */ - public java.lang.String getVpcNetwork() { - java.lang.Object ref = vpcNetwork_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - vpcNetwork_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The VPC network where these VPN tunnels are located.
-     * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for vpcNetwork. - */ - public com.google.protobuf.ByteString getVpcNetworkBytes() { - java.lang.Object ref = vpcNetwork_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - vpcNetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The VPC network where these VPN tunnels are located.
-     * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @param value The vpcNetwork to set. - * @return This builder for chaining. - */ - public Builder setVpcNetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - vpcNetwork_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The VPC network where these VPN tunnels are located.
-     * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearVpcNetwork() { - vpcNetwork_ = getDefaultInstance().getVpcNetwork(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The VPC network where these VPN tunnels are located.
-     * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for vpcNetwork to set. - * @return This builder for chaining. - */ - public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - vpcNetwork_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - 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 +696,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) private static final com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(); } @@ -990,27 +710,27 @@ public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkedVpnTunnels parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkedVpnTunnels parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,4 +745,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java similarity index 53% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java index 8072c8053993..8777c4dfa115 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java @@ -1,82 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LinkedVpnTunnelsOrBuilder - extends +public interface LinkedVpnTunnelsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the uris. */ - java.util.List getUrisList(); + java.util.List + getUrisList(); /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of uris. */ int getUrisCount(); /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString getUrisBytes(int index); + com.google.protobuf.ByteString + getUrisBytes(int index); /** - * - * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -84,37 +56,7 @@ public interface LinkedVpnTunnelsOrBuilder
    * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ boolean getSiteToSiteDataTransfer(); - - /** - * - * - *
-   * Output only. The VPC network where these VPN tunnels are located.
-   * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The vpcNetwork. - */ - java.lang.String getVpcNetwork(); - /** - * - * - *
-   * Output only. The VPC network where these VPN tunnels are located.
-   * 
- * - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for vpcNetwork. - */ - com.google.protobuf.ByteString getVpcNetworkBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java index f993c7627249..e3164f7923b6 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java @@ -1,44 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * Request for
- * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
- * method.
+ * Request for [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsRequest} */ -public final class ListHubsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListHubsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListHubsRequest) ListHubsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListHubsRequest.newBuilder() to construct. private ListHubsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListHubsRequest() { parent_ = ""; pageToken_ = ""; @@ -48,45 +28,38 @@ private ListHubsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListHubsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, - com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 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 @@ -95,31 +68,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 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 { @@ -130,14 +101,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -146,18 +114,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -166,29 +130,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The page token.
    * 
* * 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 { @@ -197,18 +161,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -217,29 +177,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; } } /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * 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 { @@ -248,18 +208,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -268,29 +224,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -299,7 +255,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,7 +266,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -340,7 +296,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,19 +316,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.networkconnectivity.v1.ListHubsRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListHubsRequest other = - (com.google.cloud.networkconnectivity.v1.ListHubsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1.ListHubsRequest other = (com.google.cloud.networkconnectivity.v1.ListHubsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -399,138 +360,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.ListHubsRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListHubsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
-   * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
-   * method.
+   * Request for [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListHubsRequest) com.google.cloud.networkconnectivity.v1.ListHubsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, - com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.ListHubsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -544,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; } @java.lang.Override @@ -565,11 +517,8 @@ public com.google.cloud.networkconnectivity.v1.ListHubsRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.ListHubsRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.ListHubsRequest result = - new com.google.cloud.networkconnectivity.v1.ListHubsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.ListHubsRequest result = new com.google.cloud.networkconnectivity.v1.ListHubsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -597,39 +546,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListHubsReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.ListHubsRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsRequest)other); } else { super.mergeFrom(other); return this; @@ -637,8 +585,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListHubsRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.ListHubsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.ListHubsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -688,43 +635,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -734,27 +675,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * string parent = 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; @@ -763,23 +699,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * string parent = 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 { @@ -787,39 +720,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * string 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() { @@ -829,23 +751,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -853,16 +769,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -870,33 +783,27 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -908,20 +815,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The page token.
      * 
* * 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; @@ -930,21 +835,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The page token.
      * 
* * 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 { @@ -952,35 +856,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The page token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -990,21 +887,17 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1014,20 +907,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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; @@ -1036,21 +927,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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 { @@ -1058,35 +948,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1096,21 +979,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1120,20 +999,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1142,21 +1019,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1164,35 +1040,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1202,30 +1071,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1235,12 +1100,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListHubsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListHubsRequest) private static final com.google.cloud.networkconnectivity.v1.ListHubsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListHubsRequest(); } @@ -1249,27 +1114,27 @@ public static com.google.cloud.networkconnectivity.v1.ListHubsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1284,4 +1149,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListHubsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java similarity index 58% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java index 0a8b42a0fd49..d7553ac570fe 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java @@ -1,142 +1,99 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListHubsRequestOrBuilder - extends +public interface ListHubsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListHubsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java similarity index 71% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java index 20024f166dd5..b481cc06309c 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java @@ -1,44 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * Response for
- * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
- * method.
+ * Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsResponse} */ -public final class ListHubsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListHubsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListHubsResponse) ListHubsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListHubsResponse.newBuilder() to construct. private ListHubsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListHubsResponse() { hubs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -47,37 +27,33 @@ private ListHubsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListHubsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, - com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class); + com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class); } public static final int HUBS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List hubs_; /** - * - * *
    * The requested hubs.
    * 
@@ -89,8 +65,6 @@ public java.util.List getHubsList() return hubs_; } /** - * - * *
    * The requested hubs.
    * 
@@ -98,13 +72,11 @@ public java.util.List getHubsList() * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getHubsOrBuilderList() { return hubs_; } /** - * - * *
    * The requested hubs.
    * 
@@ -116,8 +88,6 @@ public int getHubsCount() { return hubs_.size(); } /** - * - * *
    * The requested hubs.
    * 
@@ -129,8 +99,6 @@ public com.google.cloud.networkconnectivity.v1.Hub getHubs(int index) { return hubs_.get(index); } /** - * - * *
    * The requested hubs.
    * 
@@ -138,24 +106,21 @@ public com.google.cloud.networkconnectivity.v1.Hub getHubs(int index) { * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( + int index) { return hubs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -164,30 +129,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -196,46 +161,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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. */ @@ -243,23 +199,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; @@ -271,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 { for (int i = 0; i < hubs_.size(); i++) { output.writeMessage(1, hubs_.get(i)); } @@ -291,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < hubs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hubs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, hubs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -312,17 +267,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.networkconnectivity.v1.ListHubsResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListHubsResponse other = - (com.google.cloud.networkconnectivity.v1.ListHubsResponse) obj; + com.google.cloud.networkconnectivity.v1.ListHubsResponse other = (com.google.cloud.networkconnectivity.v1.ListHubsResponse) obj; - if (!getHubsList().equals(other.getHubsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getHubsList() + .equals(other.getHubsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,138 +307,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.ListHubsResponse prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListHubsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * Response for
-   * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
-   * method.
+   * Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListHubsResponse) com.google.cloud.networkconnectivity.v1.ListHubsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, - com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class); + com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.ListHubsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -500,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; } @java.lang.Override @@ -521,18 +469,14 @@ public com.google.cloud.networkconnectivity.v1.ListHubsResponse build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.ListHubsResponse buildPartial() { - com.google.cloud.networkconnectivity.v1.ListHubsResponse result = - new com.google.cloud.networkconnectivity.v1.ListHubsResponse(this); + com.google.cloud.networkconnectivity.v1.ListHubsResponse result = new com.google.cloud.networkconnectivity.v1.ListHubsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1.ListHubsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.ListHubsResponse result) { if (hubsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { hubs_ = java.util.Collections.unmodifiableList(hubs_); @@ -560,39 +504,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListHubsRespo public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.ListHubsResponse) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsResponse) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsResponse)other); } else { super.mergeFrom(other); return this; @@ -600,8 +543,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListHubsResponse other) { - if (other == com.google.cloud.networkconnectivity.v1.ListHubsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.ListHubsResponse.getDefaultInstance()) return this; if (hubsBuilder_ == null) { if (!other.hubs_.isEmpty()) { if (hubs_.isEmpty()) { @@ -620,10 +562,9 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListHubsRespons hubsBuilder_ = null; hubs_ = other.hubs_; bitField0_ = (bitField0_ & ~0x00000001); - hubsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHubsFieldBuilder() - : null; + hubsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHubsFieldBuilder() : null; } else { hubsBuilder_.addAllMessages(other.hubs_); } @@ -670,39 +611,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.networkconnectivity.v1.Hub m = - input.readMessage( - com.google.cloud.networkconnectivity.v1.Hub.parser(), extensionRegistry); - if (hubsBuilder_ == null) { - ensureHubsIsMutable(); - hubs_.add(m); - } else { - hubsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.networkconnectivity.v1.Hub m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.Hub.parser(), + extensionRegistry); + if (hubsBuilder_ == null) { + ensureHubsIsMutable(); + hubs_.add(m); + } else { + hubsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -712,28 +650,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List hubs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureHubsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { hubs_ = new java.util.ArrayList(hubs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder> - hubsBuilder_; + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> hubsBuilder_; /** - * - * *
      * The requested hubs.
      * 
@@ -748,8 +679,6 @@ public java.util.List getHubsList() } } /** - * - * *
      * The requested hubs.
      * 
@@ -764,8 +693,6 @@ public int getHubsCount() { } } /** - * - * *
      * The requested hubs.
      * 
@@ -780,15 +707,14 @@ public com.google.cloud.networkconnectivity.v1.Hub getHubs(int index) { } } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public Builder setHubs(int index, com.google.cloud.networkconnectivity.v1.Hub value) { + public Builder setHubs( + int index, com.google.cloud.networkconnectivity.v1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -802,8 +728,6 @@ public Builder setHubs(int index, com.google.cloud.networkconnectivity.v1.Hub va return this; } /** - * - * *
      * The requested hubs.
      * 
@@ -822,8 +746,6 @@ public Builder setHubs( return this; } /** - * - * *
      * The requested hubs.
      * 
@@ -844,15 +766,14 @@ public Builder addHubs(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public Builder addHubs(int index, com.google.cloud.networkconnectivity.v1.Hub value) { + public Builder addHubs( + int index, com.google.cloud.networkconnectivity.v1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -866,15 +787,14 @@ public Builder addHubs(int index, com.google.cloud.networkconnectivity.v1.Hub va return this; } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public Builder addHubs(com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { + public Builder addHubs( + com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { if (hubsBuilder_ == null) { ensureHubsIsMutable(); hubs_.add(builderForValue.build()); @@ -885,8 +805,6 @@ public Builder addHubs(com.google.cloud.networkconnectivity.v1.Hub.Builder build return this; } /** - * - * *
      * The requested hubs.
      * 
@@ -905,8 +823,6 @@ public Builder addHubs( return this; } /** - * - * *
      * The requested hubs.
      * 
@@ -917,7 +833,8 @@ public Builder addAllHubs( java.lang.Iterable values) { if (hubsBuilder_ == null) { ensureHubsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hubs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, hubs_); onChanged(); } else { hubsBuilder_.addAllMessages(values); @@ -925,8 +842,6 @@ public Builder addAllHubs( return this; } /** - * - * *
      * The requested hubs.
      * 
@@ -944,8 +859,6 @@ public Builder clearHubs() { return this; } /** - * - * *
      * The requested hubs.
      * 
@@ -963,44 +876,39 @@ public Builder removeHubs(int index) { return this; } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubsBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubsBuilder( + int index) { return getHubsFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( + int index) { if (hubsBuilder_ == null) { - return hubs_.get(index); - } else { + return hubs_.get(index); } else { return hubsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public java.util.List - getHubsOrBuilderList() { + public java.util.List + getHubsOrBuilderList() { if (hubsBuilder_ != null) { return hubsBuilder_.getMessageOrBuilderList(); } else { @@ -1008,8 +916,6 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int } } /** - * - * *
      * The requested hubs.
      * 
@@ -1017,48 +923,42 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder() { - return getHubsFieldBuilder() - .addBuilder(com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); + return getHubsFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder(int index) { - return getHubsFieldBuilder() - .addBuilder(index, com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder( + int index) { + return getHubsFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public java.util.List - getHubsBuilderList() { + public java.util.List + getHubsBuilderList() { return getHubsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> getHubsFieldBuilder() { if (hubsBuilder_ == null) { - hubsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder>( - hubs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + hubsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder>( + hubs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); hubs_ = null; } return hubsBuilder_; @@ -1066,21 +966,19 @@ public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder(int in private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -1089,22 +987,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1112,37 +1009,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1152,22 +1042,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1175,52 +1061,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * 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. */ @@ -1228,90 +1104,76 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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(); - } + 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) { + 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() { @@ -1321,30 +1183,26 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1354,12 +1212,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListHubsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListHubsResponse) private static final com.google.cloud.networkconnectivity.v1.ListHubsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListHubsResponse(); } @@ -1368,27 +1226,27 @@ public static com.google.cloud.networkconnectivity.v1.ListHubsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1403,4 +1261,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListHubsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java similarity index 71% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java index b161d9b83f1a..73449f136a7b 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListHubsResponseOrBuilder - extends +public interface ListHubsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListHubsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested hubs.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - java.util.List getHubsList(); + java.util.List + getHubsList(); /** - * - * *
    * The requested hubs.
    * 
@@ -44,8 +25,6 @@ public interface ListHubsResponseOrBuilder */ com.google.cloud.networkconnectivity.v1.Hub getHubs(int index); /** - * - * *
    * The requested hubs.
    * 
@@ -54,102 +33,84 @@ public interface ListHubsResponseOrBuilder */ int getHubsCount(); /** - * - * *
    * The requested hubs.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - java.util.List + java.util.List getHubsOrBuilderList(); /** - * - * *
    * The requested hubs.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int index); + com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( + int index); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java similarity index 66% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java index 444325073897..9ceed8ba2e12 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * The request for
- * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
+ * The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesRequest} */ -public final class ListSpokesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSpokesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListSpokesRequest) ListSpokesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSpokesRequest.newBuilder() to construct. private ListSpokesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSpokesRequest() { parent_ = ""; pageToken_ = ""; @@ -47,45 +28,38 @@ private ListSpokesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSpokesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, - com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 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 @@ -94,31 +68,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 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 { @@ -129,14 +101,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -145,18 +114,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -165,29 +130,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The page token.
    * 
* * 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 { @@ -196,18 +161,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -216,29 +177,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; } } /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * 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 { @@ -247,18 +208,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -267,29 +224,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -298,7 +255,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,7 +266,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -339,7 +296,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_); @@ -358,19 +316,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.networkconnectivity.v1.ListSpokesRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListSpokesRequest other = - (com.google.cloud.networkconnectivity.v1.ListSpokesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1.ListSpokesRequest other = (com.google.cloud.networkconnectivity.v1.ListSpokesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -398,137 +360,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListSpokesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * The request for
-   * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
+   * The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListSpokesRequest) com.google.cloud.networkconnectivity.v1.ListSpokesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, - com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.ListSpokesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -542,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; } @java.lang.Override @@ -563,11 +517,8 @@ public com.google.cloud.networkconnectivity.v1.ListSpokesRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.ListSpokesRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.ListSpokesRequest result = - new com.google.cloud.networkconnectivity.v1.ListSpokesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.ListSpokesRequest result = new com.google.cloud.networkconnectivity.v1.ListSpokesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -595,39 +546,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListSpokesReq public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.ListSpokesRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesRequest)other); } else { super.mergeFrom(other); return this; @@ -635,8 +585,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListSpokesRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.ListSpokesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.ListSpokesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -686,43 +635,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -732,27 +675,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string parent = 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; @@ -761,23 +699,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string parent = 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 { @@ -785,39 +720,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string 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() { @@ -827,23 +751,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -851,16 +769,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -868,33 +783,27 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -906,20 +815,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The page token.
      * 
* * 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; @@ -928,21 +835,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The page token.
      * 
* * 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 { @@ -950,35 +856,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The page token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -988,21 +887,17 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1012,20 +907,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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; @@ -1034,21 +927,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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 { @@ -1056,35 +948,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1094,21 +979,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1118,20 +999,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1140,21 +1019,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1162,35 +1040,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1200,30 +1071,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1233,12 +1100,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListSpokesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListSpokesRequest) private static final com.google.cloud.networkconnectivity.v1.ListSpokesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListSpokesRequest(); } @@ -1247,27 +1114,27 @@ public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1282,4 +1149,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListSpokesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java similarity index 58% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java index 6d50170b35ab..46c69c915c82 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java @@ -1,142 +1,99 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListSpokesRequestOrBuilder - extends +public interface ListSpokesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListSpokesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java similarity index 72% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java index 3dc609e1c520..ca637cc054a6 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * The response for
- * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
+ * The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesResponse} */ -public final class ListSpokesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSpokesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListSpokesResponse) ListSpokesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSpokesResponse.newBuilder() to construct. private ListSpokesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSpokesResponse() { spokes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -46,37 +27,33 @@ private ListSpokesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSpokesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, - com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class); } public static final int SPOKES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List spokes_; /** - * - * *
    * The requested spokes.
    * 
@@ -88,8 +65,6 @@ public java.util.List getSpokesLi return spokes_; } /** - * - * *
    * The requested spokes.
    * 
@@ -97,13 +72,11 @@ public java.util.List getSpokesLi * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSpokesOrBuilderList() { return spokes_; } /** - * - * *
    * The requested spokes.
    * 
@@ -115,8 +88,6 @@ public int getSpokesCount() { return spokes_.size(); } /** - * - * *
    * The requested spokes.
    * 
@@ -128,8 +99,6 @@ public com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index) { return spokes_.get(index); } /** - * - * *
    * The requested spokes.
    * 
@@ -137,24 +106,21 @@ public com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index) { * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder( + int index) { return spokes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -163,30 +129,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -195,46 +161,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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. */ @@ -242,23 +199,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; @@ -270,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 { for (int i = 0; i < spokes_.size(); i++) { output.writeMessage(1, spokes_.get(i)); } @@ -290,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < spokes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, spokes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, spokes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -311,17 +267,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.networkconnectivity.v1.ListSpokesResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListSpokesResponse other = - (com.google.cloud.networkconnectivity.v1.ListSpokesResponse) obj; + com.google.cloud.networkconnectivity.v1.ListSpokesResponse other = (com.google.cloud.networkconnectivity.v1.ListSpokesResponse) obj; - if (!getSpokesList().equals(other.getSpokesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getSpokesList() + .equals(other.getSpokesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -349,137 +307,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.ListSpokesResponse prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListSpokesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * The response for
-   * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
+   * The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListSpokesResponse) com.google.cloud.networkconnectivity.v1.ListSpokesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, - com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.ListSpokesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -498,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; } @java.lang.Override @@ -519,18 +469,14 @@ public com.google.cloud.networkconnectivity.v1.ListSpokesResponse build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.ListSpokesResponse buildPartial() { - com.google.cloud.networkconnectivity.v1.ListSpokesResponse result = - new com.google.cloud.networkconnectivity.v1.ListSpokesResponse(this); + com.google.cloud.networkconnectivity.v1.ListSpokesResponse result = new com.google.cloud.networkconnectivity.v1.ListSpokesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1.ListSpokesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.ListSpokesResponse result) { if (spokesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { spokes_ = java.util.Collections.unmodifiableList(spokes_); @@ -558,39 +504,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListSpokesRes public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.ListSpokesResponse) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesResponse) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesResponse)other); } else { super.mergeFrom(other); return this; @@ -598,8 +543,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListSpokesResponse other) { - if (other == com.google.cloud.networkconnectivity.v1.ListSpokesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.ListSpokesResponse.getDefaultInstance()) return this; if (spokesBuilder_ == null) { if (!other.spokes_.isEmpty()) { if (spokes_.isEmpty()) { @@ -618,10 +562,9 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListSpokesRespo spokesBuilder_ = null; spokes_ = other.spokes_; bitField0_ = (bitField0_ & ~0x00000001); - spokesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSpokesFieldBuilder() - : null; + spokesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSpokesFieldBuilder() : null; } else { spokesBuilder_.addAllMessages(other.spokes_); } @@ -668,39 +611,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.networkconnectivity.v1.Spoke m = - input.readMessage( - com.google.cloud.networkconnectivity.v1.Spoke.parser(), extensionRegistry); - if (spokesBuilder_ == null) { - ensureSpokesIsMutable(); - spokes_.add(m); - } else { - spokesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.networkconnectivity.v1.Spoke m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.Spoke.parser(), + extensionRegistry); + if (spokesBuilder_ == null) { + ensureSpokesIsMutable(); + spokes_.add(m); + } else { + spokesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -710,28 +650,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List spokes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSpokesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { spokes_ = new java.util.ArrayList(spokes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> - spokesBuilder_; + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> spokesBuilder_; /** - * - * *
      * The requested spokes.
      * 
@@ -746,8 +679,6 @@ public java.util.List getSpokesLi } } /** - * - * *
      * The requested spokes.
      * 
@@ -762,8 +693,6 @@ public int getSpokesCount() { } } /** - * - * *
      * The requested spokes.
      * 
@@ -778,15 +707,14 @@ public com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index) { } } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public Builder setSpokes(int index, com.google.cloud.networkconnectivity.v1.Spoke value) { + public Builder setSpokes( + int index, com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -800,8 +728,6 @@ public Builder setSpokes(int index, com.google.cloud.networkconnectivity.v1.Spok return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -820,8 +746,6 @@ public Builder setSpokes( return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -842,15 +766,14 @@ public Builder addSpokes(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public Builder addSpokes(int index, com.google.cloud.networkconnectivity.v1.Spoke value) { + public Builder addSpokes( + int index, com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -864,8 +787,6 @@ public Builder addSpokes(int index, com.google.cloud.networkconnectivity.v1.Spok return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -884,8 +805,6 @@ public Builder addSpokes( return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -904,8 +823,6 @@ public Builder addSpokes( return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -916,7 +833,8 @@ public Builder addAllSpokes( java.lang.Iterable values) { if (spokesBuilder_ == null) { ensureSpokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spokes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, spokes_); onChanged(); } else { spokesBuilder_.addAllMessages(values); @@ -924,8 +842,6 @@ public Builder addAllSpokes( return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -943,8 +859,6 @@ public Builder clearSpokes() { return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -962,44 +876,39 @@ public Builder removeSpokes(int index) { return this; } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokesBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokesBuilder( + int index) { return getSpokesFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder( + int index) { if (spokesBuilder_ == null) { - return spokes_.get(index); - } else { + return spokes_.get(index); } else { return spokesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public java.util.List - getSpokesOrBuilderList() { + public java.util.List + getSpokesOrBuilderList() { if (spokesBuilder_ != null) { return spokesBuilder_.getMessageOrBuilderList(); } else { @@ -1007,8 +916,6 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder } } /** - * - * *
      * The requested spokes.
      * 
@@ -1016,48 +923,42 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder() { - return getSpokesFieldBuilder() - .addBuilder(com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); + return getSpokesFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder(int index) { - return getSpokesFieldBuilder() - .addBuilder(index, com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder( + int index) { + return getSpokesFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public java.util.List - getSpokesBuilderList() { + public java.util.List + getSpokesBuilderList() { return getSpokesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> getSpokesFieldBuilder() { if (spokesBuilder_ == null) { - spokesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( - spokes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + spokesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( + spokes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); spokes_ = null; } return spokesBuilder_; @@ -1065,21 +966,19 @@ public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder(in private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -1088,22 +987,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1111,37 +1009,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1151,22 +1042,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1174,52 +1061,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * 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. */ @@ -1227,90 +1104,76 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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(); - } + 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) { + 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() { @@ -1320,30 +1183,26 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1353,12 +1212,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListSpokesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListSpokesResponse) private static final com.google.cloud.networkconnectivity.v1.ListSpokesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListSpokesResponse(); } @@ -1367,27 +1226,27 @@ public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1402,4 +1261,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListSpokesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java similarity index 73% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java index 212e8ce02a58..834b94da7b71 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListSpokesResponseOrBuilder - extends +public interface ListSpokesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListSpokesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested spokes.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - java.util.List getSpokesList(); + java.util.List + getSpokesList(); /** - * - * *
    * The requested spokes.
    * 
@@ -44,8 +25,6 @@ public interface ListSpokesResponseOrBuilder */ com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index); /** - * - * *
    * The requested spokes.
    * 
@@ -54,102 +33,84 @@ public interface ListSpokesResponseOrBuilder */ int getSpokesCount(); /** - * - * *
    * The requested spokes.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - java.util.List + java.util.List getSpokesOrBuilderList(); /** - * - * *
    * The requested spokes.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder(int index); + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder( + int index); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java index 21d5923cd802..42e0a5d62865 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * Supported features for a location
  * 
* * Protobuf enum {@code google.cloud.networkconnectivity.v1.LocationFeature} */ -public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { +public enum LocationFeature + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * No publicly supported feature in this location
    * 
@@ -39,8 +21,6 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { */ LOCATION_FEATURE_UNSPECIFIED(0), /** - * - * *
    * Site-to-cloud spokes are supported in this location
    * 
@@ -49,8 +29,6 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { */ SITE_TO_CLOUD_SPOKES(1), /** - * - * *
    * Site-to-site spokes are supported in this location
    * 
@@ -62,8 +40,6 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * No publicly supported feature in this location
    * 
@@ -72,8 +48,6 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOCATION_FEATURE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Site-to-cloud spokes are supported in this location
    * 
@@ -82,8 +56,6 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SITE_TO_CLOUD_SPOKES_VALUE = 1; /** - * - * *
    * Site-to-site spokes are supported in this location
    * 
@@ -92,6 +64,7 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SITE_TO_SITE_SPOKES_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,49 +89,49 @@ public static LocationFeature valueOf(int value) { */ public static LocationFeature forNumber(int value) { switch (value) { - case 0: - return LOCATION_FEATURE_UNSPECIFIED; - case 1: - return SITE_TO_CLOUD_SPOKES; - case 2: - return SITE_TO_SITE_SPOKES; - default: - return null; + case 0: return LOCATION_FEATURE_UNSPECIFIED; + case 1: return SITE_TO_CLOUD_SPOKES; + case 2: return SITE_TO_SITE_SPOKES; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LocationFeature findValueByNumber(int number) { - return LocationFeature.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + LocationFeature> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LocationFeature findValueByNumber(int number) { + return LocationFeature.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.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(1); } private static final LocationFeature[] VALUES = values(); - public static LocationFeature valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static LocationFeature valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -174,3 +147,4 @@ private LocationFeature(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.LocationFeature) } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java index b9e4e2f54e66..2f0e5ab71614 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java @@ -1,120 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * Metadata about locations
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.LocationMetadata} */ -public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LocationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LocationMetadata) LocationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LocationMetadata.newBuilder() to construct. private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LocationMetadata() { locationFeatures_ = 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 LocationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.LocationMetadata.class, - com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.LocationMetadata.class, com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); } public static final int LOCATION_FEATURES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List locationFeatures_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature> - locationFeatures_converter_ = + java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature> locationFeatures_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>() { - public com.google.cloud.networkconnectivity.v1.LocationFeature convert( - java.lang.Integer from) { - com.google.cloud.networkconnectivity.v1.LocationFeature result = - com.google.cloud.networkconnectivity.v1.LocationFeature.forNumber(from); - return result == null - ? com.google.cloud.networkconnectivity.v1.LocationFeature.UNRECOGNIZED - : result; + public com.google.cloud.networkconnectivity.v1.LocationFeature convert(java.lang.Integer from) { + com.google.cloud.networkconnectivity.v1.LocationFeature result = com.google.cloud.networkconnectivity.v1.LocationFeature.forNumber(from); + return result == null ? com.google.cloud.networkconnectivity.v1.LocationFeature.UNRECOGNIZED : result; } }; /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return A list containing the locationFeatures. */ @java.lang.Override - public java.util.List - getLocationFeaturesList() { + public java.util.List getLocationFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>( - locationFeatures_, locationFeatures_converter_); + java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>(locationFeatures_, locationFeatures_converter_); } /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return The count of locationFeatures. */ @java.lang.Override @@ -122,15 +86,11 @@ public int getLocationFeaturesCount() { return locationFeatures_.size(); } /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index of the element to return. * @return The locationFeatures at the given index. */ @@ -139,31 +99,24 @@ public com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatur return locationFeatures_converter_.convert(locationFeatures_.get(index)); } /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return A list containing the enum numeric values on the wire for locationFeatures. */ @java.lang.Override - public java.util.List getLocationFeaturesValueList() { + public java.util.List + getLocationFeaturesValueList() { return locationFeatures_; } /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of locationFeatures at the given index. */ @@ -171,11 +124,9 @@ public java.util.List getLocationFeaturesValueList() { public int getLocationFeaturesValue(int index) { return locationFeatures_.get(index); } - private int locationFeaturesMemoizedSerializedSize; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +138,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getLocationFeaturesList().size() > 0) { output.writeUInt32NoTag(10); @@ -208,15 +160,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < locationFeatures_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(locationFeatures_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(locationFeatures_.get(i)); } size += dataSize; - if (!getLocationFeaturesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - locationFeaturesMemoizedSerializedSize = dataSize; + if (!getLocationFeaturesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }locationFeaturesMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -226,13 +177,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.networkconnectivity.v1.LocationMetadata)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LocationMetadata other = - (com.google.cloud.networkconnectivity.v1.LocationMetadata) obj; + com.google.cloud.networkconnectivity.v1.LocationMetadata other = (com.google.cloud.networkconnectivity.v1.LocationMetadata) obj; if (!locationFeatures_.equals(other.locationFeatures_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -256,136 +206,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.LocationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LocationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metadata about locations
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.LocationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LocationMetadata) com.google.cloud.networkconnectivity.v1.LocationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.LocationMetadata.class, - com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.LocationMetadata.class, com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.LocationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -396,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; } @java.lang.Override @@ -417,18 +360,14 @@ public com.google.cloud.networkconnectivity.v1.LocationMetadata build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.LocationMetadata buildPartial() { - com.google.cloud.networkconnectivity.v1.LocationMetadata result = - new com.google.cloud.networkconnectivity.v1.LocationMetadata(this); + com.google.cloud.networkconnectivity.v1.LocationMetadata result = new com.google.cloud.networkconnectivity.v1.LocationMetadata(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1.LocationMetadata result) { + private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LocationMetadata result) { if (((bitField0_ & 0x00000001) != 0)) { locationFeatures_ = java.util.Collections.unmodifiableList(locationFeatures_); bitField0_ = (bitField0_ & ~0x00000001); @@ -444,39 +383,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LocationMetad public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.LocationMetadata) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.LocationMetadata) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.LocationMetadata)other); } else { super.mergeFrom(other); return this; @@ -484,8 +422,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LocationMetadata other) { - if (other == com.google.cloud.networkconnectivity.v1.LocationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.LocationMetadata.getDefaultInstance()) return this; if (!other.locationFeatures_.isEmpty()) { if (locationFeatures_.isEmpty()) { locationFeatures_ = other.locationFeatures_; @@ -522,32 +459,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { + case 8: { + int tmpRaw = input.readEnum(); + ensureLocationFeaturesIsMutable(); + locationFeatures_.add(tmpRaw); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureLocationFeaturesIsMutable(); locationFeatures_.add(tmpRaw); - break; - } // case 8 - case 10: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureLocationFeaturesIsMutable(); - locationFeatures_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,11 +491,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List locationFeatures_ = java.util.Collections.emptyList(); - + private java.util.List locationFeatures_ = + java.util.Collections.emptyList(); private void ensureLocationFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { locationFeatures_ = new java.util.ArrayList(locationFeatures_); @@ -569,48 +502,34 @@ private void ensureLocationFeaturesIsMutable() { } } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return A list containing the locationFeatures. */ - public java.util.List - getLocationFeaturesList() { + public java.util.List getLocationFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>( - locationFeatures_, locationFeatures_converter_); + java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>(locationFeatures_, locationFeatures_converter_); } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return The count of locationFeatures. */ public int getLocationFeaturesCount() { return locationFeatures_.size(); } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index of the element to return. * @return The locationFeatures at the given index. */ @@ -618,15 +537,11 @@ public com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatur return locationFeatures_converter_.convert(locationFeatures_.get(index)); } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index to set the value at. * @param value The locationFeatures to set. * @return This builder for chaining. @@ -642,20 +557,15 @@ public Builder setLocationFeatures( return this; } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param value The locationFeatures to add. * @return This builder for chaining. */ - public Builder addLocationFeatures( - com.google.cloud.networkconnectivity.v1.LocationFeature value) { + public Builder addLocationFeatures(com.google.cloud.networkconnectivity.v1.LocationFeature value) { if (value == null) { throw new NullPointerException(); } @@ -665,21 +575,16 @@ public Builder addLocationFeatures( return this; } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param values The locationFeatures to add. * @return This builder for chaining. */ public Builder addAllLocationFeatures( - java.lang.Iterable - values) { + java.lang.Iterable values) { ensureLocationFeaturesIsMutable(); for (com.google.cloud.networkconnectivity.v1.LocationFeature value : values) { locationFeatures_.add(value.getNumber()); @@ -688,15 +593,11 @@ public Builder addAllLocationFeatures( return this; } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return This builder for chaining. */ public Builder clearLocationFeatures() { @@ -706,30 +607,23 @@ public Builder clearLocationFeatures() { return this; } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return A list containing the enum numeric values on the wire for locationFeatures. */ - public java.util.List getLocationFeaturesValueList() { + public java.util.List + getLocationFeaturesValueList() { return java.util.Collections.unmodifiableList(locationFeatures_); } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of locationFeatures at the given index. */ @@ -737,35 +631,28 @@ public int getLocationFeaturesValue(int index) { return locationFeatures_.get(index); } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index to set the value at. * @param value The enum numeric value on the wire for locationFeatures to set. * @return This builder for chaining. */ - public Builder setLocationFeaturesValue(int index, int value) { + public Builder setLocationFeaturesValue( + int index, int value) { ensureLocationFeaturesIsMutable(); locationFeatures_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param value The enum numeric value on the wire for locationFeatures to add. * @return This builder for chaining. */ @@ -776,19 +663,16 @@ public Builder addLocationFeaturesValue(int value) { return this; } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param values The enum numeric values on the wire for locationFeatures to add. * @return This builder for chaining. */ - public Builder addAllLocationFeaturesValue(java.lang.Iterable values) { + public Builder addAllLocationFeaturesValue( + java.lang.Iterable values) { ensureLocationFeaturesIsMutable(); for (int value : values) { locationFeatures_.add(value); @@ -796,9 +680,9 @@ public Builder addAllLocationFeaturesValue(java.lang.Iterable onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +692,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LocationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LocationMetadata) private static final com.google.cloud.networkconnectivity.v1.LocationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LocationMetadata(); } @@ -822,27 +706,27 @@ public static com.google.cloud.networkconnectivity.v1.LocationMetadata getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,4 +741,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.LocationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java similarity index 62% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java index f42007f563f6..f8b387b0a5a2 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java @@ -1,91 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LocationMetadataOrBuilder - extends +public interface LocationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LocationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return A list containing the locationFeatures. */ java.util.List getLocationFeaturesList(); /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return The count of locationFeatures. */ int getLocationFeaturesCount(); /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index of the element to return. * @return The locationFeatures at the given index. */ com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatures(int index); /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return A list containing the enum numeric values on the wire for locationFeatures. */ - java.util.List getLocationFeaturesValueList(); + java.util.List + getLocationFeaturesValueList(); /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of locationFeatures at the given index. */ diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java index ecb829230dfd..ccff6a11ac7c 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/common.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,42 +28,37 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.OperationMetadata.class, - com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -89,15 +66,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -105,14 +78,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -122,15 +92,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -138,15 +104,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -154,14 +116,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -169,18 +128,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -189,29 +144,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -220,18 +175,14 @@ public com.google.protobuf.ByteString getTargetBytes() { } public static final int VERB_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -240,29 +191,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -271,18 +222,14 @@ public com.google.protobuf.ByteString getVerbBytes() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -291,29 +238,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -324,8 +271,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have been cancelled successfully
@@ -334,7 +279,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -343,18 +287,14 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -363,29 +303,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -394,7 +334,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -406,7 +345,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -438,10 +378,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_); @@ -453,7 +395,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_); @@ -466,27 +409,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.networkconnectivity.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.OperationMetadata other = - (com.google.cloud.networkconnectivity.v1.OperationMetadata) obj; + com.google.cloud.networkconnectivity.v1.OperationMetadata other = (com.google.cloud.networkconnectivity.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -513,7 +462,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) + getUnknownFields().hashCode(); @@ -522,136 +472,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.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.networkconnectivity.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.OperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.OperationMetadata) com.google.cloud.networkconnectivity.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.OperationMetadata.class, - com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.OperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -675,9 +618,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -696,11 +639,8 @@ public com.google.cloud.networkconnectivity.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.OperationMetadata buildPartial() { - com.google.cloud.networkconnectivity.v1.OperationMetadata result = - new com.google.cloud.networkconnectivity.v1.OperationMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.OperationMetadata result = new com.google.cloud.networkconnectivity.v1.OperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -708,10 +648,14 @@ public com.google.cloud.networkconnectivity.v1.OperationMetadata buildPartial() private void buildPartial0(com.google.cloud.networkconnectivity.v1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -734,39 +678,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.OperationMeta public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.OperationMetadata) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -774,8 +717,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.OperationMetadata other) { - if (other == com.google.cloud.networkconnectivity.v1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -831,55 +773,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -889,63 +827,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time 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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -961,17 +879,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -982,21 +897,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1009,15 +920,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1030,15 +937,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -1046,48 +949,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1095,35 +986,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1134,14 +1014,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1157,16 +1034,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1177,20 +1052,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1203,14 +1075,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1223,14 +1092,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1238,44 +1104,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1283,20 +1141,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1305,21 +1161,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1327,35 +1182,28 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1365,21 +1213,17 @@ public Builder clearTarget() { return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1389,20 +1233,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1411,21 +1253,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1433,35 +1274,28 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerb( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1471,21 +1305,17 @@ public Builder clearVerb() { return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1495,20 +1325,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1517,21 +1345,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1539,35 +1366,28 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1577,21 +1397,17 @@ public Builder clearStatusMessage() { return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1599,10 +1415,8 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
@@ -1611,7 +1425,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 @@ -1619,8 +1432,6 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
@@ -1629,20 +1440,17 @@ 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
@@ -1651,7 +1459,6 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1663,20 +1470,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1685,21 +1490,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1707,35 +1511,28 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1745,30 +1542,26 @@ public Builder clearApiVersion() { return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1778,12 +1571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.OperationMetadata) private static final com.google.cloud.networkconnectivity.v1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.OperationMetadata(); } @@ -1792,27 +1585,27 @@ public static com.google.cloud.networkconnectivity.v1.OperationMetadata getDefau 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1827,4 +1620,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java similarity index 75% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java index 217a088b5a3d..f4be0419ee4b 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/common.proto package com.google.cloud.networkconnectivity.v1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have been cancelled successfully
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java similarity index 65% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java index a7f89bd714c6..f5db4526d106 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * A router appliance instance is a Compute Engine virtual machine (VM) instance
  * that acts as a BGP speaker. A router appliance instance is specified by the
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.RouterApplianceInstance}
  */
-public final class RouterApplianceInstance extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RouterApplianceInstance extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.RouterApplianceInstance)
     RouterApplianceInstanceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RouterApplianceInstance.newBuilder() to construct.
   private RouterApplianceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RouterApplianceInstance() {
     virtualMachine_ = "";
     ipAddress_ = "";
@@ -47,43 +29,38 @@ private RouterApplianceInstance() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RouterApplianceInstance();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class,
-            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
+            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
   }
 
   public static final int VIRTUAL_MACHINE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object virtualMachine_ = "";
   /**
-   *
-   *
    * 
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The virtualMachine. */ @java.lang.Override @@ -92,29 +69,29 @@ public java.lang.String getVirtualMachine() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; } } /** - * - * *
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for virtualMachine. */ @java.lang.Override - public com.google.protobuf.ByteString getVirtualMachineBytes() { + public com.google.protobuf.ByteString + getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -123,18 +100,14 @@ public com.google.protobuf.ByteString getVirtualMachineBytes() { } public static final int IP_ADDRESS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object ipAddress_ = ""; /** - * - * *
    * The IP address on the VM to use for peering.
    * 
* * string ip_address = 3; - * * @return The ipAddress. */ @java.lang.Override @@ -143,29 +116,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; } } /** - * - * *
    * The IP address on the VM to use for peering.
    * 
* * 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 { @@ -174,7 +147,6 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,7 +158,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualMachine_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, virtualMachine_); } @@ -216,16 +189,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.networkconnectivity.v1.RouterApplianceInstance)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other = - (com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) obj; + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other = (com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) obj; - if (!getVirtualMachine().equals(other.getVirtualMachine())) return false; - if (!getIpAddress().equals(other.getIpAddress())) return false; + if (!getVirtualMachine() + .equals(other.getVirtualMachine())) return false; + if (!getIpAddress() + .equals(other.getIpAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,104 +221,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 router appliance instance is a Compute Engine virtual machine (VM) instance
    * that acts as a BGP speaker. A router appliance instance is specified by the
@@ -354,32 +320,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.RouterApplianceInstance}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.RouterApplianceInstance)
       com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class,
-              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
+              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -390,14 +357,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance
-        getDefaultInstanceForType() {
+    public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getDefaultInstanceForType() {
       return com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance();
     }
 
@@ -412,17 +378,13 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance buildPartial() {
-      com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result =
-          new com.google.cloud.networkconnectivity.v1.RouterApplianceInstance(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result = new com.google.cloud.networkconnectivity.v1.RouterApplianceInstance(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result) {
+    private void buildPartial0(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.virtualMachine_ = virtualMachine_;
@@ -436,50 +398,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.RouterApplianceInstance)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other) {
-      if (other
-          == com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other) {
+      if (other == com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()) return this;
       if (!other.getVirtualMachine().isEmpty()) {
         virtualMachine_ = other.virtualMachine_;
         bitField0_ |= 0x00000001;
@@ -516,25 +474,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                virtualMachine_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 26:
-              {
-                ipAddress_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              virtualMachine_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 26: {
+              ipAddress_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -544,25 +499,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object virtualMachine_ = "";
     /**
-     *
-     *
      * 
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The virtualMachine. */ public java.lang.String getVirtualMachine() { java.lang.Object ref = virtualMachine_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; @@ -571,21 +523,20 @@ public java.lang.String getVirtualMachine() { } } /** - * - * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for virtualMachine. */ - public com.google.protobuf.ByteString getVirtualMachineBytes() { + public com.google.protobuf.ByteString + getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -593,35 +544,28 @@ public com.google.protobuf.ByteString getVirtualMachineBytes() { } } /** - * - * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @param value The virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachine(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVirtualMachine( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } virtualMachine_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearVirtualMachine() { @@ -631,21 +575,17 @@ public Builder clearVirtualMachine() { return this; } /** - * - * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachineBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVirtualMachineBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); virtualMachine_ = value; bitField0_ |= 0x00000001; @@ -655,20 +595,18 @@ public Builder setVirtualMachineBytes(com.google.protobuf.ByteString value) { private java.lang.Object ipAddress_ = ""; /** - * - * *
      * The IP address on the VM to use for peering.
      * 
* * 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; @@ -677,21 +615,20 @@ public java.lang.String getIpAddress() { } } /** - * - * *
      * The IP address on the VM to use for peering.
      * 
* * 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 { @@ -699,35 +636,28 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } } /** - * - * *
      * The IP address on the VM to use for peering.
      * 
* * 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(); - } + public Builder setIpAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ipAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The IP address on the VM to use for peering.
      * 
* * string ip_address = 3; - * * @return This builder for chaining. */ public Builder clearIpAddress() { @@ -737,30 +667,26 @@ public Builder clearIpAddress() { return this; } /** - * - * *
      * The IP address on the VM to use for peering.
      * 
* * 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(); - } + public Builder setIpAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ipAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -770,43 +696,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.RouterApplianceInstance) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.RouterApplianceInstance) - private static final com.google.cloud.networkconnectivity.v1.RouterApplianceInstance - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1.RouterApplianceInstance DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.RouterApplianceInstance(); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouterApplianceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouterApplianceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -818,8 +742,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java similarity index 57% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java index e9f532da2fd6..1ea6f2cf0b21 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface RouterApplianceInstanceOrBuilder - extends +public interface RouterApplianceInstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.RouterApplianceInstance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The virtualMachine. */ java.lang.String getVirtualMachine(); /** - * - * *
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for virtualMachine. */ - com.google.protobuf.ByteString getVirtualMachineBytes(); + com.google.protobuf.ByteString + getVirtualMachineBytes(); /** - * - * *
    * The IP address on the VM to use for peering.
    * 
* * string ip_address = 3; - * * @return The ipAddress. */ java.lang.String getIpAddress(); /** - * - * *
    * The IP address on the VM to use for peering.
    * 
* * string ip_address = 3; - * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString getIpAddressBytes(); + com.google.protobuf.ByteString + getIpAddressBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java similarity index 63% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java index 1834dbd61aab..77bd73953b9b 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java @@ -1,86 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * RoutingVPC contains information about the VPC networks associated
- * with the spokes of a Network Connectivity Center hub.
+ * RoutingVPC contains information about the VPC networks that are associated
+ * with a hub's spokes.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.RoutingVPC} */ -public final class RoutingVPC extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RoutingVPC extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.RoutingVPC) RoutingVPCOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RoutingVPC.newBuilder() to construct. private RoutingVPC(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RoutingVPC() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RoutingVPC(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.RoutingVPC.class, - com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class); + com.google.cloud.networkconnectivity.v1.RoutingVPC.class, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class); } public static final int URI_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** - * - * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return The uri. */ @java.lang.Override @@ -89,29 +66,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -122,20 +99,15 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int REQUIRED_FOR_NEW_SITE_TO_SITE_DATA_TRANSFER_SPOKES_FIELD_NUMBER = 2; private boolean requiredForNewSiteToSiteDataTransferSpokes_ = false; /** - * - * *
-   * Output only. If true, indicates that this VPC network is currently
-   * associated with spokes that use the data transfer feature (spokes where the
+   * Output only. If true, indicates that this VPC network is currently associated with
+   * spokes that use the data transfer feature (spokes where the
    * site_to_site_data_transfer field is set to true). If you create new spokes
    * that use data transfer, they must be associated with this VPC network. At
    * most, one VPC network will have this field set to true.
    * 
* - * - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The requiredForNewSiteToSiteDataTransferSpokes. */ @java.lang.Override @@ -144,7 +116,6 @@ public boolean getRequiredForNewSiteToSiteDataTransferSpokes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -156,7 +127,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -176,9 +148,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (requiredForNewSiteToSiteDataTransferSpokes_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 2, requiredForNewSiteToSiteDataTransferSpokes_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, requiredForNewSiteToSiteDataTransferSpokes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -188,15 +159,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.networkconnectivity.v1.RoutingVPC)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.RoutingVPC other = - (com.google.cloud.networkconnectivity.v1.RoutingVPC) obj; + com.google.cloud.networkconnectivity.v1.RoutingVPC other = (com.google.cloud.networkconnectivity.v1.RoutingVPC) obj; - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (getRequiredForNewSiteToSiteDataTransferSpokes() != other.getRequiredForNewSiteToSiteDataTransferSpokes()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -213,146 +184,138 @@ public int hashCode() { hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + REQUIRED_FOR_NEW_SITE_TO_SITE_DATA_TRANSFER_SPOKES_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean( - getRequiredForNewSiteToSiteDataTransferSpokes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequiredForNewSiteToSiteDataTransferSpokes()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.RoutingVPC prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * RoutingVPC contains information about the VPC networks associated
-   * with the spokes of a Network Connectivity Center hub.
+   * RoutingVPC contains information about the VPC networks that are associated
+   * with a hub's spokes.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.RoutingVPC} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.RoutingVPC) com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.RoutingVPC.class, - com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class); + com.google.cloud.networkconnectivity.v1.RoutingVPC.class, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.RoutingVPC.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -363,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor; } @java.lang.Override @@ -384,11 +347,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.RoutingVPC buildPartial() { - com.google.cloud.networkconnectivity.v1.RoutingVPC result = - new com.google.cloud.networkconnectivity.v1.RoutingVPC(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.RoutingVPC result = new com.google.cloud.networkconnectivity.v1.RoutingVPC(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -399,8 +359,7 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.RoutingVPC re result.uri_ = uri_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.requiredForNewSiteToSiteDataTransferSpokes_ = - requiredForNewSiteToSiteDataTransferSpokes_; + result.requiredForNewSiteToSiteDataTransferSpokes_ = requiredForNewSiteToSiteDataTransferSpokes_; } } @@ -408,39 +367,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.RoutingVPC re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.RoutingVPC) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.RoutingVPC) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.RoutingVPC)other); } else { super.mergeFrom(other); return this; @@ -448,16 +406,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.RoutingVPC other) { - if (other == com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; bitField0_ |= 0x00000001; onChanged(); } if (other.getRequiredForNewSiteToSiteDataTransferSpokes() != false) { - setRequiredForNewSiteToSiteDataTransferSpokes( - other.getRequiredForNewSiteToSiteDataTransferSpokes()); + setRequiredForNewSiteToSiteDataTransferSpokes(other.getRequiredForNewSiteToSiteDataTransferSpokes()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -485,25 +441,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - requiredForNewSiteToSiteDataTransferSpokes_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + requiredForNewSiteToSiteDataTransferSpokes_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -513,25 +466,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object uri_ = ""; /** - * - * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -540,21 +490,20 @@ public java.lang.String getUri() { } } /** - * - * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -562,35 +511,28 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearUri() { @@ -600,21 +542,17 @@ public Builder clearUri() { return this; } /** - * - * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000001; @@ -622,22 +560,17 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { return this; } - private boolean requiredForNewSiteToSiteDataTransferSpokes_; + private boolean requiredForNewSiteToSiteDataTransferSpokes_ ; /** - * - * *
-     * Output only. If true, indicates that this VPC network is currently
-     * associated with spokes that use the data transfer feature (spokes where the
+     * Output only. If true, indicates that this VPC network is currently associated with
+     * spokes that use the data transfer feature (spokes where the
      * site_to_site_data_transfer field is set to true). If you create new spokes
      * that use data transfer, they must be associated with this VPC network. At
      * most, one VPC network will have this field set to true.
      * 
* - * - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The requiredForNewSiteToSiteDataTransferSpokes. */ @java.lang.Override @@ -645,45 +578,35 @@ public boolean getRequiredForNewSiteToSiteDataTransferSpokes() { return requiredForNewSiteToSiteDataTransferSpokes_; } /** - * - * *
-     * Output only. If true, indicates that this VPC network is currently
-     * associated with spokes that use the data transfer feature (spokes where the
+     * Output only. If true, indicates that this VPC network is currently associated with
+     * spokes that use the data transfer feature (spokes where the
      * site_to_site_data_transfer field is set to true). If you create new spokes
      * that use data transfer, they must be associated with this VPC network. At
      * most, one VPC network will have this field set to true.
      * 
* - * - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The requiredForNewSiteToSiteDataTransferSpokes to set. * @return This builder for chaining. */ public Builder setRequiredForNewSiteToSiteDataTransferSpokes(boolean value) { - + requiredForNewSiteToSiteDataTransferSpokes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
-     * Output only. If true, indicates that this VPC network is currently
-     * associated with spokes that use the data transfer feature (spokes where the
+     * Output only. If true, indicates that this VPC network is currently associated with
+     * spokes that use the data transfer feature (spokes where the
      * site_to_site_data_transfer field is set to true). If you create new spokes
      * that use data transfer, they must be associated with this VPC network. At
      * most, one VPC network will have this field set to true.
      * 
* - * - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRequiredForNewSiteToSiteDataTransferSpokes() { @@ -692,9 +615,9 @@ public Builder clearRequiredForNewSiteToSiteDataTransferSpokes() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -704,12 +627,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.RoutingVPC) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.RoutingVPC) private static final com.google.cloud.networkconnectivity.v1.RoutingVPC DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.RoutingVPC(); } @@ -718,27 +641,27 @@ public static com.google.cloud.networkconnectivity.v1.RoutingVPC getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RoutingVPC parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoutingVPC parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -753,4 +676,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.RoutingVPC getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java similarity index 54% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java index 51cdebc1c0c2..ef146aa507bc 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java @@ -1,68 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface RoutingVPCOrBuilder - extends +public interface RoutingVPCOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.RoutingVPC) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
-   * Output only. If true, indicates that this VPC network is currently
-   * associated with spokes that use the data transfer feature (spokes where the
+   * Output only. If true, indicates that this VPC network is currently associated with
+   * spokes that use the data transfer feature (spokes where the
    * site_to_site_data_transfer field is set to true). If you create new spokes
    * that use data transfer, they must be associated with this VPC network. At
    * most, one VPC network will have this field set to true.
    * 
* - * - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The requiredForNewSiteToSiteDataTransferSpokes. */ boolean getRequiredForNewSiteToSiteDataTransferSpokes(); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java similarity index 61% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java index f583d301160c..61ec9b74b59f 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java @@ -1,29 +1,12 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * A Network Connectivity Center spoke represents a connection between your
- * Google Cloud network resources and a non-Google-Cloud network.
+ * A spoke represents a connection between your Google Cloud network resources
+ * and a non-Google-Cloud network.
  * When you create a spoke, you associate it with a hub. You must also identify
  * a value for exactly one of the following fields:
  * * linked_vpn_tunnels
@@ -33,16 +16,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.Spoke}
  */
-public final class Spoke extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Spoke extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.Spoke)
     SpokeOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Spoke.newBuilder() to construct.
   private Spoke(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Spoke() {
     name_ = "";
     description_ = "";
@@ -53,48 +35,45 @@ private Spoke() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Spoke();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.Spoke.class,
-            com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
+            com.google.cloud.networkconnectivity.v1.Spoke.class, com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -102,7 +81,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -111,15 +89,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; } } /** - * - * *
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -127,15 +104,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -146,15 +124,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the spoke was created.
    * 
* - * .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 @@ -162,15 +136,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the spoke was created.
    * 
* - * .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 @@ -178,14 +148,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the spoke was created.
    * 
* - * .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() { @@ -195,15 +162,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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 @@ -211,15 +174,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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 @@ -227,14 +186,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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() { @@ -242,34 +198,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_Spoke_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.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - 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_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -279,21 +233,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 4;
    */
   @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();
   }
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -307,8 +260,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -318,19 +269,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+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;
   }
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -340,11 +289,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @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();
     }
@@ -352,18 +301,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   public static final int DESCRIPTION_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object description_ = "";
   /**
-   *
-   *
    * 
    * An optional description of the spoke.
    * 
* * string description = 5; - * * @return The description. */ @java.lang.Override @@ -372,29 +317,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * An optional description of the spoke.
    * 
* * string description = 5; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -403,20 +348,14 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int HUB_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object hub_ = ""; /** - * - * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The hub. */ @java.lang.Override @@ -425,31 +364,29 @@ public java.lang.String getHub() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; } } /** - * - * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for hub. */ @java.lang.Override - public com.google.protobuf.ByteString getHubBytes() { + public com.google.protobuf.ByteString + getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hub_ = b; return b; } else { @@ -460,14 +397,11 @@ public com.google.protobuf.ByteString getHubBytes() { public static final int LINKED_VPN_TUNNELS_FIELD_NUMBER = 17; private com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linkedVpnTunnels_; /** - * - * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; - * * @return Whether the linkedVpnTunnels field is set. */ @java.lang.Override @@ -475,25 +409,18 @@ public boolean hasLinkedVpnTunnels() { return linkedVpnTunnels_ != null; } /** - * - * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; - * * @return The linkedVpnTunnels. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunnels() { - return linkedVpnTunnels_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() - : linkedVpnTunnels_; + return linkedVpnTunnels_ == null ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; } /** - * - * *
    * VPN tunnels that are associated with the spoke.
    * 
@@ -501,27 +428,18 @@ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunn * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder - getLinkedVpnTunnelsOrBuilder() { - return linkedVpnTunnels_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() - : linkedVpnTunnels_; + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLinkedVpnTunnelsOrBuilder() { + return linkedVpnTunnels_ == null ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; } public static final int LINKED_INTERCONNECT_ATTACHMENTS_FIELD_NUMBER = 18; - private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - linkedInterconnectAttachments_; + private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linkedInterconnectAttachments_; /** - * - * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; * @return Whether the linkedInterconnectAttachments field is set. */ @java.lang.Override @@ -529,58 +447,37 @@ public boolean hasLinkedInterconnectAttachments() { return linkedInterconnectAttachments_ != null; } /** - * - * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; * @return The linkedInterconnectAttachments. */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - getLinkedInterconnectAttachments() { - return linkedInterconnectAttachments_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() - : linkedInterconnectAttachments_; + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getLinkedInterconnectAttachments() { + return linkedInterconnectAttachments_ == null ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; } /** - * - * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder - getLinkedInterconnectAttachmentsOrBuilder() { - return linkedInterconnectAttachments_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() - : linkedInterconnectAttachments_; + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder getLinkedInterconnectAttachmentsOrBuilder() { + return linkedInterconnectAttachments_ == null ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; } public static final int LINKED_ROUTER_APPLIANCE_INSTANCES_FIELD_NUMBER = 19; - private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - linkedRouterApplianceInstances_; + private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linkedRouterApplianceInstances_; /** - * - * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; * @return Whether the linkedRouterApplianceInstances field is set. */ @java.lang.Override @@ -588,61 +485,40 @@ public boolean hasLinkedRouterApplianceInstances() { return linkedRouterApplianceInstances_ != null; } /** - * - * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; * @return The linkedRouterApplianceInstances. */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - getLinkedRouterApplianceInstances() { - return linkedRouterApplianceInstances_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - .getDefaultInstance() - : linkedRouterApplianceInstances_; + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getLinkedRouterApplianceInstances() { + return linkedRouterApplianceInstances_ == null ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; } /** - * - * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder - getLinkedRouterApplianceInstancesOrBuilder() { - return linkedRouterApplianceInstances_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - .getDefaultInstance() - : linkedRouterApplianceInstances_; + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder getLinkedRouterApplianceInstancesOrBuilder() { + return linkedRouterApplianceInstances_ == null ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; } public static final int UNIQUE_ID_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** - * - * *
-   * Output only. The Google-generated UUID for the spoke. This value is unique
-   * across all spoke resources. If a spoke is deleted and another with the same
-   * name is created, the new spoke is assigned a different unique_id.
+   * Output only. The Google-generated UUID for the spoke. This value is unique across all
+   * spoke resources. If a spoke is deleted and another with the same name is
+   * created, the new spoke is assigned a different unique_id.
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ @java.lang.Override @@ -651,31 +527,31 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** - * - * *
-   * Output only. The Google-generated UUID for the spoke. This value is unique
-   * across all spoke resources. If a spoke is deleted and another with the same
-   * name is created, the new spoke is assigned a different unique_id.
+   * Output only. The Google-generated UUID for the spoke. This value is unique across all
+   * spoke resources. If a spoke is deleted and another with the same name is
+   * created, the new spoke is assigned a different unique_id.
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -686,44 +562,30 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** - * - * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = - com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { + com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -735,7 +597,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -745,8 +608,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -781,20 +648,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -806,20 +675,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, uniqueId_); } if (state_ != com.google.cloud.networkconnectivity.v1.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, state_); } if (linkedVpnTunnels_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getLinkedVpnTunnels()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getLinkedVpnTunnels()); } if (linkedInterconnectAttachments_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 18, getLinkedInterconnectAttachments()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getLinkedInterconnectAttachments()); } if (linkedRouterApplianceInstances_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 19, getLinkedRouterApplianceInstances()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getLinkedRouterApplianceInstances()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -829,43 +698,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.networkconnectivity.v1.Spoke)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.Spoke other = - (com.google.cloud.networkconnectivity.v1.Spoke) obj; + com.google.cloud.networkconnectivity.v1.Spoke other = (com.google.cloud.networkconnectivity.v1.Spoke) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getHub().equals(other.getHub())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getHub() + .equals(other.getHub())) return false; if (hasLinkedVpnTunnels() != other.hasLinkedVpnTunnels()) return false; if (hasLinkedVpnTunnels()) { - if (!getLinkedVpnTunnels().equals(other.getLinkedVpnTunnels())) return false; + if (!getLinkedVpnTunnels() + .equals(other.getLinkedVpnTunnels())) return false; } - if (hasLinkedInterconnectAttachments() != other.hasLinkedInterconnectAttachments()) - return false; + if (hasLinkedInterconnectAttachments() != other.hasLinkedInterconnectAttachments()) return false; if (hasLinkedInterconnectAttachments()) { - if (!getLinkedInterconnectAttachments().equals(other.getLinkedInterconnectAttachments())) - return false; + if (!getLinkedInterconnectAttachments() + .equals(other.getLinkedInterconnectAttachments())) return false; } - if (hasLinkedRouterApplianceInstances() != other.hasLinkedRouterApplianceInstances()) - return false; + if (hasLinkedRouterApplianceInstances() != other.hasLinkedRouterApplianceInstances()) return false; if (hasLinkedRouterApplianceInstances()) { - if (!getLinkedRouterApplianceInstances().equals(other.getLinkedRouterApplianceInstances())) - return false; + if (!getLinkedRouterApplianceInstances() + .equals(other.getLinkedRouterApplianceInstances())) return false; } - if (!getUniqueId().equals(other.getUniqueId())) return false; + if (!getUniqueId() + .equals(other.getUniqueId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -917,107 +791,100 @@ public int hashCode() { return hash; } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.Spoke 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.networkconnectivity.v1.Spoke parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.Spoke parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.Spoke parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.Spoke prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Connectivity Center spoke represents a connection between your
-   * Google Cloud network resources and a non-Google-Cloud network.
+   * A spoke represents a connection between your Google Cloud network resources
+   * and a non-Google-Cloud network.
    * When you create a spoke, you associate it with a hub. You must also identify
    * a value for exactly one of the following fields:
    * * linked_vpn_tunnels
@@ -1027,52 +894,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.Spoke}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.Spoke)
       com.google.cloud.networkconnectivity.v1.SpokeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.Spoke.class,
-              com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
+              com.google.cloud.networkconnectivity.v1.Spoke.class, com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.Spoke.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1112,9 +982,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
     }
 
     @java.lang.Override
@@ -1133,11 +1003,8 @@ public com.google.cloud.networkconnectivity.v1.Spoke build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.Spoke buildPartial() {
-      com.google.cloud.networkconnectivity.v1.Spoke result =
-          new com.google.cloud.networkconnectivity.v1.Spoke(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1.Spoke result = new com.google.cloud.networkconnectivity.v1.Spoke(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1148,10 +1015,14 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result)
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -1164,20 +1035,19 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result)
         result.hub_ = hub_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.linkedVpnTunnels_ =
-            linkedVpnTunnelsBuilder_ == null ? linkedVpnTunnels_ : linkedVpnTunnelsBuilder_.build();
+        result.linkedVpnTunnels_ = linkedVpnTunnelsBuilder_ == null
+            ? linkedVpnTunnels_
+            : linkedVpnTunnelsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.linkedInterconnectAttachments_ =
-            linkedInterconnectAttachmentsBuilder_ == null
-                ? linkedInterconnectAttachments_
-                : linkedInterconnectAttachmentsBuilder_.build();
+        result.linkedInterconnectAttachments_ = linkedInterconnectAttachmentsBuilder_ == null
+            ? linkedInterconnectAttachments_
+            : linkedInterconnectAttachmentsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.linkedRouterApplianceInstances_ =
-            linkedRouterApplianceInstancesBuilder_ == null
-                ? linkedRouterApplianceInstances_
-                : linkedRouterApplianceInstancesBuilder_.build();
+        result.linkedRouterApplianceInstances_ = linkedRouterApplianceInstancesBuilder_ == null
+            ? linkedRouterApplianceInstances_
+            : linkedRouterApplianceInstancesBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.uniqueId_ = uniqueId_;
@@ -1191,39 +1061,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result)
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.Spoke) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.Spoke) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.Spoke)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1243,7 +1112,8 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Spoke other) {
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -1298,89 +1168,81 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                hub_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 90:
-              {
-                uniqueId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 90
-            case 120:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 120
-            case 138:
-              {
-                input.readMessage(
-                    getLinkedVpnTunnelsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 138
-            case 146:
-              {
-                input.readMessage(
-                    getLinkedInterconnectAttachmentsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 146
-            case 154:
-              {
-                input.readMessage(
-                    getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 154
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              hub_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 90: {
+              uniqueId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 90
+            case 120: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 120
+            case 138: {
+              input.readMessage(
+                  getLinkedVpnTunnelsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 138
+            case 146: {
+              input.readMessage(
+                  getLinkedInterconnectAttachmentsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 146
+            case 154: {
+              input.readMessage(
+                  getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 154
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1390,13 +1252,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1404,13 +1263,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1419,8 +1278,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1428,14 +1285,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1443,8 +1301,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1452,22 +1308,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1475,7 +1327,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1485,8 +1336,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1494,14 +1343,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1511,58 +1358,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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) { @@ -1578,17 +1406,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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(); } else { @@ -1599,21 +1424,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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 (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1626,15 +1447,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1647,15 +1464,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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() { bitField0_ |= 0x00000002; @@ -1663,48 +1476,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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_; @@ -1712,58 +1513,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .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) { @@ -1779,17 +1561,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .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(); } else { @@ -1800,21 +1579,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .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 (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1827,15 +1602,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1848,15 +1619,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .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() { bitField0_ |= 0x00000004; @@ -1864,66 +1631,56 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1932,13 +1689,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1948,21 +1702,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 4;
      */
     @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();
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1976,8 +1729,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1987,19 +1738,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+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;
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -2009,25 +1758,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @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();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -2036,22 +1783,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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() {
       bitField0_ |= 0x00000008;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -2060,20 +1808,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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);
+    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);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -2082,28 +1827,28 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 4;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.lang.Object description_ = "";
     /**
-     *
-     *
      * 
      * An optional description of the spoke.
      * 
* * string description = 5; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2112,21 +1857,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * An optional description of the spoke.
      * 
* * string description = 5; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2134,35 +1878,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * An optional description of the spoke.
      * 
* * string description = 5; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * An optional description of the spoke.
      * 
* * string description = 5; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2172,21 +1909,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * An optional description of the spoke.
      * 
* * string description = 5; - * * @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(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -2196,22 +1929,18 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object hub_ = ""; /** - * - * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The hub. */ public java.lang.String getHub() { java.lang.Object ref = hub_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; @@ -2220,23 +1949,20 @@ public java.lang.String getHub() { } } /** - * - * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for hub. */ - public com.google.protobuf.ByteString getHubBytes() { + public com.google.protobuf.ByteString + getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hub_ = b; return b; } else { @@ -2244,39 +1970,28 @@ public com.google.protobuf.ByteString getHubBytes() { } } /** - * - * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The hub to set. * @return This builder for chaining. */ - public Builder setHub(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHub( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hub_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearHub() { @@ -2286,23 +2001,17 @@ public Builder clearHub() { return this; } /** - * - * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for hub to set. * @return This builder for chaining. */ - public Builder setHubBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHubBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hub_ = value; bitField0_ |= 0x00000020; @@ -2312,55 +2021,41 @@ public Builder setHubBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linkedVpnTunnels_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> - linkedVpnTunnelsBuilder_; + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> linkedVpnTunnelsBuilder_; /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; - * * @return Whether the linkedVpnTunnels field is set. */ public boolean hasLinkedVpnTunnels() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; - * * @return The linkedVpnTunnels. */ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunnels() { if (linkedVpnTunnelsBuilder_ == null) { - return linkedVpnTunnels_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() - : linkedVpnTunnels_; + return linkedVpnTunnels_ == null ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; } else { return linkedVpnTunnelsBuilder_.getMessage(); } } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public Builder setLinkedVpnTunnels( - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { + public Builder setLinkedVpnTunnels(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { if (linkedVpnTunnelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2374,8 +2069,6 @@ public Builder setLinkedVpnTunnels( return this; } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
@@ -2394,21 +2087,17 @@ public Builder setLinkedVpnTunnels( return this; } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public Builder mergeLinkedVpnTunnels( - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { + public Builder mergeLinkedVpnTunnels(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { if (linkedVpnTunnelsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && linkedVpnTunnels_ != null - && linkedVpnTunnels_ - != com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + linkedVpnTunnels_ != null && + linkedVpnTunnels_ != com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) { getLinkedVpnTunnelsBuilder().mergeFrom(value); } else { linkedVpnTunnels_ = value; @@ -2421,8 +2110,6 @@ public Builder mergeLinkedVpnTunnels( return this; } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
@@ -2440,42 +2127,33 @@ public Builder clearLinkedVpnTunnels() { return this; } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder - getLinkedVpnTunnelsBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder getLinkedVpnTunnelsBuilder() { bitField0_ |= 0x00000040; onChanged(); return getLinkedVpnTunnelsFieldBuilder().getBuilder(); } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder - getLinkedVpnTunnelsOrBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLinkedVpnTunnelsOrBuilder() { if (linkedVpnTunnelsBuilder_ != null) { return linkedVpnTunnelsBuilder_.getMessageOrBuilder(); } else { - return linkedVpnTunnels_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() - : linkedVpnTunnels_; + return linkedVpnTunnels_ == null ? + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; } } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
@@ -2483,82 +2161,56 @@ public Builder clearLinkedVpnTunnels() { * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> getLinkedVpnTunnelsFieldBuilder() { if (linkedVpnTunnelsBuilder_ == null) { - linkedVpnTunnelsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder>( - getLinkedVpnTunnels(), getParentForChildren(), isClean()); + linkedVpnTunnelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder>( + getLinkedVpnTunnels(), + getParentForChildren(), + isClean()); linkedVpnTunnels_ = null; } return linkedVpnTunnelsBuilder_; } - private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - linkedInterconnectAttachments_; + private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linkedInterconnectAttachments_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> - linkedInterconnectAttachmentsBuilder_; + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> linkedInterconnectAttachmentsBuilder_; /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; * @return Whether the linkedInterconnectAttachments field is set. */ public boolean hasLinkedInterconnectAttachments() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; * @return The linkedInterconnectAttachments. */ - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - getLinkedInterconnectAttachments() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getLinkedInterconnectAttachments() { if (linkedInterconnectAttachmentsBuilder_ == null) { - return linkedInterconnectAttachments_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - .getDefaultInstance() - : linkedInterconnectAttachments_; + return linkedInterconnectAttachments_ == null ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; } else { return linkedInterconnectAttachmentsBuilder_.getMessage(); } } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ - public Builder setLinkedInterconnectAttachments( - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { + public Builder setLinkedInterconnectAttachments(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { if (linkedInterconnectAttachmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2572,19 +2224,14 @@ public Builder setLinkedInterconnectAttachments( return this; } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ public Builder setLinkedInterconnectAttachments( - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder - builderForValue) { + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder builderForValue) { if (linkedInterconnectAttachmentsBuilder_ == null) { linkedInterconnectAttachments_ = builderForValue.build(); } else { @@ -2595,24 +2242,17 @@ public Builder setLinkedInterconnectAttachments( return this; } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ - public Builder mergeLinkedInterconnectAttachments( - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { + public Builder mergeLinkedInterconnectAttachments(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { if (linkedInterconnectAttachmentsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && linkedInterconnectAttachments_ != null - && linkedInterconnectAttachments_ - != com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - .getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + linkedInterconnectAttachments_ != null && + linkedInterconnectAttachments_ != com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance()) { getLinkedInterconnectAttachmentsBuilder().mergeFrom(value); } else { linkedInterconnectAttachments_ = value; @@ -2625,15 +2265,11 @@ public Builder mergeLinkedInterconnectAttachments( return this; } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ public Builder clearLinkedInterconnectAttachments() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2646,132 +2282,90 @@ public Builder clearLinkedInterconnectAttachments() { return this; } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder - getLinkedInterconnectAttachmentsBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder getLinkedInterconnectAttachmentsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getLinkedInterconnectAttachmentsFieldBuilder().getBuilder(); } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder - getLinkedInterconnectAttachmentsOrBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder getLinkedInterconnectAttachmentsOrBuilder() { if (linkedInterconnectAttachmentsBuilder_ != null) { return linkedInterconnectAttachmentsBuilder_.getMessageOrBuilder(); } else { - return linkedInterconnectAttachments_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - .getDefaultInstance() - : linkedInterconnectAttachments_; + return linkedInterconnectAttachments_ == null ? + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; } } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> getLinkedInterconnectAttachmentsFieldBuilder() { if (linkedInterconnectAttachmentsBuilder_ == null) { - linkedInterconnectAttachmentsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder>( - getLinkedInterconnectAttachments(), getParentForChildren(), isClean()); + linkedInterconnectAttachmentsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder>( + getLinkedInterconnectAttachments(), + getParentForChildren(), + isClean()); linkedInterconnectAttachments_ = null; } return linkedInterconnectAttachmentsBuilder_; } - private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - linkedRouterApplianceInstances_; + private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linkedRouterApplianceInstances_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> - linkedRouterApplianceInstancesBuilder_; + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> linkedRouterApplianceInstancesBuilder_; /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; * @return Whether the linkedRouterApplianceInstances field is set. */ public boolean hasLinkedRouterApplianceInstances() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; * @return The linkedRouterApplianceInstances. */ - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - getLinkedRouterApplianceInstances() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getLinkedRouterApplianceInstances() { if (linkedRouterApplianceInstancesBuilder_ == null) { - return linkedRouterApplianceInstances_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - .getDefaultInstance() - : linkedRouterApplianceInstances_; + return linkedRouterApplianceInstances_ == null ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; } else { return linkedRouterApplianceInstancesBuilder_.getMessage(); } } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ - public Builder setLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { + public Builder setLinkedRouterApplianceInstances(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { if (linkedRouterApplianceInstancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2785,19 +2379,14 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ public Builder setLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder - builderForValue) { + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { linkedRouterApplianceInstances_ = builderForValue.build(); } else { @@ -2808,24 +2397,17 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ - public Builder mergeLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { + public Builder mergeLinkedRouterApplianceInstances(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { if (linkedRouterApplianceInstancesBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && linkedRouterApplianceInstances_ != null - && linkedRouterApplianceInstances_ - != com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - .getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + linkedRouterApplianceInstances_ != null && + linkedRouterApplianceInstances_ != com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance()) { getLinkedRouterApplianceInstancesBuilder().mergeFrom(value); } else { linkedRouterApplianceInstances_ = value; @@ -2838,15 +2420,11 @@ public Builder mergeLinkedRouterApplianceInstances( return this; } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ public Builder clearLinkedRouterApplianceInstances() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2859,67 +2437,48 @@ public Builder clearLinkedRouterApplianceInstances() { return this; } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder - getLinkedRouterApplianceInstancesBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder getLinkedRouterApplianceInstancesBuilder() { bitField0_ |= 0x00000100; onChanged(); return getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(); } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder - getLinkedRouterApplianceInstancesOrBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder getLinkedRouterApplianceInstancesOrBuilder() { if (linkedRouterApplianceInstancesBuilder_ != null) { return linkedRouterApplianceInstancesBuilder_.getMessageOrBuilder(); } else { - return linkedRouterApplianceInstances_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - .getDefaultInstance() - : linkedRouterApplianceInstances_; + return linkedRouterApplianceInstances_ == null ? + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; } } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> getLinkedRouterApplianceInstancesFieldBuilder() { if (linkedRouterApplianceInstancesBuilder_ == null) { - linkedRouterApplianceInstancesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder>( - getLinkedRouterApplianceInstances(), getParentForChildren(), isClean()); + linkedRouterApplianceInstancesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder>( + getLinkedRouterApplianceInstances(), + getParentForChildren(), + isClean()); linkedRouterApplianceInstances_ = null; } return linkedRouterApplianceInstancesBuilder_; @@ -2927,22 +2486,20 @@ public Builder clearLinkedRouterApplianceInstances() { private java.lang.Object uniqueId_ = ""; /** - * - * *
-     * Output only. The Google-generated UUID for the spoke. This value is unique
-     * across all spoke resources. If a spoke is deleted and another with the same
-     * name is created, the new spoke is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the spoke. This value is unique across all
+     * spoke resources. If a spoke is deleted and another with the same name is
+     * created, the new spoke is assigned a different unique_id.
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -2951,23 +2508,22 @@ public java.lang.String getUniqueId() { } } /** - * - * *
-     * Output only. The Google-generated UUID for the spoke. This value is unique
-     * across all spoke resources. If a spoke is deleted and another with the same
-     * name is created, the new spoke is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the spoke. This value is unique across all
+     * spoke resources. If a spoke is deleted and another with the same name is
+     * created, the new spoke is assigned a different unique_id.
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -2975,39 +2531,32 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { } } /** - * - * *
-     * Output only. The Google-generated UUID for the spoke. This value is unique
-     * across all spoke resources. If a spoke is deleted and another with the same
-     * name is created, the new spoke is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the spoke. This value is unique across all
+     * spoke resources. If a spoke is deleted and another with the same name is
+     * created, the new spoke is assigned a different unique_id.
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uniqueId_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
-     * Output only. The Google-generated UUID for the spoke. This value is unique
-     * across all spoke resources. If a spoke is deleted and another with the same
-     * name is created, the new spoke is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the spoke. This value is unique across all
+     * spoke resources. If a spoke is deleted and another with the same name is
+     * created, the new spoke is assigned a different unique_id.
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -3017,23 +2566,19 @@ public Builder clearUniqueId() { return this; } /** - * - * *
-     * Output only. The Google-generated UUID for the spoke. This value is unique
-     * across all spoke resources. If a spoke is deleted and another with the same
-     * name is created, the new spoke is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the spoke. This value is unique across all
+     * spoke resources. If a spoke is deleted and another with the same name is
+     * created, the new spoke is assigned a different unique_id.
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000200; @@ -3043,33 +2588,22 @@ public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3080,35 +2614,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = - com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3122,16 +2645,11 @@ public Builder setState(com.google.cloud.networkconnectivity.v1.State value) { return this; } /** - * - * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -3140,9 +2658,9 @@ public Builder clearState() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3152,12 +2670,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.Spoke) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.Spoke) private static final com.google.cloud.networkconnectivity.v1.Spoke DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.Spoke(); } @@ -3166,27 +2684,27 @@ public static com.google.cloud.networkconnectivity.v1.Spoke getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Spoke parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Spoke parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3201,4 +2719,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.Spoke getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java similarity index 66% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java index 7447ac5ef375..aacb1e934fa3 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface SpokeOrBuilder - extends +public interface SpokeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.Spoke) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -33,13 +15,10 @@ public interface SpokeOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -47,90 +26,66 @@ public interface SpokeOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The time the spoke was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the spoke was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the spoke was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the spoke was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time the spoke was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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(); /** - * - * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -141,8 +96,6 @@ public interface SpokeOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -151,13 +104,15 @@ public interface SpokeOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -166,10 +121,9 @@ public interface SpokeOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -179,13 +133,11 @@ public interface SpokeOrBuilder
    * map<string, string> labels = 4;
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -194,89 +146,68 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * An optional description of the spoke.
    * 
* * string description = 5; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * An optional description of the spoke.
    * 
* * string description = 5; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The hub. */ java.lang.String getHub(); /** - * - * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for hub. */ - com.google.protobuf.ByteString getHubBytes(); + com.google.protobuf.ByteString + getHubBytes(); /** - * - * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; - * * @return Whether the linkedVpnTunnels field is set. */ boolean hasLinkedVpnTunnels(); /** - * - * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; - * * @return The linkedVpnTunnels. */ com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunnels(); /** - * - * *
    * VPN tunnels that are associated with the spoke.
    * 
@@ -286,145 +217,98 @@ java.lang.String getLabelsOrDefault( com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLinkedVpnTunnelsOrBuilder(); /** - * - * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; * @return Whether the linkedInterconnectAttachments field is set. */ boolean hasLinkedInterconnectAttachments(); /** - * - * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; * @return The linkedInterconnectAttachments. */ - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - getLinkedInterconnectAttachments(); + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getLinkedInterconnectAttachments(); /** - * - * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder - getLinkedInterconnectAttachmentsOrBuilder(); + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder getLinkedInterconnectAttachmentsOrBuilder(); /** - * - * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; * @return Whether the linkedRouterApplianceInstances field is set. */ boolean hasLinkedRouterApplianceInstances(); /** - * - * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; * @return The linkedRouterApplianceInstances. */ - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - getLinkedRouterApplianceInstances(); + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getLinkedRouterApplianceInstances(); /** - * - * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder - getLinkedRouterApplianceInstancesOrBuilder(); + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder getLinkedRouterApplianceInstancesOrBuilder(); /** - * - * *
-   * Output only. The Google-generated UUID for the spoke. This value is unique
-   * across all spoke resources. If a spoke is deleted and another with the same
-   * name is created, the new spoke is assigned a different unique_id.
+   * Output only. The Google-generated UUID for the spoke. This value is unique across all
+   * spoke resources. If a spoke is deleted and another with the same name is
+   * created, the new spoke is assigned a different unique_id.
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ java.lang.String getUniqueId(); /** - * - * *
-   * Output only. The Google-generated UUID for the spoke. This value is unique
-   * across all spoke resources. If a spoke is deleted and another with the same
-   * name is created, the new spoke is assigned a different unique_id.
+   * Output only. The Google-generated UUID for the spoke. This value is unique across all
+   * spoke resources. If a spoke is deleted and another with the same name is
+   * created, the new spoke is assigned a different unique_id.
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString getUniqueIdBytes(); + com.google.protobuf.ByteString + getUniqueIdBytes(); /** - * - * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.networkconnectivity.v1.State getState(); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java similarity index 62% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java index 1949da5a76c0..28c6ad4e21a7 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * The State enum represents the lifecycle stage of a Network Connectivity
  * Center resource.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.networkconnectivity.v1.State}
  */
-public enum State implements com.google.protobuf.ProtocolMessageEnum {
+public enum State
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * No state information available
    * 
@@ -40,8 +22,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
    * The resource's create operation is in progress
    * 
@@ -50,8 +30,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
    * The resource is active
    * 
@@ -60,8 +38,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(2), /** - * - * *
    * The resource's Delete operation is in progress
    * 
@@ -69,22 +45,10 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * DELETING = 3; */ DELETING(3), - /** - * - * - *
-   * The resource's Update operation is in progress
-   * 
- * - * UPDATING = 6; - */ - UPDATING(6), UNRECOGNIZED(-1), ; /** - * - * *
    * No state information available
    * 
@@ -93,8 +57,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The resource's create operation is in progress
    * 
@@ -103,8 +65,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
    * The resource is active
    * 
@@ -113,8 +73,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 2; /** - * - * *
    * The resource's Delete operation is in progress
    * 
@@ -122,16 +80,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * DELETING = 3; */ public static final int DELETING_VALUE = 3; - /** - * - * - *
-   * The resource's Update operation is in progress
-   * 
- * - * UPDATING = 6; - */ - public static final int UPDATING_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { @@ -157,53 +106,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 ACTIVE; - case 3: - return DELETING; - case 6: - return UPDATING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return ACTIVE; + 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 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< + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.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; @@ -219,3 +165,4 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.State) } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java similarity index 59% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java index f082dcb6dd84..3954173adbde 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java @@ -1,90 +1,65 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * Request for
- * [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub]
- * method.
+ * Request for [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateHubRequest} */ -public final class UpdateHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.UpdateHubRequest) UpdateHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateHubRequest.newBuilder() to construct. private UpdateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateHubRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, - com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
-   * Optional. In the case of an update to an existing hub, field mask is used
-   * to specify the fields to be overwritten. The fields specified in the
-   * update_mask are relative to the resource, not the full request. A field is
-   * overwritten if it is in the mask. If the user does not provide a mask, then
-   * all fields are overwritten.
+   * Optional. In the case of an update to an existing hub, field mask is used to specify
+   * the fields to be overwritten. The fields specified in the update_mask are
+   * relative to the resource, not the full request. A field is overwritten if
+   * it is in the mask. If the user does not provide a mask, then all fields are
+   * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -92,19 +67,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
-   * Optional. In the case of an update to an existing hub, field mask is used
-   * to specify the fields to be overwritten. The fields specified in the
-   * update_mask are relative to the resource, not the full request. A field is
-   * overwritten if it is in the mask. If the user does not provide a mask, then
-   * all fields are overwritten.
+   * Optional. In the case of an update to an existing hub, field mask is used to specify
+   * the fields to be overwritten. The fields specified in the update_mask are
+   * relative to the resource, not the full request. A field is overwritten if
+   * it is in the mask. If the user does not provide a mask, then all fields are
+   * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -112,18 +83,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
-   * Optional. In the case of an update to an existing hub, field mask is used
-   * to specify the fields to be overwritten. The fields specified in the
-   * update_mask are relative to the resource, not the full request. A field is
-   * overwritten if it is in the mask. If the user does not provide a mask, then
-   * all fields are overwritten.
+   * Optional. In the case of an update to an existing hub, field mask is used to specify
+   * the fields to be overwritten. The fields specified in the update_mask are
+   * relative to the resource, not the full request. A field is overwritten if
+   * it is in the mask. If the user does not provide a mask, then all fields are
+   * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -133,16 +101,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int HUB_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1.Hub hub_; /** - * - * *
    * Required. The state that the hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ @java.lang.Override @@ -150,16 +113,11 @@ public boolean hasHub() { return hub_ != null; } /** - * - * *
    * Required. The state that the hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ @java.lang.Override @@ -167,15 +125,11 @@ public com.google.cloud.networkconnectivity.v1.Hub getHub() { return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } /** - * - * *
    * Required. The state that the hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { @@ -183,18 +137,15 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { } public static final int REQUEST_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -205,7 +156,6 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -214,21 +164,20 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -239,15 +188,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -256,7 +206,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +217,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -288,10 +238,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHub()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -304,23 +256,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1.UpdateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.UpdateHubRequest other = - (com.google.cloud.networkconnectivity.v1.UpdateHubRequest) obj; + com.google.cloud.networkconnectivity.v1.UpdateHubRequest other = (com.google.cloud.networkconnectivity.v1.UpdateHubRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub().equals(other.getHub())) return false; + if (!getHub() + .equals(other.getHub())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,138 +302,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.UpdateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
-   * [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub]
-   * method.
+   * Request for [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.UpdateHubRequest) com.google.cloud.networkconnectivity.v1.UpdateHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, - com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.UpdateHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -499,9 +444,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; } @java.lang.Override @@ -520,11 +465,8 @@ public com.google.cloud.networkconnectivity.v1.UpdateHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.UpdateHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.UpdateHubRequest result = - new com.google.cloud.networkconnectivity.v1.UpdateHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.UpdateHubRequest result = new com.google.cloud.networkconnectivity.v1.UpdateHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -532,10 +474,14 @@ public com.google.cloud.networkconnectivity.v1.UpdateHubRequest buildPartial() { private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build(); + result.hub_ = hubBuilder_ == null + ? hub_ + : hubBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -546,39 +492,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateHubRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.UpdateHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateHubRequest)other); } else { super.mergeFrom(other); return this; @@ -586,8 +531,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.UpdateHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.UpdateHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.UpdateHubRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -625,31 +569,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getHubFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,72 +603,55 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
-     * Optional. In the case of an update to an existing hub, field mask is used
-     * to specify the fields to be overwritten. The fields specified in the
-     * update_mask are relative to the resource, not the full request. A field is
-     * overwritten if it is in the mask. If the user does not provide a mask, then
-     * all fields are overwritten.
+     * Optional. In the case of an update to an existing hub, field mask is used to specify
+     * the fields to be overwritten. The fields specified in the update_mask are
+     * relative to the resource, not the full request. A field is overwritten if
+     * it is in the mask. If the user does not provide a mask, then all fields are
+     * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
-     * Optional. In the case of an update to an existing hub, field mask is used
-     * to specify the fields to be overwritten. The fields specified in the
-     * update_mask are relative to the resource, not the full request. A field is
-     * overwritten if it is in the mask. If the user does not provide a mask, then
-     * all fields are overwritten.
+     * Optional. In the case of an update to an existing hub, field mask is used to specify
+     * the fields to be overwritten. The fields specified in the update_mask are
+     * relative to the resource, not the full request. A field is overwritten if
+     * it is in the mask. If the user does not provide a mask, then all fields are
+     * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
-     * Optional. In the case of an update to an existing hub, field mask is used
-     * to specify the fields to be overwritten. The fields specified in the
-     * update_mask are relative to the resource, not the full request. A field is
-     * overwritten if it is in the mask. If the user does not provide a mask, then
-     * all fields are overwritten.
+     * Optional. In the case of an update to an existing hub, field mask is used to specify
+     * the fields to be overwritten. The fields specified in the update_mask are
+     * relative to the resource, not the full request. A field is overwritten if
+     * it is in the mask. If the user does not provide a mask, then all fields are
+     * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -740,20 +667,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Optional. In the case of an update to an existing hub, field mask is used
-     * to specify the fields to be overwritten. The fields specified in the
-     * update_mask are relative to the resource, not the full request. A field is
-     * overwritten if it is in the mask. If the user does not provide a mask, then
-     * all fields are overwritten.
+     * Optional. In the case of an update to an existing hub, field mask is used to specify
+     * the fields to be overwritten. The fields specified in the update_mask are
+     * relative to the resource, not the full request. A field is overwritten if
+     * it is in the mask. If the user does not provide a mask, then all fields are
+     * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -764,24 +689,21 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
-     * Optional. In the case of an update to an existing hub, field mask is used
-     * to specify the fields to be overwritten. The fields specified in the
-     * update_mask are relative to the resource, not the full request. A field is
-     * overwritten if it is in the mask. If the user does not provide a mask, then
-     * all fields are overwritten.
+     * Optional. In the case of an update to an existing hub, field mask is used to specify
+     * the fields to be overwritten. The fields specified in the update_mask are
+     * relative to the resource, not the full request. A field is overwritten if
+     * it is in the mask. If the user does not provide a mask, then all fields are
+     * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -794,18 +716,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Optional. In the case of an update to an existing hub, field mask is used
-     * to specify the fields to be overwritten. The fields specified in the
-     * update_mask are relative to the resource, not the full request. A field is
-     * overwritten if it is in the mask. If the user does not provide a mask, then
-     * all fields are overwritten.
+     * Optional. In the case of an update to an existing hub, field mask is used to specify
+     * the fields to be overwritten. The fields specified in the update_mask are
+     * relative to the resource, not the full request. A field is overwritten if
+     * it is in the mask. If the user does not provide a mask, then all fields are
+     * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -818,18 +737,15 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
-     * Optional. In the case of an update to an existing hub, field mask is used
-     * to specify the fields to be overwritten. The fields specified in the
-     * update_mask are relative to the resource, not the full request. A field is
-     * overwritten if it is in the mask. If the user does not provide a mask, then
-     * all fields are overwritten.
+     * Optional. In the case of an update to an existing hub, field mask is used to specify
+     * the fields to be overwritten. The fields specified in the update_mask are
+     * relative to the resource, not the full request. A field is overwritten if
+     * it is in the mask. If the user does not provide a mask, then all fields are
+     * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -837,54 +753,44 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
-     * Optional. In the case of an update to an existing hub, field mask is used
-     * to specify the fields to be overwritten. The fields specified in the
-     * update_mask are relative to the resource, not the full request. A field is
-     * overwritten if it is in the mask. If the user does not provide a mask, then
-     * all fields are overwritten.
+     * Optional. In the case of an update to an existing hub, field mask is used to specify
+     * the fields to be overwritten. The fields specified in the update_mask are
+     * relative to the resource, not the full request. A field is overwritten if
+     * it is in the mask. If the user does not provide a mask, then all fields are
+     * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
-     * Optional. In the case of an update to an existing hub, field mask is used
-     * to specify the fields to be overwritten. The fields specified in the
-     * update_mask are relative to the resource, not the full request. A field is
-     * overwritten if it is in the mask. If the user does not provide a mask, then
-     * all fields are overwritten.
+     * Optional. In the case of an update to an existing hub, field mask is used to specify
+     * the fields to be overwritten. The fields specified in the update_mask are
+     * relative to the resource, not the full request. A field is overwritten if
+     * it is in the mask. If the user does not provide a mask, then all fields are
+     * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -892,58 +798,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder> - hubBuilder_; + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> hubBuilder_; /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ public com.google.cloud.networkconnectivity.v1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } else { return hubBuilder_.getMessage(); } } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { @@ -959,17 +846,14 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { + public Builder setHub( + com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { if (hubBuilder_ == null) { hub_ = builderForValue.build(); } else { @@ -980,21 +864,17 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub.Builder builde return this; } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && hub_ != null - && hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + hub_ != null && + hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -1007,15 +887,11 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1028,15 +904,11 @@ public Builder clearHub() { return this; } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000002; @@ -1044,48 +916,36 @@ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { return getHubFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? + com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder>( - getHub(), getParentForChildren(), isClean()); + hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder>( + getHub(), + getParentForChildren(), + isClean()); hub_ = null; } return hubBuilder_; @@ -1093,14 +953,12 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1111,13 +969,13 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1126,14 +984,12 @@ public java.lang.String getRequestId() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1144,14 +1000,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1159,14 +1016,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1177,28 +1032,24 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1209,7 +1060,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1219,14 +1069,12 @@ public Builder clearRequestId() { return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1237,23 +1085,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1263,12 +1109,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.UpdateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.UpdateHubRequest) private static final com.google.cloud.networkconnectivity.v1.UpdateHubRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.UpdateHubRequest(); } @@ -1277,27 +1123,27 @@ public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1312,4 +1158,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.UpdateHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java similarity index 53% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java index 7c84e91cbc36..befe2878e509 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java @@ -1,128 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface UpdateHubRequestOrBuilder - extends +public interface UpdateHubRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.UpdateHubRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Optional. In the case of an update to an existing hub, field mask is used
-   * to specify the fields to be overwritten. The fields specified in the
-   * update_mask are relative to the resource, not the full request. A field is
-   * overwritten if it is in the mask. If the user does not provide a mask, then
-   * all fields are overwritten.
+   * Optional. In the case of an update to an existing hub, field mask is used to specify
+   * the fields to be overwritten. The fields specified in the update_mask are
+   * relative to the resource, not the full request. A field is overwritten if
+   * it is in the mask. If the user does not provide a mask, then all fields are
+   * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
-   * Optional. In the case of an update to an existing hub, field mask is used
-   * to specify the fields to be overwritten. The fields specified in the
-   * update_mask are relative to the resource, not the full request. A field is
-   * overwritten if it is in the mask. If the user does not provide a mask, then
-   * all fields are overwritten.
+   * Optional. In the case of an update to an existing hub, field mask is used to specify
+   * the fields to be overwritten. The fields specified in the update_mask are
+   * relative to the resource, not the full request. A field is overwritten if
+   * it is in the mask. If the user does not provide a mask, then all fields are
+   * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
-   * Optional. In the case of an update to an existing hub, field mask is used
-   * to specify the fields to be overwritten. The fields specified in the
-   * update_mask are relative to the resource, not the full request. A field is
-   * overwritten if it is in the mask. If the user does not provide a mask, then
-   * all fields are overwritten.
+   * Optional. In the case of an update to an existing hub, field mask is used to specify
+   * the fields to be overwritten. The fields specified in the update_mask are
+   * relative to the resource, not the full request. A field is overwritten if
+   * it is in the mask. If the user does not provide a mask, then all fields are
+   * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The state that the hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ boolean hasHub(); /** - * - * *
    * Required. The state that the hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ com.google.cloud.networkconnectivity.v1.Hub getHub(); /** - * - * *
    * Required. The state that the hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -133,19 +90,16 @@ public interface UpdateHubRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -156,8 +110,8 @@ public interface UpdateHubRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java similarity index 64% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java index 534117c8bac9..c7dbb61e84c6 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java @@ -1,90 +1,65 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * Request for
- * [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke]
- * method.
+ * Request for [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateSpokeRequest} */ -public final class UpdateSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) UpdateSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSpokeRequest.newBuilder() to construct. private UpdateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSpokeRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
-   * Optional. In the case of an update to an existing spoke, field mask is used
-   * to specify the fields to be overwritten. The fields specified in the
+   * Optional. In the case of an update to an existing spoke, field mask is used to
+   * specify the fields to be overwritten. The fields specified in the
    * update_mask are relative to the resource, not the full request. A field is
    * overwritten if it is in the mask. If the user does not provide a mask, then
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -92,19 +67,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
-   * Optional. In the case of an update to an existing spoke, field mask is used
-   * to specify the fields to be overwritten. The fields specified in the
+   * Optional. In the case of an update to an existing spoke, field mask is used to
+   * specify the fields to be overwritten. The fields specified in the
    * update_mask are relative to the resource, not the full request. A field is
    * overwritten if it is in the mask. If the user does not provide a mask, then
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -112,18 +83,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
-   * Optional. In the case of an update to an existing spoke, field mask is used
-   * to specify the fields to be overwritten. The fields specified in the
+   * Optional. In the case of an update to an existing spoke, field mask is used to
+   * specify the fields to be overwritten. The fields specified in the
    * update_mask are relative to the resource, not the full request. A field is
    * overwritten if it is in the mask. If the user does not provide a mask, then
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -133,16 +101,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int SPOKE_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1.Spoke spoke_; /** - * - * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ @java.lang.Override @@ -150,55 +113,39 @@ public boolean hasSpoke() { return spoke_ != null; } /** - * - * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } /** - * - * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -209,7 +156,6 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -218,21 +164,20 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -243,15 +188,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -260,7 +206,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,7 +217,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -292,10 +238,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpoke()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -308,23 +256,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest other = - (com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest other = (com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke().equals(other.getSpoke())) return false; + if (!getSpoke() + .equals(other.getSpoke())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -352,138 +302,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
-   * [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke]
-   * method.
+   * Request for [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) com.google.cloud.networkconnectivity.v1.UpdateSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -503,9 +444,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; } @java.lang.Override @@ -524,11 +465,8 @@ public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest result = - new com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest result = new com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -536,10 +474,14 @@ public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest buildPartial() private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build(); + result.spoke_ = spokeBuilder_ == null + ? spoke_ + : spokeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -550,39 +492,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateSpokeRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest)other); } else { super.mergeFrom(other); return this; @@ -590,8 +531,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -629,31 +569,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSpokeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -663,72 +603,55 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
-     * Optional. In the case of an update to an existing spoke, field mask is used
-     * to specify the fields to be overwritten. The fields specified in the
+     * Optional. In the case of an update to an existing spoke, field mask is used to
+     * specify the fields to be overwritten. The fields specified in the
      * update_mask are relative to the resource, not the full request. A field is
      * overwritten if it is in the mask. If the user does not provide a mask, then
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
-     * Optional. In the case of an update to an existing spoke, field mask is used
-     * to specify the fields to be overwritten. The fields specified in the
+     * Optional. In the case of an update to an existing spoke, field mask is used to
+     * specify the fields to be overwritten. The fields specified in the
      * update_mask are relative to the resource, not the full request. A field is
      * overwritten if it is in the mask. If the user does not provide a mask, then
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
-     * Optional. In the case of an update to an existing spoke, field mask is used
-     * to specify the fields to be overwritten. The fields specified in the
+     * Optional. In the case of an update to an existing spoke, field mask is used to
+     * specify the fields to be overwritten. The fields specified in the
      * update_mask are relative to the resource, not the full request. A field is
      * overwritten if it is in the mask. If the user does not provide a mask, then
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -744,20 +667,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Optional. In the case of an update to an existing spoke, field mask is used
-     * to specify the fields to be overwritten. The fields specified in the
+     * Optional. In the case of an update to an existing spoke, field mask is used to
+     * specify the fields to be overwritten. The fields specified in the
      * update_mask are relative to the resource, not the full request. A field is
      * overwritten if it is in the mask. If the user does not provide a mask, then
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -768,24 +689,21 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
-     * Optional. In the case of an update to an existing spoke, field mask is used
-     * to specify the fields to be overwritten. The fields specified in the
+     * Optional. In the case of an update to an existing spoke, field mask is used to
+     * specify the fields to be overwritten. The fields specified in the
      * update_mask are relative to the resource, not the full request. A field is
      * overwritten if it is in the mask. If the user does not provide a mask, then
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -798,18 +716,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Optional. In the case of an update to an existing spoke, field mask is used
-     * to specify the fields to be overwritten. The fields specified in the
+     * Optional. In the case of an update to an existing spoke, field mask is used to
+     * specify the fields to be overwritten. The fields specified in the
      * update_mask are relative to the resource, not the full request. A field is
      * overwritten if it is in the mask. If the user does not provide a mask, then
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -822,18 +737,15 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
-     * Optional. In the case of an update to an existing spoke, field mask is used
-     * to specify the fields to be overwritten. The fields specified in the
+     * Optional. In the case of an update to an existing spoke, field mask is used to
+     * specify the fields to be overwritten. The fields specified in the
      * update_mask are relative to the resource, not the full request. A field is
      * overwritten if it is in the mask. If the user does not provide a mask, then
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -841,54 +753,44 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
-     * Optional. In the case of an update to an existing spoke, field mask is used
-     * to specify the fields to be overwritten. The fields specified in the
+     * Optional. In the case of an update to an existing spoke, field mask is used to
+     * specify the fields to be overwritten. The fields specified in the
      * update_mask are relative to the resource, not the full request. A field is
      * overwritten if it is in the mask. If the user does not provide a mask, then
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
-     * Optional. In the case of an update to an existing spoke, field mask is used
-     * to specify the fields to be overwritten. The fields specified in the
+     * Optional. In the case of an update to an existing spoke, field mask is used to
+     * specify the fields to be overwritten. The fields specified in the
      * update_mask are relative to the resource, not the full request. A field is
      * overwritten if it is in the mask. If the user does not provide a mask, then
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -896,58 +798,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> - spokeBuilder_; + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> spokeBuilder_; /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } else { return spokeBuilder_.getMessage(); } } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { @@ -963,17 +846,14 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { + public Builder setSpoke( + com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { if (spokeBuilder_ == null) { spoke_ = builderForValue.build(); } else { @@ -984,21 +864,17 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke.Builder bu return this; } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && spoke_ != null - && spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + spoke_ != null && + spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -1011,15 +887,11 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1032,15 +904,11 @@ public Builder clearSpoke() { return this; } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000002; @@ -1048,48 +916,36 @@ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { return getSpokeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? + com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( - getSpoke(), getParentForChildren(), isClean()); + spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( + getSpoke(), + getParentForChildren(), + isClean()); spoke_ = null; } return spokeBuilder_; @@ -1097,14 +953,12 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder( private java.lang.Object requestId_ = ""; /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1115,13 +969,13 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1130,14 +984,12 @@ public java.lang.String getRequestId() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1148,14 +1000,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1163,14 +1016,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1181,28 +1032,24 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1213,7 +1060,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1223,14 +1069,12 @@ public Builder clearRequestId() { return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can
-     * use it in cases when you need to retry your request. When you need to
-     * retry, this ID lets the server know that it can ignore the request if it
-     * has already been completed. The server guarantees that for at least 60
-     * minutes after the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can use it
+     * in cases when you need to retry your request. When you need to retry, this
+     * ID lets the server know that it can ignore the request if it has already
+     * been completed. The server guarantees that for at least 60 minutes after
+     * the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1241,23 +1085,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1267,12 +1109,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(); } @@ -1281,27 +1123,27 @@ public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1316,4 +1158,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java similarity index 63% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java index 7531903678e0..f10dd265d833 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java @@ -1,128 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface UpdateSpokeRequestOrBuilder - extends +public interface UpdateSpokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Optional. In the case of an update to an existing spoke, field mask is used
-   * to specify the fields to be overwritten. The fields specified in the
+   * Optional. In the case of an update to an existing spoke, field mask is used to
+   * specify the fields to be overwritten. The fields specified in the
    * update_mask are relative to the resource, not the full request. A field is
    * overwritten if it is in the mask. If the user does not provide a mask, then
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
-   * Optional. In the case of an update to an existing spoke, field mask is used
-   * to specify the fields to be overwritten. The fields specified in the
+   * Optional. In the case of an update to an existing spoke, field mask is used to
+   * specify the fields to be overwritten. The fields specified in the
    * update_mask are relative to the resource, not the full request. A field is
    * overwritten if it is in the mask. If the user does not provide a mask, then
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
-   * Optional. In the case of an update to an existing spoke, field mask is used
-   * to specify the fields to be overwritten. The fields specified in the
+   * Optional. In the case of an update to an existing spoke, field mask is used to
+   * specify the fields to be overwritten. The fields specified in the
    * update_mask are relative to the resource, not the full request. A field is
    * overwritten if it is in the mask. If the user does not provide a mask, then
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ boolean hasSpoke(); /** - * - * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ com.google.cloud.networkconnectivity.v1.Spoke getSpoke(); /** - * - * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -133,19 +90,16 @@ public interface UpdateSpokeRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can
-   * use it in cases when you need to retry your request. When you need to
-   * retry, this ID lets the server know that it can ignore the request if it
-   * has already been completed. The server guarantees that for at least 60
-   * minutes after the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can use it
+   * in cases when you need to retry your request. When you need to retry, this
+   * ID lets the server know that it can ignore the request if it has already
+   * been completed. The server guarantees that for at least 60 minutes after
+   * the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -156,8 +110,8 @@ public interface UpdateSpokeRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto similarity index 86% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto index 282cf34758e7..21999d592d01 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto @@ -17,7 +17,6 @@ syntax = "proto3"; package google.cloud.networkconnectivity.v1; import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.NetworkConnectivity.V1"; @@ -27,14 +26,6 @@ option java_outer_classname = "CommonProto"; option java_package = "com.google.cloud.networkconnectivity.v1"; option php_namespace = "Google\\Cloud\\NetworkConnectivity\\V1"; option ruby_package = "Google::Cloud::NetworkConnectivity::V1"; -option (google.api.resource_definition) = { - type: "compute.googleapis.com/InterconnectAttachment" - pattern: "projects/{project}/regions/{region}/interconnectAttachments/{resource_id}" -}; -option (google.api.resource_definition) = { - type: "compute.googleapis.com/Network" - pattern: "projects/{project}/global/networks/{resource_id}" -}; // Represents the metadata of the long-running operation. message OperationMetadata { diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto similarity index 74% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto index 44cf09ae0a64..c28ca9a07702 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto @@ -35,20 +35,27 @@ option (google.api.resource_definition) = { type: "compute.googleapis.com/VpnTunnel" pattern: "projects/{project}/regions/{region}/vpnTunnels/{resource_id}" }; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/InterconnectAttachment" + pattern: "projects/{project}/regions/{region}/interconnectAttachments/{resource_id}" +}; option (google.api.resource_definition) = { type: "compute.googleapis.com/Instance" pattern: "projects/{project}/zones/{zone}/instances/{instance}" }; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/Network" + pattern: "projects/{project}/global/networks/{resource_id}" +}; // Network Connectivity Center is a hub-and-spoke abstraction for network // connectivity management in Google Cloud. It reduces operational complexity // through a simple, centralized connectivity management model. service HubService { option (google.api.default_host) = "networkconnectivity.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - // Lists the Network Connectivity Center hubs associated with a given project. + // Lists hubs in a given project. rpc ListHubs(ListHubsRequest) returns (ListHubsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/global}/hubs" @@ -56,7 +63,7 @@ service HubService { option (google.api.method_signature) = "parent"; } - // Gets details about a Network Connectivity Center hub. + // Gets details about the specified hub. rpc GetHub(GetHubRequest) returns (Hub) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/global/hubs/*}" @@ -64,7 +71,7 @@ service HubService { option (google.api.method_signature) = "name"; } - // Creates a new Network Connectivity Center hub in the specified project. + // Creates a new hub in the specified project. rpc CreateHub(CreateHubRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/global}/hubs" @@ -77,8 +84,7 @@ service HubService { }; } - // Updates the description and/or labels of a Network Connectivity Center - // hub. + // Updates the description and/or labels of the specified hub. rpc UpdateHub(UpdateHubRequest) returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{hub.name=projects/*/locations/global/hubs/*}" @@ -91,7 +97,7 @@ service HubService { }; } - // Deletes a Network Connectivity Center hub. + // Deletes the specified hub. rpc DeleteHub(DeleteHubRequest) returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/global/hubs/*}" @@ -103,8 +109,7 @@ service HubService { }; } - // Lists the Network Connectivity Center spokes in a specified project and - // location. + // Lists the spokes in the specified project and location. rpc ListSpokes(ListSpokesRequest) returns (ListSpokesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/spokes" @@ -112,7 +117,7 @@ service HubService { option (google.api.method_signature) = "parent"; } - // Gets details about a Network Connectivity Center spoke. + // Gets details about the specified spoke. rpc GetSpoke(GetSpokeRequest) returns (Spoke) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/spokes/*}" @@ -120,7 +125,7 @@ service HubService { option (google.api.method_signature) = "name"; } - // Creates a Network Connectivity Center spoke. + // Creates a spoke in the specified project and location. rpc CreateSpoke(CreateSpokeRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/spokes" @@ -133,7 +138,7 @@ service HubService { }; } - // Updates the parameters of a Network Connectivity Center spoke. + // Updates the parameters of the specified spoke. rpc UpdateSpoke(UpdateSpokeRequest) returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{spoke.name=projects/*/locations/*/spokes/*}" @@ -146,7 +151,7 @@ service HubService { }; } - // Deletes a Network Connectivity Center spoke. + // Deletes the specified spoke. rpc DeleteSpoke(DeleteSpokeRequest) returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/spokes/*}" @@ -159,18 +164,6 @@ service HubService { } } -// Supported features for a location -enum LocationFeature { - // No publicly supported feature in this location - LOCATION_FEATURE_UNSPECIFIED = 0; - - // Site-to-cloud spokes are supported in this location - SITE_TO_CLOUD_SPOKES = 1; - - // Site-to-site spokes are supported in this location - SITE_TO_SITE_SPOKES = 2; -} - // The State enum represents the lifecycle stage of a Network Connectivity // Center resource. enum State { @@ -185,16 +178,25 @@ enum State { // The resource's Delete operation is in progress DELETING = 3; +} - // The resource's Update operation is in progress - UPDATING = 6; +// Supported features for a location +enum LocationFeature { + // No publicly supported feature in this location + LOCATION_FEATURE_UNSPECIFIED = 0; + + // Site-to-cloud spokes are supported in this location + SITE_TO_CLOUD_SPOKES = 1; + + // Site-to-site spokes are supported in this location + SITE_TO_SITE_SPOKES = 2; } -// A Network Connectivity Center hub is a collection of spokes. A single hub -// can contain spokes from multiple regions. However, if any of a hub's spokes -// use the data transfer feature, the resources associated with those spokes -// must all reside in the same VPC network. Spokes that do not use data -// transfer can be associated with any VPC network in your project. +// A hub is a collection of spokes. A single hub can contain spokes from +// multiple regions. However, if any of a hub's spokes use the data transfer +// feature, the resources associated with those spokes must all reside in the +// same VPC network. Spokes that do not use data transfer can be associated +// with any VPC network in your project. message Hub { option (google.api.resource) = { type: "networkconnectivity.googleapis.com/Hub" @@ -207,12 +209,10 @@ message Hub { string name = 1 [(google.api.field_behavior) = IMMUTABLE]; // Output only. The time the hub was created. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the hub was last updated. - google.protobuf.Timestamp update_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional labels in key:value format. For more information about labels, see // [Requirements for @@ -222,9 +222,9 @@ message Hub { // An optional description of the hub. string description = 5; - // Output only. The Google-generated UUID for the hub. This value is unique - // across all hub resources. If a hub is deleted and another with the same - // name is created, the new hub is assigned a different unique_id. + // Output only. The Google-generated UUID for the hub. This value is unique across all hub + // resources. If a hub is deleted and another with the same name is created, + // the new hub is assigned a different unique_id. string unique_id = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The current lifecycle state of this hub. @@ -237,25 +237,24 @@ message Hub { repeated RoutingVPC routing_vpcs = 10; } -// RoutingVPC contains information about the VPC networks associated -// with the spokes of a Network Connectivity Center hub. +// RoutingVPC contains information about the VPC networks that are associated +// with a hub's spokes. message RoutingVPC { // The URI of the VPC network. - string uri = 1 [ - (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } - ]; + string uri = 1 [(google.api.resource_reference) = { + type: "compute.googleapis.com/Network" + }]; - // Output only. If true, indicates that this VPC network is currently - // associated with spokes that use the data transfer feature (spokes where the + // Output only. If true, indicates that this VPC network is currently associated with + // spokes that use the data transfer feature (spokes where the // site_to_site_data_transfer field is set to true). If you create new spokes // that use data transfer, they must be associated with this VPC network. At // most, one VPC network will have this field set to true. - bool required_for_new_site_to_site_data_transfer_spokes = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + bool required_for_new_site_to_site_data_transfer_spokes = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// A Network Connectivity Center spoke represents a connection between your -// Google Cloud network resources and a non-Google-Cloud network. +// A spoke represents a connection between your Google Cloud network resources +// and a non-Google-Cloud network. // // When you create a spoke, you associate it with a hub. You must also identify // a value for exactly one of the following fields: @@ -275,12 +274,10 @@ message Spoke { string name = 1 [(google.api.field_behavior) = IMMUTABLE]; // Output only. The time the spoke was created. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the spoke was last updated. - google.protobuf.Timestamp update_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional labels in key:value format. For more information about labels, see // [Requirements for @@ -307,18 +304,16 @@ message Spoke { // Router appliance instances that are associated with the spoke. LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - // Output only. The Google-generated UUID for the spoke. This value is unique - // across all spoke resources. If a spoke is deleted and another with the same - // name is created, the new spoke is assigned a different unique_id. + // Output only. The Google-generated UUID for the spoke. This value is unique across all + // spoke resources. If a spoke is deleted and another with the same name is + // created, the new spoke is assigned a different unique_id. string unique_id = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The current lifecycle state of this spoke. State state = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// Request for -// [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] -// method. +// Request for [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] method. message ListHubsRequest { // Required. The parent resource's name. string parent = 1 [ @@ -341,9 +336,7 @@ message ListHubsRequest { string order_by = 5; } -// Response for -// [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] -// method. +// Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] method. message ListHubsResponse { // The requested hubs. repeated Hub hubs = 1; @@ -356,9 +349,7 @@ message ListHubsResponse { repeated string unreachable = 3; } -// Request for -// [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub] -// method. +// Request for [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub] method. message GetHubRequest { // Required. The name of the hub resource to get. string name = 1 [ @@ -369,9 +360,7 @@ message GetHubRequest { ]; } -// Request for -// [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub] -// method. +// Request for [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub] method. message CreateHubRequest { // Required. The parent resource. string parent = 1 [ @@ -387,11 +376,11 @@ message CreateHubRequest { // Required. The initial values for a new hub. Hub hub = 3 [(google.api.field_behavior) = REQUIRED]; - // Optional. A unique request ID (optional). If you specify this ID, you can - // use it in cases when you need to retry your request. When you need to - // retry, this ID lets the server know that it can ignore the request if it - // has already been completed. The server guarantees that for at least 60 - // minutes after the first request. + // Optional. A unique request ID (optional). If you specify this ID, you can use it + // in cases when you need to retry your request. When you need to retry, this + // ID lets the server know that it can ignore the request if it has already + // been completed. The server guarantees that for at least 60 minutes after + // the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request @@ -404,26 +393,23 @@ message CreateHubRequest { string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; } -// Request for -// [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub] -// method. +// Request for [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub] method. message UpdateHubRequest { - // Optional. In the case of an update to an existing hub, field mask is used - // to specify the fields to be overwritten. The fields specified in the - // update_mask are relative to the resource, not the full request. A field is - // overwritten if it is in the mask. If the user does not provide a mask, then - // all fields are overwritten. - google.protobuf.FieldMask update_mask = 1 - [(google.api.field_behavior) = OPTIONAL]; + // Optional. In the case of an update to an existing hub, field mask is used to specify + // the fields to be overwritten. The fields specified in the update_mask are + // relative to the resource, not the full request. A field is overwritten if + // it is in the mask. If the user does not provide a mask, then all fields are + // overwritten. + google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = OPTIONAL]; // Required. The state that the hub should be in after the update. Hub hub = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. A unique request ID (optional). If you specify this ID, you can - // use it in cases when you need to retry your request. When you need to - // retry, this ID lets the server know that it can ignore the request if it - // has already been completed. The server guarantees that for at least 60 - // minutes after the first request. + // Optional. A unique request ID (optional). If you specify this ID, you can use it + // in cases when you need to retry your request. When you need to retry, this + // ID lets the server know that it can ignore the request if it has already + // been completed. The server guarantees that for at least 60 minutes after + // the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request @@ -436,8 +422,7 @@ message UpdateHubRequest { string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; } -// The request for -// [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub]. +// The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub]. message DeleteHubRequest { // Required. The name of the hub to delete. string name = 1 [ @@ -447,11 +432,11 @@ message DeleteHubRequest { } ]; - // Optional. A unique request ID (optional). If you specify this ID, you can - // use it in cases when you need to retry your request. When you need to - // retry, this ID lets the server know that it can ignore the request if it - // has already been completed. The server guarantees that for at least 60 - // minutes after the first request. + // Optional. A unique request ID (optional). If you specify this ID, you can use it + // in cases when you need to retry your request. When you need to retry, this + // ID lets the server know that it can ignore the request if it has already + // been completed. The server guarantees that for at least 60 minutes after + // the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request @@ -464,8 +449,7 @@ message DeleteHubRequest { string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; } -// The request for -// [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes]. +// The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes]. message ListSpokesRequest { // Required. The parent resource. string parent = 1 [ @@ -488,8 +472,7 @@ message ListSpokesRequest { string order_by = 5; } -// The response for -// [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes]. +// The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes]. message ListSpokesResponse { // The requested spokes. repeated Spoke spokes = 1; @@ -502,8 +485,7 @@ message ListSpokesResponse { repeated string unreachable = 3; } -// The request for -// [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke]. +// The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke]. message GetSpokeRequest { // Required. The name of the spoke resource. string name = 1 [ @@ -514,8 +496,7 @@ message GetSpokeRequest { ]; } -// The request for -// [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke]. +// The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke]. message CreateSpokeRequest { // Required. The parent resource. string parent = 1 [ @@ -531,11 +512,11 @@ message CreateSpokeRequest { // Required. The initial values for a new spoke. Spoke spoke = 3 [(google.api.field_behavior) = REQUIRED]; - // Optional. A unique request ID (optional). If you specify this ID, you can - // use it in cases when you need to retry your request. When you need to - // retry, this ID lets the server know that it can ignore the request if it - // has already been completed. The server guarantees that for at least 60 - // minutes after the first request. + // Optional. A unique request ID (optional). If you specify this ID, you can use it + // in cases when you need to retry your request. When you need to retry, this + // ID lets the server know that it can ignore the request if it has already + // been completed. The server guarantees that for at least 60 minutes after + // the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request @@ -548,26 +529,23 @@ message CreateSpokeRequest { string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; } -// Request for -// [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke] -// method. +// Request for [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke] method. message UpdateSpokeRequest { - // Optional. In the case of an update to an existing spoke, field mask is used - // to specify the fields to be overwritten. The fields specified in the + // Optional. In the case of an update to an existing spoke, field mask is used to + // specify the fields to be overwritten. The fields specified in the // update_mask are relative to the resource, not the full request. A field is // overwritten if it is in the mask. If the user does not provide a mask, then // all fields are overwritten. - google.protobuf.FieldMask update_mask = 1 - [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = OPTIONAL]; // Required. The state that the spoke should be in after the update. Spoke spoke = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. A unique request ID (optional). If you specify this ID, you can - // use it in cases when you need to retry your request. When you need to - // retry, this ID lets the server know that it can ignore the request if it - // has already been completed. The server guarantees that for at least 60 - // minutes after the first request. + // Optional. A unique request ID (optional). If you specify this ID, you can use it + // in cases when you need to retry your request. When you need to retry, this + // ID lets the server know that it can ignore the request if it has already + // been completed. The server guarantees that for at least 60 minutes after + // the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request @@ -580,8 +558,7 @@ message UpdateSpokeRequest { string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; } -// The request for -// [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke]. +// The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke]. message DeleteSpokeRequest { // Required. The name of the spoke to delete. string name = 1 [ @@ -591,11 +568,11 @@ message DeleteSpokeRequest { } ]; - // Optional. A unique request ID (optional). If you specify this ID, you can - // use it in cases when you need to retry your request. When you need to - // retry, this ID lets the server know that it can ignore the request if it - // has already been completed. The server guarantees that for at least 60 - // minutes after the first request. + // Optional. A unique request ID (optional). If you specify this ID, you can use it + // in cases when you need to retry your request. When you need to retry, this + // ID lets the server know that it can ignore the request if it has already + // been completed. The server guarantees that for at least 60 minutes after + // the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request @@ -615,19 +592,13 @@ message DeleteSpokeRequest { message LinkedVpnTunnels { // The URIs of linked VPN tunnel resources. repeated string uris = 1 [(google.api.resource_reference) = { - type: "compute.googleapis.com/VpnTunnel" - }]; + type: "compute.googleapis.com/VpnTunnel" + }]; // A value that controls whether site-to-site data transfer is enabled for // these resources. Data transfer is available only in [supported // locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). bool site_to_site_data_transfer = 2; - - // Output only. The VPC network where these VPN tunnels are located. - string vpc_network = 3 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } - ]; } // A collection of VLAN attachment resources. These resources should @@ -637,19 +608,13 @@ message LinkedVpnTunnels { message LinkedInterconnectAttachments { // The URIs of linked interconnect attachment resources repeated string uris = 1 [(google.api.resource_reference) = { - type: "compute.googleapis.com/InterconnectAttachment" - }]; + type: "compute.googleapis.com/InterconnectAttachment" + }]; // A value that controls whether site-to-site data transfer is enabled for // these resources. Data transfer is available only in [supported // locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). bool site_to_site_data_transfer = 2; - - // Output only. The VPC network where these VLAN attachments are located. - string vpc_network = 3 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } - ]; } // A collection of router appliance instances. If you configure multiple router @@ -664,13 +629,6 @@ message LinkedRouterApplianceInstances { // these resources. Data transfer is available only in [supported // locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). bool site_to_site_data_transfer = 2; - - // Output only. The VPC network where these router appliance instances are - // located. - string vpc_network = 3 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } - ]; } // A router appliance instance is a Compute Engine virtual machine (VM) instance @@ -680,8 +638,8 @@ message LinkedRouterApplianceInstances { message RouterApplianceInstance { // The URI of the VM. string virtual_machine = 1 [(google.api.resource_reference) = { - type: "compute.googleapis.com/Instance" - }]; + type: "compute.googleapis.com/Instance" + }]; // The IP address on the VM to use for peering. string ip_address = 3; diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java similarity index 99% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java index 89775db66f05..b824a3ceabcd 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.networkconnectivity.v1alpha1.stub.HubServiceStubSettings; diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java similarity index 99% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java index 8298968354e6..fffc277454e3 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java @@ -49,6 +49,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/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java new file mode 100644 index 000000000000..013a0c0da196 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java @@ -0,0 +1,1092 @@ +package com.google.cloud.networkconnectivity.v1alpha1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Network Connectivity Center is a hub-and-spoke abstraction for
+ * network connectivity management in Google Cloud. It reduces
+ * operational complexity through a simple, centralized connectivity management
+ * model.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networkconnectivity/v1alpha1/hub.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class HubServiceGrpc { + + private HubServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1alpha1.HubService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListHubsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListHubs", + requestType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListHubsMethod() { + io.grpc.MethodDescriptor getListHubsMethod; + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + HubServiceGrpc.getListHubsMethod = getListHubsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) + .build(); + } + } + } + return getListHubsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.Hub.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetHubMethod() { + io.grpc.MethodDescriptor getGetHubMethod; + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + HubServiceGrpc.getGetHubMethod = getGetHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) + .build(); + } + } + } + return getGetHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateHubMethod() { + io.grpc.MethodDescriptor getCreateHubMethod; + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + HubServiceGrpc.getCreateHubMethod = getCreateHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) + .build(); + } + } + } + return getCreateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateHubMethod() { + io.grpc.MethodDescriptor getUpdateHubMethod; + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + HubServiceGrpc.getUpdateHubMethod = getUpdateHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) + .build(); + } + } + } + return getUpdateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteHubMethod() { + io.grpc.MethodDescriptor getDeleteHubMethod; + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + HubServiceGrpc.getDeleteHubMethod = getDeleteHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) + .build(); + } + } + } + return getDeleteHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSpokesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSpokes", + requestType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSpokesMethod() { + io.grpc.MethodDescriptor getListSpokesMethod; + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + HubServiceGrpc.getListSpokesMethod = getListSpokesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) + .build(); + } + } + } + return getListSpokesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSpokeMethod() { + io.grpc.MethodDescriptor getGetSpokeMethod; + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + HubServiceGrpc.getGetSpokeMethod = getGetSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) + .build(); + } + } + } + return getGetSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSpokeMethod() { + io.grpc.MethodDescriptor getCreateSpokeMethod; + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + HubServiceGrpc.getCreateSpokeMethod = getCreateSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) + .build(); + } + } + } + return getCreateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSpokeMethod() { + io.grpc.MethodDescriptor getUpdateSpokeMethod; + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + HubServiceGrpc.getUpdateSpokeMethod = getUpdateSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) + .build(); + } + } + } + return getUpdateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSpokeMethod() { + io.grpc.MethodDescriptor getDeleteSpokeMethod; + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + HubServiceGrpc.getDeleteSpokeMethod = getDeleteSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) + .build(); + } + } + } + return getDeleteSpokeMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static HubServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + }; + return HubServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static HubServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + }; + return HubServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static HubServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + }; + return HubServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static abstract class HubServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public void listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single Hub.
+     * 
+ */ + public void getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); + } + + /** + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public void createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); + } + + /** + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public void updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); + } + + /** + *
+     * Deletes a single Hub.
+     * 
+ */ + public void deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); + } + + /** + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public void listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public void getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); + } + + /** + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public void createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSpokeMethod(), responseObserver); + } + + /** + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public void updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSpokeMethod(), responseObserver); + } + + /** + *
+     * Deletes a single Spoke.
+     * 
+ */ + public void deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSpokeMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListHubsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>( + this, METHODID_LIST_HUBS))) + .addMethod( + getGetHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, + com.google.cloud.networkconnectivity.v1alpha1.Hub>( + this, METHODID_GET_HUB))) + .addMethod( + getCreateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_HUB))) + .addMethod( + getUpdateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_HUB))) + .addMethod( + getDeleteHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_HUB))) + .addMethod( + getListSpokesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>( + this, METHODID_LIST_SPOKES))) + .addMethod( + getGetSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1alpha1.Spoke>( + this, METHODID_GET_SPOKE))) + .addMethod( + getCreateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_SPOKE))) + .addMethod( + getUpdateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_SPOKE))) + .addMethod( + getDeleteSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_SPOKE))) + .build(); + } + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { + private HubServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + + /** + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public void listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single Hub.
+     * 
+ */ + public void getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public void createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public void updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single Hub.
+     * 
+ */ + public void deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public void listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public void getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public void createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public void updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single Spoke.
+     * 
+ */ + public void deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static final class HubServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private HubServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListHubsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single Hub.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public com.google.longrunning.Operation updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single Hub.
+     * 
+ */ + public com.google.longrunning.Operation deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSpokesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSpokeMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSpokeMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public com.google.longrunning.Operation updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single Spoke.
+     * 
+ */ + public com.google.longrunning.Operation deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static final class HubServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private HubServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listHubs( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single Hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getHub( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createHub( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateHub( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single Hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteHub( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSpokes( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSpoke( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSpoke( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSpoke( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single Spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSpoke( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_HUBS = 0; + private static final int METHODID_GET_HUB = 1; + private static final int METHODID_CREATE_HUB = 2; + private static final int METHODID_UPDATE_HUB = 3; + private static final int METHODID_DELETE_HUB = 4; + private static final int METHODID_LIST_SPOKES = 5; + private static final int METHODID_GET_SPOKE = 6; + private static final int METHODID_CREATE_SPOKE = 7; + private static final int METHODID_UPDATE_SPOKE = 8; + private static final int METHODID_DELETE_SPOKE = 9; + + 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 HubServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(HubServiceImplBase 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_HUBS: + serviceImpl.listHubs((com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_HUB: + serviceImpl.getHub((com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_HUB: + serviceImpl.createHub((com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_HUB: + serviceImpl.updateHub((com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_HUB: + serviceImpl.deleteHub((com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SPOKES: + serviceImpl.listSpokes((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SPOKE: + serviceImpl.getSpoke((com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SPOKE: + serviceImpl.createSpoke((com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SPOKE: + serviceImpl.updateSpoke((com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SPOKE: + serviceImpl.deleteSpoke((com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + HubServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("HubService"); + } + } + + private static final class HubServiceFileDescriptorSupplier + extends HubServiceBaseDescriptorSupplier { + HubServiceFileDescriptorSupplier() {} + } + + private static final class HubServiceMethodDescriptorSupplier + extends HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) + .addMethod(getListHubsMethod()) + .addMethod(getGetHubMethod()) + .addMethod(getCreateHubMethod()) + .addMethod(getUpdateHubMethod()) + .addMethod(getDeleteHubMethod()) + .addMethod(getListSpokesMethod()) + .addMethod(getGetSpokeMethod()) + .addMethod(getCreateSpokeMethod()) + .addMethod(getUpdateSpokeMethod()) + .addMethod(getDeleteSpokeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java new file mode 100644 index 000000000000..4bee516017a0 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1alpha1/common.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public final class CommonProto { + private CommonProto() {} + 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_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/networkconnectivity/v1alp" + + "ha1/common.proto\022)google.cloud.networkco" + + "nnectivity.v1alpha1\032\037google/api/field_be" + + "havior.proto\032\037google/protobuf/timestamp." + + "proto\"\200\002\n\021OperationMetadata\0224\n\013create_ti" + + "me\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004ver" + + "b\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\003B\243\002\n-com.google." + + "cloud.networkconnectivity.v1alpha1B\013Comm" + + "onProtoP\001Z\\google.golang.org/genproto/go" + + "ogleapis/cloud/networkconnectivity/v1alp" + + "ha1;networkconnectivity\252\002)Google.Cloud.N" + + "etworkConnectivity.V1Alpha1\312\002)Google\\Clo" + + "ud\\NetworkConnectivity\\V1alpha1\352\002,Google" + + "::Cloud::NetworkConnectivity::V1alpha1b\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java index ff4aaf180be5..b77dc1fda61b 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Request for [HubService.CreateHub][google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateHubRequest} */ -public final class CreateHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) CreateHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateHubRequest.newBuilder() to construct. private CreateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateHubRequest() { parent_ = ""; hubId_ = ""; @@ -45,45 +27,38 @@ private CreateHubRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource's name of the Hub.
    * 
* - * - * string parent = 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 @@ -92,31 +67,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource's name of the Hub.
    * 
* - * - * string parent = 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 { @@ -125,18 +98,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int HUB_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object hubId_ = ""; /** - * - * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hubId. */ @java.lang.Override @@ -145,29 +114,29 @@ public java.lang.String getHubId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; } } /** - * - * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for hubId. */ @java.lang.Override - public com.google.protobuf.ByteString getHubIdBytes() { + public com.google.protobuf.ByteString + getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hubId_ = b; return b; } else { @@ -178,16 +147,11 @@ public com.google.protobuf.ByteString getHubIdBytes() { public static final int HUB_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ @java.lang.Override @@ -195,49 +159,33 @@ public boolean hasHub() { return hub_ != null; } /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -253,7 +201,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -262,15 +209,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -286,15 +232,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -303,7 +250,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -344,7 +291,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hubId_); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHub()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -357,21 +305,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.networkconnectivity.v1alpha1.CreateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getHubId().equals(other.getHubId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getHubId() + .equals(other.getHubId())) return false; if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub().equals(other.getHub())) return false; + if (!getHub() + .equals(other.getHub())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -399,136 +350,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.CreateHub][google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -545,14 +489,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance(); } @@ -567,17 +510,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -586,7 +525,9 @@ private void buildPartial0( result.hubId_ = hubId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build(); + result.hub_ = hubBuilder_ == null + ? hub_ + : hubBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -597,39 +538,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest)other); } else { super.mergeFrom(other); return this; @@ -637,9 +577,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -684,37 +622,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - hubId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + hubId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getHubFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -724,27 +659,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource's name of the Hub.
      * 
* - * - * string parent = 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; @@ -753,23 +683,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource's name of the Hub.
      * 
* - * - * string parent = 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 { @@ -777,39 +704,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource's name of the Hub.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource's name of the Hub.
      * 
* - * - * string 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() { @@ -819,23 +735,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource's name of the Hub.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -845,20 +755,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object hubId_ = ""; /** - * - * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hubId. */ public java.lang.String getHubId() { java.lang.Object ref = hubId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; @@ -867,21 +775,20 @@ public java.lang.String getHubId() { } } /** - * - * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for hubId. */ - public com.google.protobuf.ByteString getHubIdBytes() { + public com.google.protobuf.ByteString + getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hubId_ = b; return b; } else { @@ -889,35 +796,28 @@ public com.google.protobuf.ByteString getHubIdBytes() { } } /** - * - * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The hubId to set. * @return This builder for chaining. */ - public Builder setHubId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHubId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hubId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearHubId() { @@ -927,21 +827,17 @@ public Builder clearHubId() { return this; } /** - * - * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for hubId to set. * @return This builder for chaining. */ - public Builder setHubIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHubIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hubId_ = value; bitField0_ |= 0x00000002; @@ -951,58 +847,39 @@ public Builder setHubIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> - hubBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> hubBuilder_; /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } else { return hubBuilder_.getMessage(); } } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { @@ -1018,15 +895,11 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHub( com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder builderForValue) { @@ -1040,21 +913,17 @@ public Builder setHub( return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && hub_ != null - && hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + hub_ != null && + hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -1067,15 +936,11 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1088,15 +953,11 @@ public Builder clearHub() { return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000004; @@ -1104,48 +965,36 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() return getHubFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? + com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( - getHub(), getParentForChildren(), isClean()); + hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( + getHub(), + getParentForChildren(), + isClean()); hub_ = null; } return hubBuilder_; @@ -1153,8 +1002,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1170,13 +1017,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1185,8 +1032,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1202,14 +1047,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1217,8 +1063,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1234,22 +1078,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1265,7 +1105,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1275,8 +1114,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1292,23 +1129,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1318,43 +1153,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1366,8 +1199,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java similarity index 68% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java index fecd3ded33d5..7ada53d7d300 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java @@ -1,126 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface CreateHubRequestOrBuilder - extends +public interface CreateHubRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource's name of the Hub.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource's name of the Hub.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hubId. */ java.lang.String getHubId(); /** - * - * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for hubId. */ - com.google.protobuf.ByteString getHubIdBytes(); + com.google.protobuf.ByteString + getHubIdBytes(); /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ boolean hasHub(); /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ com.google.cloud.networkconnectivity.v1alpha1.Hub getHub(); /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -136,13 +90,10 @@ public interface CreateHubRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -158,8 +109,8 @@ public interface CreateHubRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java index 6f8e9420cec0..da2748dcd13b 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest} */ -public final class CreateSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) CreateSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSpokeRequest.newBuilder() to construct. private CreateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSpokeRequest() { parent_ = ""; spokeId_ = ""; @@ -45,45 +27,38 @@ private CreateSpokeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * - * string parent = 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 @@ -92,31 +67,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * - * string parent = 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 { @@ -125,18 +98,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SPOKE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object spokeId_ = ""; /** - * - * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The spokeId. */ @java.lang.Override @@ -145,29 +114,29 @@ public java.lang.String getSpokeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; } } /** - * - * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for spokeId. */ @java.lang.Override - public com.google.protobuf.ByteString getSpokeIdBytes() { + public com.google.protobuf.ByteString + getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); spokeId_ = b; return b; } else { @@ -178,16 +147,11 @@ public com.google.protobuf.ByteString getSpokeIdBytes() { public static final int SPOKE_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ @java.lang.Override @@ -195,49 +159,33 @@ public boolean hasSpoke() { return spoke_ != null; } /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -253,7 +201,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -262,15 +209,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -286,15 +232,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -303,7 +250,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -344,7 +291,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, spokeId_); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSpoke()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -357,21 +305,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.networkconnectivity.v1alpha1.CreateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getSpokeId().equals(other.getSpokeId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getSpokeId() + .equals(other.getSpokeId())) return false; if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke().equals(other.getSpoke())) return false; + if (!getSpoke() + .equals(other.getSpoke())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -399,136 +350,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -545,14 +489,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance(); } @@ -567,17 +510,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -586,7 +525,9 @@ private void buildPartial0( result.spokeId_ = spokeId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build(); + result.spoke_ = spokeBuilder_ == null + ? spoke_ + : spokeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -597,50 +538,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other) { + if (other == com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -685,37 +622,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - spokeId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + spokeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getSpokeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -725,27 +659,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * - * string parent = 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; @@ -754,23 +683,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * - * string parent = 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 { @@ -778,39 +704,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * - * string 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() { @@ -820,23 +735,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -846,20 +755,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object spokeId_ = ""; /** - * - * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The spokeId. */ public java.lang.String getSpokeId() { java.lang.Object ref = spokeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; @@ -868,21 +775,20 @@ public java.lang.String getSpokeId() { } } /** - * - * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for spokeId. */ - public com.google.protobuf.ByteString getSpokeIdBytes() { + public com.google.protobuf.ByteString + getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); spokeId_ = b; return b; } else { @@ -890,35 +796,28 @@ public com.google.protobuf.ByteString getSpokeIdBytes() { } } /** - * - * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpokeId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } spokeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSpokeId() { @@ -928,21 +827,17 @@ public Builder clearSpokeId() { return this; } /** - * - * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpokeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); spokeId_ = value; bitField0_ |= 0x00000002; @@ -952,58 +847,39 @@ public Builder setSpokeIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> - spokeBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> spokeBuilder_; /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } else { return spokeBuilder_.getMessage(); } } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { @@ -1019,15 +895,11 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke valu return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSpoke( com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder builderForValue) { @@ -1041,21 +913,17 @@ public Builder setSpoke( return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && spoke_ != null - && spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + spoke_ != null && + spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -1068,15 +936,11 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke va return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1089,15 +953,11 @@ public Builder clearSpoke() { return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000004; @@ -1105,48 +965,36 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuild return getSpokeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? + com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( - getSpoke(), getParentForChildren(), isClean()); + spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( + getSpoke(), + getParentForChildren(), + isClean()); spoke_ = null; } return spokeBuilder_; @@ -1154,8 +1002,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1171,13 +1017,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1186,8 +1032,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1203,14 +1047,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1218,8 +1063,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1235,22 +1078,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1266,7 +1105,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1276,8 +1114,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1293,23 +1129,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1319,43 +1153,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1367,8 +1199,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java similarity index 68% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java index 0acea62a3476..7cdd693f7086 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java @@ -1,126 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface CreateSpokeRequestOrBuilder - extends +public interface CreateSpokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The spokeId. */ java.lang.String getSpokeId(); /** - * - * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for spokeId. */ - com.google.protobuf.ByteString getSpokeIdBytes(); + com.google.protobuf.ByteString + getSpokeIdBytes(); /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ boolean hasSpoke(); /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke(); /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -136,13 +90,10 @@ public interface CreateSpokeRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -158,8 +109,8 @@ public interface CreateSpokeRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java similarity index 69% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java index b12bad9a3b29..64ea69b076e4 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest} */ -public final class DeleteHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) DeleteHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteHubRequest.newBuilder() to construct. private DeleteHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteHubRequest() { name_ = ""; requestId_ = ""; @@ -44,45 +26,38 @@ private DeleteHubRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the Hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -91,31 +66,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the Hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,12 +97,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -145,7 +115,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -154,15 +123,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -178,15 +146,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -195,7 +164,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +175,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -237,16 +206,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.networkconnectivity.v1alpha1.DeleteHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,136 +238,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -408,14 +371,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance(); } @@ -430,17 +392,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -454,39 +412,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest)other); } else { super.mergeFrom(other); return this; @@ -494,9 +451,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -533,25 +488,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -561,27 +513,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the Hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -590,23 +537,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the Hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -614,39 +558,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the Hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the Hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -656,23 +589,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the Hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -682,8 +609,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -699,13 +624,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -714,8 +639,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -731,14 +654,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -746,8 +670,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -763,22 +685,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -794,7 +712,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -804,8 +721,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -821,23 +736,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -847,43 +760,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -895,8 +806,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java index 033fd24fc4b8..861358b8374d 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface DeleteHubRequestOrBuilder - extends +public interface DeleteHubRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the Hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the Hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -70,13 +43,10 @@ public interface DeleteHubRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,8 +62,8 @@ public interface DeleteHubRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java similarity index 69% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java index 1569d811fb22..5e99a2274873 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest} */ -public final class DeleteSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) DeleteSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteSpokeRequest.newBuilder() to construct. private DeleteSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteSpokeRequest() { name_ = ""; requestId_ = ""; @@ -44,45 +26,38 @@ private DeleteSpokeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the Spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -91,31 +66,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the Spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,12 +97,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -145,7 +115,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -154,15 +123,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -178,15 +146,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -195,7 +164,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +175,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -237,16 +206,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.networkconnectivity.v1alpha1.DeleteSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,136 +238,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -408,14 +371,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance(); } @@ -430,17 +392,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -454,50 +412,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other) { + if (other == com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -534,25 +488,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -562,27 +513,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the Spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -591,23 +537,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the Spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -615,39 +558,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the Spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the Spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -657,23 +589,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the Spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -683,8 +609,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -700,13 +624,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -715,8 +639,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -732,14 +654,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -747,8 +670,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -764,22 +685,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -795,7 +712,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -805,8 +721,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -822,23 +736,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -848,43 +760,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,8 +806,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java index a1bef18bbd22..1be7096a8498 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface DeleteSpokeRequestOrBuilder - extends +public interface DeleteSpokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the Spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the Spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -70,13 +43,10 @@ public interface DeleteSpokeRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,8 +62,8 @@ public interface DeleteSpokeRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java similarity index 63% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java index f9b4ab4e5e6c..5ba1a3a7791d 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java @@ -1,87 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Request for [HubService.GetHub][google.cloud.networkconnectivity.v1alpha1.HubService.GetHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetHubRequest} */ -public final class GetHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) GetHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetHubRequest.newBuilder() to construct. private GetHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetHubRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the Hub resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,31 +65,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 Hub resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -159,15 +132,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.networkconnectivity.v1alpha1.GetHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +160,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.GetHub][google.cloud.networkconnectivity.v1alpha1.HubService.GetHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) com.google.cloud.networkconnectivity.v1alpha1.GetHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; } @java.lang.Override @@ -347,11 +313,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -367,39 +330,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.GetHubR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest)other); } else { super.mergeFrom(other); return this; @@ -407,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the Hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -491,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the Hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -515,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the Hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the Hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -557,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the Hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) private static final com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest(); } @@ -606,27 +540,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java new file mode 100644 index 000000000000..c6b8ae7dba4a --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1alpha1/hub.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public interface GetHubRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the Hub resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the Hub resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java similarity index 61% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java index cf7d7735d223..6241282b9908 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java @@ -1,87 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest} */ -public final class GetSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) GetSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSpokeRequest.newBuilder() to construct. private GetSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSpokeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of Spoke resource.
    * 
* - * - * string name = 1 [(.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 @@ -90,31 +65,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of Spoke resource.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -159,15 +132,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.networkconnectivity.v1alpha1.GetSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +160,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,14 +292,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance(); } @@ -348,17 +313,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -369,39 +330,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest)other); } else { super.mergeFrom(other); return this; @@ -409,9 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -443,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -465,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of Spoke resource.
      * 
* - * - * string name = 1 [(.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; @@ -494,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of Spoke resource.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -518,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of Spoke resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of Spoke resource.
      * 
* - * - * string 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() { @@ -560,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of Spoke resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -595,13 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest(); } @@ -610,27 +540,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -645,4 +575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java new file mode 100644 index 000000000000..a34464f02bd3 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1alpha1/hub.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public interface GetSpokeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of Spoke resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of Spoke 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java similarity index 66% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java index 4f6053f779e0..0785f0c3b51e 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Network Connectivity Center is a hub-and-spoke abstraction for
  * network connectivity management in Google Cloud. It reduces
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Hub}
  */
-public final class Hub extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Hub extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.Hub)
     HubOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Hub.newBuilder() to construct.
   private Hub(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Hub() {
     name_ = "";
     description_ = "";
@@ -50,54 +32,50 @@ private Hub() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Hub();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1alpha1.Hub.class,
-            com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
+            com.google.cloud.networkconnectivity.v1alpha1.Hub.class, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -106,29 +84,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; } } /** - * - * *
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -139,14 +117,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -154,14 +129,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return The createTime. */ @java.lang.Override @@ -169,8 +141,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Time when the Hub was created.
    * 
@@ -185,14 +155,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -200,14 +167,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ @java.lang.Override @@ -215,8 +179,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Time when the Hub was updated.
    * 
@@ -229,34 +191,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_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.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - 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_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * User-defined labels.
    * 
@@ -264,21 +224,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** - * - * *
    * User-defined labels.
    * 
@@ -290,8 +249,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * User-defined labels.
    * 
@@ -299,19 +256,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +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; } /** - * - * *
    * User-defined labels.
    * 
@@ -319,11 +274,11 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @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(); } @@ -331,18 +286,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int DESCRIPTION_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Short description of the hub resource.
    * 
* * string description = 5; - * * @return The description. */ @java.lang.Override @@ -351,29 +302,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Short description of the hub resource.
    * 
* * string description = 5; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -382,52 +333,37 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int SPOKES_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList spokes_; /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return A list containing the spokes. */ - public com.google.protobuf.ProtocolStringList getSpokesList() { + public com.google.protobuf.ProtocolStringList + getSpokesList() { return spokes_; } /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The count of spokes. */ public int getSpokesCount() { return spokes_.size(); } /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The spokes at the given index. */ @@ -435,30 +371,23 @@ public java.lang.String getSpokes(int index) { return spokes_.get(index); } /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the spokes at the given index. */ - public com.google.protobuf.ByteString getSpokesBytes(int index) { + public com.google.protobuf.ByteString + getSpokesBytes(int index) { return spokes_.getByteString(index); } public static final int UNIQUE_ID_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -466,7 +395,6 @@ public com.google.protobuf.ByteString getSpokesBytes(int index) {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ @java.lang.Override @@ -475,15 +403,14 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -491,15 +418,16 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -510,46 +438,30 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = - com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null - ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { + com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -561,7 +473,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -571,8 +484,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -582,8 +499,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, uniqueId_); } - if (state_ - != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(9, state_); } getUnknownFields().writeTo(output); @@ -599,20 +515,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -628,9 +546,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, uniqueId_); } - if (state_ - != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); + if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -640,27 +558,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.networkconnectivity.v1alpha1.Hub)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.Hub other = - (com.google.cloud.networkconnectivity.v1alpha1.Hub) obj; + com.google.cloud.networkconnectivity.v1alpha1.Hub other = (com.google.cloud.networkconnectivity.v1alpha1.Hub) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getSpokesList().equals(other.getSpokesList())) return false; - if (!getUniqueId().equals(other.getUniqueId())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getSpokesList() + .equals(other.getSpokesList())) return false; + if (!getUniqueId() + .equals(other.getUniqueId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -703,103 +627,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.Hub prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Connectivity Center is a hub-and-spoke abstraction for
    * network connectivity management in Google Cloud. It reduces
@@ -809,52 +726,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Hub}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.Hub)
       com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1alpha1.Hub.class,
-              com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
+              com.google.cloud.networkconnectivity.v1alpha1.Hub.class, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1alpha1.Hub.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -880,9 +800,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
     }
 
     @java.lang.Override
@@ -901,18 +821,14 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1alpha1.Hub buildPartial() {
-      com.google.cloud.networkconnectivity.v1alpha1.Hub result =
-          new com.google.cloud.networkconnectivity.v1alpha1.Hub(this);
+      com.google.cloud.networkconnectivity.v1alpha1.Hub result = new com.google.cloud.networkconnectivity.v1alpha1.Hub(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.networkconnectivity.v1alpha1.Hub result) {
+    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.Hub result) {
       if (((bitField0_ & 0x00000020) != 0)) {
         spokes_ = spokes_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000020);
@@ -926,10 +842,14 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Hub res
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -950,39 +870,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Hub res
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.Hub) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Hub) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Hub)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -990,8 +909,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Hub other) {
-      if (other == com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1003,7 +921,8 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Hub other
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -1054,68 +973,61 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureSpokesIsMutable();
-                spokes_.add(s);
-                break;
-              } // case 50
-            case 66:
-              {
-                uniqueId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 66
-            case 72:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 72
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureSpokesIsMutable();
+              spokes_.add(s);
+              break;
+            } // case 50
+            case 66: {
+              uniqueId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 66
+            case 72: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 72
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1125,25 +1037,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1152,21 +1061,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1174,35 +1082,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1212,21 +1113,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1236,47 +1133,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Time when the Hub was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Time when the Hub was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; - * * @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(); } } /** - * - * *
      * Time when the Hub was created.
      * 
@@ -1297,15 +1181,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the Hub was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1316,8 +1199,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the Hub was created.
      * 
@@ -1326,9 +1207,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1341,8 +1222,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the Hub was created.
      * 
@@ -1360,8 +1239,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Time when the Hub was created.
      * 
@@ -1374,8 +1251,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the Hub was created.
      * 
@@ -1386,14 +1261,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Time when the Hub was created.
      * 
@@ -1401,17 +1273,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -1419,47 +1288,34 @@ 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_; /** - * - * *
      * Time when the Hub was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Time when the Hub was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @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(); } } /** - * - * *
      * Time when the Hub was updated.
      * 
@@ -1480,15 +1336,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the Hub was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1499,8 +1354,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the Hub was updated.
      * 
@@ -1509,9 +1362,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1524,8 +1377,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the Hub was updated.
      * 
@@ -1543,8 +1394,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Time when the Hub was updated.
      * 
@@ -1557,8 +1406,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the Hub was updated.
      * 
@@ -1569,14 +1416,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Time when the Hub was updated.
      * 
@@ -1584,35 +1428,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1621,13 +1464,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * User-defined labels.
      * 
@@ -1635,21 +1475,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** - * - * *
      * User-defined labels.
      * 
@@ -1661,8 +1500,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * User-defined labels.
      * 
@@ -1670,19 +1507,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +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; } /** - * - * *
      * User-defined labels.
      * 
@@ -1690,95 +1525,91 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @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(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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); + 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); bitField0_ |= 0x00000008; return this; } /** - * - * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object description_ = ""; /** - * - * *
      * Short description of the hub resource.
      * 
* * string description = 5; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1787,21 +1618,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Short description of the hub resource.
      * 
* * string description = 5; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1809,35 +1639,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Short description of the hub resource.
      * 
* * string description = 5; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Short description of the hub resource.
      * 
* * string description = 5; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1847,21 +1670,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Short description of the hub resource.
      * 
* * string description = 5; - * * @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(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -1869,58 +1688,42 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList spokes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList spokes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSpokesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { spokes_ = new com.google.protobuf.LazyStringArrayList(spokes_); bitField0_ |= 0x00000020; - } + } } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return A list containing the spokes. */ - public com.google.protobuf.ProtocolStringList getSpokesList() { + public com.google.protobuf.ProtocolStringList + getSpokesList() { return spokes_.getUnmodifiableView(); } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The count of spokes. */ public int getSpokesCount() { return spokes_.size(); } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The spokes at the given index. */ @@ -1928,100 +1731,76 @@ public java.lang.String getSpokes(int index) { return spokes_.get(index); } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the spokes at the given index. */ - public com.google.protobuf.ByteString getSpokesBytes(int index) { + public com.google.protobuf.ByteString + getSpokesBytes(int index) { return spokes_.getByteString(index); } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The spokes to set. * @return This builder for chaining. */ - public Builder setSpokes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpokes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSpokesIsMutable(); spokes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The spokes to add. * @return This builder for chaining. */ - public Builder addSpokes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSpokes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSpokesIsMutable(); spokes_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param values The spokes to add. * @return This builder for chaining. */ - public Builder addAllSpokes(java.lang.Iterable values) { + public Builder addAllSpokes( + java.lang.Iterable values) { ensureSpokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spokes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, spokes_); onChanged(); return this; } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSpokes() { @@ -2031,23 +1810,17 @@ public Builder clearSpokes() { return this; } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes of the spokes to add. * @return This builder for chaining. */ - public Builder addSpokesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSpokesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSpokesIsMutable(); spokes_.add(value); @@ -2057,8 +1830,6 @@ public Builder addSpokesBytes(com.google.protobuf.ByteString value) { private java.lang.Object uniqueId_ = ""; /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -2066,13 +1837,13 @@ public Builder addSpokesBytes(com.google.protobuf.ByteString value) {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -2081,8 +1852,6 @@ public java.lang.String getUniqueId() { } } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -2090,14 +1859,15 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -2105,8 +1875,6 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { } } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -2114,22 +1882,18 @@ public com.google.protobuf.ByteString getUniqueIdBytes() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uniqueId_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -2137,7 +1901,6 @@ public Builder setUniqueId(java.lang.String value) {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -2147,8 +1910,6 @@ public Builder clearUniqueId() { return this; } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -2156,14 +1917,12 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000040; @@ -2173,33 +1932,22 @@ public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2210,37 +1958,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = - com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null - ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED - : result; + com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2254,16 +1989,11 @@ public Builder setState(com.google.cloud.networkconnectivity.v1alpha1.State valu return this; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -2272,9 +2002,9 @@ public Builder clearState() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2284,12 +2014,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.Hub) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.Hub) private static final com.google.cloud.networkconnectivity.v1alpha1.Hub DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.Hub(); } @@ -2298,27 +2028,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.Hub getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Hub parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Hub parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2333,4 +2063,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.Hub getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java index 598c124b3db5..710e35232205 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java @@ -1,80 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface HubOrBuilder - extends +public interface HubOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.Hub) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Time when the Hub was created.
    * 
@@ -84,32 +55,24 @@ public interface HubOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Time when the Hub was updated.
    * 
@@ -119,8 +82,6 @@ public interface HubOrBuilder com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * User-defined labels.
    * 
@@ -129,31 +90,30 @@ public interface HubOrBuilder */ int getLabelsCount(); /** - * - * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * User-defined labels.
    * 
@@ -161,108 +121,82 @@ public interface HubOrBuilder * map<string, string> labels = 4; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Short description of the hub resource.
    * 
* * string description = 5; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Short description of the hub resource.
    * 
* * string description = 5; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return A list containing the spokes. */ - java.util.List getSpokesList(); + java.util.List + getSpokesList(); /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The count of spokes. */ int getSpokesCount(); /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The spokes at the given index. */ java.lang.String getSpokes(int index); /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the spokes at the given index. */ - com.google.protobuf.ByteString getSpokesBytes(int index); + com.google.protobuf.ByteString + getSpokesBytes(int index); /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -270,13 +204,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ java.lang.String getUniqueId(); /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -284,36 +215,26 @@ java.lang.String getLabelsOrDefault(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString getUniqueIdBytes(); + com.google.protobuf.ByteString + getUniqueIdBytes(); /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.networkconnectivity.v1alpha1.State getState(); diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java new file mode 100644 index 000000000000..3156d40d4846 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java @@ -0,0 +1,408 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1alpha1/hub.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public final class HubProto { + private HubProto() {} + 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_networkconnectivity_v1alpha1_Hub_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/networkconnectivity/v1alp" + + "ha1/hub.proto\022)google.cloud.networkconne" + + "ctivity.v1alpha1\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\032\037google/" + + "api/field_behavior.proto\032\031google/api/res" + + "ource.proto\032#google/longrunning/operatio" + + "ns.proto\032 google/protobuf/field_mask.pro" + + "to\032\037google/protobuf/timestamp.proto\"\207\004\n\003" + + "Hub\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_time\030\002 " + + "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat" + + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "\022J\n\006labels\030\004 \003(\0132:.google.cloud.networkc" + + "onnectivity.v1alpha1.Hub.LabelsEntry\022\023\n\013" + + "description\030\005 \001(\t\022@\n\006spokes\030\006 \003(\tB0\340A\003\372A" + + "*\n(networkconnectivity.googleapis.com/Sp" + + "oke\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022D\n\005state\030\t \001" + + "(\01620.google.cloud.networkconnectivity.v1" + + "alpha1.StateB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:[\352AX\n&networkco" + + "nnectivity.googleapis.com/Hub\022.projects/" + + "{project}/locations/global/hubs/{hub}\"\234\006" + + "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_tim" + + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022/\n\013u" + + "pdate_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tamp\022L\n\006labels\030\004 \003(\0132<.google.cloud.netw" + + "orkconnectivity.v1alpha1.Spoke.LabelsEnt" + + "ry\022\023\n\013description\030\005 \001(\t\0228\n\003hub\030\006 \001(\tB+\372A" + + "(\n&networkconnectivity.googleapis.com/Hu" + + "b\022A\n\022linked_vpn_tunnels\030\014 \003(\tB%\372A\"\n comp" + + "ute.googleapis.com/VpnTunnel\022[\n\037linked_i" + + "nterconnect_attachments\030\r \003(\tB2\372A/\n-comp" + + "ute.googleapis.com/InterconnectAttachmen" + + "t\022m\n!linked_router_appliance_instances\030\016" + + " \003(\0132B.google.cloud.networkconnectivity." + + "v1alpha1.RouterApplianceInstance\022\026\n\tuniq" + + "ue_id\030\013 \001(\tB\003\340A\003\022D\n\005state\030\017 \001(\01620.google" + + ".cloud.networkconnectivity.v1alpha1.Stat" + + "eB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001:e\352Ab\n(networkconnectivity." + + "googleapis.com/Spoke\0226projects/{project}" + + "/locations/{location}/spokes/{spoke}\"\225\001\n" + + "\017ListHubsRequest\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\022\016\n\006fi" + + "lter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\020ListHubs" + + "Response\022<\n\004hubs\030\001 \003(\0132..google.cloud.ne" + + "tworkconnectivity.v1alpha1.Hub\022\027\n\017next_p" + + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\r" + + "GetHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" + + "workconnectivity.googleapis.com/Hub\"\275\001\n\020" + + "CreateHubRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\n!locations.googleapis.com/Location\022\023\n\006h" + + "ub_id\030\002 \001(\tB\003\340A\001\022@\n\003hub\030\003 \001(\0132..google.c" + + "loud.networkconnectivity.v1alpha1.HubB\003\340" + + "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\020UpdateHu" + + "bRequest\0224\n\013update_mask\030\001 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\003\340A\001\022@\n\003hub\030\002 \001(\0132..go" + + "ogle.cloud.networkconnectivity.v1alpha1." + + "HubB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"i\n\020Del" + + "eteHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" + + "workconnectivity.googleapis.com/Hub\022\027\n\nr" + + "equest_id\030\002 \001(\tB\003\340A\001\"\227\001\n\021ListSpokesReque" + + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + + "ogleapis.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\022\020\n\010" + + "order_by\030\005 \001(\t\"\204\001\n\022ListSpokesResponse\022@\n" + + "\006spokes\030\001 \003(\01320.google.cloud.networkconn" + + "ectivity.v1alpha1.Spoke\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\017GetSpok" + + "eRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(networkc" + + "onnectivity.googleapis.com/Spoke\"\305\001\n\022Cre" + + "ateSpokeRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\025\n\010sp" + + "oke_id\030\002 \001(\tB\003\340A\001\022D\n\005spoke\030\003 \001(\01320.googl" + + "e.cloud.networkconnectivity.v1alpha1.Spo" + + "keB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\251\001\n\022Upd" + + "ateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\003\340A\001\022D\n\005spoke\030\002" + + " \001(\01320.google.cloud.networkconnectivity." + + "v1alpha1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB" + + "\003\340A\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\t" + + "B0\340A\002\372A*\n(networkconnectivity.googleapis" + + ".com/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\213\001\n\027" + + "RouterApplianceInstance\022=\n\017virtual_machi" + + "ne\030\001 \001(\tB$\372A!\n\037compute.googleapis.com/In" + + "stance\022\022\n\nip_address\030\003 \001(\t\022\035\n\021network_in" + + "terface\030\002 \001(\tB\002\030\001*F\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010D" + + "ELETING\020\0032\255\021\n\nHubService\022\311\001\n\010ListHubs\022:." + + "google.cloud.networkconnectivity.v1alpha" + + "1.ListHubsRequest\032;.google.cloud.network" + + "connectivity.v1alpha1.ListHubsResponse\"D" + + "\202\323\344\223\0025\0223/v1alpha1/{parent=projects/*/loc" + + "ations/global}/hubs\332A\006parent\022\266\001\n\006GetHub\022" + + "8.google.cloud.networkconnectivity.v1alp" + + "ha1.GetHubRequest\032..google.cloud.network" + + "connectivity.v1alpha1.Hub\"B\202\323\344\223\0025\0223/v1al" + + "pha1/{name=projects/*/locations/global/h" + + "ubs/*}\332A\004name\022\330\001\n\tCreateHub\022;.google.clo" + + "ud.networkconnectivity.v1alpha1.CreateHu" + + "bRequest\032\035.google.longrunning.Operation\"" + + "o\202\323\344\223\002:\"3/v1alpha1/{parent=projects/*/lo" + + "cations/global}/hubs:\003hub\332A\021parent,hub,h" + + "ub_id\312A\030\n\003Hub\022\021OperationMetadata\022\332\001\n\tUpd" + + "ateHub\022;.google.cloud.networkconnectivit" + + "y.v1alpha1.UpdateHubRequest\032\035.google.lon" + + "grunning.Operation\"q\202\323\344\223\002>27/v1alpha1/{h" + + "ub.name=projects/*/locations/global/hubs" + + "/*}:\003hub\332A\017hub,update_mask\312A\030\n\003Hub\022\021Oper" + + "ationMetadata\022\330\001\n\tDeleteHub\022;.google.clo" + + "ud.networkconnectivity.v1alpha1.DeleteHu" + + "bRequest\032\035.google.longrunning.Operation\"" + + "o\202\323\344\223\0025*3/v1alpha1/{name=projects/*/loca" + + "tions/global/hubs/*}\332A\004name\312A*\n\025google.p" + + "rotobuf.Empty\022\021OperationMetadata\022\314\001\n\nLis" + + "tSpokes\022<.google.cloud.networkconnectivi" + + "ty.v1alpha1.ListSpokesRequest\032=.google.c" + + "loud.networkconnectivity.v1alpha1.ListSp" + + "okesResponse\"A\202\323\344\223\0022\0220/v1alpha1/{parent=" + + "projects/*/locations/*}/spokes\332A\006parent\022" + + "\271\001\n\010GetSpoke\022:.google.cloud.networkconne" + + "ctivity.v1alpha1.GetSpokeRequest\0320.googl" + + "e.cloud.networkconnectivity.v1alpha1.Spo" + + "ke\"?\202\323\344\223\0022\0220/v1alpha1/{name=projects/*/l" + + "ocations/*/spokes/*}\332A\004name\022\341\001\n\013CreateSp" + + "oke\022=.google.cloud.networkconnectivity.v" + + "1alpha1.CreateSpokeRequest\032\035.google.long" + + "running.Operation\"t\202\323\344\223\0029\"0/v1alpha1/{pa" + + "rent=projects/*/locations/*}/spokes:\005spo" + + "ke\332A\025parent,spoke,spoke_id\312A\032\n\005Spoke\022\021Op" + + "erationMetadata\022\343\001\n\013UpdateSpoke\022=.google" + + ".cloud.networkconnectivity.v1alpha1.Upda" + + "teSpokeRequest\032\035.google.longrunning.Oper" + + "ation\"v\202\323\344\223\002?26/v1alpha1/{spoke.name=pro" + + "jects/*/locations/*/spokes/*}:\005spoke\332A\021s" + + "poke,update_mask\312A\032\n\005Spoke\022\021OperationMet" + + "adata\022\331\001\n\013DeleteSpoke\022=.google.cloud.net" + + "workconnectivity.v1alpha1.DeleteSpokeReq" + + "uest\032\035.google.longrunning.Operation\"l\202\323\344" + + "\223\0022*0/v1alpha1/{name=projects/*/location" + + "s/*/spokes/*}\332A\004name\312A*\n\025google.protobuf" + + ".Empty\022\021OperationMetadata\032V\312A\"networkcon" + + "nectivity.googleapis.com\322A.https://www.g" + + "oogleapis.com/auth/cloud-platformB\332\004\n-co" + + "m.google.cloud.networkconnectivity.v1alp" + + "ha1B\010HubProtoP\001Z\\google.golang.org/genpr" + + "oto/googleapis/cloud/networkconnectivity" + + "/v1alpha1;networkconnectivity\252\002)Google.C" + + "loud.NetworkConnectivity.V1Alpha1\312\002)Goog" + + "le\\Cloud\\NetworkConnectivity\\V1alpha1\352\002," + + "Google::Cloud::NetworkConnectivity::V1al" + + "pha1\352A`\n compute.googleapis.com/VpnTunne" + + "l\022 * Request for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method. *
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsRequest} */ -public final class ListHubsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListHubsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) ListHubsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListHubsRequest.newBuilder() to construct. private ListHubsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListHubsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,45 +28,38 @@ private ListHubsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListHubsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 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 @@ -93,31 +68,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 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 { @@ -128,14 +101,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -144,18 +114,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -164,29 +130,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The page token.
    * 
* * 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 { @@ -195,18 +161,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -215,29 +177,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; } } /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * 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 { @@ -246,18 +208,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -266,29 +224,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -297,7 +255,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +266,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -338,7 +296,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_); @@ -357,19 +316,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.networkconnectivity.v1alpha1.ListHubsRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest other = (com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -397,136 +360,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -540,14 +496,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance(); } @@ -562,17 +517,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -595,39 +546,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest)other); } else { super.mergeFrom(other); return this; @@ -635,9 +585,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -687,43 +635,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -733,27 +675,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * string parent = 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; @@ -762,23 +699,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * string parent = 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 { @@ -786,39 +720,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * string 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() { @@ -828,23 +751,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -852,16 +769,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -869,33 +783,27 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -907,20 +815,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The page token.
      * 
* * 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; @@ -929,21 +835,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The page token.
      * 
* * 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 { @@ -951,35 +856,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The page token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -989,21 +887,17 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1013,20 +907,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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; @@ -1035,21 +927,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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 { @@ -1057,35 +948,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1095,21 +979,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1119,20 +999,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1141,21 +1019,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1163,35 +1040,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1201,30 +1071,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1234,13 +1100,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest(); } @@ -1249,27 +1114,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1284,4 +1149,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java similarity index 59% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java index d04315d22cc4..18dcea236671 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java @@ -1,142 +1,99 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListHubsRequestOrBuilder - extends +public interface ListHubsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java similarity index 71% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java index f9b82a08d489..38bda54f7ae1 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsResponse} */ -public final class ListHubsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListHubsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) ListHubsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListHubsResponse.newBuilder() to construct. private ListHubsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListHubsResponse() { hubs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,37 +27,33 @@ private ListHubsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListHubsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); } public static final int HUBS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List hubs_; /** - * - * *
    * Hubs to be returned.
    * 
@@ -87,8 +65,6 @@ public java.util.List getHubs return hubs_; } /** - * - * *
    * Hubs to be returned.
    * 
@@ -96,13 +72,11 @@ public java.util.List getHubs * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getHubsOrBuilderList() { return hubs_; } /** - * - * *
    * Hubs to be returned.
    * 
@@ -114,8 +88,6 @@ public int getHubsCount() { return hubs_.size(); } /** - * - * *
    * Hubs to be returned.
    * 
@@ -127,8 +99,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index) { return hubs_.get(index); } /** - * - * *
    * Hubs to be returned.
    * 
@@ -136,24 +106,21 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index) { * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder( + int index) { return hubs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -162,30 +129,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -194,46 +161,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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. */ @@ -241,23 +199,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; @@ -269,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < hubs_.size(); i++) { output.writeMessage(1, hubs_.get(i)); } @@ -289,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < hubs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hubs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, hubs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -310,17 +267,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.networkconnectivity.v1alpha1.ListHubsResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse other = - (com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) obj; + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse other = (com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) obj; - if (!getHubsList().equals(other.getHubsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getHubsList() + .equals(other.getHubsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,136 +307,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -496,14 +448,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance(); } @@ -518,18 +469,14 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result = - new com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse(this); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { if (hubsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { hubs_ = java.util.Collections.unmodifiableList(hubs_); @@ -546,8 +493,7 @@ private void buildPartialRepeatedFields( result.unreachable_ = unreachable_; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -558,39 +504,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse)other); } else { super.mergeFrom(other); return this; @@ -598,9 +543,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance()) return this; if (hubsBuilder_ == null) { if (!other.hubs_.isEmpty()) { if (hubs_.isEmpty()) { @@ -619,10 +562,9 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListHubsR hubsBuilder_ = null; hubs_ = other.hubs_; bitField0_ = (bitField0_ & ~0x00000001); - hubsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHubsFieldBuilder() - : null; + hubsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHubsFieldBuilder() : null; } else { hubsBuilder_.addAllMessages(other.hubs_); } @@ -669,40 +611,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.networkconnectivity.v1alpha1.Hub m = - input.readMessage( - com.google.cloud.networkconnectivity.v1alpha1.Hub.parser(), - extensionRegistry); - if (hubsBuilder_ == null) { - ensureHubsIsMutable(); - hubs_.add(m); - } else { - hubsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.networkconnectivity.v1alpha1.Hub m = + input.readMessage( + com.google.cloud.networkconnectivity.v1alpha1.Hub.parser(), + extensionRegistry); + if (hubsBuilder_ == null) { + ensureHubsIsMutable(); + hubs_.add(m); + } else { + hubsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -712,28 +650,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List hubs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureHubsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { hubs_ = new java.util.ArrayList(hubs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> - hubsBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> hubsBuilder_; /** - * - * *
      * Hubs to be returned.
      * 
@@ -748,8 +679,6 @@ public java.util.List getHubs } } /** - * - * *
      * Hubs to be returned.
      * 
@@ -764,8 +693,6 @@ public int getHubsCount() { } } /** - * - * *
      * Hubs to be returned.
      * 
@@ -780,15 +707,14 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index) { } } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public Builder setHubs(int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { + public Builder setHubs( + int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -802,8 +728,6 @@ public Builder setHubs(int index, com.google.cloud.networkconnectivity.v1alpha1. return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -822,8 +746,6 @@ public Builder setHubs( return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -844,15 +766,14 @@ public Builder addHubs(com.google.cloud.networkconnectivity.v1alpha1.Hub value) return this; } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public Builder addHubs(int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { + public Builder addHubs( + int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -866,8 +787,6 @@ public Builder addHubs(int index, com.google.cloud.networkconnectivity.v1alpha1. return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -886,8 +805,6 @@ public Builder addHubs( return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -906,8 +823,6 @@ public Builder addHubs( return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -918,7 +833,8 @@ public Builder addAllHubs( java.lang.Iterable values) { if (hubsBuilder_ == null) { ensureHubsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hubs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, hubs_); onChanged(); } else { hubsBuilder_.addAllMessages(values); @@ -926,8 +842,6 @@ public Builder addAllHubs( return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -945,8 +859,6 @@ public Builder clearHubs() { return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -964,44 +876,39 @@ public Builder removeHubs(int index) { return this; } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubsBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubsBuilder( + int index) { return getHubsFieldBuilder().getBuilder(index); } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder( + int index) { if (hubsBuilder_ == null) { - return hubs_.get(index); - } else { + return hubs_.get(index); } else { return hubsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public java.util.List - getHubsOrBuilderList() { + public java.util.List + getHubsOrBuilderList() { if (hubsBuilder_ != null) { return hubsBuilder_.getMessageOrBuilderList(); } else { @@ -1009,8 +916,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuild } } /** - * - * *
      * Hubs to be returned.
      * 
@@ -1018,49 +923,42 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuild * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder() { - return getHubsFieldBuilder() - .addBuilder(com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); + return getHubsFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder(int index) { - return getHubsFieldBuilder() - .addBuilder( - index, com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder( + int index) { + return getHubsFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public java.util.List - getHubsBuilderList() { + public java.util.List + getHubsBuilderList() { return getHubsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> getHubsFieldBuilder() { if (hubsBuilder_ == null) { - hubsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( - hubs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + hubsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( + hubs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); hubs_ = null; } return hubsBuilder_; @@ -1068,21 +966,19 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder( private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -1091,22 +987,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1114,37 +1009,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1154,22 +1042,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1177,52 +1061,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * 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. */ @@ -1230,90 +1104,76 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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(); - } + 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) { + 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() { @@ -1323,30 +1183,26 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1356,43 +1212,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse(); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1404,8 +1258,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java similarity index 73% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java index 0e7c350ae916..04585dd17478 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListHubsResponseOrBuilder - extends +public interface ListHubsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Hubs to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - java.util.List getHubsList(); + java.util.List + getHubsList(); /** - * - * *
    * Hubs to be returned.
    * 
@@ -44,8 +25,6 @@ public interface ListHubsResponseOrBuilder */ com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index); /** - * - * *
    * Hubs to be returned.
    * 
@@ -54,102 +33,84 @@ public interface ListHubsResponseOrBuilder */ int getHubsCount(); /** - * - * *
    * Hubs to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - java.util.List + java.util.List getHubsOrBuilderList(); /** - * - * *
    * Hubs to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder(int index); + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder( + int index); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java similarity index 66% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java index 16ad2870ba59..d02e80f4ce44 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest} */ -public final class ListSpokesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSpokesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) ListSpokesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSpokesRequest.newBuilder() to construct. private ListSpokesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSpokesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,45 +28,38 @@ private ListSpokesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSpokesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent's resource name.
    * 
* - * - * string parent = 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 @@ -93,31 +68,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent's resource name.
    * 
* - * - * string parent = 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 { @@ -128,14 +101,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -144,18 +114,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -164,29 +130,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The page token.
    * 
* * 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 { @@ -195,18 +161,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -215,29 +177,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; } } /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * 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 { @@ -246,18 +208,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -266,29 +224,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -297,7 +255,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +266,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -338,7 +296,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_); @@ -357,19 +316,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.networkconnectivity.v1alpha1.ListSpokesRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other = (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -397,136 +360,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -540,14 +496,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance(); } @@ -562,17 +517,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -595,50 +546,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other) { + if (other == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -688,43 +635,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -734,27 +675,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent's resource name.
      * 
* - * - * string parent = 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; @@ -763,23 +699,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent's resource name.
      * 
* - * - * string parent = 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 { @@ -787,39 +720,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent's resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent's resource name.
      * 
* - * - * string 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() { @@ -829,23 +751,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent's resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -853,16 +769,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -870,33 +783,27 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -908,20 +815,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The page token.
      * 
* * 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; @@ -930,21 +835,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The page token.
      * 
* * 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 { @@ -952,35 +856,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The page token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -990,21 +887,17 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1014,20 +907,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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; @@ -1036,21 +927,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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 { @@ -1058,35 +948,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1096,21 +979,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1120,20 +999,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1142,21 +1019,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1164,35 +1040,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1202,30 +1071,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1235,43 +1100,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1283,8 +1146,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java similarity index 59% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java index 444a3f40fd43..ec02d876fd99 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java @@ -1,142 +1,99 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListSpokesRequestOrBuilder - extends +public interface ListSpokesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent's resource name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent's resource name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java similarity index 71% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java index df099e099d9c..9193ff955e1f 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse} */ -public final class ListSpokesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSpokesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) ListSpokesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSpokesResponse.newBuilder() to construct. private ListSpokesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSpokesResponse() { spokes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,37 +27,33 @@ private ListSpokesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSpokesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); } public static final int SPOKES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List spokes_; /** - * - * *
    * Spokes to be returned.
    * 
@@ -87,8 +65,6 @@ public java.util.List getSp return spokes_; } /** - * - * *
    * Spokes to be returned.
    * 
@@ -96,13 +72,11 @@ public java.util.List getSp * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSpokesOrBuilderList() { return spokes_; } /** - * - * *
    * Spokes to be returned.
    * 
@@ -114,8 +88,6 @@ public int getSpokesCount() { return spokes_.size(); } /** - * - * *
    * Spokes to be returned.
    * 
@@ -127,8 +99,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpokes(int index) return spokes_.get(index); } /** - * - * *
    * Spokes to be returned.
    * 
@@ -142,19 +112,15 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrB } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -163,30 +129,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -195,46 +161,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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. */ @@ -242,23 +199,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; @@ -270,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 { for (int i = 0; i < spokes_.size(); i++) { output.writeMessage(1, spokes_.get(i)); } @@ -290,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < spokes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, spokes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, spokes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -311,17 +267,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.networkconnectivity.v1alpha1.ListSpokesResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other = - (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) obj; + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other = (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) obj; - if (!getSpokesList().equals(other.getSpokesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getSpokesList() + .equals(other.getSpokesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -349,136 +307,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -497,14 +448,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance(); } @@ -519,18 +469,14 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result = - new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse(this); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { if (spokesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { spokes_ = java.util.Collections.unmodifiableList(spokes_); @@ -547,8 +493,7 @@ private void buildPartialRepeatedFields( result.unreachable_ = unreachable_; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -559,50 +504,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other) { + if (other == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance()) return this; if (spokesBuilder_ == null) { if (!other.spokes_.isEmpty()) { if (spokes_.isEmpty()) { @@ -621,10 +562,9 @@ public Builder mergeFrom( spokesBuilder_ = null; spokes_ = other.spokes_; bitField0_ = (bitField0_ & ~0x00000001); - spokesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSpokesFieldBuilder() - : null; + spokesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSpokesFieldBuilder() : null; } else { spokesBuilder_.addAllMessages(other.spokes_); } @@ -671,40 +611,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.networkconnectivity.v1alpha1.Spoke m = - input.readMessage( - com.google.cloud.networkconnectivity.v1alpha1.Spoke.parser(), - extensionRegistry); - if (spokesBuilder_ == null) { - ensureSpokesIsMutable(); - spokes_.add(m); - } else { - spokesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.networkconnectivity.v1alpha1.Spoke m = + input.readMessage( + com.google.cloud.networkconnectivity.v1alpha1.Spoke.parser(), + extensionRegistry); + if (spokesBuilder_ == null) { + ensureSpokesIsMutable(); + spokes_.add(m); + } else { + spokesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -714,29 +650,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List spokes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSpokesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - spokes_ = - new java.util.ArrayList(spokes_); + spokes_ = new java.util.ArrayList(spokes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> - spokesBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> spokesBuilder_; /** - * - * *
      * Spokes to be returned.
      * 
@@ -751,8 +679,6 @@ public java.util.List getSp } } /** - * - * *
      * Spokes to be returned.
      * 
@@ -767,8 +693,6 @@ public int getSpokesCount() { } } /** - * - * *
      * Spokes to be returned.
      * 
@@ -783,15 +707,14 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpokes(int index) } } /** - * - * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public Builder setSpokes(int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { + public Builder setSpokes( + int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -805,8 +728,6 @@ public Builder setSpokes(int index, com.google.cloud.networkconnectivity.v1alpha return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -825,8 +746,6 @@ public Builder setSpokes( return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -847,15 +766,14 @@ public Builder addSpokes(com.google.cloud.networkconnectivity.v1alpha1.Spoke val return this; } /** - * - * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public Builder addSpokes(int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { + public Builder addSpokes( + int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -869,8 +787,6 @@ public Builder addSpokes(int index, com.google.cloud.networkconnectivity.v1alpha return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -889,8 +805,6 @@ public Builder addSpokes( return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -909,8 +823,6 @@ public Builder addSpokes( return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -921,7 +833,8 @@ public Builder addAllSpokes( java.lang.Iterable values) { if (spokesBuilder_ == null) { ensureSpokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spokes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, spokes_); onChanged(); } else { spokesBuilder_.addAllMessages(values); @@ -929,8 +842,6 @@ public Builder addAllSpokes( return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -948,8 +859,6 @@ public Builder clearSpokes() { return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -967,20 +876,17 @@ public Builder removeSpokes(int index) { return this; } /** - * - * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokesBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokesBuilder( + int index) { return getSpokesFieldBuilder().getBuilder(index); } /** - * - * *
      * Spokes to be returned.
      * 
@@ -990,22 +896,19 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokesBuil public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrBuilder( int index) { if (spokesBuilder_ == null) { - return spokes_.get(index); - } else { + return spokes_.get(index); } else { return spokesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public java.util.List - getSpokesOrBuilderList() { + public java.util.List + getSpokesOrBuilderList() { if (spokesBuilder_ != null) { return spokesBuilder_.getMessageOrBuilderList(); } else { @@ -1013,8 +916,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrB } } /** - * - * *
      * Spokes to be returned.
      * 
@@ -1022,49 +923,42 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrB * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuilder() { - return getSpokesFieldBuilder() - .addBuilder(com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); + return getSpokesFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); } /** - * - * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuilder(int index) { - return getSpokesFieldBuilder() - .addBuilder( - index, com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuilder( + int index) { + return getSpokesFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); } /** - * - * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public java.util.List - getSpokesBuilderList() { + public java.util.List + getSpokesBuilderList() { return getSpokesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> getSpokesFieldBuilder() { if (spokesBuilder_ == null) { - spokesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( - spokes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + spokesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( + spokes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); spokes_ = null; } return spokesBuilder_; @@ -1072,21 +966,19 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuil private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -1095,22 +987,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1118,37 +1009,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1158,22 +1042,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1181,52 +1061,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * 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. */ @@ -1234,90 +1104,76 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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(); - } + 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) { + 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() { @@ -1327,30 +1183,26 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1360,43 +1212,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse(); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1408,8 +1258,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java similarity index 73% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java index f961b406b6ac..cd1aaeb8ddaf 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListSpokesResponseOrBuilder - extends +public interface ListSpokesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Spokes to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - java.util.List getSpokesList(); + java.util.List + getSpokesList(); /** - * - * *
    * Spokes to be returned.
    * 
@@ -44,8 +25,6 @@ public interface ListSpokesResponseOrBuilder */ com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpokes(int index); /** - * - * *
    * Spokes to be returned.
    * 
@@ -54,102 +33,84 @@ public interface ListSpokesResponseOrBuilder */ int getSpokesCount(); /** - * - * *
    * Spokes to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - java.util.List + java.util.List getSpokesOrBuilderList(); /** - * - * *
    * Spokes to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrBuilder(int index); + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrBuilder( + int index); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java index e602957e7330..adc9f5345b26 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/common.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,42 +28,37 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -89,15 +66,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -105,14 +78,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -122,15 +92,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -138,15 +104,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -154,14 +116,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -169,18 +128,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -189,29 +144,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -220,18 +175,14 @@ public com.google.protobuf.ByteString getTargetBytes() { } public static final int VERB_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -240,29 +191,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -271,18 +222,14 @@ public com.google.protobuf.ByteString getVerbBytes() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -291,29 +238,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -324,8 +271,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -334,7 +279,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -343,18 +287,14 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -363,29 +303,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -394,7 +334,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -406,7 +345,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -438,10 +378,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_); @@ -453,7 +395,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_); @@ -466,27 +409,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.networkconnectivity.v1alpha1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other = - (com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) obj; + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other = (com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -513,7 +462,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) + getUnknownFields().hashCode(); @@ -522,136 +472,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) com.google.cloud.networkconnectivity.v1alpha1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -675,14 +618,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.getDefaultInstance(); } @@ -697,23 +639,23 @@ public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result = - new com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result = new com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -736,50 +678,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other) { + if (other == com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -835,55 +773,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -893,63 +827,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time 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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -965,17 +879,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -986,21 +897,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1013,15 +920,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1034,15 +937,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -1050,48 +949,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1099,35 +986,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1138,14 +1014,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1161,16 +1034,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1181,20 +1052,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1207,14 +1075,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1227,14 +1092,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1242,44 +1104,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1287,20 +1141,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1309,21 +1161,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1331,35 +1182,28 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1369,21 +1213,17 @@ public Builder clearTarget() { return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1393,20 +1233,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1415,21 +1253,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1437,35 +1274,28 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerb( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1475,21 +1305,17 @@ public Builder clearVerb() { return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1499,20 +1325,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1521,21 +1345,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1543,35 +1366,28 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1581,21 +1397,17 @@ public Builder clearStatusMessage() { return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1603,10 +1415,8 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1615,7 +1425,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 @@ -1623,8 +1432,6 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1633,20 +1440,17 @@ 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1655,7 +1459,6 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1667,20 +1470,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1689,21 +1490,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1711,35 +1511,28 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1749,30 +1542,26 @@ public Builder clearApiVersion() { return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1782,43 +1571,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) - private static final com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata(); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1830,8 +1617,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java similarity index 75% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java index 984bdadf0f01..9df65555334e 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/common.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java similarity index 63% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java index 0b6f52d0e51d..a16aa2f28465 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * RouterAppliance represents a Router appliance which is specified by a VM URI
  * and a NIC address.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance}
  */
-public final class RouterApplianceInstance extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RouterApplianceInstance extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance)
     RouterApplianceInstanceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RouterApplianceInstance.newBuilder() to construct.
   private RouterApplianceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RouterApplianceInstance() {
     virtualMachine_ = "";
     ipAddress_ = "";
@@ -46,43 +28,38 @@ private RouterApplianceInstance() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RouterApplianceInstance();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class,
-            com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
+            com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
   }
 
   public static final int VIRTUAL_MACHINE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object virtualMachine_ = "";
   /**
-   *
-   *
    * 
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The virtualMachine. */ @java.lang.Override @@ -91,29 +68,29 @@ public java.lang.String getVirtualMachine() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; } } /** - * - * *
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for virtualMachine. */ @java.lang.Override - public com.google.protobuf.ByteString getVirtualMachineBytes() { + public com.google.protobuf.ByteString + getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -122,18 +99,14 @@ public com.google.protobuf.ByteString getVirtualMachineBytes() { } public static final int IP_ADDRESS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object ipAddress_ = ""; /** - * - * *
    * The IP address of the network interface to use for peering.
    * 
* * string ip_address = 3; - * * @return The ipAddress. */ @java.lang.Override @@ -142,29 +115,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; } } /** - * - * *
    * The IP address of the network interface to use for peering.
    * 
* * 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 { @@ -173,24 +146,22 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } public static final int NETWORK_INTERFACE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object networkInterface_ = ""; /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface - * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The networkInterface. */ @java.lang.Override - @java.lang.Deprecated - public java.lang.String getNetworkInterface() { + @java.lang.Deprecated public java.lang.String getNetworkInterface() { java.lang.Object ref = networkInterface_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkInterface_ = s; return s; @@ -198,18 +169,18 @@ public java.lang.String getNetworkInterface() { } /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface - * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The bytes for networkInterface. */ @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getNetworkInterfaceBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getNetworkInterfaceBytes() { java.lang.Object ref = networkInterface_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); networkInterface_ = b; return b; } else { @@ -218,7 +189,6 @@ public com.google.protobuf.ByteString getNetworkInterfaceBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualMachine_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, virtualMachine_); } @@ -266,17 +237,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.networkconnectivity.v1alpha1.RouterApplianceInstance)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other = - (com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) obj; + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other = (com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) obj; - if (!getVirtualMachine().equals(other.getVirtualMachine())) return false; - if (!getIpAddress().equals(other.getIpAddress())) return false; - if (!getNetworkInterface().equals(other.getNetworkInterface())) return false; + if (!getVirtualMachine() + .equals(other.getVirtualMachine())) return false; + if (!getIpAddress() + .equals(other.getIpAddress())) return false; + if (!getNetworkInterface() + .equals(other.getNetworkInterface())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,105 +273,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - 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.networkconnectivity.v1alpha1.RouterApplianceInstance 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.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * RouterAppliance represents a Router appliance which is specified by a VM URI
    * and a NIC address.
@@ -406,33 +370,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance)
       com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class,
-              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
+              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,16 +408,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
-        getDefaultInstanceForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
-          .getDefaultInstance();
+    public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getDefaultInstanceForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -467,17 +429,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance bui
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance buildPartial() {
-      com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result =
-          new com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result = new com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result) {
+    private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.virtualMachine_ = virtualMachine_;
@@ -494,51 +452,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) {
-        return mergeFrom(
-            (com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other) {
-      if (other
-          == com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other) {
+      if (other == com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance()) return this;
       if (!other.getVirtualMachine().isEmpty()) {
         virtualMachine_ = other.virtualMachine_;
         bitField0_ |= 0x00000001;
@@ -580,31 +533,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                virtualMachine_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                networkInterface_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 18
-            case 26:
-              {
-                ipAddress_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              virtualMachine_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              networkInterface_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 18
+            case 26: {
+              ipAddress_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -614,25 +563,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object virtualMachine_ = "";
     /**
-     *
-     *
      * 
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The virtualMachine. */ public java.lang.String getVirtualMachine() { java.lang.Object ref = virtualMachine_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; @@ -641,21 +587,20 @@ public java.lang.String getVirtualMachine() { } } /** - * - * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for virtualMachine. */ - public com.google.protobuf.ByteString getVirtualMachineBytes() { + public com.google.protobuf.ByteString + getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -663,35 +608,28 @@ public com.google.protobuf.ByteString getVirtualMachineBytes() { } } /** - * - * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @param value The virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachine(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVirtualMachine( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } virtualMachine_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearVirtualMachine() { @@ -701,21 +639,17 @@ public Builder clearVirtualMachine() { return this; } /** - * - * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachineBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVirtualMachineBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); virtualMachine_ = value; bitField0_ |= 0x00000001; @@ -725,20 +659,18 @@ public Builder setVirtualMachineBytes(com.google.protobuf.ByteString value) { private java.lang.Object ipAddress_ = ""; /** - * - * *
      * The IP address of the network interface to use for peering.
      * 
* * 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; @@ -747,21 +679,20 @@ public java.lang.String getIpAddress() { } } /** - * - * *
      * The IP address of the network interface to use for peering.
      * 
* * 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 { @@ -769,35 +700,28 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } } /** - * - * *
      * The IP address of the network interface to use for peering.
      * 
* * 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(); - } + public Builder setIpAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ipAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The IP address of the network interface to use for peering.
      * 
* * string ip_address = 3; - * * @return This builder for chaining. */ public Builder clearIpAddress() { @@ -807,21 +731,17 @@ public Builder clearIpAddress() { return this; } /** - * - * *
      * The IP address of the network interface to use for peering.
      * 
* * 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(); - } + public Builder setIpAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ipAddress_ = value; bitField0_ |= 0x00000002; @@ -832,17 +752,15 @@ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { private java.lang.Object networkInterface_ = ""; /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is - * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The networkInterface. */ - @java.lang.Deprecated - public java.lang.String getNetworkInterface() { + @java.lang.Deprecated public java.lang.String getNetworkInterface() { java.lang.Object ref = networkInterface_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkInterface_ = s; return s; @@ -852,18 +770,17 @@ public java.lang.String getNetworkInterface() { } /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is - * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The bytes for networkInterface. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getNetworkInterfaceBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getNetworkInterfaceBytes() { java.lang.Object ref = networkInterface_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); networkInterface_ = b; return b; } else { @@ -872,18 +789,14 @@ public com.google.protobuf.ByteString getNetworkInterfaceBytes() { } /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is - * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @param value The networkInterface to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setNetworkInterface(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + @java.lang.Deprecated public Builder setNetworkInterface( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } networkInterface_ = value; bitField0_ |= 0x00000004; onChanged(); @@ -891,14 +804,11 @@ public Builder setNetworkInterface(java.lang.String value) { } /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is - * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearNetworkInterface() { + @java.lang.Deprecated public Builder clearNetworkInterface() { networkInterface_ = getDefaultInstance().getNetworkInterface(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); @@ -906,27 +816,23 @@ public Builder clearNetworkInterface() { } /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is - * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @param value The bytes for networkInterface to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setNetworkInterfaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + @java.lang.Deprecated public Builder setNetworkInterfaceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); networkInterface_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -936,43 +842,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) - private static final com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance(); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouterApplianceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouterApplianceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -984,8 +888,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java similarity index 55% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java index 9d10c38aef90..09034b583365 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java @@ -1,94 +1,65 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface RouterApplianceInstanceOrBuilder - extends +public interface RouterApplianceInstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The virtualMachine. */ java.lang.String getVirtualMachine(); /** - * - * *
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for virtualMachine. */ - com.google.protobuf.ByteString getVirtualMachineBytes(); + com.google.protobuf.ByteString + getVirtualMachineBytes(); /** - * - * *
    * The IP address of the network interface to use for peering.
    * 
* * string ip_address = 3; - * * @return The ipAddress. */ java.lang.String getIpAddress(); /** - * - * *
    * The IP address of the network interface to use for peering.
    * 
* * string ip_address = 3; - * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString getIpAddressBytes(); + com.google.protobuf.ByteString + getIpAddressBytes(); /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface - * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The networkInterface. */ - @java.lang.Deprecated - java.lang.String getNetworkInterface(); + @java.lang.Deprecated java.lang.String getNetworkInterface(); /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface - * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The bytes for networkInterface. */ - @java.lang.Deprecated - com.google.protobuf.ByteString getNetworkInterfaceBytes(); + @java.lang.Deprecated com.google.protobuf.ByteString + getNetworkInterfaceBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java similarity index 66% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java index 482de452ad94..b425a46ccf5c 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * A Spoke is an  abstraction of a network attachment being attached
  * to a Hub. A Spoke can be underlying a VPN tunnel, a
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Spoke}
  */
-public final class Spoke extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Spoke extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.Spoke)
     SpokeOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Spoke.newBuilder() to construct.
   private Spoke(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Spoke() {
     name_ = "";
     description_ = "";
@@ -52,54 +34,50 @@ private Spoke() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Spoke();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1alpha1.Spoke.class,
-            com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
+            com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -108,29 +86,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; } } /** - * - * *
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -141,14 +119,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -156,14 +131,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return The createTime. */ @java.lang.Override @@ -171,8 +143,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time when the Spoke was created.
    * 
@@ -187,14 +157,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -202,14 +169,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ @java.lang.Override @@ -217,8 +181,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The time when the Spoke was updated.
    * 
@@ -231,34 +193,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_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.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - 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_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * User-defined labels.
    * 
@@ -266,21 +226,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** - * - * *
    * User-defined labels.
    * 
@@ -292,8 +251,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * User-defined labels.
    * 
@@ -301,19 +258,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +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; } /** - * - * *
    * User-defined labels.
    * 
@@ -321,11 +276,11 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @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(); } @@ -333,18 +288,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int DESCRIPTION_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Short description of the spoke resource
    * 
* * string description = 5; - * * @return The description. */ @java.lang.Override @@ -353,29 +304,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Short description of the spoke resource
    * 
* * string description = 5; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -384,18 +335,14 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int HUB_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object hub_ = ""; /** - * - * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return The hub. */ @java.lang.Override @@ -404,29 +351,29 @@ public java.lang.String getHub() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; } } /** - * - * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for hub. */ @java.lang.Override - public com.google.protobuf.ByteString getHubBytes() { + public com.google.protobuf.ByteString + getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hub_ = b; return b; } else { @@ -435,49 +382,37 @@ public com.google.protobuf.ByteString getHubBytes() { } public static final int LINKED_VPN_TUNNELS_FIELD_NUMBER = 12; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList linkedVpnTunnels_; /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return A list containing the linkedVpnTunnels. */ - public com.google.protobuf.ProtocolStringList getLinkedVpnTunnelsList() { + public com.google.protobuf.ProtocolStringList + getLinkedVpnTunnelsList() { return linkedVpnTunnels_; } /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return The count of linkedVpnTunnels. */ public int getLinkedVpnTunnelsCount() { return linkedVpnTunnels_.size(); } /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The linkedVpnTunnels at the given index. */ @@ -485,69 +420,51 @@ public java.lang.String getLinkedVpnTunnels(int index) { return linkedVpnTunnels_.get(index); } /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the linkedVpnTunnels at the given index. */ - public com.google.protobuf.ByteString getLinkedVpnTunnelsBytes(int index) { + public com.google.protobuf.ByteString + getLinkedVpnTunnelsBytes(int index) { return linkedVpnTunnels_.getByteString(index); } public static final int LINKED_INTERCONNECT_ATTACHMENTS_FIELD_NUMBER = 13; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList linkedInterconnectAttachments_; /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return A list containing the linkedInterconnectAttachments. */ - public com.google.protobuf.ProtocolStringList getLinkedInterconnectAttachmentsList() { + public com.google.protobuf.ProtocolStringList + getLinkedInterconnectAttachmentsList() { return linkedInterconnectAttachments_; } /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return The count of linkedInterconnectAttachments. */ public int getLinkedInterconnectAttachmentsCount() { return linkedInterconnectAttachments_.size(); } /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The linkedInterconnectAttachments at the given index. */ @@ -555,116 +472,84 @@ public java.lang.String getLinkedInterconnectAttachments(int index) { return linkedInterconnectAttachments_.get(index); } /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the linkedInterconnectAttachments at the given index. */ - public com.google.protobuf.ByteString getLinkedInterconnectAttachmentsBytes(int index) { + public com.google.protobuf.ByteString + getLinkedInterconnectAttachmentsBytes(int index) { return linkedInterconnectAttachments_.getByteString(index); } public static final int LINKED_ROUTER_APPLIANCE_INSTANCES_FIELD_NUMBER = 14; - @SuppressWarnings("serial") - private java.util.List - linkedRouterApplianceInstances_; + private java.util.List linkedRouterApplianceInstances_; /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ @java.lang.Override - public java.util.List - getLinkedRouterApplianceInstancesList() { + public java.util.List getLinkedRouterApplianceInstancesList() { return linkedRouterApplianceInstances_; } /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> + public java.util.List getLinkedRouterApplianceInstancesOrBuilderList() { return linkedRouterApplianceInstances_; } /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ @java.lang.Override public int getLinkedRouterApplianceInstancesCount() { return linkedRouterApplianceInstances_.size(); } /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - getLinkedRouterApplianceInstances(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getLinkedRouterApplianceInstances(int index) { return linkedRouterApplianceInstances_.get(index); } /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder - getLinkedRouterApplianceInstancesOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder getLinkedRouterApplianceInstancesOrBuilder( + int index) { return linkedRouterApplianceInstances_.get(index); } public static final int UNIQUE_ID_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -672,7 +557,6 @@ public int getLinkedRouterApplianceInstancesCount() {
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ @java.lang.Override @@ -681,15 +565,14 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -697,15 +580,16 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -716,46 +600,30 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = - com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null - ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { + com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -767,7 +635,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -777,8 +646,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -792,14 +665,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 12, linkedVpnTunnels_.getRaw(i)); } for (int i = 0; i < linkedInterconnectAttachments_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 13, linkedInterconnectAttachments_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, linkedInterconnectAttachments_.getRaw(i)); } for (int i = 0; i < linkedRouterApplianceInstances_.size(); i++) { output.writeMessage(14, linkedRouterApplianceInstances_.get(i)); } - if (state_ - != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(15, state_); } getUnknownFields().writeTo(output); @@ -815,20 +686,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -856,13 +729,12 @@ public int getSerializedSize() { size += 1 * getLinkedInterconnectAttachmentsList().size(); } for (int i = 0; i < linkedRouterApplianceInstances_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 14, linkedRouterApplianceInstances_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, linkedRouterApplianceInstances_.get(i)); } - if (state_ - != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); + if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -872,32 +744,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1alpha1.Spoke)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.Spoke other = - (com.google.cloud.networkconnectivity.v1alpha1.Spoke) obj; + com.google.cloud.networkconnectivity.v1alpha1.Spoke other = (com.google.cloud.networkconnectivity.v1alpha1.Spoke) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getHub().equals(other.getHub())) return false; - if (!getLinkedVpnTunnelsList().equals(other.getLinkedVpnTunnelsList())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getHub() + .equals(other.getHub())) return false; + if (!getLinkedVpnTunnelsList() + .equals(other.getLinkedVpnTunnelsList())) return false; if (!getLinkedInterconnectAttachmentsList() .equals(other.getLinkedInterconnectAttachmentsList())) return false; if (!getLinkedRouterApplianceInstancesList() .equals(other.getLinkedRouterApplianceInstancesList())) return false; - if (!getUniqueId().equals(other.getUniqueId())) return false; + if (!getUniqueId() + .equals(other.getUniqueId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -950,103 +829,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.Spoke prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Spoke is an  abstraction of a network attachment being attached
    * to a Hub. A Spoke can be underlying a VPN tunnel, a
@@ -1055,52 +927,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Spoke}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.Spoke)
       com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1alpha1.Spoke.class,
-              com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
+              com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1alpha1.Spoke.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1136,9 +1011,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
     }
 
     @java.lang.Override
@@ -1157,18 +1032,14 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1alpha1.Spoke buildPartial() {
-      com.google.cloud.networkconnectivity.v1alpha1.Spoke result =
-          new com.google.cloud.networkconnectivity.v1alpha1.Spoke(this);
+      com.google.cloud.networkconnectivity.v1alpha1.Spoke result = new com.google.cloud.networkconnectivity.v1alpha1.Spoke(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.networkconnectivity.v1alpha1.Spoke result) {
+    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.Spoke result) {
       if (((bitField0_ & 0x00000040) != 0)) {
         linkedVpnTunnels_ = linkedVpnTunnels_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000040);
@@ -1181,8 +1052,7 @@ private void buildPartialRepeatedFields(
       result.linkedInterconnectAttachments_ = linkedInterconnectAttachments_;
       if (linkedRouterApplianceInstancesBuilder_ == null) {
         if (((bitField0_ & 0x00000100) != 0)) {
-          linkedRouterApplianceInstances_ =
-              java.util.Collections.unmodifiableList(linkedRouterApplianceInstances_);
+          linkedRouterApplianceInstances_ = java.util.Collections.unmodifiableList(linkedRouterApplianceInstances_);
           bitField0_ = (bitField0_ & ~0x00000100);
         }
         result.linkedRouterApplianceInstances_ = linkedRouterApplianceInstances_;
@@ -1197,10 +1067,14 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Spoke r
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -1224,39 +1098,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Spoke r
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.Spoke) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Spoke) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Spoke)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1264,8 +1137,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Spoke other) {
-      if (other == com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1277,7 +1149,8 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Spoke oth
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -1327,13 +1200,11 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Spoke oth
             linkedRouterApplianceInstancesBuilder_ = null;
             linkedRouterApplianceInstances_ = other.linkedRouterApplianceInstances_;
             bitField0_ = (bitField0_ & ~0x00000100);
-            linkedRouterApplianceInstancesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getLinkedRouterApplianceInstancesFieldBuilder()
-                    : null;
+            linkedRouterApplianceInstancesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getLinkedRouterApplianceInstancesFieldBuilder() : null;
           } else {
-            linkedRouterApplianceInstancesBuilder_.addAllMessages(
-                other.linkedRouterApplianceInstances_);
+            linkedRouterApplianceInstancesBuilder_.addAllMessages(other.linkedRouterApplianceInstances_);
           }
         }
       }
@@ -1371,96 +1242,85 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                hub_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 90:
-              {
-                uniqueId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 90
-            case 98:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureLinkedVpnTunnelsIsMutable();
-                linkedVpnTunnels_.add(s);
-                break;
-              } // case 98
-            case 106:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureLinkedInterconnectAttachmentsIsMutable();
-                linkedInterconnectAttachments_.add(s);
-                break;
-              } // case 106
-            case 114:
-              {
-                com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance m =
-                    input.readMessage(
-                        com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
-                            .parser(),
-                        extensionRegistry);
-                if (linkedRouterApplianceInstancesBuilder_ == null) {
-                  ensureLinkedRouterApplianceInstancesIsMutable();
-                  linkedRouterApplianceInstances_.add(m);
-                } else {
-                  linkedRouterApplianceInstancesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 114
-            case 120:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 120
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              hub_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 90: {
+              uniqueId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 90
+            case 98: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureLinkedVpnTunnelsIsMutable();
+              linkedVpnTunnels_.add(s);
+              break;
+            } // case 98
+            case 106: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureLinkedInterconnectAttachmentsIsMutable();
+              linkedInterconnectAttachments_.add(s);
+              break;
+            } // case 106
+            case 114: {
+              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance m =
+                  input.readMessage(
+                      com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.parser(),
+                      extensionRegistry);
+              if (linkedRouterApplianceInstancesBuilder_ == null) {
+                ensureLinkedRouterApplianceInstancesIsMutable();
+                linkedRouterApplianceInstances_.add(m);
+              } else {
+                linkedRouterApplianceInstancesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 114
+            case 120: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 120
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1470,25 +1330,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1497,21 +1354,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1519,35 +1375,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1557,21 +1406,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1581,47 +1426,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * The time when the Spoke was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The time when the Spoke was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; - * * @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 when the Spoke was created.
      * 
@@ -1642,15 +1474,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the Spoke was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1661,8 +1492,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the Spoke was created.
      * 
@@ -1671,9 +1500,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1686,8 +1515,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the Spoke was created.
      * 
@@ -1705,8 +1532,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time when the Spoke was created.
      * 
@@ -1719,8 +1544,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the Spoke was created.
      * 
@@ -1731,14 +1554,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time when the Spoke was created.
      * 
@@ -1746,17 +1566,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -1764,47 +1581,34 @@ 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_; /** - * - * *
      * The time when the Spoke was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The time when the Spoke was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @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(); } } /** - * - * *
      * The time when the Spoke was updated.
      * 
@@ -1825,15 +1629,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the Spoke was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1844,8 +1647,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the Spoke was updated.
      * 
@@ -1854,9 +1655,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1869,8 +1670,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the Spoke was updated.
      * 
@@ -1888,8 +1687,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The time when the Spoke was updated.
      * 
@@ -1902,8 +1699,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the Spoke was updated.
      * 
@@ -1914,14 +1709,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * The time when the Spoke was updated.
      * 
@@ -1929,35 +1721,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1966,13 +1757,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * User-defined labels.
      * 
@@ -1980,21 +1768,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** - * - * *
      * User-defined labels.
      * 
@@ -2006,8 +1793,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * User-defined labels.
      * 
@@ -2015,19 +1800,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +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; } /** - * - * *
      * User-defined labels.
      * 
@@ -2035,95 +1818,91 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @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(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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); + 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); bitField0_ |= 0x00000008; return this; } /** - * - * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object description_ = ""; /** - * - * *
      * Short description of the spoke resource
      * 
* * string description = 5; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2132,21 +1911,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Short description of the spoke resource
      * 
* * string description = 5; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2154,35 +1932,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Short description of the spoke resource
      * 
* * string description = 5; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Short description of the spoke resource
      * 
* * string description = 5; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2192,21 +1963,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Short description of the spoke resource
      * 
* * string description = 5; - * * @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(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -2216,20 +1983,18 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object hub_ = ""; /** - * - * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return The hub. */ public java.lang.String getHub() { java.lang.Object ref = hub_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; @@ -2238,21 +2003,20 @@ public java.lang.String getHub() { } } /** - * - * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for hub. */ - public com.google.protobuf.ByteString getHubBytes() { + public com.google.protobuf.ByteString + getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hub_ = b; return b; } else { @@ -2260,35 +2024,28 @@ public com.google.protobuf.ByteString getHubBytes() { } } /** - * - * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @param value The hub to set. * @return This builder for chaining. */ - public Builder setHub(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHub( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hub_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearHub() { @@ -2298,21 +2055,17 @@ public Builder clearHub() { return this; } /** - * - * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for hub to set. * @return This builder for chaining. */ - public Builder setHubBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHubBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hub_ = value; bitField0_ |= 0x00000020; @@ -2320,55 +2073,42 @@ public Builder setHubBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList linkedVpnTunnels_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList linkedVpnTunnels_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLinkedVpnTunnelsIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { linkedVpnTunnels_ = new com.google.protobuf.LazyStringArrayList(linkedVpnTunnels_); bitField0_ |= 0x00000040; - } + } } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return A list containing the linkedVpnTunnels. */ - public com.google.protobuf.ProtocolStringList getLinkedVpnTunnelsList() { + public com.google.protobuf.ProtocolStringList + getLinkedVpnTunnelsList() { return linkedVpnTunnels_.getUnmodifiableView(); } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return The count of linkedVpnTunnels. */ public int getLinkedVpnTunnelsCount() { return linkedVpnTunnels_.size(); } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The linkedVpnTunnels at the given index. */ @@ -2376,95 +2116,76 @@ public java.lang.String getLinkedVpnTunnels(int index) { return linkedVpnTunnels_.get(index); } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the linkedVpnTunnels at the given index. */ - public com.google.protobuf.ByteString getLinkedVpnTunnelsBytes(int index) { + public com.google.protobuf.ByteString + getLinkedVpnTunnelsBytes(int index) { return linkedVpnTunnels_.getByteString(index); } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The linkedVpnTunnels to set. * @return This builder for chaining. */ - public Builder setLinkedVpnTunnels(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLinkedVpnTunnels( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLinkedVpnTunnelsIsMutable(); linkedVpnTunnels_.set(index, value); onChanged(); return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param value The linkedVpnTunnels to add. * @return This builder for chaining. */ - public Builder addLinkedVpnTunnels(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLinkedVpnTunnels( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLinkedVpnTunnelsIsMutable(); linkedVpnTunnels_.add(value); onChanged(); return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param values The linkedVpnTunnels to add. * @return This builder for chaining. */ - public Builder addAllLinkedVpnTunnels(java.lang.Iterable values) { + public Builder addAllLinkedVpnTunnels( + java.lang.Iterable values) { ensureLinkedVpnTunnelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, linkedVpnTunnels_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, linkedVpnTunnels_); onChanged(); return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearLinkedVpnTunnels() { @@ -2474,22 +2195,17 @@ public Builder clearLinkedVpnTunnels() { return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param value The bytes of the linkedVpnTunnels to add. * @return This builder for chaining. */ - public Builder addLinkedVpnTunnelsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLinkedVpnTunnelsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLinkedVpnTunnelsIsMutable(); linkedVpnTunnels_.add(value); @@ -2497,59 +2213,42 @@ public Builder addLinkedVpnTunnelsBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList linkedInterconnectAttachments_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList linkedInterconnectAttachments_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLinkedInterconnectAttachmentsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - linkedInterconnectAttachments_ = - new com.google.protobuf.LazyStringArrayList(linkedInterconnectAttachments_); + linkedInterconnectAttachments_ = new com.google.protobuf.LazyStringArrayList(linkedInterconnectAttachments_); bitField0_ |= 0x00000080; - } + } } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return A list containing the linkedInterconnectAttachments. */ - public com.google.protobuf.ProtocolStringList getLinkedInterconnectAttachmentsList() { + public com.google.protobuf.ProtocolStringList + getLinkedInterconnectAttachmentsList() { return linkedInterconnectAttachments_.getUnmodifiableView(); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return The count of linkedInterconnectAttachments. */ public int getLinkedInterconnectAttachmentsCount() { return linkedInterconnectAttachments_.size(); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The linkedInterconnectAttachments at the given index. */ @@ -2557,80 +2256,59 @@ public java.lang.String getLinkedInterconnectAttachments(int index) { return linkedInterconnectAttachments_.get(index); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the linkedInterconnectAttachments at the given index. */ - public com.google.protobuf.ByteString getLinkedInterconnectAttachmentsBytes(int index) { + public com.google.protobuf.ByteString + getLinkedInterconnectAttachmentsBytes(int index) { return linkedInterconnectAttachments_.getByteString(index); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The linkedInterconnectAttachments to set. * @return This builder for chaining. */ - public Builder setLinkedInterconnectAttachments(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLinkedInterconnectAttachments( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLinkedInterconnectAttachmentsIsMutable(); linkedInterconnectAttachments_.set(index, value); onChanged(); return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param value The linkedInterconnectAttachments to add. * @return This builder for chaining. */ - public Builder addLinkedInterconnectAttachments(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLinkedInterconnectAttachments( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLinkedInterconnectAttachmentsIsMutable(); linkedInterconnectAttachments_.add(value); onChanged(); return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param values The linkedInterconnectAttachments to add. * @return This builder for chaining. */ @@ -2643,16 +2321,11 @@ public Builder addAllLinkedInterconnectAttachments( return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearLinkedInterconnectAttachments() { @@ -2662,23 +2335,17 @@ public Builder clearLinkedInterconnectAttachments() { return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param value The bytes of the linkedInterconnectAttachments to add. * @return This builder for chaining. */ - public Builder addLinkedInterconnectAttachmentsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLinkedInterconnectAttachmentsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLinkedInterconnectAttachmentsIsMutable(); linkedInterconnectAttachments_.add(value); @@ -2686,38 +2353,26 @@ public Builder addLinkedInterconnectAttachmentsBytes(com.google.protobuf.ByteStr return this; } - private java.util.List - linkedRouterApplianceInstances_ = java.util.Collections.emptyList(); - + private java.util.List linkedRouterApplianceInstances_ = + java.util.Collections.emptyList(); private void ensureLinkedRouterApplianceInstancesIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { - linkedRouterApplianceInstances_ = - new java.util.ArrayList< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance>( - linkedRouterApplianceInstances_); + linkedRouterApplianceInstances_ = new java.util.ArrayList(linkedRouterApplianceInstances_); bitField0_ |= 0x00000100; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> - linkedRouterApplianceInstancesBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> linkedRouterApplianceInstancesBuilder_; /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public java.util.List - getLinkedRouterApplianceInstancesList() { + public java.util.List getLinkedRouterApplianceInstancesList() { if (linkedRouterApplianceInstancesBuilder_ == null) { return java.util.Collections.unmodifiableList(linkedRouterApplianceInstances_); } else { @@ -2725,15 +2380,11 @@ private void ensureLinkedRouterApplianceInstancesIsMutable() { } } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public int getLinkedRouterApplianceInstancesCount() { if (linkedRouterApplianceInstancesBuilder_ == null) { @@ -2743,18 +2394,13 @@ public int getLinkedRouterApplianceInstancesCount() { } } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - getLinkedRouterApplianceInstances(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getLinkedRouterApplianceInstances(int index) { if (linkedRouterApplianceInstancesBuilder_ == null) { return linkedRouterApplianceInstances_.get(index); } else { @@ -2762,15 +2408,11 @@ public int getLinkedRouterApplianceInstancesCount() { } } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder setLinkedRouterApplianceInstances( int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { @@ -2787,20 +2429,14 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder setLinkedRouterApplianceInstances( - int index, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder - builderForValue) { + int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); linkedRouterApplianceInstances_.set(index, builderForValue.build()); @@ -2811,18 +2447,13 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public Builder addLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { + public Builder addLinkedRouterApplianceInstances(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { if (linkedRouterApplianceInstancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2836,15 +2467,11 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder addLinkedRouterApplianceInstances( int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { @@ -2861,19 +2488,14 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder addLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder - builderForValue) { + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); linkedRouterApplianceInstances_.add(builderForValue.build()); @@ -2884,20 +2506,14 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder addLinkedRouterApplianceInstances( - int index, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder - builderForValue) { + int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); linkedRouterApplianceInstances_.add(index, builderForValue.build()); @@ -2908,20 +2524,14 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder addAllLinkedRouterApplianceInstances( - java.lang.Iterable< - ? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance> - values) { + java.lang.Iterable values) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -2933,15 +2543,11 @@ public Builder addAllLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder clearLinkedRouterApplianceInstances() { if (linkedRouterApplianceInstancesBuilder_ == null) { @@ -2954,15 +2560,11 @@ public Builder clearLinkedRouterApplianceInstances() { return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder removeLinkedRouterApplianceInstances(int index) { if (linkedRouterApplianceInstancesBuilder_ == null) { @@ -2975,54 +2577,39 @@ public Builder removeLinkedRouterApplianceInstances(int index) { return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder - getLinkedRouterApplianceInstancesBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder getLinkedRouterApplianceInstancesBuilder( + int index) { return getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(index); } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder - getLinkedRouterApplianceInstancesOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder getLinkedRouterApplianceInstancesOrBuilder( + int index) { if (linkedRouterApplianceInstancesBuilder_ == null) { - return linkedRouterApplianceInstances_.get(index); - } else { + return linkedRouterApplianceInstances_.get(index); } else { return linkedRouterApplianceInstancesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public java.util.List< - ? extends - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> - getLinkedRouterApplianceInstancesOrBuilderList() { + public java.util.List + getLinkedRouterApplianceInstancesOrBuilderList() { if (linkedRouterApplianceInstancesBuilder_ != null) { return linkedRouterApplianceInstancesBuilder_.getMessageOrBuilderList(); } else { @@ -3030,70 +2617,45 @@ public Builder removeLinkedRouterApplianceInstances(int index) { } } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder - addLinkedRouterApplianceInstancesBuilder() { - return getLinkedRouterApplianceInstancesFieldBuilder() - .addBuilder( - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - .getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder addLinkedRouterApplianceInstancesBuilder() { + return getLinkedRouterApplianceInstancesFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance()); } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder - addLinkedRouterApplianceInstancesBuilder(int index) { - return getLinkedRouterApplianceInstancesFieldBuilder() - .addBuilder( - index, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - .getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder addLinkedRouterApplianceInstancesBuilder( + int index) { + return getLinkedRouterApplianceInstancesFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance()); } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public java.util.List< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder> - getLinkedRouterApplianceInstancesBuilderList() { + public java.util.List + getLinkedRouterApplianceInstancesBuilderList() { return getLinkedRouterApplianceInstancesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> getLinkedRouterApplianceInstancesFieldBuilder() { if (linkedRouterApplianceInstancesBuilder_ == null) { - linkedRouterApplianceInstancesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder>( + linkedRouterApplianceInstancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder>( linkedRouterApplianceInstances_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), @@ -3105,8 +2667,6 @@ public Builder removeLinkedRouterApplianceInstances(int index) { private java.lang.Object uniqueId_ = ""; /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -3114,13 +2674,13 @@ public Builder removeLinkedRouterApplianceInstances(int index) {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -3129,8 +2689,6 @@ public java.lang.String getUniqueId() { } } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -3138,14 +2696,15 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -3153,8 +2712,6 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { } } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -3162,22 +2719,18 @@ public com.google.protobuf.ByteString getUniqueIdBytes() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uniqueId_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -3185,7 +2738,6 @@ public Builder setUniqueId(java.lang.String value) {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -3195,8 +2747,6 @@ public Builder clearUniqueId() { return this; } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -3204,14 +2754,12 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000200; @@ -3221,33 +2769,22 @@ public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3258,37 +2795,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = - com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null - ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED - : result; + com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3302,16 +2826,11 @@ public Builder setState(com.google.cloud.networkconnectivity.v1alpha1.State valu return this; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -3320,9 +2839,9 @@ public Builder clearState() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3332,12 +2851,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.Spoke) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.Spoke) private static final com.google.cloud.networkconnectivity.v1alpha1.Spoke DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.Spoke(); } @@ -3346,27 +2865,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.Spoke getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Spoke parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Spoke parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3381,4 +2900,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.Spoke getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java similarity index 65% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java index 2d619ff4a0d6..eab4db8a11c2 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java @@ -1,80 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface SpokeOrBuilder - extends +public interface SpokeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.Spoke) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time when the Spoke was created.
    * 
@@ -84,32 +55,24 @@ public interface SpokeOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The time when the Spoke was updated.
    * 
@@ -119,8 +82,6 @@ public interface SpokeOrBuilder com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * User-defined labels.
    * 
@@ -129,31 +90,30 @@ public interface SpokeOrBuilder */ int getLabelsCount(); /** - * - * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * User-defined labels.
    * 
@@ -161,254 +121,187 @@ public interface SpokeOrBuilder * map<string, string> labels = 4; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Short description of the spoke resource
    * 
* * string description = 5; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Short description of the spoke resource
    * 
* * string description = 5; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return The hub. */ java.lang.String getHub(); /** - * - * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for hub. */ - com.google.protobuf.ByteString getHubBytes(); + com.google.protobuf.ByteString + getHubBytes(); /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return A list containing the linkedVpnTunnels. */ - java.util.List getLinkedVpnTunnelsList(); + java.util.List + getLinkedVpnTunnelsList(); /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return The count of linkedVpnTunnels. */ int getLinkedVpnTunnelsCount(); /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The linkedVpnTunnels at the given index. */ java.lang.String getLinkedVpnTunnels(int index); /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the linkedVpnTunnels at the given index. */ - com.google.protobuf.ByteString getLinkedVpnTunnelsBytes(int index); + com.google.protobuf.ByteString + getLinkedVpnTunnelsBytes(int index); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return A list containing the linkedInterconnectAttachments. */ - java.util.List getLinkedInterconnectAttachmentsList(); + java.util.List + getLinkedInterconnectAttachmentsList(); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return The count of linkedInterconnectAttachments. */ int getLinkedInterconnectAttachmentsCount(); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The linkedInterconnectAttachments at the given index. */ java.lang.String getLinkedInterconnectAttachments(int index); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the linkedInterconnectAttachments at the given index. */ - com.google.protobuf.ByteString getLinkedInterconnectAttachmentsBytes(int index); + com.google.protobuf.ByteString + getLinkedInterconnectAttachmentsBytes(int index); /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - java.util.List + java.util.List getLinkedRouterApplianceInstancesList(); /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - getLinkedRouterApplianceInstances(int index); + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getLinkedRouterApplianceInstances(int index); /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ int getLinkedRouterApplianceInstancesCount(); /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - java.util.List< - ? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> + java.util.List getLinkedRouterApplianceInstancesOrBuilderList(); /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder - getLinkedRouterApplianceInstancesOrBuilder(int index); + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder getLinkedRouterApplianceInstancesOrBuilder( + int index); /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -416,13 +309,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ java.lang.String getUniqueId(); /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -430,36 +320,26 @@ java.lang.String getLabelsOrDefault(
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString getUniqueIdBytes(); + com.google.protobuf.ByteString + getUniqueIdBytes(); /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.networkconnectivity.v1alpha1.State getState(); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java similarity index 66% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java index 3b3ebc865572..20edd63148a4 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The State enum represents the lifecycle of a Network Connectivity Center
  * resource.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.networkconnectivity.v1alpha1.State}
  */
-public enum State implements com.google.protobuf.ProtocolMessageEnum {
+public enum State
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * No state information available
    * 
@@ -40,8 +22,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
    * The resource's create operation is in progress
    * 
@@ -50,8 +30,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
    * The resource is active
    * 
@@ -60,8 +38,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(2), /** - * - * *
    * The resource's Delete operation is in progress
    * 
@@ -73,8 +49,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * No state information available
    * 
@@ -83,8 +57,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The resource's create operation is in progress
    * 
@@ -93,8 +65,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
    * The resource is active
    * 
@@ -103,8 +73,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 2; /** - * - * *
    * The resource's Delete operation is in progress
    * 
@@ -113,6 +81,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( @@ -137,53 +106,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 ACTIVE; - case 3: - return DELETING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return ACTIVE; + 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 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< + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.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; @@ -199,3 +165,4 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1alpha1.State) } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java index 6f3ae26bff5b..af8c18df237a 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java @@ -1,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Request for [HubService.UpdateHub][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest} */ -public final class UpdateHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) UpdateHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateHubRequest.newBuilder() to construct. private UpdateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateHubRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -80,9 +59,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -90,8 +67,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -100,9 +75,7 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -110,8 +83,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -120,8 +91,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -131,16 +101,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int HUB_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; /** - * - * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ @java.lang.Override @@ -148,49 +113,33 @@ public boolean hasHub() { return hub_ != null; } /** - * - * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } /** - * - * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -206,7 +155,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -215,15 +163,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -239,15 +186,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -256,7 +204,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +215,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -288,10 +236,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHub()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -304,23 +254,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub().equals(other.getHub())) return false; + if (!getHub() + .equals(other.getHub())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,136 +300,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.UpdateHub][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -497,14 +442,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance(); } @@ -519,23 +463,23 @@ public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build(); + result.hub_ = hubBuilder_ == null + ? hub_ + : hubBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -546,39 +490,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest)other); } else { super.mergeFrom(other); return this; @@ -586,9 +529,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -626,31 +567,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getHubFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -660,18 +601,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -680,17 +615,13 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -699,23 +630,17 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -724,8 +649,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -741,8 +665,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -751,10 +673,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -765,8 +687,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -775,14 +695,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -795,8 +714,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -805,8 +722,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -819,8 +735,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -829,8 +743,7 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -838,8 +751,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -848,21 +759,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -871,21 +778,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -893,58 +796,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> - hubBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> hubBuilder_; /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } else { return hubBuilder_.getMessage(); } } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { @@ -960,15 +844,11 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { return this; } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHub( com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder builderForValue) { @@ -982,21 +862,17 @@ public Builder setHub( return this; } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && hub_ != null - && hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + hub_ != null && + hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -1009,15 +885,11 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) return this; } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1030,15 +902,11 @@ public Builder clearHub() { return this; } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000002; @@ -1046,48 +914,36 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() return getHubFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? + com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( - getHub(), getParentForChildren(), isClean()); + hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( + getHub(), + getParentForChildren(), + isClean()); hub_ = null; } return hubBuilder_; @@ -1095,8 +951,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1112,13 +966,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1127,8 +981,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1144,14 +996,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1159,8 +1012,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1176,22 +1027,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1207,7 +1054,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1217,8 +1063,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1234,23 +1078,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1260,43 +1102,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1308,8 +1148,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java similarity index 76% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java index 1a2cf0c696b7..0646b5914e40 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface UpdateHubRequestOrBuilder - extends +public interface UpdateHubRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -34,15 +16,11 @@ public interface UpdateHubRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -51,15 +29,11 @@ public interface UpdateHubRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -68,55 +42,38 @@ public interface UpdateHubRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ boolean hasHub(); /** - * - * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ com.google.cloud.networkconnectivity.v1alpha1.Hub getHub(); /** - * - * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -132,13 +89,10 @@ public interface UpdateHubRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -154,8 +108,8 @@ public interface UpdateHubRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java index 649d740386b8..9cf86439b9e7 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java @@ -1,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Request for [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest} */ -public final class UpdateSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) UpdateSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSpokeRequest.newBuilder() to construct. private UpdateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSpokeRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -80,9 +59,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -90,8 +67,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -100,9 +75,7 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -110,8 +83,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -120,8 +91,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -131,16 +101,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int SPOKE_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; /** - * - * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ @java.lang.Override @@ -148,49 +113,33 @@ public boolean hasSpoke() { return spoke_ != null; } /** - * - * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } /** - * - * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -206,7 +155,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -215,15 +163,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -239,15 +186,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -256,7 +204,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +215,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -288,10 +236,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpoke()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -304,23 +254,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke().equals(other.getSpoke())) return false; + if (!getSpoke() + .equals(other.getSpoke())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,136 +300,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -497,14 +442,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance(); } @@ -519,23 +463,23 @@ public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build(); + result.spoke_ = spokeBuilder_ == null + ? spoke_ + : spokeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -546,50 +490,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other) { + if (other == com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -627,31 +567,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSpokeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -661,18 +601,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -681,17 +615,13 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -700,23 +630,17 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -725,8 +649,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -742,8 +665,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -752,10 +673,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -766,8 +687,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -776,14 +695,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -796,8 +714,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -806,8 +722,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -820,8 +735,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -830,8 +743,7 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -839,8 +751,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -849,21 +759,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -872,21 +778,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -894,58 +796,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> - spokeBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> spokeBuilder_; /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } else { return spokeBuilder_.getMessage(); } } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { @@ -961,15 +844,11 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke valu return this; } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSpoke( com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder builderForValue) { @@ -983,21 +862,17 @@ public Builder setSpoke( return this; } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && spoke_ != null - && spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + spoke_ != null && + spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -1010,15 +885,11 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke va return this; } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1031,15 +902,11 @@ public Builder clearSpoke() { return this; } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000002; @@ -1047,48 +914,36 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuild return getSpokeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? + com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( - getSpoke(), getParentForChildren(), isClean()); + spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( + getSpoke(), + getParentForChildren(), + isClean()); spoke_ = null; } return spokeBuilder_; @@ -1096,8 +951,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1113,13 +966,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1128,8 +981,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1145,14 +996,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1160,8 +1012,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1177,22 +1027,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1208,7 +1054,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1218,8 +1063,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1235,23 +1078,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1261,43 +1102,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1309,8 +1148,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java similarity index 76% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java index 122c9f806e3f..1d98b15275f3 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface UpdateSpokeRequestOrBuilder - extends +public interface UpdateSpokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -34,15 +16,11 @@ public interface UpdateSpokeRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -51,15 +29,11 @@ public interface UpdateSpokeRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -68,55 +42,38 @@ public interface UpdateSpokeRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ boolean hasSpoke(); /** - * - * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke(); /** - * - * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -132,13 +89,10 @@ public interface UpdateSpokeRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -154,8 +108,8 @@ public interface UpdateSpokeRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java From f74c1e24a3df9217e317639fcae85edfb0abf01e Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 25 Jan 2023 00:38:22 +0000 Subject: [PATCH 2/6] =?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 --- java-networkconnectivity/README.md | 6 +- .../v1/HubServiceClient.java | 0 .../v1/HubServiceSettings.java | 1 - .../v1/gapic_metadata.json | 0 .../networkconnectivity/v1/package-info.java | 0 .../stub/GrpcHubServiceCallableFactory.java | 0 .../v1/stub/GrpcHubServiceStub.java | 1 - .../v1/stub/HubServiceStub.java | 0 .../v1/stub/HubServiceStubSettings.java | 0 .../v1alpha1/HubServiceClient.java | 0 .../v1alpha1/HubServiceSettings.java | 1 - .../v1alpha1/gapic_metadata.json | 0 .../v1alpha1/package-info.java | 0 .../stub/GrpcHubServiceCallableFactory.java | 0 .../v1alpha1/stub/GrpcHubServiceStub.java | 1 - .../v1alpha1/stub/HubServiceStub.java | 0 .../v1alpha1/stub/HubServiceStubSettings.java | 0 .../v1/HubServiceClientTest.java | 0 .../v1/MockHubService.java | 0 .../v1/MockHubServiceImpl.java | 0 .../v1alpha1/HubServiceClientTest.java | 0 .../v1alpha1/MockHubService.java | 0 .../v1alpha1/MockHubServiceImpl.java | 0 .../v1/HubServiceGrpc.java | 1388 ++++++++++++++ .../v1alpha1/HubServiceGrpc.java | 1400 ++++++++++++++ .../networkconnectivity/v1/CommonProto.java | 93 + .../v1/CreateHubRequest.java | 637 ++++--- .../v1/CreateHubRequestOrBuilder.java | 73 +- .../v1/CreateSpokeRequest.java | 645 ++++--- .../v1/CreateSpokeRequestOrBuilder.java | 73 +- .../v1/DeleteHubRequest.java | 428 +++-- .../v1/DeleteHubRequestOrBuilder.java | 44 +- .../v1/DeleteSpokeRequest.java | 428 +++-- .../v1/DeleteSpokeRequestOrBuilder.java | 44 +- .../networkconnectivity/v1/GetHubRequest.java | 356 ++-- .../v1/GetHubRequestOrBuilder.java | 54 + .../v1/GetSpokeRequest.java | 356 ++-- .../v1/GetSpokeRequestOrBuilder.java | 54 + .../cloud/networkconnectivity/v1/Hub.java | 1204 +++++++----- .../cloud/networkconnectivity/v1/HubName.java | 0 .../networkconnectivity/v1/HubOrBuilder.java | 141 +- .../networkconnectivity/v1/HubProto.java | 533 ++++++ .../v1/LinkedInterconnectAttachments.java | 431 +++-- ...inkedInterconnectAttachmentsOrBuilder.java | 39 +- .../v1/LinkedRouterApplianceInstances.java | 595 +++--- ...nkedRouterApplianceInstancesOrBuilder.java | 50 +- .../v1/LinkedVpnTunnels.java | 396 ++-- .../v1/LinkedVpnTunnelsOrBuilder.java | 39 +- .../v1/ListHubsRequest.java | 607 +++--- .../v1/ListHubsRequestOrBuilder.java | 65 +- .../v1/ListHubsResponse.java | 590 +++--- .../v1/ListHubsResponseOrBuilder.java | 63 +- .../v1/ListSpokesRequest.java | 607 +++--- .../v1/ListSpokesRequestOrBuilder.java | 65 +- .../v1/ListSpokesResponse.java | 587 +++--- .../v1/ListSpokesResponseOrBuilder.java | 63 +- .../v1/LocationFeature.java | 82 +- .../v1/LocationMetadata.java | 454 +++-- .../v1/LocationMetadataOrBuilder.java | 51 +- .../networkconnectivity/v1/LocationName.java | 0 .../v1/OperationMetadata.java | 835 +++++---- .../v1/OperationMetadataOrBuilder.java | 91 +- .../v1/RouterApplianceInstance.java | 423 +++-- .../v1/RouterApplianceInstanceOrBuilder.java | 36 +- .../networkconnectivity/v1/RoutingVPC.java | 385 ++-- .../v1/RoutingVPCOrBuilder.java | 34 +- .../cloud/networkconnectivity/v1/Spoke.java | 1648 ++++++++++------ .../networkconnectivity/v1/SpokeName.java | 0 .../v1/SpokeOrBuilder.java | 200 +- .../cloud/networkconnectivity/v1/State.java | 89 +- .../v1/UpdateHubRequest.java | 590 +++--- .../v1/UpdateHubRequestOrBuilder.java | 64 +- .../v1/UpdateSpokeRequest.java | 598 +++--- .../v1/UpdateSpokeRequestOrBuilder.java | 64 +- .../cloud/networkconnectivity/v1/common.proto | 0 .../cloud/networkconnectivity/v1/hub.proto | 0 .../v1alpha1/CommonProto.java | 94 + .../v1alpha1/CreateHubRequest.java | 662 ++++--- .../v1alpha1/CreateHubRequestOrBuilder.java | 73 +- .../v1alpha1/CreateSpokeRequest.java | 665 ++++--- .../v1alpha1/CreateSpokeRequestOrBuilder.java | 73 +- .../v1alpha1/DeleteHubRequest.java | 448 +++-- .../v1alpha1/DeleteHubRequestOrBuilder.java | 44 +- .../v1alpha1/DeleteSpokeRequest.java | 451 +++-- .../v1alpha1/DeleteSpokeRequestOrBuilder.java | 44 +- .../v1alpha1/GetHubRequest.java | 356 ++-- .../v1alpha1/GetHubRequestOrBuilder.java | 54 + .../v1alpha1/GetSpokeRequest.java | 366 ++-- .../v1alpha1/GetSpokeRequestOrBuilder.java | 54 + .../networkconnectivity/v1alpha1/Hub.java | 1148 +++++++----- .../networkconnectivity/v1alpha1/HubName.java | 0 .../v1alpha1/HubOrBuilder.java | 139 +- .../v1alpha1/HubProto.java | 460 +++++ .../v1alpha1/ListHubsRequest.java | 617 +++--- .../v1alpha1/ListHubsRequestOrBuilder.java | 65 +- .../v1alpha1/ListHubsResponse.java | 609 +++--- .../v1alpha1/ListHubsResponseOrBuilder.java | 63 +- .../v1alpha1/ListSpokesRequest.java | 630 ++++--- .../v1alpha1/ListSpokesRequestOrBuilder.java | 65 +- .../v1alpha1/ListSpokesResponse.java | 609 +++--- .../v1alpha1/ListSpokesResponseOrBuilder.java | 63 +- .../v1alpha1/LocationName.java | 0 .../v1alpha1/OperationMetadata.java | 858 +++++---- .../v1alpha1/OperationMetadataOrBuilder.java | 91 +- .../v1alpha1/RouterApplianceInstance.java | 539 +++--- .../RouterApplianceInstanceOrBuilder.java | 53 +- .../networkconnectivity/v1alpha1/Spoke.java | 1653 +++++++++++------ .../v1alpha1/SpokeName.java | 0 .../v1alpha1/SpokeOrBuilder.java | 220 ++- .../networkconnectivity/v1alpha1/State.java | 93 +- .../v1alpha1/UpdateHubRequest.java | 615 +++--- .../v1alpha1/UpdateHubRequestOrBuilder.java | 64 +- .../v1alpha1/UpdateSpokeRequest.java | 618 +++--- .../v1alpha1/UpdateSpokeRequestOrBuilder.java | 64 +- .../networkconnectivity/v1alpha1/common.proto | 0 .../networkconnectivity/v1alpha1/hub.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../hubservice/createhub/AsyncCreateHub.java | 0 .../createhub/AsyncCreateHubLRO.java | 0 .../hubservice/createhub/SyncCreateHub.java | 0 .../SyncCreateHubLocationnameHubString.java | 0 .../SyncCreateHubStringHubString.java | 0 .../createspoke/AsyncCreateSpoke.java | 0 .../createspoke/AsyncCreateSpokeLRO.java | 0 .../createspoke/SyncCreateSpoke.java | 0 ...yncCreateSpokeLocationnameSpokeString.java | 0 .../SyncCreateSpokeStringSpokeString.java | 0 .../hubservice/deletehub/AsyncDeleteHub.java | 0 .../deletehub/AsyncDeleteHubLRO.java | 0 .../hubservice/deletehub/SyncDeleteHub.java | 0 .../deletehub/SyncDeleteHubHubname.java | 0 .../deletehub/SyncDeleteHubString.java | 0 .../deletespoke/AsyncDeleteSpoke.java | 0 .../deletespoke/AsyncDeleteSpokeLRO.java | 0 .../deletespoke/SyncDeleteSpoke.java | 0 .../deletespoke/SyncDeleteSpokeSpokename.java | 0 .../deletespoke/SyncDeleteSpokeString.java | 0 .../v1/hubservice/gethub/AsyncGetHub.java | 0 .../v1/hubservice/gethub/SyncGetHub.java | 0 .../hubservice/gethub/SyncGetHubHubname.java | 0 .../hubservice/gethub/SyncGetHubString.java | 0 .../v1/hubservice/getspoke/AsyncGetSpoke.java | 0 .../v1/hubservice/getspoke/SyncGetSpoke.java | 0 .../getspoke/SyncGetSpokeSpokename.java | 0 .../getspoke/SyncGetSpokeString.java | 0 .../v1/hubservice/listhubs/AsyncListHubs.java | 0 .../listhubs/AsyncListHubsPaged.java | 0 .../v1/hubservice/listhubs/SyncListHubs.java | 0 .../listhubs/SyncListHubsLocationname.java | 0 .../listhubs/SyncListHubsString.java | 0 .../listspokes/AsyncListSpokes.java | 0 .../listspokes/AsyncListSpokesPaged.java | 0 .../hubservice/listspokes/SyncListSpokes.java | 0 .../SyncListSpokesLocationname.java | 0 .../listspokes/SyncListSpokesString.java | 0 .../hubservice/updatehub/AsyncUpdateHub.java | 0 .../updatehub/AsyncUpdateHubLRO.java | 0 .../hubservice/updatehub/SyncUpdateHub.java | 0 .../updatehub/SyncUpdateHubHubFieldmask.java | 0 .../updatespoke/AsyncUpdateSpoke.java | 0 .../updatespoke/AsyncUpdateSpokeLRO.java | 0 .../updatespoke/SyncUpdateSpoke.java | 0 .../SyncUpdateSpokeSpokeFieldmask.java | 0 .../hubservicesettings/gethub/SyncGetHub.java | 0 .../gethub/SyncGetHub.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../hubservice/createhub/AsyncCreateHub.java | 0 .../createhub/AsyncCreateHubLRO.java | 0 .../hubservice/createhub/SyncCreateHub.java | 0 .../SyncCreateHubLocationnameHubString.java | 0 .../SyncCreateHubStringHubString.java | 0 .../createspoke/AsyncCreateSpoke.java | 0 .../createspoke/AsyncCreateSpokeLRO.java | 0 .../createspoke/SyncCreateSpoke.java | 0 ...yncCreateSpokeLocationnameSpokeString.java | 0 .../SyncCreateSpokeStringSpokeString.java | 0 .../hubservice/deletehub/AsyncDeleteHub.java | 0 .../deletehub/AsyncDeleteHubLRO.java | 0 .../hubservice/deletehub/SyncDeleteHub.java | 0 .../deletehub/SyncDeleteHubHubname.java | 0 .../deletehub/SyncDeleteHubString.java | 0 .../deletespoke/AsyncDeleteSpoke.java | 0 .../deletespoke/AsyncDeleteSpokeLRO.java | 0 .../deletespoke/SyncDeleteSpoke.java | 0 .../deletespoke/SyncDeleteSpokeSpokename.java | 0 .../deletespoke/SyncDeleteSpokeString.java | 0 .../hubservice/gethub/AsyncGetHub.java | 0 .../hubservice/gethub/SyncGetHub.java | 0 .../hubservice/gethub/SyncGetHubHubname.java | 0 .../hubservice/gethub/SyncGetHubString.java | 0 .../hubservice/getspoke/AsyncGetSpoke.java | 0 .../hubservice/getspoke/SyncGetSpoke.java | 0 .../getspoke/SyncGetSpokeSpokename.java | 0 .../getspoke/SyncGetSpokeString.java | 0 .../hubservice/listhubs/AsyncListHubs.java | 0 .../listhubs/AsyncListHubsPaged.java | 0 .../hubservice/listhubs/SyncListHubs.java | 0 .../listhubs/SyncListHubsLocationname.java | 0 .../listhubs/SyncListHubsString.java | 0 .../listspokes/AsyncListSpokes.java | 0 .../listspokes/AsyncListSpokesPaged.java | 0 .../hubservice/listspokes/SyncListSpokes.java | 0 .../SyncListSpokesLocationname.java | 0 .../listspokes/SyncListSpokesString.java | 0 .../hubservice/updatehub/AsyncUpdateHub.java | 0 .../updatehub/AsyncUpdateHubLRO.java | 0 .../hubservice/updatehub/SyncUpdateHub.java | 0 .../updatehub/SyncUpdateHubHubFieldmask.java | 0 .../updatespoke/AsyncUpdateSpoke.java | 0 .../updatespoke/AsyncUpdateSpokeLRO.java | 0 .../updatespoke/SyncUpdateSpoke.java | 0 .../SyncUpdateSpokeSpokeFieldmask.java | 0 .../hubservicesettings/gethub/SyncGetHub.java | 0 .../gethub/SyncGetHub.java | 0 .../v1/HubServiceGrpc.java | 1087 ----------- .../networkconnectivity/v1/CommonProto.java | 72 - .../v1/GetHubRequestOrBuilder.java | 29 - .../v1/GetSpokeRequestOrBuilder.java | 29 - .../networkconnectivity/v1/HubProto.java | 478 ----- .../v1alpha1/HubServiceGrpc.java | 1092 ----------- .../v1alpha1/CommonProto.java | 73 - .../v1alpha1/GetHubRequestOrBuilder.java | 29 - .../v1alpha1/GetSpokeRequestOrBuilder.java | 29 - .../v1alpha1/HubProto.java | 408 ---- 226 files changed, 20961 insertions(+), 12887 deletions(-) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java (99%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java (99%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java (99%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java (99%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java (100%) create mode 100644 java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java create mode 100644 java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java (69%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java (69%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java (68%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java (69%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java (61%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java (61%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java (78%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachments.java (66%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java (68%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java (64%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java (65%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java (68%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java (58%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java (72%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java (58%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java (72%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java (73%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java (62%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java (75%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java (65%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java (57%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java (66%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java (58%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java (63%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java (69%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java (72%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java (77%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java (77%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto (100%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java (68%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java (68%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java (69%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java (69%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java (63%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java (61%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java (66%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java (67%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequest.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java (59%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java (73%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java (66%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java (59%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java (73%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java (75%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java (63%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java (55%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java (66%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java (65%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java (66%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java (76%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java (76%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java (100%) delete mode 100644 owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java diff --git a/java-networkconnectivity/README.md b/java-networkconnectivity/README.md index ea5b5131532a..b1ac9e796315 100644 --- a/java-networkconnectivity/README.md +++ b/java-networkconnectivity/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-networkconnectivity - 1.7.0 + 1.8.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkconnectivity:1.7.0' +implementation 'com.google.cloud:google-cloud-networkconnectivity:1.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.8.0" ``` ## Authentication diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java similarity index 99% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java index 0f54d6e73b8d..8602b8d3a73f 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.networkconnectivity.v1.stub.HubServiceStubSettings; diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java similarity index 99% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java index a4c973ff1360..91b811c5fc87 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java @@ -48,7 +48,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java similarity index 99% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java index b824a3ceabcd..89775db66f05 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.networkconnectivity.v1alpha1.stub.HubServiceStubSettings; diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java similarity index 99% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java index fffc277454e3..8298968354e6 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java @@ -49,7 +49,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/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java new file mode 100644 index 000000000000..bc51c44ed715 --- /dev/null +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java @@ -0,0 +1,1388 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networkconnectivity.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Network Connectivity Center is a hub-and-spoke abstraction for network
+ * connectivity management in Google Cloud. It reduces operational complexity
+ * through a simple, centralized connectivity management model.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networkconnectivity/v1/hub.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class HubServiceGrpc { + + private HubServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1.HubService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1.ListHubsResponse> + getListHubsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListHubs", + requestType = com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1.ListHubsResponse> + getListHubsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1.ListHubsResponse> + getListHubsMethod; + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + HubServiceGrpc.getListHubsMethod = + getListHubsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListHubsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListHubsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) + .build(); + } + } + } + return getListHubsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetHubRequest, + com.google.cloud.networkconnectivity.v1.Hub> + getGetHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetHub", + requestType = com.google.cloud.networkconnectivity.v1.GetHubRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.Hub.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetHubRequest, + com.google.cloud.networkconnectivity.v1.Hub> + getGetHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetHubRequest, + com.google.cloud.networkconnectivity.v1.Hub> + getGetHubMethod; + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + HubServiceGrpc.getGetHubMethod = + getGetHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.GetHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) + .build(); + } + } + } + return getGetHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateHubRequest, + com.google.longrunning.Operation> + getCreateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateHub", + requestType = com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateHubRequest, + com.google.longrunning.Operation> + getCreateHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateHubRequest, + com.google.longrunning.Operation> + getCreateHubMethod; + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + HubServiceGrpc.getCreateHubMethod = + getCreateHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.CreateHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) + .build(); + } + } + } + return getCreateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateHubRequest, + com.google.longrunning.Operation> + getUpdateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateHub", + requestType = com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateHubRequest, + com.google.longrunning.Operation> + getUpdateHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateHubRequest, + com.google.longrunning.Operation> + getUpdateHubMethod; + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + HubServiceGrpc.getUpdateHubMethod = + getUpdateHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) + .build(); + } + } + } + return getUpdateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteHubRequest, + com.google.longrunning.Operation> + getDeleteHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteHub", + requestType = com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteHubRequest, + com.google.longrunning.Operation> + getDeleteHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteHubRequest, + com.google.longrunning.Operation> + getDeleteHubMethod; + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + HubServiceGrpc.getDeleteHubMethod = + getDeleteHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) + .build(); + } + } + } + return getDeleteHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1.ListSpokesResponse> + getListSpokesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSpokes", + requestType = com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1.ListSpokesResponse> + getListSpokesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1.ListSpokesResponse> + getListSpokesMethod; + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + HubServiceGrpc.getListSpokesMethod = + getListSpokesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListSpokesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) + .build(); + } + } + } + return getListSpokesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1.Spoke> + getGetSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSpoke", + requestType = com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.Spoke.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1.Spoke> + getGetSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1.Spoke> + getGetSpokeMethod; + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + HubServiceGrpc.getGetSpokeMethod = + getGetSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) + .build(); + } + } + } + return getGetSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, + com.google.longrunning.Operation> + getCreateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", + requestType = com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, + com.google.longrunning.Operation> + getCreateSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, + com.google.longrunning.Operation> + getCreateSpokeMethod; + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + HubServiceGrpc.getCreateSpokeMethod = + getCreateSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) + .build(); + } + } + } + return getCreateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, + com.google.longrunning.Operation> + getUpdateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", + requestType = com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, + com.google.longrunning.Operation> + getUpdateSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, + com.google.longrunning.Operation> + getUpdateSpokeMethod; + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + HubServiceGrpc.getUpdateSpokeMethod = + getUpdateSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) + .build(); + } + } + } + return getUpdateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, + com.google.longrunning.Operation> + getDeleteSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", + requestType = com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, + com.google.longrunning.Operation> + getDeleteSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, + com.google.longrunning.Operation> + getDeleteSpokeMethod; + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + HubServiceGrpc.getDeleteSpokeMethod = + getDeleteSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) + .build(); + } + } + } + return getDeleteSpokeMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static HubServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + }; + return HubServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static HubServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + }; + return HubServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static HubServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + }; + return HubServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public abstract static class HubServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists hubs in a given project.
+     * 
+ */ + public void listHubs( + com.google.cloud.networkconnectivity.v1.ListHubsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details about the specified hub.
+     * 
+ */ + public void getHub( + com.google.cloud.networkconnectivity.v1.GetHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new hub in the specified project.
+     * 
+ */ + public void createHub( + com.google.cloud.networkconnectivity.v1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the description and/or labels of the specified hub.
+     * 
+ */ + public void updateHub( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified hub.
+     * 
+ */ + public void deleteHub( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the spokes in the specified project and location.
+     * 
+ */ + public void listSpokes( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details about the specified spoke.
+     * 
+ */ + public void getSpoke( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a spoke in the specified project and location.
+     * 
+ */ + public void createSpoke( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSpokeMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of the specified spoke.
+     * 
+ */ + public void updateSpoke( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSpokeMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified spoke.
+     * 
+ */ + public void deleteSpoke( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSpokeMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListHubsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1.ListHubsResponse>( + this, METHODID_LIST_HUBS))) + .addMethod( + getGetHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.GetHubRequest, + com.google.cloud.networkconnectivity.v1.Hub>(this, METHODID_GET_HUB))) + .addMethod( + getCreateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.CreateHubRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_HUB))) + .addMethod( + getUpdateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.UpdateHubRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_HUB))) + .addMethod( + getDeleteHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.DeleteHubRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_HUB))) + .addMethod( + getListSpokesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1.ListSpokesResponse>( + this, METHODID_LIST_SPOKES))) + .addMethod( + getGetSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1.Spoke>(this, METHODID_GET_SPOKE))) + .addMethod( + getCreateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_SPOKE))) + .addMethod( + getUpdateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_SPOKE))) + .addMethod( + getDeleteSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_SPOKE))) + .build(); + } + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { + private HubServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists hubs in a given project.
+     * 
+ */ + public void listHubs( + com.google.cloud.networkconnectivity.v1.ListHubsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets details about the specified hub.
+     * 
+ */ + public void getHub( + com.google.cloud.networkconnectivity.v1.GetHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new hub in the specified project.
+     * 
+ */ + public void createHub( + com.google.cloud.networkconnectivity.v1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates the description and/or labels of the specified hub.
+     * 
+ */ + public void updateHub( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes the specified hub.
+     * 
+ */ + public void deleteHub( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists the spokes in the specified project and location.
+     * 
+ */ + public void listSpokes( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets details about the specified spoke.
+     * 
+ */ + public void getSpoke( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a spoke in the specified project and location.
+     * 
+ */ + public void createSpoke( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of the specified spoke.
+     * 
+ */ + public void updateSpoke( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified spoke.
+     * 
+ */ + public void deleteSpoke( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static final class HubServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private HubServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists hubs in a given project.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.ListHubsResponse listHubs( + com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListHubsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about the specified hub.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.Hub getHub( + com.google.cloud.networkconnectivity.v1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new hub in the specified project.
+     * 
+ */ + public com.google.longrunning.Operation createHub( + com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the description and/or labels of the specified hub.
+     * 
+ */ + public com.google.longrunning.Operation updateHub( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified hub.
+     * 
+ */ + public com.google.longrunning.Operation deleteHub( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the spokes in the specified project and location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.ListSpokesResponse listSpokes( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSpokesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about the specified spoke.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.Spoke getSpoke( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSpokeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a spoke in the specified project and location.
+     * 
+ */ + public com.google.longrunning.Operation createSpoke( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSpokeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of the specified spoke.
+     * 
+ */ + public com.google.longrunning.Operation updateSpoke( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified spoke.
+     * 
+ */ + public com.google.longrunning.Operation deleteSpoke( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static final class HubServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private HubServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists hubs in a given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.ListHubsResponse> + listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details about the specified hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.Hub> + getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new hub in the specified project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the description and/or labels of the specified hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the spokes in the specified project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.ListSpokesResponse> + listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details about the specified spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.Spoke> + getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a spoke in the specified project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of the specified spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_HUBS = 0; + private static final int METHODID_GET_HUB = 1; + private static final int METHODID_CREATE_HUB = 2; + private static final int METHODID_UPDATE_HUB = 3; + private static final int METHODID_DELETE_HUB = 4; + private static final int METHODID_LIST_SPOKES = 5; + private static final int METHODID_GET_SPOKE = 6; + private static final int METHODID_CREATE_SPOKE = 7; + private static final int METHODID_UPDATE_SPOKE = 8; + private static final int METHODID_DELETE_SPOKE = 9; + + 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 HubServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(HubServiceImplBase 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_HUBS: + serviceImpl.listHubs( + (com.google.cloud.networkconnectivity.v1.ListHubsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.ListHubsResponse>) + responseObserver); + break; + case METHODID_GET_HUB: + serviceImpl.getHub( + (com.google.cloud.networkconnectivity.v1.GetHubRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_HUB: + serviceImpl.createHub( + (com.google.cloud.networkconnectivity.v1.CreateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_HUB: + serviceImpl.updateHub( + (com.google.cloud.networkconnectivity.v1.UpdateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_HUB: + serviceImpl.deleteHub( + (com.google.cloud.networkconnectivity.v1.DeleteHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SPOKES: + serviceImpl.listSpokes( + (com.google.cloud.networkconnectivity.v1.ListSpokesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.ListSpokesResponse>) + responseObserver); + break; + case METHODID_GET_SPOKE: + serviceImpl.getSpoke( + (com.google.cloud.networkconnectivity.v1.GetSpokeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_SPOKE: + serviceImpl.createSpoke( + (com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SPOKE: + serviceImpl.updateSpoke( + (com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SPOKE: + serviceImpl.deleteSpoke( + (com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + HubServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("HubService"); + } + } + + private static final class HubServiceFileDescriptorSupplier + extends HubServiceBaseDescriptorSupplier { + HubServiceFileDescriptorSupplier() {} + } + + private static final class HubServiceMethodDescriptorSupplier + extends HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) + .addMethod(getListHubsMethod()) + .addMethod(getGetHubMethod()) + .addMethod(getCreateHubMethod()) + .addMethod(getUpdateHubMethod()) + .addMethod(getDeleteHubMethod()) + .addMethod(getListSpokesMethod()) + .addMethod(getGetSpokeMethod()) + .addMethod(getCreateSpokeMethod()) + .addMethod(getUpdateSpokeMethod()) + .addMethod(getDeleteSpokeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java new file mode 100644 index 000000000000..aae81be9d5c9 --- /dev/null +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java @@ -0,0 +1,1400 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networkconnectivity.v1alpha1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Network Connectivity Center is a hub-and-spoke abstraction for
+ * network connectivity management in Google Cloud. It reduces
+ * operational complexity through a simple, centralized connectivity management
+ * model.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networkconnectivity/v1alpha1/hub.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class HubServiceGrpc { + + private HubServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1alpha1.HubService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> + getListHubsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListHubs", + requestType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> + getListHubsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> + getListHubsMethod; + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + HubServiceGrpc.getListHubsMethod = + getListHubsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) + .build(); + } + } + } + return getListHubsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, + com.google.cloud.networkconnectivity.v1alpha1.Hub> + getGetHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.Hub.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, + com.google.cloud.networkconnectivity.v1alpha1.Hub> + getGetHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, + com.google.cloud.networkconnectivity.v1alpha1.Hub> + getGetHubMethod; + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + HubServiceGrpc.getGetHubMethod = + getGetHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.Hub + .getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) + .build(); + } + } + } + return getGetHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, + com.google.longrunning.Operation> + getCreateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, + com.google.longrunning.Operation> + getCreateHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, + com.google.longrunning.Operation> + getCreateHubMethod; + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + HubServiceGrpc.getCreateHubMethod = + getCreateHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) + .build(); + } + } + } + return getCreateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, + com.google.longrunning.Operation> + getUpdateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, + com.google.longrunning.Operation> + getUpdateHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, + com.google.longrunning.Operation> + getUpdateHubMethod; + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + HubServiceGrpc.getUpdateHubMethod = + getUpdateHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) + .build(); + } + } + } + return getUpdateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, + com.google.longrunning.Operation> + getDeleteHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, + com.google.longrunning.Operation> + getDeleteHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, + com.google.longrunning.Operation> + getDeleteHubMethod; + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + HubServiceGrpc.getDeleteHubMethod = + getDeleteHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) + .build(); + } + } + } + return getDeleteHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> + getListSpokesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSpokes", + requestType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> + getListSpokesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> + getListSpokesMethod; + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + HubServiceGrpc.getListSpokesMethod = + getListSpokesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) + .build(); + } + } + } + return getListSpokesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1alpha1.Spoke> + getGetSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1alpha1.Spoke> + getGetSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1alpha1.Spoke> + getGetSpokeMethod; + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + HubServiceGrpc.getGetSpokeMethod = + getGetSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.Spoke + .getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) + .build(); + } + } + } + return getGetSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, + com.google.longrunning.Operation> + getCreateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, + com.google.longrunning.Operation> + getCreateSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, + com.google.longrunning.Operation> + getCreateSpokeMethod; + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + HubServiceGrpc.getCreateSpokeMethod = + getCreateSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) + .build(); + } + } + } + return getCreateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, + com.google.longrunning.Operation> + getUpdateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, + com.google.longrunning.Operation> + getUpdateSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, + com.google.longrunning.Operation> + getUpdateSpokeMethod; + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + HubServiceGrpc.getUpdateSpokeMethod = + getUpdateSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) + .build(); + } + } + } + return getUpdateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, + com.google.longrunning.Operation> + getDeleteSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, + com.google.longrunning.Operation> + getDeleteSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, + com.google.longrunning.Operation> + getDeleteSpokeMethod; + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + HubServiceGrpc.getDeleteSpokeMethod = + getDeleteSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) + .build(); + } + } + } + return getDeleteSpokeMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static HubServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + }; + return HubServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static HubServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + }; + return HubServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static HubServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + }; + return HubServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public abstract static class HubServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public void listHubs( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Hub.
+     * 
+ */ + public void getHub( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public void createHub( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public void updateHub( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Hub.
+     * 
+ */ + public void deleteHub( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public void listSpokes( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public void getSpoke( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public void createSpoke( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSpokeMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public void updateSpoke( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSpokeMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Spoke.
+     * 
+ */ + public void deleteSpoke( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSpokeMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListHubsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>( + this, METHODID_LIST_HUBS))) + .addMethod( + getGetHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, + com.google.cloud.networkconnectivity.v1alpha1.Hub>(this, METHODID_GET_HUB))) + .addMethod( + getCreateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_HUB))) + .addMethod( + getUpdateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_HUB))) + .addMethod( + getDeleteHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_HUB))) + .addMethod( + getListSpokesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>( + this, METHODID_LIST_SPOKES))) + .addMethod( + getGetSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1alpha1.Spoke>( + this, METHODID_GET_SPOKE))) + .addMethod( + getCreateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_SPOKE))) + .addMethod( + getUpdateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_SPOKE))) + .addMethod( + getDeleteSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_SPOKE))) + .build(); + } + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { + private HubServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public void listHubs( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Hub.
+     * 
+ */ + public void getHub( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public void createHub( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public void updateHub( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes a single Hub.
+     * 
+ */ + public void deleteHub( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public void listSpokes( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public void getSpoke( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public void createSpoke( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public void updateSpoke( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Spoke.
+     * 
+ */ + public void deleteSpoke( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static final class HubServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private HubServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse listHubs( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListHubsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Hub.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createHub( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public com.google.longrunning.Operation updateHub( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Hub.
+     * 
+ */ + public com.google.longrunning.Operation deleteHub( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse listSpokes( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSpokesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSpokeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createSpoke( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSpokeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public com.google.longrunning.Operation updateSpoke( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Spoke.
+     * 
+ */ + public com.google.longrunning.Operation deleteSpoke( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static final class HubServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private HubServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> + listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1alpha1.Hub> + getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> + listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1alpha1.Spoke> + getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_HUBS = 0; + private static final int METHODID_GET_HUB = 1; + private static final int METHODID_CREATE_HUB = 2; + private static final int METHODID_UPDATE_HUB = 3; + private static final int METHODID_DELETE_HUB = 4; + private static final int METHODID_LIST_SPOKES = 5; + private static final int METHODID_GET_SPOKE = 6; + private static final int METHODID_CREATE_SPOKE = 7; + private static final int METHODID_UPDATE_SPOKE = 8; + private static final int METHODID_DELETE_SPOKE = 9; + + 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 HubServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(HubServiceImplBase 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_HUBS: + serviceImpl.listHubs( + (com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>) + responseObserver); + break; + case METHODID_GET_HUB: + serviceImpl.getHub( + (com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_HUB: + serviceImpl.createHub( + (com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_HUB: + serviceImpl.updateHub( + (com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_HUB: + serviceImpl.deleteHub( + (com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SPOKES: + serviceImpl.listSpokes( + (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>) + responseObserver); + break; + case METHODID_GET_SPOKE: + serviceImpl.getSpoke( + (com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_SPOKE: + serviceImpl.createSpoke( + (com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SPOKE: + serviceImpl.updateSpoke( + (com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SPOKE: + serviceImpl.deleteSpoke( + (com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + HubServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("HubService"); + } + } + + private static final class HubServiceFileDescriptorSupplier + extends HubServiceBaseDescriptorSupplier { + HubServiceFileDescriptorSupplier() {} + } + + private static final class HubServiceMethodDescriptorSupplier + extends HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) + .addMethod(getListHubsMethod()) + .addMethod(getGetHubMethod()) + .addMethod(getCreateHubMethod()) + .addMethod(getUpdateHubMethod()) + .addMethod(getDeleteHubMethod()) + .addMethod(getListSpokesMethod()) + .addMethod(getGetSpokeMethod()) + .addMethod(getCreateSpokeMethod()) + .addMethod(getUpdateSpokeMethod()) + .addMethod(getDeleteSpokeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java new file mode 100644 index 000000000000..30dbe31a4391 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java @@ -0,0 +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/networkconnectivity/v1/common.proto + +package com.google.cloud.networkconnectivity.v1; + +public final class CommonProto { + private CommonProto() {} + + 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_networkconnectivity_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/networkconnectivity/v1/co" + + "mmon.proto\022#google.cloud.networkconnecti" + + "vity.v1\032\037google/api/field_behavior.proto" + + "\032\037google/protobuf/timestamp.proto\"\200\002\n\021Op" + + "erationMetadata\0224\n\013create_time\030\001 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\0221\n\010end_tim" + + "e\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\026request" + + "ed_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_versio" + + "n\030\007 \001(\tB\003\340A\003B\205\002\n\'com.google.cloud.networ" + + "kconnectivity.v1B\013CommonProtoP\001ZVgoogle." + + "golang.org/genproto/googleapis/cloud/net" + + "workconnectivity/v1;networkconnectivity\252" + + "\002#Google.Cloud.NetworkConnectivity.V1\312\002#" + + "Google\\Cloud\\NetworkConnectivity\\V1\352\002&Go" + + "ogle::Cloud::NetworkConnectivity::V1b\006pr" + + "oto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java similarity index 69% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java index 7431c28ad1b1..38f69400c1a9 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Request for [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateHubRequest} */ -public final class CreateHubRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateHubRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.CreateHubRequest) CreateHubRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateHubRequest.newBuilder() to construct. private CreateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateHubRequest() { parent_ = ""; hubId_ = ""; @@ -27,38 +45,45 @@ private CreateHubRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, + com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 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 @@ -67,29 +92,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 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 { @@ -98,14 +125,18 @@ public java.lang.String getParent() { } public static final int HUB_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object hubId_ = ""; /** + * + * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hubId. */ @java.lang.Override @@ -114,29 +145,29 @@ public java.lang.String getHubId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; } } /** + * + * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hubId. */ @java.lang.Override - public com.google.protobuf.ByteString - getHubIdBytes() { + public com.google.protobuf.ByteString getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hubId_ = b; return b; } else { @@ -147,11 +178,16 @@ public java.lang.String getHubId() { public static final int HUB_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1.Hub hub_; /** + * + * *
    * Required. The initial values for a new hub.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ @java.lang.Override @@ -159,11 +195,16 @@ public boolean hasHub() { return hub_ != null; } /** + * + * *
    * Required. The initial values for a new hub.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ @java.lang.Override @@ -171,11 +212,15 @@ public com.google.cloud.networkconnectivity.v1.Hub getHub() { return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } /** + * + * *
    * Required. The initial values for a new hub.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { @@ -183,9 +228,12 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -202,6 +250,7 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -210,14 +259,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -234,16 +284,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -252,6 +301,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,8 +313,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -293,8 +342,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hubId_); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHub()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -307,24 +355,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.networkconnectivity.v1.CreateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.CreateHubRequest other = (com.google.cloud.networkconnectivity.v1.CreateHubRequest) obj; + com.google.cloud.networkconnectivity.v1.CreateHubRequest other = + (com.google.cloud.networkconnectivity.v1.CreateHubRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getHubId() - .equals(other.getHubId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getHubId().equals(other.getHubId())) return false; if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub() - .equals(other.getHub())) return false; + if (!getHub().equals(other.getHub())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -352,129 +397,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.CreateHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.CreateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateHubRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.CreateHubRequest) com.google.cloud.networkconnectivity.v1.CreateHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, + com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.CreateHubRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -491,9 +543,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; } @java.lang.Override @@ -512,8 +564,11 @@ public com.google.cloud.networkconnectivity.v1.CreateHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.CreateHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.CreateHubRequest result = new com.google.cloud.networkconnectivity.v1.CreateHubRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1.CreateHubRequest result = + new com.google.cloud.networkconnectivity.v1.CreateHubRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -527,9 +582,7 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateHubRequ result.hubId_ = hubId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.hub_ = hubBuilder_ == null - ? hub_ - : hubBuilder_.build(); + result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -540,38 +593,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateHubRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.CreateHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateHubRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateHubRequest) other); } else { super.mergeFrom(other); return this; @@ -579,7 +633,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.CreateHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.CreateHubRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1.CreateHubRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -624,34 +679,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - hubId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getHubFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + hubId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -661,22 +719,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource.
      * 
* - * string parent = 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; @@ -685,20 +748,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource.
      * 
* - * string parent = 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 { @@ -706,28 +772,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource.
      * 
* - * string 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() { @@ -737,17 +814,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -757,18 +840,20 @@ public Builder setParentBytes( private java.lang.Object hubId_ = ""; /** + * + * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hubId. */ public java.lang.String getHubId() { java.lang.Object ref = hubId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; @@ -777,20 +862,21 @@ public java.lang.String getHubId() { } } /** + * + * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hubId. */ - public com.google.protobuf.ByteString - getHubIdBytes() { + public com.google.protobuf.ByteString getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hubId_ = b; return b; } else { @@ -798,28 +884,35 @@ public java.lang.String getHubId() { } } /** + * + * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The hubId to set. * @return This builder for chaining. */ - public Builder setHubId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHubId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hubId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearHubId() { @@ -829,17 +922,21 @@ public Builder clearHubId() { return this; } /** + * + * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for hubId to set. * @return This builder for chaining. */ - public Builder setHubIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHubIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hubId_ = value; bitField0_ |= 0x00000002; @@ -849,39 +946,58 @@ public Builder setHubIdBytes( private com.google.cloud.networkconnectivity.v1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> hubBuilder_; + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder> + hubBuilder_; /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ public com.google.cloud.networkconnectivity.v1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() + : hub_; } else { return hubBuilder_.getMessage(); } } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { @@ -897,14 +1013,17 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setHub( - com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { + public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { if (hubBuilder_ == null) { hub_ = builderForValue.build(); } else { @@ -915,17 +1034,21 @@ public Builder setHub( return this; } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - hub_ != null && - hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && hub_ != null + && hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -938,11 +1061,15 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000004); @@ -955,11 +1082,15 @@ public Builder clearHub() { return this; } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000004; @@ -967,36 +1098,48 @@ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { return getHubFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null ? - com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() + : hub_; } } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder>( - getHub(), - getParentForChildren(), - isClean()); + hubBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder>( + getHub(), getParentForChildren(), isClean()); hub_ = null; } return hubBuilder_; @@ -1004,6 +1147,8 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -1020,13 +1165,13 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1035,6 +1180,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -1051,15 +1198,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1067,6 +1213,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -1083,18 +1231,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -1111,6 +1263,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1120,6 +1273,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -1136,21 +1291,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1160,12 +1317,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.CreateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.CreateHubRequest) private static final com.google.cloud.networkconnectivity.v1.CreateHubRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.CreateHubRequest(); } @@ -1174,27 +1331,27 @@ public static com.google.cloud.networkconnectivity.v1.CreateHubRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1209,6 +1366,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.CreateHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java index 36f4ab8728ec..bd70138d2883 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface CreateHubRequestOrBuilder extends +public interface CreateHubRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.CreateHubRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hubId. */ java.lang.String getHubId(); /** + * + * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hubId. */ - com.google.protobuf.ByteString - getHubIdBytes(); + com.google.protobuf.ByteString getHubIdBytes(); /** + * + * *
    * Required. The initial values for a new hub.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ boolean hasHub(); /** + * + * *
    * Required. The initial values for a new hub.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ com.google.cloud.networkconnectivity.v1.Hub getHub(); /** + * + * *
    * Required. The initial values for a new hub.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -91,10 +137,13 @@ public interface CreateHubRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -111,8 +160,8 @@ public interface CreateHubRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java similarity index 68% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java index dbbdb408180c..f4e0b920d667 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateSpokeRequest} */ -public final class CreateSpokeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateSpokeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.CreateSpokeRequest) CreateSpokeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateSpokeRequest.newBuilder() to construct. private CreateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateSpokeRequest() { parent_ = ""; spokeId_ = ""; @@ -27,38 +45,45 @@ private CreateSpokeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 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 @@ -67,29 +92,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 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 { @@ -98,14 +125,18 @@ public java.lang.String getParent() { } public static final int SPOKE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object spokeId_ = ""; /** + * + * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The spokeId. */ @java.lang.Override @@ -114,29 +145,29 @@ public java.lang.String getSpokeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; } } /** + * + * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for spokeId. */ @java.lang.Override - public com.google.protobuf.ByteString - getSpokeIdBytes() { + public com.google.protobuf.ByteString getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); spokeId_ = b; return b; } else { @@ -147,11 +178,16 @@ public java.lang.String getSpokeId() { public static final int SPOKE_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1.Spoke spoke_; /** + * + * *
    * Required. The initial values for a new spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ @java.lang.Override @@ -159,33 +195,49 @@ public boolean hasSpoke() { return spoke_ != null; } /** + * + * *
    * Required. The initial values for a new spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } /** + * + * *
    * Required. The initial values for a new spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -202,6 +254,7 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -210,14 +263,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -234,16 +288,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -252,6 +305,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,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_); } @@ -293,8 +346,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, spokeId_); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSpoke()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -307,24 +359,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.networkconnectivity.v1.CreateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest other = (com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest other = + (com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getSpokeId() - .equals(other.getSpokeId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getSpokeId().equals(other.getSpokeId())) return false; if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke() - .equals(other.getSpoke())) return false; + if (!getSpoke().equals(other.getSpoke())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -352,129 +401,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateSpokeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.CreateSpokeRequest) com.google.cloud.networkconnectivity.v1.CreateSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -491,9 +547,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; } @java.lang.Override @@ -512,8 +568,11 @@ public com.google.cloud.networkconnectivity.v1.CreateSpokeRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.CreateSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest result = new com.google.cloud.networkconnectivity.v1.CreateSpokeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest result = + new com.google.cloud.networkconnectivity.v1.CreateSpokeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -527,9 +586,7 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateSpokeRe result.spokeId_ = spokeId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.spoke_ = spokeBuilder_ == null - ? spoke_ - : spokeBuilder_.build(); + result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -540,38 +597,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateSpokeRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateSpokeRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) other); } else { super.mergeFrom(other); return this; @@ -579,7 +637,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -624,34 +683,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - spokeId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getSpokeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + spokeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -661,22 +723,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource.
      * 
* - * string parent = 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; @@ -685,20 +752,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource.
      * 
* - * string parent = 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 { @@ -706,28 +776,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource.
      * 
* - * string 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() { @@ -737,17 +818,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -757,18 +844,20 @@ public Builder setParentBytes( private java.lang.Object spokeId_ = ""; /** + * + * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The spokeId. */ public java.lang.String getSpokeId() { java.lang.Object ref = spokeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; @@ -777,20 +866,21 @@ public java.lang.String getSpokeId() { } } /** + * + * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for spokeId. */ - public com.google.protobuf.ByteString - getSpokeIdBytes() { + public com.google.protobuf.ByteString getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); spokeId_ = b; return b; } else { @@ -798,28 +888,35 @@ public java.lang.String getSpokeId() { } } /** + * + * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpokeId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } spokeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSpokeId() { @@ -829,17 +926,21 @@ public Builder clearSpokeId() { return this; } /** + * + * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpokeIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); spokeId_ = value; bitField0_ |= 0x00000002; @@ -849,39 +950,58 @@ public Builder setSpokeIdBytes( private com.google.cloud.networkconnectivity.v1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> spokeBuilder_; + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + spokeBuilder_; /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } else { return spokeBuilder_.getMessage(); } } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { @@ -897,14 +1017,17 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSpoke( - com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { + public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { if (spokeBuilder_ == null) { spoke_ = builderForValue.build(); } else { @@ -915,17 +1038,21 @@ public Builder setSpoke( return this; } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - spoke_ != null && - spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && spoke_ != null + && spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -938,11 +1065,15 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000004); @@ -955,11 +1086,15 @@ public Builder clearSpoke() { return this; } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000004; @@ -967,36 +1102,48 @@ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { return getSpokeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null ? - com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( - getSpoke(), - getParentForChildren(), - isClean()); + spokeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( + getSpoke(), getParentForChildren(), isClean()); spoke_ = null; } return spokeBuilder_; @@ -1004,6 +1151,8 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -1020,13 +1169,13 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1035,6 +1184,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -1051,15 +1202,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1067,6 +1217,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -1083,18 +1235,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -1111,6 +1267,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1120,6 +1277,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -1136,21 +1295,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1160,12 +1321,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.CreateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.CreateSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.CreateSpokeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.CreateSpokeRequest(); } @@ -1174,27 +1335,27 @@ public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1209,6 +1370,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.CreateSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java index 6425ab22bdf2..d97544e35ebc 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface CreateSpokeRequestOrBuilder extends +public interface CreateSpokeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.CreateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The spokeId. */ java.lang.String getSpokeId(); /** + * + * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for spokeId. */ - com.google.protobuf.ByteString - getSpokeIdBytes(); + com.google.protobuf.ByteString getSpokeIdBytes(); /** + * + * *
    * Required. The initial values for a new spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ boolean hasSpoke(); /** + * + * *
    * Required. The initial values for a new spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ com.google.cloud.networkconnectivity.v1.Spoke getSpoke(); /** + * + * *
    * Required. The initial values for a new spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -91,10 +137,13 @@ public interface CreateSpokeRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -111,8 +160,8 @@ public interface CreateSpokeRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java index 139a72b86337..6180045df1ff 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteHubRequest} */ -public final class DeleteHubRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteHubRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.DeleteHubRequest) DeleteHubRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteHubRequest.newBuilder() to construct. private DeleteHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteHubRequest() { name_ = ""; requestId_ = ""; @@ -26,38 +44,45 @@ private DeleteHubRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, + com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,29 +91,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,9 +124,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -116,6 +146,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -124,14 +155,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -148,16 +180,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -166,6 +197,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +209,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -208,17 +239,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1.DeleteHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.DeleteHubRequest other = (com.google.cloud.networkconnectivity.v1.DeleteHubRequest) obj; + com.google.cloud.networkconnectivity.v1.DeleteHubRequest other = + (com.google.cloud.networkconnectivity.v1.DeleteHubRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,129 +270,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.DeleteHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteHubRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.DeleteHubRequest) com.google.cloud.networkconnectivity.v1.DeleteHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, + com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.DeleteHubRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; } @java.lang.Override @@ -394,8 +431,11 @@ public com.google.cloud.networkconnectivity.v1.DeleteHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.DeleteHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.DeleteHubRequest result = new com.google.cloud.networkconnectivity.v1.DeleteHubRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1.DeleteHubRequest result = + new com.google.cloud.networkconnectivity.v1.DeleteHubRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -414,38 +454,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.DeleteHubRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.DeleteHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteHubRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteHubRequest) other); } else { super.mergeFrom(other); return this; @@ -453,7 +494,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.DeleteHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.DeleteHubRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1.DeleteHubRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -490,22 +532,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -515,22 +560,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -539,20 +589,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -560,28 +613,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -591,17 +655,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -611,6 +681,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -627,13 +699,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -642,6 +714,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -658,15 +732,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -674,6 +747,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -690,18 +765,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -718,6 +797,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -727,6 +807,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -743,21 +825,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -767,12 +851,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.DeleteHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.DeleteHubRequest) private static final com.google.cloud.networkconnectivity.v1.DeleteHubRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.DeleteHubRequest(); } @@ -781,27 +865,27 @@ public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -816,6 +900,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.DeleteHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java index 58c0eaa76c8b..8fab3d44d204 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface DeleteHubRequestOrBuilder extends +public interface DeleteHubRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.DeleteHubRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -44,10 +71,13 @@ public interface DeleteHubRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -64,8 +94,8 @@ public interface DeleteHubRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java index 01a4aea32908..95020321d8e4 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteSpokeRequest} */ -public final class DeleteSpokeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteSpokeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) DeleteSpokeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteSpokeRequest.newBuilder() to construct. private DeleteSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteSpokeRequest() { name_ = ""; requestId_ = ""; @@ -26,38 +44,45 @@ private DeleteSpokeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,29 +91,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,9 +124,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -116,6 +146,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -124,14 +155,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -148,16 +180,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -166,6 +197,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +209,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -208,17 +239,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest other = (com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest other = + (com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,129 +270,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteSpokeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) com.google.cloud.networkconnectivity.v1.DeleteSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; } @java.lang.Override @@ -394,8 +431,11 @@ public com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest result = new com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest result = + new com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -414,38 +454,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.DeleteSpokeRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) other); } else { super.mergeFrom(other); return this; @@ -453,7 +494,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -490,22 +532,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -515,22 +560,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -539,20 +589,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -560,28 +613,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -591,17 +655,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -611,6 +681,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -627,13 +699,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -642,6 +714,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -658,15 +732,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -674,6 +747,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -690,18 +765,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -718,6 +797,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -727,6 +807,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -743,21 +825,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -767,12 +851,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(); } @@ -781,27 +865,27 @@ public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -816,6 +900,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java index ac5ecee8d939..96cfe5f6061a 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface DeleteSpokeRequestOrBuilder extends +public interface DeleteSpokeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -44,10 +71,13 @@ public interface DeleteSpokeRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -64,8 +94,8 @@ public interface DeleteSpokeRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java similarity index 61% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java index 5a0dced3b654..ee7d77b0e600 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java @@ -1,62 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Request for [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.GetHubRequest} */ -public final class GetHubRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetHubRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetHubRequest) GetHubRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetHubRequest.newBuilder() to construct. private GetHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetHubRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.GetHubRequest.class, + com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the hub resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the hub resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -132,15 +159,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.networkconnectivity.v1.GetHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.GetHubRequest other = (com.google.cloud.networkconnectivity.v1.GetHubRequest) obj; + com.google.cloud.networkconnectivity.v1.GetHubRequest other = + (com.google.cloud.networkconnectivity.v1.GetHubRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.GetHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.GetHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.GetHubRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetHubRequest) com.google.cloud.networkconnectivity.v1.GetHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.GetHubRequest.class, + com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.GetHubRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; } @java.lang.Override @@ -313,8 +347,11 @@ public com.google.cloud.networkconnectivity.v1.GetHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.GetHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.GetHubRequest result = new com.google.cloud.networkconnectivity.v1.GetHubRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1.GetHubRequest result = + new com.google.cloud.networkconnectivity.v1.GetHubRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +367,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.GetHubRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.GetHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.GetHubRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.GetHubRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.GetHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.GetHubRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1.GetHubRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +462,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,20 +491,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -466,28 +515,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -497,26 +557,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.GetHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetHubRequest) private static final com.google.cloud.networkconnectivity.v1.GetHubRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.GetHubRequest(); } @@ -540,27 +606,27 @@ public static com.google.cloud.networkconnectivity.v1.GetHubRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.GetHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java new file mode 100644 index 000000000000..8ab3d81a3f94 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.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/networkconnectivity/v1/hub.proto + +package com.google.cloud.networkconnectivity.v1; + +public interface GetHubRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetHubRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the hub resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the hub resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java similarity index 61% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java index 306b036053bb..38d368b3111d 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java @@ -1,62 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.GetSpokeRequest} */ -public final class GetSpokeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSpokeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetSpokeRequest) GetSpokeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSpokeRequest.newBuilder() to construct. private GetSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSpokeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, + com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the spoke resource.
    * 
* - * string name = 1 [(.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 @@ -65,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the spoke resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -132,15 +159,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.networkconnectivity.v1.GetSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.GetSpokeRequest other = (com.google.cloud.networkconnectivity.v1.GetSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.GetSpokeRequest other = + (com.google.cloud.networkconnectivity.v1.GetSpokeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.GetSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.GetSpokeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetSpokeRequest) com.google.cloud.networkconnectivity.v1.GetSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, + com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.GetSpokeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; } @java.lang.Override @@ -313,8 +347,11 @@ public com.google.cloud.networkconnectivity.v1.GetSpokeRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.GetSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.GetSpokeRequest result = new com.google.cloud.networkconnectivity.v1.GetSpokeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1.GetSpokeRequest result = + new com.google.cloud.networkconnectivity.v1.GetSpokeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +367,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.GetSpokeReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.GetSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.GetSpokeRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.GetSpokeRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.GetSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.GetSpokeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1.GetSpokeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +462,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the spoke resource.
      * 
* - * string name = 1 [(.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; @@ -445,20 +491,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the spoke resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -466,28 +515,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the spoke resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the spoke resource.
      * 
* - * string 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() { @@ -497,26 +557,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the spoke resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.GetSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.GetSpokeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.GetSpokeRequest(); } @@ -540,27 +606,27 @@ public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.GetSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java new file mode 100644 index 000000000000..dda46174d3d7 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.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/networkconnectivity/v1/hub.proto + +package com.google.cloud.networkconnectivity.v1; + +public interface GetSpokeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetSpokeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the spoke resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the spoke 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/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java index 67ddeb441b5c..e9387933ffba 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * A hub is a collection of spokes. A single hub can contain spokes from
  * multiple regions. However, if any of a hub's spokes use the data transfer
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.Hub}
  */
-public final class Hub extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Hub extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.Hub)
     HubOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Hub.newBuilder() to construct.
   private Hub(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Hub() {
     name_ = "";
     description_ = "";
@@ -33,45 +51,48 @@ private Hub() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Hub();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.Hub.class, com.google.cloud.networkconnectivity.v1.Hub.Builder.class);
+            com.google.cloud.networkconnectivity.v1.Hub.class,
+            com.google.cloud.networkconnectivity.v1.Hub.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -79,6 +100,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -87,14 +109,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; } } /** + * + * *
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -102,16 +125,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -122,11 +144,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the hub was created.
    * 
* - * .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 @@ -134,11 +160,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the hub was created.
    * 
* - * .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 @@ -146,11 +176,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the hub was created.
    * 
* - * .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() { @@ -160,11 +193,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time the hub was last updated.
    * 
* - * .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 @@ -172,11 +209,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time the hub was last updated.
    * 
* - * .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 @@ -184,11 +225,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time the hub was last updated.
    * 
* - * .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() { @@ -196,32 +240,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_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.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - 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_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -231,20 +277,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 4;
    */
   @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();
   }
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -258,6 +305,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -267,17 +316,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      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;
   }
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -287,11 +338,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new 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();
     }
@@ -299,14 +350,18 @@ public java.lang.String getLabelsOrThrow(
   }
 
   public static final int DESCRIPTION_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object description_ = "";
   /**
+   *
+   *
    * 
    * An optional description of the hub.
    * 
* * string description = 5; + * * @return The description. */ @java.lang.Override @@ -315,29 +370,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * An optional description of the hub.
    * 
* * string description = 5; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -346,9 +401,12 @@ public java.lang.String getDescription() { } public static final int UNIQUE_ID_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** + * + * *
    * Output only. The Google-generated UUID for the hub. This value is unique across all hub
    * resources. If a hub is deleted and another with the same name is created,
@@ -356,6 +414,7 @@ public java.lang.String getDescription() {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ @java.lang.Override @@ -364,14 +423,15 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** + * + * *
    * Output only. The Google-generated UUID for the hub. This value is unique across all hub
    * resources. If a hub is deleted and another with the same name is created,
@@ -379,16 +439,15 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -399,33 +458,49 @@ public java.lang.String getUniqueId() { public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; /** + * + * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.State getState() { + com.google.cloud.networkconnectivity.v1.State result = + com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } public static final int ROUTING_VPCS_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private java.util.List routingVpcs_; /** + * + * *
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -439,6 +514,8 @@ public java.util.List getRou
     return routingVpcs_;
   }
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -448,11 +525,13 @@ public java.util.List getRou
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getRoutingVpcsOrBuilderList() {
     return routingVpcs_;
   }
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -466,6 +545,8 @@ public int getRoutingVpcsCount() {
     return routingVpcs_.size();
   }
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -479,6 +560,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int ind
     return routingVpcs_.get(index);
   }
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -494,6 +577,7 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -505,8 +589,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.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_);
     }
@@ -516,12 +599,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (updateTime_ != null) {
       output.writeMessage(3, getUpdateTime());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        4);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_);
     }
@@ -547,22 +626,20 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getUpdateTime());
-    }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(4, labels__);
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime());
+    }
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_);
@@ -571,12 +648,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, uniqueId_);
     }
     if (state_ != com.google.cloud.networkconnectivity.v1.State.STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(9, state_);
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_);
     }
     for (int i = 0; i < routingVpcs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(10, routingVpcs_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, routingVpcs_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -586,34 +661,28 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.networkconnectivity.v1.Hub)) {
       return super.equals(obj);
     }
-    com.google.cloud.networkconnectivity.v1.Hub other = (com.google.cloud.networkconnectivity.v1.Hub) obj;
+    com.google.cloud.networkconnectivity.v1.Hub other =
+        (com.google.cloud.networkconnectivity.v1.Hub) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime()
-          .equals(other.getCreateTime())) return false;
+      if (!getCreateTime().equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime()
-          .equals(other.getUpdateTime())) return false;
-    }
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
-    if (!getDescription()
-        .equals(other.getDescription())) return false;
-    if (!getUniqueId()
-        .equals(other.getUniqueId())) return false;
+      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+    }
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!getDescription().equals(other.getDescription())) return false;
+    if (!getUniqueId().equals(other.getUniqueId())) return false;
     if (state_ != other.state_) return false;
-    if (!getRoutingVpcsList()
-        .equals(other.getRoutingVpcsList())) return false;
+    if (!getRoutingVpcsList().equals(other.getRoutingVpcsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -654,97 +723,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub 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.networkconnectivity.v1.Hub parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.networkconnectivity.v1.Hub parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.networkconnectivity.v1.Hub parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.Hub prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 hub is a collection of spokes. A single hub can contain spokes from
    * multiple regions. However, if any of a hub's spokes use the data transfer
@@ -755,55 +831,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.Hub}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.Hub)
       com.google.cloud.networkconnectivity.v1.HubOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.Hub.class, com.google.cloud.networkconnectivity.v1.Hub.Builder.class);
+              com.google.cloud.networkconnectivity.v1.Hub.class,
+              com.google.cloud.networkconnectivity.v1.Hub.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.Hub.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -834,9 +907,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
     }
 
     @java.lang.Override
@@ -855,9 +928,12 @@ public com.google.cloud.networkconnectivity.v1.Hub build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.Hub buildPartial() {
-      com.google.cloud.networkconnectivity.v1.Hub result = new com.google.cloud.networkconnectivity.v1.Hub(this);
+      com.google.cloud.networkconnectivity.v1.Hub result =
+          new com.google.cloud.networkconnectivity.v1.Hub(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -880,14 +956,10 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Hub result) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -908,38 +980,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Hub result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.Hub) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.Hub)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.Hub) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -959,8 +1032,7 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Hub other) {
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -993,9 +1065,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Hub other) {
             routingVpcsBuilder_ = null;
             routingVpcs_ = other.routingVpcs_;
             bitField0_ = (bitField0_ & ~0x00000080);
-            routingVpcsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getRoutingVpcsFieldBuilder() : null;
+            routingVpcsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getRoutingVpcsFieldBuilder()
+                    : null;
           } else {
             routingVpcsBuilder_.addAllMessages(other.routingVpcs_);
           }
@@ -1027,68 +1100,75 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 66: {
-              uniqueId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 66
-            case 72: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 72
-            case 82: {
-              com.google.cloud.networkconnectivity.v1.RoutingVPC m =
-                  input.readMessage(
-                      com.google.cloud.networkconnectivity.v1.RoutingVPC.parser(),
-                      extensionRegistry);
-              if (routingVpcsBuilder_ == null) {
-                ensureRoutingVpcsIsMutable();
-                routingVpcs_.add(m);
-              } else {
-                routingVpcsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 82
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 66:
+              {
+                uniqueId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 66
+            case 72:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 72
+            case 82:
+              {
+                com.google.cloud.networkconnectivity.v1.RoutingVPC m =
+                    input.readMessage(
+                        com.google.cloud.networkconnectivity.v1.RoutingVPC.parser(),
+                        extensionRegistry);
+                if (routingVpcsBuilder_ == null) {
+                  ensureRoutingVpcsIsMutable();
+                  routingVpcs_.add(m);
+                } else {
+                  routingVpcsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 82
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1098,10 +1178,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1109,13 +1192,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -1124,6 +1207,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1131,15 +1216,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -1147,6 +1231,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1154,18 +1240,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1173,6 +1263,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1182,6 +1273,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1189,12 +1282,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1204,39 +1299,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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) { @@ -1252,14 +1366,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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(); } else { @@ -1270,17 +1387,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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 (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1293,11 +1414,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1310,11 +1435,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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() { bitField0_ |= 0x00000002; @@ -1322,36 +1451,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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_; @@ -1359,39 +1500,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .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) { @@ -1407,14 +1567,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .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(); } else { @@ -1425,17 +1588,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .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 (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1448,11 +1615,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1465,11 +1636,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .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() { bitField0_ |= 0x00000004; @@ -1477,56 +1652,66 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1535,10 +1720,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1548,20 +1736,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 4;
      */
     @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();
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1575,6 +1764,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1584,17 +1775,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        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;
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1604,23 +1797,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new 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();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1629,23 +1824,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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() {
       bitField0_ |= 0x00000008;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1654,17 +1848,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4;
      */
-    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);
+    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);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1673,28 +1870,28 @@ public Builder putLabels(
      *
      * map<string, string> labels = 4;
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.lang.Object description_ = "";
     /**
+     *
+     *
      * 
      * An optional description of the hub.
      * 
* * string description = 5; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1703,20 +1900,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * An optional description of the hub.
      * 
* * string description = 5; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1724,28 +1922,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * An optional description of the hub.
      * 
* * string description = 5; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * An optional description of the hub.
      * 
* * string description = 5; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1755,17 +1960,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * An optional description of the hub.
      * 
* * string description = 5; + * * @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(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -1775,6 +1984,8 @@ public Builder setDescriptionBytes( private java.lang.Object uniqueId_ = ""; /** + * + * *
      * Output only. The Google-generated UUID for the hub. This value is unique across all hub
      * resources. If a hub is deleted and another with the same name is created,
@@ -1782,13 +1993,13 @@ public Builder setDescriptionBytes(
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -1797,6 +2008,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. The Google-generated UUID for the hub. This value is unique across all hub
      * resources. If a hub is deleted and another with the same name is created,
@@ -1804,15 +2017,14 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -1820,6 +2032,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. The Google-generated UUID for the hub. This value is unique across all hub
      * resources. If a hub is deleted and another with the same name is created,
@@ -1827,18 +2041,22 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uniqueId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Output only. The Google-generated UUID for the hub. This value is unique across all hub
      * resources. If a hub is deleted and another with the same name is created,
@@ -1846,6 +2064,7 @@ public Builder setUniqueId(
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -1855,6 +2074,8 @@ public Builder clearUniqueId() { return this; } /** + * + * *
      * Output only. The Google-generated UUID for the hub. This value is unique across all hub
      * resources. If a hub is deleted and another with the same name is created,
@@ -1862,12 +2083,14 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000020; @@ -1877,22 +2100,33 @@ public Builder setUniqueIdBytes( private int state_ = 0; /** + * + * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1903,24 +2137,35 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + com.google.cloud.networkconnectivity.v1.State result = + com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1934,11 +2179,16 @@ public Builder setState(com.google.cloud.networkconnectivity.v1.State value) { return this; } /** + * + * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -1949,18 +2199,26 @@ public Builder clearState() { } private java.util.List routingVpcs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRoutingVpcsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - routingVpcs_ = new java.util.ArrayList(routingVpcs_); + routingVpcs_ = + new java.util.ArrayList( + routingVpcs_); bitField0_ |= 0x00000080; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.RoutingVPC, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder> routingVpcsBuilder_; + com.google.cloud.networkconnectivity.v1.RoutingVPC, + com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, + com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder> + routingVpcsBuilder_; /** + * + * *
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -1977,6 +2235,8 @@ public java.util.List getRou
       }
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -1993,6 +2253,8 @@ public int getRoutingVpcsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2009,6 +2271,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int ind
       }
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2032,6 +2296,8 @@ public Builder setRoutingVpcs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2052,6 +2318,8 @@ public Builder setRoutingVpcs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2074,6 +2342,8 @@ public Builder addRoutingVpcs(com.google.cloud.networkconnectivity.v1.RoutingVPC
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2097,6 +2367,8 @@ public Builder addRoutingVpcs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2117,6 +2389,8 @@ public Builder addRoutingVpcs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2137,6 +2411,8 @@ public Builder addRoutingVpcs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2149,8 +2425,7 @@ public Builder addAllRoutingVpcs(
         java.lang.Iterable values) {
       if (routingVpcsBuilder_ == null) {
         ensureRoutingVpcsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, routingVpcs_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, routingVpcs_);
         onChanged();
       } else {
         routingVpcsBuilder_.addAllMessages(values);
@@ -2158,6 +2433,8 @@ public Builder addAllRoutingVpcs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2177,6 +2454,8 @@ public Builder clearRoutingVpcs() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2196,6 +2475,8 @@ public Builder removeRoutingVpcs(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2209,6 +2490,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder getRoutingVpcs
       return getRoutingVpcsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2220,11 +2503,14 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder getRoutingVpcs
     public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder(
         int index) {
       if (routingVpcsBuilder_ == null) {
-        return routingVpcs_.get(index);  } else {
+        return routingVpcs_.get(index);
+      } else {
         return routingVpcsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2233,8 +2519,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
      *
      * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
      */
-    public java.util.List 
-         getRoutingVpcsOrBuilderList() {
+    public java.util.List
+        getRoutingVpcsOrBuilderList() {
       if (routingVpcsBuilder_ != null) {
         return routingVpcsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2242,6 +2528,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
       }
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2251,10 +2539,12 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
      * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
      */
     public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcsBuilder() {
-      return getRoutingVpcsFieldBuilder().addBuilder(
-          com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
+      return getRoutingVpcsFieldBuilder()
+          .addBuilder(com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2265,10 +2555,13 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcs
      */
     public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcsBuilder(
         int index) {
-      return getRoutingVpcsFieldBuilder().addBuilder(
-          index, com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
+      return getRoutingVpcsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2277,27 +2570,30 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcs
      *
      * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
      */
-    public java.util.List 
-         getRoutingVpcsBuilderList() {
+    public java.util.List
+        getRoutingVpcsBuilderList() {
       return getRoutingVpcsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.networkconnectivity.v1.RoutingVPC, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder> 
+            com.google.cloud.networkconnectivity.v1.RoutingVPC,
+            com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder,
+            com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder>
         getRoutingVpcsFieldBuilder() {
       if (routingVpcsBuilder_ == null) {
-        routingVpcsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.networkconnectivity.v1.RoutingVPC, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder>(
-                routingVpcs_,
-                ((bitField0_ & 0x00000080) != 0),
-                getParentForChildren(),
-                isClean());
+        routingVpcsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.networkconnectivity.v1.RoutingVPC,
+                com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder,
+                com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder>(
+                routingVpcs_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean());
         routingVpcs_ = null;
       }
       return routingVpcsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2307,12 +2603,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.Hub)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.Hub)
   private static final com.google.cloud.networkconnectivity.v1.Hub DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.Hub();
   }
@@ -2321,27 +2617,27 @@ public static com.google.cloud.networkconnectivity.v1.Hub getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Hub parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Hub parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2356,6 +2652,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.networkconnectivity.v1.Hub getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
similarity index 100%
rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
similarity index 78%
rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
index b2d4c22b5e4d..3c96bf01cfb1 100644
--- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
+++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.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/networkconnectivity/v1/hub.proto
 
 package com.google.cloud.networkconnectivity.v1;
 
-public interface HubOrBuilder extends
+public interface HubOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.Hub)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -15,10 +33,13 @@ public interface HubOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -26,66 +47,90 @@ public interface HubOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The time the hub was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the hub was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the hub was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the hub was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time the hub was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time the hub was last updated.
    * 
* - * .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(); /** + * + * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -96,6 +141,8 @@ public interface HubOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -104,15 +151,13 @@ public interface HubOrBuilder extends
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -121,9 +166,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -133,11 +179,13 @@ boolean containsLabels(
    * map<string, string> labels = 4;
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -146,30 +194,36 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * An optional description of the hub.
    * 
* * string description = 5; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * An optional description of the hub.
    * 
* * string description = 5; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The Google-generated UUID for the hub. This value is unique across all hub
    * resources. If a hub is deleted and another with the same name is created,
@@ -177,10 +231,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ java.lang.String getUniqueId(); /** + * + * *
    * Output only. The Google-generated UUID for the hub. This value is unique across all hub
    * resources. If a hub is deleted and another with the same name is created,
@@ -188,31 +245,43 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString - getUniqueIdBytes(); + com.google.protobuf.ByteString getUniqueIdBytes(); /** + * + * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.networkconnectivity.v1.State getState(); /** + * + * *
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -221,9 +290,10 @@ java.lang.String getLabelsOrThrow(
    *
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
-  java.util.List 
-      getRoutingVpcsList();
+  java.util.List getRoutingVpcsList();
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -234,6 +304,8 @@ java.lang.String getLabelsOrThrow(
    */
   com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int index);
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -244,6 +316,8 @@ java.lang.String getLabelsOrThrow(
    */
   int getRoutingVpcsCount();
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -252,9 +326,11 @@ java.lang.String getLabelsOrThrow(
    *
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
-  java.util.List 
+  java.util.List
       getRoutingVpcsOrBuilderList();
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -263,6 +339,5 @@ java.lang.String getLabelsOrThrow(
    *
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
-  com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder(
-      int index);
+  com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder(int index);
 }
diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java
new file mode 100644
index 000000000000..3a2324e14528
--- /dev/null
+++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java
@@ -0,0 +1,533 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/networkconnectivity/v1/hub.proto
+
+package com.google.cloud.networkconnectivity.v1;
+
+public final class HubProto {
+  private HubProto() {}
+
+  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_networkconnectivity_v1_Hub_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_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/networkconnectivity/v1/hu"
+          + "b.proto\022#google.cloud.networkconnectivit"
+          + "y.v1\032\034google/api/annotations.proto\032\027goog"
+          + "le/api/client.proto\032\037google/api/field_be"
+          + "havior.proto\032\031google/api/resource.proto\032"
+          + "#google/longrunning/operations.proto\032 go"
+          + "ogle/protobuf/field_mask.proto\032\037google/p"
+          + "rotobuf/timestamp.proto\"\212\004\n\003Hub\022\021\n\004name\030"
+          + "\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132\032.google"
+          + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030"
+          + "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022D"
+          + "\n\006labels\030\004 \003(\01324.google.cloud.networkcon"
+          + "nectivity.v1.Hub.LabelsEntry\022\023\n\013descript"
+          + "ion\030\005 \001(\t\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022>\n\005sta"
+          + "te\030\t \001(\0162*.google.cloud.networkconnectiv"
+          + "ity.v1.StateB\003\340A\003\022E\n\014routing_vpcs\030\n \003(\0132"
+          + "/.google.cloud.networkconnectivity.v1.Ro"
+          + "utingVPC\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005"
+          + "value\030\002 \001(\t:\0028\001:[\352AX\n&networkconnectivit"
+          + "y.googleapis.com/Hub\022.projects/{project}"
+          + "/locations/global/hubs/{hub}\"\177\n\nRoutingV"
+          + "PC\0220\n\003uri\030\001 \001(\tB#\372A \n\036compute.googleapis"
+          + ".com/Network\022?\n2required_for_new_site_to"
+          + "_site_data_transfer_spokes\030\002 \001(\010B\003\340A\003\"\276\006"
+          + "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create_tim"
+          + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003"
+          + "\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf."
+          + "TimestampB\003\340A\003\022F\n\006labels\030\004 \003(\01326.google."
+          + "cloud.networkconnectivity.v1.Spoke.Label"
+          + "sEntry\022\023\n\013description\030\005 \001(\t\022;\n\003hub\030\006 \001(\t"
+          + "B.\340A\005\372A(\n&networkconnectivity.googleapis"
+          + ".com/Hub\022Q\n\022linked_vpn_tunnels\030\021 \001(\01325.g"
+          + "oogle.cloud.networkconnectivity.v1.Linke"
+          + "dVpnTunnels\022k\n\037linked_interconnect_attac"
+          + "hments\030\022 \001(\0132B.google.cloud.networkconne"
+          + "ctivity.v1.LinkedInterconnectAttachments"
+          + "\022n\n!linked_router_appliance_instances\030\023 "
+          + "\001(\0132C.google.cloud.networkconnectivity.v"
+          + "1.LinkedRouterApplianceInstances\022\026\n\tuniq"
+          + "ue_id\030\013 \001(\tB\003\340A\003\022>\n\005state\030\017 \001(\0162*.google"
+          + ".cloud.networkconnectivity.v1.StateB\003\340A\003"
+          + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 "
+          + "\001(\t:\0028\001:e\352Ab\n(networkconnectivity.google"
+          + "apis.com/Spoke\0226projects/{project}/locat"
+          + "ions/{location}/spokes/{spoke}\"\225\001\n\017ListH"
+          + "ubsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca"
+          + "tions.googleapis.com/Location\022\021\n\tpage_si"
+          + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004"
+          + " \001(\t\022\020\n\010order_by\030\005 \001(\t\"x\n\020ListHubsRespon"
+          + "se\0226\n\004hubs\030\001 \003(\0132(.google.cloud.networkc"
+          + "onnectivity.v1.Hub\022\027\n\017next_page_token\030\002 "
+          + "\001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\rGetHubReques"
+          + "t\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&networkconnecti"
+          + "vity.googleapis.com/Hub\"\267\001\n\020CreateHubReq"
+          + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations."
+          + "googleapis.com/Location\022\023\n\006hub_id\030\002 \001(\tB"
+          + "\003\340A\002\022:\n\003hub\030\003 \001(\0132(.google.cloud.network"
+          + "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\004"
+          + " \001(\tB\003\340A\001\"\235\001\n\020UpdateHubRequest\0224\n\013update"
+          + "_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB"
+          + "\003\340A\001\022:\n\003hub\030\002 \001(\0132(.google.cloud.network"
+          + "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\003"
+          + " \001(\tB\003\340A\001\"i\n\020DeleteHubRequest\022<\n\004name\030\001 "
+          + "\001(\tB.\340A\002\372A(\n&networkconnectivity.googlea"
+          + "pis.com/Hub\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\227\001\n"
+          + "\021ListSpokesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372"
+          + "A#\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\006"
+          + "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\022ListSp"
+          + "okesResponse\022:\n\006spokes\030\001 \003(\0132*.google.cl"
+          + "oud.networkconnectivity.v1.Spoke\022\027\n\017next"
+          + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q"
+          + "\n\017GetSpokeRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n"
+          + "(networkconnectivity.googleapis.com/Spok"
+          + "e\"\277\001\n\022CreateSpokeRequest\0229\n\006parent\030\001 \001(\t"
+          + "B)\340A\002\372A#\n!locations.googleapis.com/Locat"
+          + "ion\022\025\n\010spoke_id\030\002 \001(\tB\003\340A\002\022>\n\005spoke\030\003 \001("
+          + "\0132*.google.cloud.networkconnectivity.v1."
+          + "SpokeB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\022"
+          + "UpdateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132"
+          + "\032.google.protobuf.FieldMaskB\003\340A\001\022>\n\005spok"
+          + "e\030\002 \001(\0132*.google.cloud.networkconnectivi"
+          + "ty.v1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A"
+          + "\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\tB0\340"
+          + "A\002\372A*\n(networkconnectivity.googleapis.co"
+          + "m/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"k\n\020Link"
+          + "edVpnTunnels\0223\n\004uris\030\001 \003(\tB%\372A\"\n compute"
+          + ".googleapis.com/VpnTunnel\022\"\n\032site_to_sit"
+          + "e_data_transfer\030\002 \001(\010\"\205\001\n\035LinkedIntercon"
+          + "nectAttachments\022@\n\004uris\030\001 \003(\tB2\372A/\n-comp"
+          + "ute.googleapis.com/InterconnectAttachmen"
+          + "t\022\"\n\032site_to_site_data_transfer\030\002 \001(\010\"\225\001"
+          + "\n\036LinkedRouterApplianceInstances\022O\n\tinst"
+          + "ances\030\001 \003(\0132<.google.cloud.networkconnec"
+          + "tivity.v1.RouterApplianceInstance\022\"\n\032sit"
+          + "e_to_site_data_transfer\030\002 \001(\010\"l\n\027RouterA"
+          + "pplianceInstance\022=\n\017virtual_machine\030\001 \001("
+          + "\tB$\372A!\n\037compute.googleapis.com/Instance\022"
+          + "\022\n\nip_address\030\003 \001(\t\"c\n\020LocationMetadata\022"
+          + "O\n\021location_features\030\001 \003(\01624.google.clou"
+          + "d.networkconnectivity.v1.LocationFeature"
+          + "*F\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREA"
+          + "TING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003*f\n\017Loca"
+          + "tionFeature\022 \n\034LOCATION_FEATURE_UNSPECIF"
+          + "IED\020\000\022\030\n\024SITE_TO_CLOUD_SPOKES\020\001\022\027\n\023SITE_"
+          + "TO_SITE_SPOKES\020\0022\235\020\n\nHubService\022\267\001\n\010List"
+          + "Hubs\0224.google.cloud.networkconnectivity."
+          + "v1.ListHubsRequest\0325.google.cloud.networ"
+          + "kconnectivity.v1.ListHubsResponse\">\202\323\344\223\002"
+          + "/\022-/v1/{parent=projects/*/locations/glob"
+          + "al}/hubs\332A\006parent\022\244\001\n\006GetHub\0222.google.cl"
+          + "oud.networkconnectivity.v1.GetHubRequest"
+          + "\032(.google.cloud.networkconnectivity.v1.H"
+          + "ub\"<\202\323\344\223\002/\022-/v1/{name=projects/*/locatio"
+          + "ns/global/hubs/*}\332A\004name\022\314\001\n\tCreateHub\0225"
+          + ".google.cloud.networkconnectivity.v1.Cre"
+          + "ateHubRequest\032\035.google.longrunning.Opera"
+          + "tion\"i\202\323\344\223\0024\"-/v1/{parent=projects/*/loc"
+          + "ations/global}/hubs:\003hub\332A\021parent,hub,hu"
+          + "b_id\312A\030\n\003Hub\022\021OperationMetadata\022\316\001\n\tUpda"
+          + "teHub\0225.google.cloud.networkconnectivity"
+          + ".v1.UpdateHubRequest\032\035.google.longrunnin"
+          + "g.Operation\"k\202\323\344\223\002821/v1/{hub.name=proje"
+          + "cts/*/locations/global/hubs/*}:\003hub\332A\017hu"
+          + "b,update_mask\312A\030\n\003Hub\022\021OperationMetadata"
+          + "\022\314\001\n\tDeleteHub\0225.google.cloud.networkcon"
+          + "nectivity.v1.DeleteHubRequest\032\035.google.l"
+          + "ongrunning.Operation\"i\202\323\344\223\002/*-/v1/{name="
+          + "projects/*/locations/global/hubs/*}\332A\004na"
+          + "me\312A*\n\025google.protobuf.Empty\022\021OperationM"
+          + "etadata\022\272\001\n\nListSpokes\0226.google.cloud.ne"
+          + "tworkconnectivity.v1.ListSpokesRequest\0327"
+          + ".google.cloud.networkconnectivity.v1.Lis"
+          + "tSpokesResponse\";\202\323\344\223\002,\022*/v1/{parent=pro"
+          + "jects/*/locations/*}/spokes\332A\006parent\022\247\001\n"
+          + "\010GetSpoke\0224.google.cloud.networkconnecti"
+          + "vity.v1.GetSpokeRequest\032*.google.cloud.n"
+          + "etworkconnectivity.v1.Spoke\"9\202\323\344\223\002,\022*/v1"
+          + "/{name=projects/*/locations/*/spokes/*}\332"
+          + "A\004name\022\325\001\n\013CreateSpoke\0227.google.cloud.ne"
+          + "tworkconnectivity.v1.CreateSpokeRequest\032"
+          + "\035.google.longrunning.Operation\"n\202\323\344\223\0023\"*"
+          + "/v1/{parent=projects/*/locations/*}/spok"
+          + "es:\005spoke\332A\025parent,spoke,spoke_id\312A\032\n\005Sp"
+          + "oke\022\021OperationMetadata\022\327\001\n\013UpdateSpoke\0227"
+          + ".google.cloud.networkconnectivity.v1.Upd"
+          + "ateSpokeRequest\032\035.google.longrunning.Ope"
+          + "ration\"p\202\323\344\223\002920/v1/{spoke.name=projects"
+          + "/*/locations/*/spokes/*}:\005spoke\332A\021spoke,"
+          + "update_mask\312A\032\n\005Spoke\022\021OperationMetadata"
+          + "\022\315\001\n\013DeleteSpoke\0227.google.cloud.networkc"
+          + "onnectivity.v1.DeleteSpokeRequest\032\035.goog"
+          + "le.longrunning.Operation\"f\202\323\344\223\002,**/v1/{n"
+          + "ame=projects/*/locations/*/spokes/*}\332A\004n"
+          + "ame\312A*\n\025google.protobuf.Empty\022\021Operation"
+          + "Metadata\032V\312A\"networkconnectivity.googlea"
+          + "pis.com\322A.https://www.googleapis.com/aut"
+          + "h/cloud-platformB\221\005\n\'com.google.cloud.ne"
+          + "tworkconnectivity.v1B\010HubProtoP\001ZVgoogle"
+          + ".golang.org/genproto/googleapis/cloud/ne"
+          + "tworkconnectivity/v1;networkconnectivity"
+          + "\252\002#Google.Cloud.NetworkConnectivity.V1\312\002"
+          + "#Google\\Cloud\\NetworkConnectivity\\V1\352\002&G"
+          + "oogle::Cloud::NetworkConnectivity::V1\352A`"
+          + "\n compute.googleapis.com/VpnTunnel\022
  * A collection of VLAN attachment resources. These resources should
  * be redundant attachments that all advertise the same prefixes to Google
@@ -13,76 +30,87 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments}
  */
-public final class LinkedInterconnectAttachments extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LinkedInterconnectAttachments extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments)
     LinkedInterconnectAttachmentsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LinkedInterconnectAttachments.newBuilder() to construct.
   private LinkedInterconnectAttachments(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LinkedInterconnectAttachments() {
     uris_ = 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 LinkedInterconnectAttachments();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
+            com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class,
+            com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
   }
 
   public static final int URIS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringList uris_;
   /**
+   *
+   *
    * 
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_; } /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -90,22 +118,26 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 2; private boolean siteToSiteDataTransfer_ = false; /** + * + * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -113,6 +145,7 @@ public java.lang.String getUris(int index) {
    * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -121,6 +154,7 @@ public boolean getSiteToSiteDataTransfer() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,8 +166,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); } @@ -158,8 +191,7 @@ public int getSerializedSize() { size += 1 * getUrisList().size(); } if (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, siteToSiteDataTransfer_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -169,17 +201,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.networkconnectivity.v1.LinkedInterconnectAttachments)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other = (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) obj; + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other = + (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) obj; - if (!getUrisList() - .equals(other.getUrisList())) return false; - if (getSiteToSiteDataTransfer() - != other.getSiteToSiteDataTransfer()) return false; + if (!getUrisList().equals(other.getUrisList())) return false; + if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -196,104 +227,112 @@ public int hashCode() { hash = (53 * hash) + getUrisList().hashCode(); } hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSiteToSiteDataTransfer()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments 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.networkconnectivity.v1.LinkedInterconnectAttachments + 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.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 collection of VLAN attachment resources. These resources should
    * be redundant attachments that all advertise the same prefixes to Google
@@ -303,33 +342,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments)
       com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
+              com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class,
+              com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
     }
 
-    // Construct using com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.newBuilder()
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -341,14 +380,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getDefaultInstanceForType() {
-      return com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance();
+    public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments
+        getDefaultInstanceForType() {
+      return com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -362,14 +403,18 @@ public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments bui
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments buildPartial() {
-      com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result = new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(this);
+      com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result =
+          new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         uris_ = uris_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -377,7 +422,8 @@ private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.
       result.uris_ = uris_;
     }
 
-    private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
+    private void buildPartial0(
+        com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_;
@@ -388,46 +434,51 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedInterco
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments)other);
+        return mergeFrom(
+            (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other) {
-      if (other == com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other) {
+      if (other
+          == com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments
+              .getDefaultInstance()) return this;
       if (!other.uris_.isEmpty()) {
         if (uris_.isEmpty()) {
           uris_ = other.uris_;
@@ -467,23 +518,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureUrisIsMutable();
-              uris_.add(s);
-              break;
-            } // case 10
-            case 16: {
-              siteToSiteDataTransfer_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureUrisIsMutable();
+                uris_.add(s);
+                break;
+              } // case 10
+            case 16:
+              {
+                siteToSiteDataTransfer_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -493,44 +547,55 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList uris_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensureUrisIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         uris_ = new com.google.protobuf.LazyStringArrayList(uris_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_.getUnmodifiableView(); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -538,76 +603,90 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris( - java.lang.Iterable values) { + public Builder addAllUris(java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); onChanged(); return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearUris() { @@ -617,17 +696,21 @@ public Builder clearUris() { return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); @@ -635,8 +718,10 @@ public Builder addUrisBytes( return this; } - private boolean siteToSiteDataTransfer_ ; + private boolean siteToSiteDataTransfer_; /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -644,6 +729,7 @@ public Builder addUrisBytes(
      * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -651,6 +737,8 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -658,17 +746,20 @@ public boolean getSiteToSiteDataTransfer() {
      * 
* * bool site_to_site_data_transfer = 2; + * * @param value The siteToSiteDataTransfer to set. * @return This builder for chaining. */ public Builder setSiteToSiteDataTransfer(boolean value) { - + siteToSiteDataTransfer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -676,6 +767,7 @@ public Builder setSiteToSiteDataTransfer(boolean value) {
      * 
* * bool site_to_site_data_transfer = 2; + * * @return This builder for chaining. */ public Builder clearSiteToSiteDataTransfer() { @@ -684,9 +776,9 @@ public Builder clearSiteToSiteDataTransfer() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -696,41 +788,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) - private static final com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkedInterconnectAttachments parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkedInterconnectAttachments parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -742,9 +836,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java similarity index 68% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java index 55bab1b7d7d6..c4da8cd9a262 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java @@ -1,54 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LinkedInterconnectAttachmentsOrBuilder extends +public interface LinkedInterconnectAttachmentsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the uris. */ - java.util.List - getUrisList(); + java.util.List getUrisList(); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of uris. */ int getUrisCount(); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString - getUrisBytes(int index); + com.google.protobuf.ByteString getUrisBytes(int index); /** + * + * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -56,6 +84,7 @@ public interface LinkedInterconnectAttachmentsOrBuilder extends
    * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ boolean getSiteToSiteDataTransfer(); diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java similarity index 64% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java index 5d307b4c432c..1aca3c782c05 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * A collection of router appliance instances. If you configure multiple router
  * appliance instances to receive data from the same set of sites outside of
@@ -13,108 +30,132 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances}
  */
-public final class LinkedRouterApplianceInstances extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LinkedRouterApplianceInstances extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)
     LinkedRouterApplianceInstancesOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LinkedRouterApplianceInstances.newBuilder() to construct.
-  private LinkedRouterApplianceInstances(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private LinkedRouterApplianceInstances(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LinkedRouterApplianceInstances() {
     instances_ = 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 LinkedRouterApplianceInstances();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
+            com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class,
+            com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
   }
 
   public static final int INSTANCES_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
-  private java.util.List instances_;
+  private java.util.List
+      instances_;
   /**
+   *
+   *
    * 
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ @java.lang.Override - public java.util.List getInstancesList() { + public java.util.List + getInstancesList() { return instances_; } /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> getInstancesOrBuilderList() { return instances_; } /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ @java.lang.Override public int getInstancesCount() { return instances_.size(); } /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index) { return instances_.get(index); } /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInstancesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder + getInstancesOrBuilder(int index) { return instances_.get(index); } public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 2; private boolean siteToSiteDataTransfer_ = false; /** + * + * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -122,6 +163,7 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder
    * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -130,6 +172,7 @@ public boolean getSiteToSiteDataTransfer() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,8 +184,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -159,12 +201,10 @@ 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 (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, siteToSiteDataTransfer_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,17 +214,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.networkconnectivity.v1.LinkedRouterApplianceInstances)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other = (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) obj; + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other = + (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) obj; - if (!getInstancesList() - .equals(other.getInstancesList())) return false; - if (getSiteToSiteDataTransfer() - != other.getSiteToSiteDataTransfer()) return false; + if (!getInstancesList().equals(other.getInstancesList())) return false; + if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -201,104 +240,112 @@ public int hashCode() { hash = (53 * hash) + getInstancesList().hashCode(); } hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSiteToSiteDataTransfer()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances 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.networkconnectivity.v1.LinkedRouterApplianceInstances + 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.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 collection of router appliance instances. If you configure multiple router
    * appliance instances to receive data from the same set of sites outside of
@@ -308,33 +355,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)
       com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
+              com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class,
+              com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
     }
 
-    // Construct using com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.newBuilder()
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -351,19 +398,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getDefaultInstanceForType() {
-      return com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance();
+    public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances
+        getDefaultInstanceForType() {
+      return com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances build() {
-      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result = buildPartial();
+      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -372,14 +422,18 @@ public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances bu
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances buildPartial() {
-      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result = new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(this);
+      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result =
+          new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
       if (instancesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           instances_ = java.util.Collections.unmodifiableList(instances_);
@@ -391,7 +445,8 @@ private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.
       }
     }
 
-    private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
+    private void buildPartial0(
+        com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_;
@@ -402,46 +457,51 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedRouterA
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)other);
+        return mergeFrom(
+            (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other) {
-      if (other == com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other) {
+      if (other
+          == com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances
+              .getDefaultInstance()) return this;
       if (instancesBuilder_ == null) {
         if (!other.instances_.isEmpty()) {
           if (instances_.isEmpty()) {
@@ -460,9 +520,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedRouterApp
             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_);
           }
@@ -497,30 +558,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance m =
-                  input.readMessage(
-                      com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.parser(),
-                      extensionRegistry);
-              if (instancesBuilder_ == null) {
-                ensureInstancesIsMutable();
-                instances_.add(m);
-              } else {
-                instancesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 16: {
-              siteToSiteDataTransfer_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.networkconnectivity.v1.RouterApplianceInstance m =
+                    input.readMessage(
+                        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.parser(),
+                        extensionRegistry);
+                if (instancesBuilder_ == null) {
+                  ensureInstancesIsMutable();
+                  instances_.add(m);
+                } else {
+                  instancesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 16:
+              {
+                siteToSiteDataTransfer_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -530,28 +594,39 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List instances_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        instances_ = java.util.Collections.emptyList();
+
     private void ensureInstancesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        instances_ = new java.util.ArrayList(instances_);
+        instances_ =
+            new java.util.ArrayList<
+                com.google.cloud.networkconnectivity.v1.RouterApplianceInstance>(instances_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> instancesBuilder_;
+            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance,
+            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder,
+            com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>
+        instancesBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public java.util.List getInstancesList() { + public java.util.List + getInstancesList() { if (instancesBuilder_ == null) { return java.util.Collections.unmodifiableList(instances_); } else { @@ -559,11 +634,14 @@ public java.util.List * The list of router appliance instances. *
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public int getInstancesCount() { if (instancesBuilder_ == null) { @@ -573,11 +651,14 @@ public int getInstancesCount() { } } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index) { if (instancesBuilder_ == null) { @@ -587,11 +668,14 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstan } } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder setInstances( int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { @@ -608,14 +692,18 @@ public Builder setInstances( return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder setInstances( - int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { + int index, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.set(index, builderForValue.build()); @@ -626,13 +714,17 @@ public Builder setInstances( return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public Builder addInstances(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { + public Builder addInstances( + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -646,11 +738,14 @@ public Builder addInstances(com.google.cloud.networkconnectivity.v1.RouterApplia return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder addInstances( int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { @@ -667,11 +762,14 @@ public Builder addInstances( return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder addInstances( com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { @@ -685,14 +783,18 @@ public Builder addInstances( return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder addInstances( - int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { + int index, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(index, builderForValue.build()); @@ -703,18 +805,22 @@ public Builder addInstances( return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder addAllInstances( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstance> + 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); @@ -722,11 +828,14 @@ public Builder addAllInstances( return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder clearInstances() { if (instancesBuilder_ == null) { @@ -739,11 +848,14 @@ public Builder clearInstances() { return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder removeInstances(int index) { if (instancesBuilder_ == null) { @@ -756,39 +868,50 @@ public Builder removeInstances(int index) { return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder getInstancesBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder + getInstancesBuilder(int index) { return getInstancesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInstancesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder + getInstancesOrBuilder(int index) { if (instancesBuilder_ == null) { - return instances_.get(index); } else { + return instances_.get(index); + } else { return instancesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public java.util.List - getInstancesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> + getInstancesOrBuilderList() { if (instancesBuilder_ != null) { return instancesBuilder_.getMessageOrBuilderList(); } else { @@ -796,56 +919,74 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder } } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder addInstancesBuilder() { - return getInstancesFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder + addInstancesBuilder() { + return getInstancesFieldBuilder() + .addBuilder( + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder addInstancesBuilder( - int index) { - return getInstancesFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder + addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public java.util.List - getInstancesBuilderList() { + public java.util.List + getInstancesBuilderList() { return getInstancesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> getInstancesFieldBuilder() { if (instancesBuilder_ == null) { - instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>( - instances_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); instances_ = null; } return instancesBuilder_; } - private boolean siteToSiteDataTransfer_ ; + private boolean siteToSiteDataTransfer_; /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -853,6 +994,7 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder a
      * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -860,6 +1002,8 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -867,17 +1011,20 @@ public boolean getSiteToSiteDataTransfer() {
      * 
* * bool site_to_site_data_transfer = 2; + * * @param value The siteToSiteDataTransfer to set. * @return This builder for chaining. */ public Builder setSiteToSiteDataTransfer(boolean value) { - + siteToSiteDataTransfer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -885,6 +1032,7 @@ public Builder setSiteToSiteDataTransfer(boolean value) {
      * 
* * bool site_to_site_data_transfer = 2; + * * @return This builder for chaining. */ public Builder clearSiteToSiteDataTransfer() { @@ -893,9 +1041,9 @@ public Builder clearSiteToSiteDataTransfer() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -905,41 +1053,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) - private static final com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkedRouterApplianceInstances parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkedRouterApplianceInstances parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -951,9 +1101,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java similarity index 65% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java index 834f24a59f2a..00638da44cf8 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java @@ -1,57 +1,90 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LinkedRouterApplianceInstancesOrBuilder extends +public interface LinkedRouterApplianceInstancesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - java.util.List + java.util.List getInstancesList(); /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index); /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ int getInstancesCount(); /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - java.util.List + java.util.List getInstancesOrBuilderList(); /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInstancesOrBuilder( int index); /** + * + * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -59,6 +92,7 @@ com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInst
    * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ boolean getSiteToSiteDataTransfer(); diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java index af17021a0bbe..cbcdfc6c9acf 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * A collection of Cloud VPN tunnel resources. These resources should be
  * redundant HA VPN tunnels that all advertise the same prefixes to Google
@@ -13,76 +30,87 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedVpnTunnels}
  */
-public final class LinkedVpnTunnels extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LinkedVpnTunnels extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LinkedVpnTunnels)
     LinkedVpnTunnelsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LinkedVpnTunnels.newBuilder() to construct.
   private LinkedVpnTunnels(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LinkedVpnTunnels() {
     uris_ = 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 LinkedVpnTunnels();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
+            com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class,
+            com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
   }
 
   public static final int URIS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringList uris_;
   /**
+   *
+   *
    * 
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_; } /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -90,22 +118,26 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 2; private boolean siteToSiteDataTransfer_ = false; /** + * + * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -113,6 +145,7 @@ public java.lang.String getUris(int index) {
    * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -121,6 +154,7 @@ public boolean getSiteToSiteDataTransfer() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,8 +166,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); } @@ -158,8 +191,7 @@ public int getSerializedSize() { size += 1 * getUrisList().size(); } if (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, siteToSiteDataTransfer_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -169,17 +201,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.networkconnectivity.v1.LinkedVpnTunnels)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other = (com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) obj; + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other = + (com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) obj; - if (!getUrisList() - .equals(other.getUrisList())) return false; - if (getSiteToSiteDataTransfer() - != other.getSiteToSiteDataTransfer()) return false; + if (!getUrisList().equals(other.getUrisList())) return false; + if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -196,104 +227,111 @@ public int hashCode() { hash = (53 * hash) + getUrisList().hashCode(); } hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSiteToSiteDataTransfer()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 collection of Cloud VPN tunnel resources. These resources should be
    * redundant HA VPN tunnels that all advertise the same prefixes to Google
@@ -303,33 +341,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedVpnTunnels}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedVpnTunnels)
       com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
+              com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class,
+              com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -341,9 +378,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
     }
 
     @java.lang.Override
@@ -362,14 +399,18 @@ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels buildPartial() {
-      com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result = new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(this);
+      com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result =
+          new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         uris_ = uris_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -388,38 +429,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedVpnTunn
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -427,7 +469,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other) {
-      if (other == com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance())
+        return this;
       if (!other.uris_.isEmpty()) {
         if (uris_.isEmpty()) {
           uris_ = other.uris_;
@@ -467,23 +510,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureUrisIsMutable();
-              uris_.add(s);
-              break;
-            } // case 10
-            case 16: {
-              siteToSiteDataTransfer_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureUrisIsMutable();
+                uris_.add(s);
+                break;
+              } // case 10
+            case 16:
+              {
+                siteToSiteDataTransfer_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -493,44 +539,55 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList uris_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensureUrisIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         uris_ = new com.google.protobuf.LazyStringArrayList(uris_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_.getUnmodifiableView(); } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -538,76 +595,90 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris( - java.lang.Iterable values) { + public Builder addAllUris(java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); onChanged(); return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearUris() { @@ -617,17 +688,21 @@ public Builder clearUris() { return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); @@ -635,8 +710,10 @@ public Builder addUrisBytes( return this; } - private boolean siteToSiteDataTransfer_ ; + private boolean siteToSiteDataTransfer_; /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -644,6 +721,7 @@ public Builder addUrisBytes(
      * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -651,6 +729,8 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -658,17 +738,20 @@ public boolean getSiteToSiteDataTransfer() {
      * 
* * bool site_to_site_data_transfer = 2; + * * @param value The siteToSiteDataTransfer to set. * @return This builder for chaining. */ public Builder setSiteToSiteDataTransfer(boolean value) { - + siteToSiteDataTransfer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -676,6 +759,7 @@ public Builder setSiteToSiteDataTransfer(boolean value) {
      * 
* * bool site_to_site_data_transfer = 2; + * * @return This builder for chaining. */ public Builder clearSiteToSiteDataTransfer() { @@ -684,9 +768,9 @@ public Builder clearSiteToSiteDataTransfer() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -696,12 +780,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) private static final com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(); } @@ -710,27 +794,27 @@ public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkedVpnTunnels parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkedVpnTunnels parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -745,6 +829,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java similarity index 68% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java index 8777c4dfa115..83929e450906 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java @@ -1,54 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LinkedVpnTunnelsOrBuilder extends +public interface LinkedVpnTunnelsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the uris. */ - java.util.List - getUrisList(); + java.util.List getUrisList(); /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of uris. */ int getUrisCount(); /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString - getUrisBytes(int index); + com.google.protobuf.ByteString getUrisBytes(int index); /** + * + * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -56,6 +84,7 @@ public interface LinkedVpnTunnelsOrBuilder extends
    * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ boolean getSiteToSiteDataTransfer(); diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java index e3164f7923b6..474a8f813f72 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Request for [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsRequest} */ -public final class ListHubsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListHubsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListHubsRequest) ListHubsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListHubsRequest.newBuilder() to construct. private ListHubsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListHubsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,38 +46,45 @@ private ListHubsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListHubsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, + com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 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 @@ -68,29 +93,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 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 { @@ -101,11 +128,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -114,14 +144,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -130,29 +164,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The page token.
    * 
* * 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 { @@ -161,14 +195,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -177,29 +215,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; } } /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * 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 { @@ -208,14 +246,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -224,29 +266,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -255,6 +297,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -296,8 +338,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_); @@ -316,23 +357,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.networkconnectivity.v1.ListHubsRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListHubsRequest other = (com.google.cloud.networkconnectivity.v1.ListHubsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1.ListHubsRequest other = + (com.google.cloud.networkconnectivity.v1.ListHubsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -360,129 +397,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListHubsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.ListHubsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListHubsRequest) com.google.cloud.networkconnectivity.v1.ListHubsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, + com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.ListHubsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +540,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; } @java.lang.Override @@ -517,8 +561,11 @@ public com.google.cloud.networkconnectivity.v1.ListHubsRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.ListHubsRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.ListHubsRequest result = new com.google.cloud.networkconnectivity.v1.ListHubsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1.ListHubsRequest result = + new com.google.cloud.networkconnectivity.v1.ListHubsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -546,38 +593,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListHubsReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.ListHubsRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsRequest) other); } else { super.mergeFrom(other); return this; @@ -585,7 +633,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListHubsRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.ListHubsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1.ListHubsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -635,37 +684,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -675,22 +730,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource's name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -699,20 +759,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * string parent = 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,28 +783,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * string 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() { @@ -751,17 +825,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -769,13 +849,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -783,27 +866,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -815,18 +904,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The page token.
      * 
* * 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; @@ -835,20 +926,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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 { @@ -856,28 +948,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The page token.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -887,17 +986,21 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -907,18 +1010,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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; @@ -927,20 +1032,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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 { @@ -948,28 +1054,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -979,17 +1092,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -999,18 +1116,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1019,20 +1138,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1040,28 +1160,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1071,26 +1198,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1100,12 +1231,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListHubsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListHubsRequest) private static final com.google.cloud.networkconnectivity.v1.ListHubsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListHubsRequest(); } @@ -1114,27 +1245,27 @@ public static com.google.cloud.networkconnectivity.v1.ListHubsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,6 +1280,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListHubsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java index d7553ac570fe..0a8b42a0fd49 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java @@ -1,99 +1,142 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListHubsRequestOrBuilder extends +public interface ListHubsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListHubsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java similarity index 72% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java index b481cc06309c..fdab7c3be551 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsResponse} */ -public final class ListHubsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListHubsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListHubsResponse) ListHubsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListHubsResponse.newBuilder() to construct. private ListHubsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListHubsResponse() { hubs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,33 +45,37 @@ private ListHubsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListHubsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class); + com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, + com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class); } public static final int HUBS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List hubs_; /** + * + * *
    * The requested hubs.
    * 
@@ -65,6 +87,8 @@ public java.util.List getHubsList() return hubs_; } /** + * + * *
    * The requested hubs.
    * 
@@ -72,11 +96,13 @@ public java.util.List getHubsList() * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getHubsOrBuilderList() { return hubs_; } /** + * + * *
    * The requested hubs.
    * 
@@ -88,6 +114,8 @@ public int getHubsCount() { return hubs_.size(); } /** + * + * *
    * The requested hubs.
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.networkconnectivity.v1.Hub getHubs(int index) { return hubs_.get(index); } /** + * + * *
    * The requested hubs.
    * 
@@ -106,21 +136,24 @@ public com.google.cloud.networkconnectivity.v1.Hub getHubs(int index) { * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int index) { return hubs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +162,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -161,37 +194,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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. */ @@ -199,20 +241,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; @@ -224,8 +269,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < hubs_.size(); i++) { output.writeMessage(1, hubs_.get(i)); } @@ -245,8 +289,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < hubs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, hubs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hubs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +310,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.networkconnectivity.v1.ListHubsResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListHubsResponse other = (com.google.cloud.networkconnectivity.v1.ListHubsResponse) obj; + com.google.cloud.networkconnectivity.v1.ListHubsResponse other = + (com.google.cloud.networkconnectivity.v1.ListHubsResponse) obj; - if (!getHubsList() - .equals(other.getHubsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getHubsList().equals(other.getHubsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +348,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListHubsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.ListHubsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListHubsResponse) com.google.cloud.networkconnectivity.v1.ListHubsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class); + com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, + com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.ListHubsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; } @java.lang.Override @@ -469,14 +517,18 @@ public com.google.cloud.networkconnectivity.v1.ListHubsResponse build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.ListHubsResponse buildPartial() { - com.google.cloud.networkconnectivity.v1.ListHubsResponse result = new com.google.cloud.networkconnectivity.v1.ListHubsResponse(this); + com.google.cloud.networkconnectivity.v1.ListHubsResponse result = + new com.google.cloud.networkconnectivity.v1.ListHubsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.ListHubsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1.ListHubsResponse result) { if (hubsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { hubs_ = java.util.Collections.unmodifiableList(hubs_); @@ -504,38 +556,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListHubsRespo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.ListHubsResponse) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsResponse)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsResponse) other); } else { super.mergeFrom(other); return this; @@ -543,7 +596,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListHubsResponse other) { - if (other == com.google.cloud.networkconnectivity.v1.ListHubsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1.ListHubsResponse.getDefaultInstance()) + return this; if (hubsBuilder_ == null) { if (!other.hubs_.isEmpty()) { if (hubs_.isEmpty()) { @@ -562,9 +616,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListHubsRespons hubsBuilder_ = null; hubs_ = other.hubs_; bitField0_ = (bitField0_ & ~0x00000001); - hubsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHubsFieldBuilder() : null; + hubsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHubsFieldBuilder() + : null; } else { hubsBuilder_.addAllMessages(other.hubs_); } @@ -611,36 +666,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.networkconnectivity.v1.Hub m = - input.readMessage( - com.google.cloud.networkconnectivity.v1.Hub.parser(), - extensionRegistry); - if (hubsBuilder_ == null) { - ensureHubsIsMutable(); - hubs_.add(m); - } else { - hubsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.networkconnectivity.v1.Hub m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.Hub.parser(), extensionRegistry); + if (hubsBuilder_ == null) { + ensureHubsIsMutable(); + hubs_.add(m); + } else { + hubsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,21 +708,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List hubs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureHubsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { hubs_ = new java.util.ArrayList(hubs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> hubsBuilder_; + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder> + hubsBuilder_; /** + * + * *
      * The requested hubs.
      * 
@@ -679,6 +744,8 @@ public java.util.List getHubsList() } } /** + * + * *
      * The requested hubs.
      * 
@@ -693,6 +760,8 @@ public int getHubsCount() { } } /** + * + * *
      * The requested hubs.
      * 
@@ -707,14 +776,15 @@ public com.google.cloud.networkconnectivity.v1.Hub getHubs(int index) { } } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public Builder setHubs( - int index, com.google.cloud.networkconnectivity.v1.Hub value) { + public Builder setHubs(int index, com.google.cloud.networkconnectivity.v1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -728,6 +798,8 @@ public Builder setHubs( return this; } /** + * + * *
      * The requested hubs.
      * 
@@ -746,6 +818,8 @@ public Builder setHubs( return this; } /** + * + * *
      * The requested hubs.
      * 
@@ -766,14 +840,15 @@ public Builder addHubs(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public Builder addHubs( - int index, com.google.cloud.networkconnectivity.v1.Hub value) { + public Builder addHubs(int index, com.google.cloud.networkconnectivity.v1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -787,14 +862,15 @@ public Builder addHubs( return this; } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public Builder addHubs( - com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { + public Builder addHubs(com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { if (hubsBuilder_ == null) { ensureHubsIsMutable(); hubs_.add(builderForValue.build()); @@ -805,6 +881,8 @@ public Builder addHubs( return this; } /** + * + * *
      * The requested hubs.
      * 
@@ -823,6 +901,8 @@ public Builder addHubs( return this; } /** + * + * *
      * The requested hubs.
      * 
@@ -833,8 +913,7 @@ public Builder addAllHubs( java.lang.Iterable values) { if (hubsBuilder_ == null) { ensureHubsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, hubs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hubs_); onChanged(); } else { hubsBuilder_.addAllMessages(values); @@ -842,6 +921,8 @@ public Builder addAllHubs( return this; } /** + * + * *
      * The requested hubs.
      * 
@@ -859,6 +940,8 @@ public Builder clearHubs() { return this; } /** + * + * *
      * The requested hubs.
      * 
@@ -876,39 +959,44 @@ public Builder removeHubs(int index) { return this; } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubsBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubsBuilder(int index) { return getHubsFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int index) { if (hubsBuilder_ == null) { - return hubs_.get(index); } else { + return hubs_.get(index); + } else { return hubsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public java.util.List - getHubsOrBuilderList() { + public java.util.List + getHubsOrBuilderList() { if (hubsBuilder_ != null) { return hubsBuilder_.getMessageOrBuilderList(); } else { @@ -916,6 +1004,8 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( } } /** + * + * *
      * The requested hubs.
      * 
@@ -923,42 +1013,48 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder() { - return getHubsFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); + return getHubsFieldBuilder() + .addBuilder(com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder( - int index) { - return getHubsFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder(int index) { + return getHubsFieldBuilder() + .addBuilder(index, com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public java.util.List - getHubsBuilderList() { + public java.util.List + getHubsBuilderList() { return getHubsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder> getHubsFieldBuilder() { if (hubsBuilder_ == null) { - hubsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder>( - hubs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + hubsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder>( + hubs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); hubs_ = null; } return hubsBuilder_; @@ -966,19 +1062,21 @@ public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -987,21 +1085,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1009,30 +1108,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1148,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1171,52 @@ public Builder setNextPageTokenBytes( 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * 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. */ @@ -1104,76 +1224,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) { - if (value == null) { throw new NullPointerException(); } + 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(); } + 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) { + 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() { @@ -1183,26 +1317,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) { - if (value == null) { throw new NullPointerException(); } + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1212,12 +1350,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListHubsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListHubsResponse) private static final com.google.cloud.networkconnectivity.v1.ListHubsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListHubsResponse(); } @@ -1226,27 +1364,27 @@ public static com.google.cloud.networkconnectivity.v1.ListHubsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1261,6 +1399,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListHubsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java index 73449f136a7b..b161d9b83f1a 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListHubsResponseOrBuilder extends +public interface ListHubsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListHubsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested hubs.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - java.util.List - getHubsList(); + java.util.List getHubsList(); /** + * + * *
    * The requested hubs.
    * 
@@ -25,6 +44,8 @@ public interface ListHubsResponseOrBuilder extends */ com.google.cloud.networkconnectivity.v1.Hub getHubs(int index); /** + * + * *
    * The requested hubs.
    * 
@@ -33,84 +54,102 @@ public interface ListHubsResponseOrBuilder extends */ int getHubsCount(); /** + * + * *
    * The requested hubs.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - java.util.List + java.util.List getHubsOrBuilderList(); /** + * + * *
    * The requested hubs.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( - int index); + com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int index); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java index 9ceed8ba2e12..3823e6eda467 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesRequest} */ -public final class ListSpokesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSpokesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListSpokesRequest) ListSpokesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSpokesRequest.newBuilder() to construct. private ListSpokesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSpokesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,38 +46,45 @@ private ListSpokesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSpokesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, + com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 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 @@ -68,29 +93,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 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 { @@ -101,11 +128,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -114,14 +144,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -130,29 +164,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The page token.
    * 
* * 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 { @@ -161,14 +195,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -177,29 +215,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; } } /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * 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 { @@ -208,14 +246,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -224,29 +266,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -255,6 +297,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -296,8 +338,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_); @@ -316,23 +357,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.networkconnectivity.v1.ListSpokesRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListSpokesRequest other = (com.google.cloud.networkconnectivity.v1.ListSpokesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1.ListSpokesRequest other = + (com.google.cloud.networkconnectivity.v1.ListSpokesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -360,129 +397,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListSpokesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListSpokesRequest) com.google.cloud.networkconnectivity.v1.ListSpokesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, + com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.ListSpokesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +540,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; } @java.lang.Override @@ -517,8 +561,11 @@ public com.google.cloud.networkconnectivity.v1.ListSpokesRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.ListSpokesRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.ListSpokesRequest result = new com.google.cloud.networkconnectivity.v1.ListSpokesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1.ListSpokesRequest result = + new com.google.cloud.networkconnectivity.v1.ListSpokesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -546,38 +593,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListSpokesReq public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.ListSpokesRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesRequest) other); } else { super.mergeFrom(other); return this; @@ -585,7 +633,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListSpokesRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.ListSpokesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1.ListSpokesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -635,37 +684,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -675,22 +730,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -699,20 +759,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource.
      * 
* - * string parent = 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,28 +783,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource.
      * 
* - * string 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() { @@ -751,17 +825,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -769,13 +849,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -783,27 +866,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -815,18 +904,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The page token.
      * 
* * 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; @@ -835,20 +926,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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 { @@ -856,28 +948,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The page token.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -887,17 +986,21 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -907,18 +1010,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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; @@ -927,20 +1032,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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 { @@ -948,28 +1054,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -979,17 +1092,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -999,18 +1116,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1019,20 +1138,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1040,28 +1160,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1071,26 +1198,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1100,12 +1231,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListSpokesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListSpokesRequest) private static final com.google.cloud.networkconnectivity.v1.ListSpokesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListSpokesRequest(); } @@ -1114,27 +1245,27 @@ public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,6 +1280,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListSpokesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java index 46c69c915c82..6d50170b35ab 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java @@ -1,99 +1,142 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListSpokesRequestOrBuilder extends +public interface ListSpokesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListSpokesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java similarity index 72% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java index ca637cc054a6..d24a998eaca4 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesResponse} */ -public final class ListSpokesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSpokesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListSpokesResponse) ListSpokesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSpokesResponse.newBuilder() to construct. private ListSpokesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSpokesResponse() { spokes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,33 +45,37 @@ private ListSpokesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSpokesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, + com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class); } public static final int SPOKES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List spokes_; /** + * + * *
    * The requested spokes.
    * 
@@ -65,6 +87,8 @@ public java.util.List getSpokesLi return spokes_; } /** + * + * *
    * The requested spokes.
    * 
@@ -72,11 +96,13 @@ public java.util.List getSpokesLi * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSpokesOrBuilderList() { return spokes_; } /** + * + * *
    * The requested spokes.
    * 
@@ -88,6 +114,8 @@ public int getSpokesCount() { return spokes_.size(); } /** + * + * *
    * The requested spokes.
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index) { return spokes_.get(index); } /** + * + * *
    * The requested spokes.
    * 
@@ -106,21 +136,24 @@ public com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index) { * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder(int index) { return spokes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +162,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -161,37 +194,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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. */ @@ -199,20 +241,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; @@ -224,8 +269,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < spokes_.size(); i++) { output.writeMessage(1, spokes_.get(i)); } @@ -245,8 +289,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < spokes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, spokes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, spokes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +310,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.networkconnectivity.v1.ListSpokesResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListSpokesResponse other = (com.google.cloud.networkconnectivity.v1.ListSpokesResponse) obj; + com.google.cloud.networkconnectivity.v1.ListSpokesResponse other = + (com.google.cloud.networkconnectivity.v1.ListSpokesResponse) obj; - if (!getSpokesList() - .equals(other.getSpokesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getSpokesList().equals(other.getSpokesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +348,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListSpokesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.ListSpokesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListSpokesResponse) com.google.cloud.networkconnectivity.v1.ListSpokesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, + com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.ListSpokesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; } @java.lang.Override @@ -469,14 +517,18 @@ public com.google.cloud.networkconnectivity.v1.ListSpokesResponse build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.ListSpokesResponse buildPartial() { - com.google.cloud.networkconnectivity.v1.ListSpokesResponse result = new com.google.cloud.networkconnectivity.v1.ListSpokesResponse(this); + com.google.cloud.networkconnectivity.v1.ListSpokesResponse result = + new com.google.cloud.networkconnectivity.v1.ListSpokesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.ListSpokesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1.ListSpokesResponse result) { if (spokesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { spokes_ = java.util.Collections.unmodifiableList(spokes_); @@ -504,38 +556,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListSpokesRes public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.ListSpokesResponse) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesResponse)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesResponse) other); } else { super.mergeFrom(other); return this; @@ -543,7 +596,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListSpokesResponse other) { - if (other == com.google.cloud.networkconnectivity.v1.ListSpokesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1.ListSpokesResponse.getDefaultInstance()) + return this; if (spokesBuilder_ == null) { if (!other.spokes_.isEmpty()) { if (spokes_.isEmpty()) { @@ -562,9 +616,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListSpokesRespo spokesBuilder_ = null; spokes_ = other.spokes_; bitField0_ = (bitField0_ & ~0x00000001); - spokesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSpokesFieldBuilder() : null; + spokesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSpokesFieldBuilder() + : null; } else { spokesBuilder_.addAllMessages(other.spokes_); } @@ -611,36 +666,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.networkconnectivity.v1.Spoke m = - input.readMessage( - com.google.cloud.networkconnectivity.v1.Spoke.parser(), - extensionRegistry); - if (spokesBuilder_ == null) { - ensureSpokesIsMutable(); - spokes_.add(m); - } else { - spokesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.networkconnectivity.v1.Spoke m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.Spoke.parser(), extensionRegistry); + if (spokesBuilder_ == null) { + ensureSpokesIsMutable(); + spokes_.add(m); + } else { + spokesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,21 +708,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List spokes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSpokesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { spokes_ = new java.util.ArrayList(spokes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> spokesBuilder_; + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + spokesBuilder_; /** + * + * *
      * The requested spokes.
      * 
@@ -679,6 +744,8 @@ public java.util.List getSpokesLi } } /** + * + * *
      * The requested spokes.
      * 
@@ -693,6 +760,8 @@ public int getSpokesCount() { } } /** + * + * *
      * The requested spokes.
      * 
@@ -707,14 +776,15 @@ public com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index) { } } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public Builder setSpokes( - int index, com.google.cloud.networkconnectivity.v1.Spoke value) { + public Builder setSpokes(int index, com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -728,6 +798,8 @@ public Builder setSpokes( return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -746,6 +818,8 @@ public Builder setSpokes( return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -766,14 +840,15 @@ public Builder addSpokes(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public Builder addSpokes( - int index, com.google.cloud.networkconnectivity.v1.Spoke value) { + public Builder addSpokes(int index, com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -787,6 +862,8 @@ public Builder addSpokes( return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -805,6 +882,8 @@ public Builder addSpokes( return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -823,6 +902,8 @@ public Builder addSpokes( return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -833,8 +914,7 @@ public Builder addAllSpokes( java.lang.Iterable values) { if (spokesBuilder_ == null) { ensureSpokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, spokes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spokes_); onChanged(); } else { spokesBuilder_.addAllMessages(values); @@ -842,6 +922,8 @@ public Builder addAllSpokes( return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -859,6 +941,8 @@ public Builder clearSpokes() { return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -876,39 +960,44 @@ public Builder removeSpokes(int index) { return this; } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokesBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokesBuilder(int index) { return getSpokesFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder(int index) { if (spokesBuilder_ == null) { - return spokes_.get(index); } else { + return spokes_.get(index); + } else { return spokesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public java.util.List - getSpokesOrBuilderList() { + public java.util.List + getSpokesOrBuilderList() { if (spokesBuilder_ != null) { return spokesBuilder_.getMessageOrBuilderList(); } else { @@ -916,6 +1005,8 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder } } /** + * + * *
      * The requested spokes.
      * 
@@ -923,42 +1014,48 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder() { - return getSpokesFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); + return getSpokesFieldBuilder() + .addBuilder(com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder( - int index) { - return getSpokesFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder(int index) { + return getSpokesFieldBuilder() + .addBuilder(index, com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public java.util.List - getSpokesBuilderList() { + public java.util.List + getSpokesBuilderList() { return getSpokesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> getSpokesFieldBuilder() { if (spokesBuilder_ == null) { - spokesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( - spokes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + spokesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( + spokes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); spokes_ = null; } return spokesBuilder_; @@ -966,19 +1063,21 @@ public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -987,21 +1086,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1009,30 +1109,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1149,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1172,52 @@ public Builder setNextPageTokenBytes( 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * 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. */ @@ -1104,76 +1225,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) { - if (value == null) { throw new NullPointerException(); } + 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(); } + 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) { + 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() { @@ -1183,26 +1318,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) { - if (value == null) { throw new NullPointerException(); } + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1212,12 +1351,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListSpokesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListSpokesResponse) private static final com.google.cloud.networkconnectivity.v1.ListSpokesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListSpokesResponse(); } @@ -1226,27 +1365,27 @@ public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1261,6 +1400,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListSpokesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java index 834b94da7b71..212e8ce02a58 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListSpokesResponseOrBuilder extends +public interface ListSpokesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListSpokesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested spokes.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - java.util.List - getSpokesList(); + java.util.List getSpokesList(); /** + * + * *
    * The requested spokes.
    * 
@@ -25,6 +44,8 @@ public interface ListSpokesResponseOrBuilder extends */ com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index); /** + * + * *
    * The requested spokes.
    * 
@@ -33,84 +54,102 @@ public interface ListSpokesResponseOrBuilder extends */ int getSpokesCount(); /** + * + * *
    * The requested spokes.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - java.util.List + java.util.List getSpokesOrBuilderList(); /** + * + * *
    * The requested spokes.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder( - int index); + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder(int index); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java index 42e0a5d62865..6aa822e09f36 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Supported features for a location
  * 
* * Protobuf enum {@code google.cloud.networkconnectivity.v1.LocationFeature} */ -public enum LocationFeature - implements com.google.protobuf.ProtocolMessageEnum { +public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * No publicly supported feature in this location
    * 
@@ -21,6 +39,8 @@ public enum LocationFeature */ LOCATION_FEATURE_UNSPECIFIED(0), /** + * + * *
    * Site-to-cloud spokes are supported in this location
    * 
@@ -29,6 +49,8 @@ public enum LocationFeature */ SITE_TO_CLOUD_SPOKES(1), /** + * + * *
    * Site-to-site spokes are supported in this location
    * 
@@ -40,6 +62,8 @@ public enum LocationFeature ; /** + * + * *
    * No publicly supported feature in this location
    * 
@@ -48,6 +72,8 @@ public enum LocationFeature */ public static final int LOCATION_FEATURE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Site-to-cloud spokes are supported in this location
    * 
@@ -56,6 +82,8 @@ public enum LocationFeature */ public static final int SITE_TO_CLOUD_SPOKES_VALUE = 1; /** + * + * *
    * Site-to-site spokes are supported in this location
    * 
@@ -64,7 +92,6 @@ public enum LocationFeature */ public static final int SITE_TO_SITE_SPOKES_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,49 +116,49 @@ public static LocationFeature valueOf(int value) { */ public static LocationFeature forNumber(int value) { switch (value) { - case 0: return LOCATION_FEATURE_UNSPECIFIED; - case 1: return SITE_TO_CLOUD_SPOKES; - case 2: return SITE_TO_SITE_SPOKES; - default: return null; + case 0: + return LOCATION_FEATURE_UNSPECIFIED; + case 1: + return SITE_TO_CLOUD_SPOKES; + case 2: + return SITE_TO_SITE_SPOKES; + 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< - LocationFeature> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LocationFeature findValueByNumber(int number) { - return LocationFeature.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 LocationFeature findValueByNumber(int number) { + return LocationFeature.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.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(1); } private static final LocationFeature[] VALUES = values(); - public static LocationFeature valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static LocationFeature valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -147,4 +174,3 @@ private LocationFeature(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.LocationFeature) } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java index 2f0e5ab71614..b9e4e2f54e66 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java @@ -1,84 +1,120 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Metadata about locations
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.LocationMetadata} */ -public final class LocationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LocationMetadata) LocationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LocationMetadata.newBuilder() to construct. private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LocationMetadata() { locationFeatures_ = 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 LocationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.LocationMetadata.class, com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.LocationMetadata.class, + com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); } public static final int LOCATION_FEATURES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List locationFeatures_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature> locationFeatures_converter_ = + java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature> + locationFeatures_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>() { - public com.google.cloud.networkconnectivity.v1.LocationFeature convert(java.lang.Integer from) { - com.google.cloud.networkconnectivity.v1.LocationFeature result = com.google.cloud.networkconnectivity.v1.LocationFeature.forNumber(from); - return result == null ? com.google.cloud.networkconnectivity.v1.LocationFeature.UNRECOGNIZED : result; + public com.google.cloud.networkconnectivity.v1.LocationFeature convert( + java.lang.Integer from) { + com.google.cloud.networkconnectivity.v1.LocationFeature result = + com.google.cloud.networkconnectivity.v1.LocationFeature.forNumber(from); + return result == null + ? com.google.cloud.networkconnectivity.v1.LocationFeature.UNRECOGNIZED + : result; } }; /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return A list containing the locationFeatures. */ @java.lang.Override - public java.util.List getLocationFeaturesList() { + public java.util.List + getLocationFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>(locationFeatures_, locationFeatures_converter_); + java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>( + locationFeatures_, locationFeatures_converter_); } /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return The count of locationFeatures. */ @java.lang.Override @@ -86,11 +122,15 @@ public int getLocationFeaturesCount() { return locationFeatures_.size(); } /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index of the element to return. * @return The locationFeatures at the given index. */ @@ -99,24 +139,31 @@ public com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatur return locationFeatures_converter_.convert(locationFeatures_.get(index)); } /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return A list containing the enum numeric values on the wire for locationFeatures. */ @java.lang.Override - public java.util.List - getLocationFeaturesValueList() { + public java.util.List getLocationFeaturesValueList() { return locationFeatures_; } /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of locationFeatures at the given index. */ @@ -124,9 +171,11 @@ public com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatur public int getLocationFeaturesValue(int index) { return locationFeatures_.get(index); } + private int locationFeaturesMemoizedSerializedSize; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +187,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getLocationFeaturesList().size() > 0) { output.writeUInt32NoTag(10); @@ -160,14 +208,15 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < locationFeatures_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(locationFeatures_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(locationFeatures_.get(i)); } size += dataSize; - if (!getLocationFeaturesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }locationFeaturesMemoizedSerializedSize = dataSize; + if (!getLocationFeaturesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + locationFeaturesMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,12 +226,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.networkconnectivity.v1.LocationMetadata)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LocationMetadata other = (com.google.cloud.networkconnectivity.v1.LocationMetadata) obj; + com.google.cloud.networkconnectivity.v1.LocationMetadata other = + (com.google.cloud.networkconnectivity.v1.LocationMetadata) obj; if (!locationFeatures_.equals(other.locationFeatures_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -206,129 +256,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LocationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.LocationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata about locations
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.LocationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LocationMetadata) com.google.cloud.networkconnectivity.v1.LocationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.LocationMetadata.class, com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.LocationMetadata.class, + com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.LocationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +396,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; } @java.lang.Override @@ -360,14 +417,18 @@ public com.google.cloud.networkconnectivity.v1.LocationMetadata build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.LocationMetadata buildPartial() { - com.google.cloud.networkconnectivity.v1.LocationMetadata result = new com.google.cloud.networkconnectivity.v1.LocationMetadata(this); + com.google.cloud.networkconnectivity.v1.LocationMetadata result = + new com.google.cloud.networkconnectivity.v1.LocationMetadata(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LocationMetadata result) { + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1.LocationMetadata result) { if (((bitField0_ & 0x00000001) != 0)) { locationFeatures_ = java.util.Collections.unmodifiableList(locationFeatures_); bitField0_ = (bitField0_ & ~0x00000001); @@ -383,38 +444,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LocationMetad public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.LocationMetadata) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.LocationMetadata)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.LocationMetadata) other); } else { super.mergeFrom(other); return this; @@ -422,7 +484,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LocationMetadata other) { - if (other == com.google.cloud.networkconnectivity.v1.LocationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1.LocationMetadata.getDefaultInstance()) + return this; if (!other.locationFeatures_.isEmpty()) { if (locationFeatures_.isEmpty()) { locationFeatures_ = other.locationFeatures_; @@ -459,29 +522,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - int tmpRaw = input.readEnum(); - ensureLocationFeaturesIsMutable(); - locationFeatures_.add(tmpRaw); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 8: + { int tmpRaw = input.readEnum(); ensureLocationFeaturesIsMutable(); locationFeatures_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureLocationFeaturesIsMutable(); + locationFeatures_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -491,10 +557,11 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List locationFeatures_ = - java.util.Collections.emptyList(); + private java.util.List locationFeatures_ = java.util.Collections.emptyList(); + private void ensureLocationFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { locationFeatures_ = new java.util.ArrayList(locationFeatures_); @@ -502,34 +569,48 @@ private void ensureLocationFeaturesIsMutable() { } } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return A list containing the locationFeatures. */ - public java.util.List getLocationFeaturesList() { + public java.util.List + getLocationFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>(locationFeatures_, locationFeatures_converter_); + java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>( + locationFeatures_, locationFeatures_converter_); } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return The count of locationFeatures. */ public int getLocationFeaturesCount() { return locationFeatures_.size(); } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index of the element to return. * @return The locationFeatures at the given index. */ @@ -537,11 +618,15 @@ public com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatur return locationFeatures_converter_.convert(locationFeatures_.get(index)); } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index to set the value at. * @param value The locationFeatures to set. * @return This builder for chaining. @@ -557,15 +642,20 @@ public Builder setLocationFeatures( return this; } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param value The locationFeatures to add. * @return This builder for chaining. */ - public Builder addLocationFeatures(com.google.cloud.networkconnectivity.v1.LocationFeature value) { + public Builder addLocationFeatures( + com.google.cloud.networkconnectivity.v1.LocationFeature value) { if (value == null) { throw new NullPointerException(); } @@ -575,16 +665,21 @@ public Builder addLocationFeatures(com.google.cloud.networkconnectivity.v1.Locat return this; } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param values The locationFeatures to add. * @return This builder for chaining. */ public Builder addAllLocationFeatures( - java.lang.Iterable values) { + java.lang.Iterable + values) { ensureLocationFeaturesIsMutable(); for (com.google.cloud.networkconnectivity.v1.LocationFeature value : values) { locationFeatures_.add(value.getNumber()); @@ -593,11 +688,15 @@ public Builder addAllLocationFeatures( return this; } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return This builder for chaining. */ public Builder clearLocationFeatures() { @@ -607,23 +706,30 @@ public Builder clearLocationFeatures() { return this; } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return A list containing the enum numeric values on the wire for locationFeatures. */ - public java.util.List - getLocationFeaturesValueList() { + public java.util.List getLocationFeaturesValueList() { return java.util.Collections.unmodifiableList(locationFeatures_); } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of locationFeatures at the given index. */ @@ -631,28 +737,35 @@ public int getLocationFeaturesValue(int index) { return locationFeatures_.get(index); } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for locationFeatures to set. * @return This builder for chaining. */ - public Builder setLocationFeaturesValue( - int index, int value) { + public Builder setLocationFeaturesValue(int index, int value) { ensureLocationFeaturesIsMutable(); locationFeatures_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param value The enum numeric value on the wire for locationFeatures to add. * @return This builder for chaining. */ @@ -663,16 +776,19 @@ public Builder addLocationFeaturesValue(int value) { return this; } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param values The enum numeric values on the wire for locationFeatures to add. * @return This builder for chaining. */ - public Builder addAllLocationFeaturesValue( - java.lang.Iterable values) { + public Builder addAllLocationFeaturesValue(java.lang.Iterable values) { ensureLocationFeaturesIsMutable(); for (int value : values) { locationFeatures_.add(value); @@ -680,9 +796,9 @@ public Builder addAllLocationFeaturesValue( onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -692,12 +808,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LocationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LocationMetadata) private static final com.google.cloud.networkconnectivity.v1.LocationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LocationMetadata(); } @@ -706,27 +822,27 @@ public static com.google.cloud.networkconnectivity.v1.LocationMetadata getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -741,6 +857,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.LocationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java similarity index 62% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java index f8b387b0a5a2..f42007f563f6 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java @@ -1,56 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LocationMetadataOrBuilder extends +public interface LocationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LocationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return A list containing the locationFeatures. */ java.util.List getLocationFeaturesList(); /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return The count of locationFeatures. */ int getLocationFeaturesCount(); /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index of the element to return. * @return The locationFeatures at the given index. */ com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatures(int index); /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return A list containing the enum numeric values on the wire for locationFeatures. */ - java.util.List - getLocationFeaturesValueList(); + java.util.List getLocationFeaturesValueList(); /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of locationFeatures at the given index. */ diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java index ccff6a11ac7c..ecb829230dfd 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/common.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,37 +46,42 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.OperationMetadata.class, + com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -66,11 +89,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -78,11 +105,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -92,11 +122,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -104,11 +138,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -116,11 +154,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -128,14 +169,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -144,29 +189,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -175,14 +220,18 @@ public java.lang.String getTarget() { } public static final int VERB_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -191,29 +240,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -222,14 +271,18 @@ public java.lang.String getVerb() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -238,29 +291,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -271,6 +324,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have been cancelled successfully
@@ -279,6 +334,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -287,14 +343,18 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -303,29 +363,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -334,6 +394,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -345,8 +406,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -378,12 +438,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_); @@ -395,8 +453,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_); @@ -409,33 +466,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.networkconnectivity.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.OperationMetadata other = (com.google.cloud.networkconnectivity.v1.OperationMetadata) obj; + com.google.cloud.networkconnectivity.v1.OperationMetadata other = + (com.google.cloud.networkconnectivity.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -462,8 +513,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) + getUnknownFields().hashCode(); @@ -472,129 +522,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.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.networkconnectivity.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.OperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.OperationMetadata) com.google.cloud.networkconnectivity.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.OperationMetadata.class, + com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.OperationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -618,9 +675,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -639,8 +696,11 @@ public com.google.cloud.networkconnectivity.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.OperationMetadata buildPartial() { - com.google.cloud.networkconnectivity.v1.OperationMetadata result = new com.google.cloud.networkconnectivity.v1.OperationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1.OperationMetadata result = + new com.google.cloud.networkconnectivity.v1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -648,14 +708,10 @@ public com.google.cloud.networkconnectivity.v1.OperationMetadata buildPartial() private void buildPartial0(com.google.cloud.networkconnectivity.v1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -678,38 +734,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.OperationMeta public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.OperationMetadata)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -717,7 +774,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.OperationMetadata other) { - if (other == com.google.cloud.networkconnectivity.v1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -773,51 +831,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -827,43 +889,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time 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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -879,14 +961,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -897,17 +982,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -920,11 +1009,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -937,11 +1030,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -949,36 +1046,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -986,24 +1095,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1014,11 +1134,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1034,14 +1157,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1052,17 +1177,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1075,11 +1203,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1092,11 +1223,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1104,36 +1238,44 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1141,18 +1283,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1161,20 +1305,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1182,28 +1327,35 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1213,17 +1365,21 @@ public Builder clearTarget() { return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1233,18 +1389,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1253,20 +1411,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1274,28 +1433,35 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1305,17 +1471,21 @@ public Builder clearVerb() { return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1325,18 +1495,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1345,20 +1517,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1366,28 +1539,35 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1397,17 +1577,21 @@ public Builder clearStatusMessage() { return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1415,8 +1599,10 @@ public Builder setStatusMessageBytes( return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
@@ -1425,6 +1611,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1432,6 +1619,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
@@ -1440,17 +1629,20 @@ 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
@@ -1459,6 +1651,7 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1470,18 +1663,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1490,20 +1685,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1511,28 +1707,35 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1542,26 +1745,30 @@ public Builder clearApiVersion() { return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1571,12 +1778,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.OperationMetadata) private static final com.google.cloud.networkconnectivity.v1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.OperationMetadata(); } @@ -1585,27 +1792,27 @@ public static com.google.cloud.networkconnectivity.v1.OperationMetadata getDefau 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1620,6 +1827,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java index f4be0419ee4b..217a088b5a3d 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/common.proto package com.google.cloud.networkconnectivity.v1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have been cancelled successfully
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java similarity index 65% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java index f5db4526d106..a7f89bd714c6 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * A router appliance instance is a Compute Engine virtual machine (VM) instance
  * that acts as a BGP speaker. A router appliance instance is specified by the
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.RouterApplianceInstance}
  */
-public final class RouterApplianceInstance extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RouterApplianceInstance extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.RouterApplianceInstance)
     RouterApplianceInstanceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RouterApplianceInstance.newBuilder() to construct.
   private RouterApplianceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RouterApplianceInstance() {
     virtualMachine_ = "";
     ipAddress_ = "";
@@ -29,38 +47,43 @@ private RouterApplianceInstance() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RouterApplianceInstance();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
+            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class,
+            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
   }
 
   public static final int VIRTUAL_MACHINE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object virtualMachine_ = "";
   /**
+   *
+   *
    * 
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The virtualMachine. */ @java.lang.Override @@ -69,29 +92,29 @@ public java.lang.String getVirtualMachine() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; } } /** + * + * *
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for virtualMachine. */ @java.lang.Override - public com.google.protobuf.ByteString - getVirtualMachineBytes() { + public com.google.protobuf.ByteString getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -100,14 +123,18 @@ public java.lang.String getVirtualMachine() { } public static final int IP_ADDRESS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object ipAddress_ = ""; /** + * + * *
    * The IP address on the VM to use for peering.
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ @java.lang.Override @@ -116,29 +143,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; } } /** + * + * *
    * The IP address on the VM to use for peering.
    * 
* * 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 { @@ -147,6 +174,7 @@ public java.lang.String getIpAddress() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -158,8 +186,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualMachine_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, virtualMachine_); } @@ -189,17 +216,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.networkconnectivity.v1.RouterApplianceInstance)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other = (com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) obj; + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other = + (com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) obj; - if (!getVirtualMachine() - .equals(other.getVirtualMachine())) return false; - if (!getIpAddress() - .equals(other.getIpAddress())) return false; + if (!getVirtualMachine().equals(other.getVirtualMachine())) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -221,96 +247,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 router appliance instance is a Compute Engine virtual machine (VM) instance
    * that acts as a BGP speaker. A router appliance instance is specified by the
@@ -320,33 +354,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.RouterApplianceInstance}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.RouterApplianceInstance)
       com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
+              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class,
+              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -357,13 +390,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getDefaultInstanceForType() {
+    public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance
+        getDefaultInstanceForType() {
       return com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance();
     }
 
@@ -378,13 +412,17 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance buildPartial() {
-      com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result = new com.google.cloud.networkconnectivity.v1.RouterApplianceInstance(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result =
+          new com.google.cloud.networkconnectivity.v1.RouterApplianceInstance(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result) {
+    private void buildPartial0(
+        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.virtualMachine_ = virtualMachine_;
@@ -398,46 +436,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.RouterApplian
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.RouterApplianceInstance)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other) {
-      if (other == com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other) {
+      if (other
+          == com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance())
+        return this;
       if (!other.getVirtualMachine().isEmpty()) {
         virtualMachine_ = other.virtualMachine_;
         bitField0_ |= 0x00000001;
@@ -474,22 +516,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              virtualMachine_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 26: {
-              ipAddress_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                virtualMachine_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 26:
+              {
+                ipAddress_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -499,22 +544,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object virtualMachine_ = "";
     /**
+     *
+     *
      * 
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The virtualMachine. */ public java.lang.String getVirtualMachine() { java.lang.Object ref = virtualMachine_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; @@ -523,20 +571,21 @@ public java.lang.String getVirtualMachine() { } } /** + * + * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for virtualMachine. */ - public com.google.protobuf.ByteString - getVirtualMachineBytes() { + public com.google.protobuf.ByteString getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -544,28 +593,35 @@ public java.lang.String getVirtualMachine() { } } /** + * + * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @param value The virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachine( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVirtualMachine(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } virtualMachine_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearVirtualMachine() { @@ -575,17 +631,21 @@ public Builder clearVirtualMachine() { return this; } /** + * + * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachineBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVirtualMachineBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); virtualMachine_ = value; bitField0_ |= 0x00000001; @@ -595,18 +655,20 @@ public Builder setVirtualMachineBytes( private java.lang.Object ipAddress_ = ""; /** + * + * *
      * The IP address on the VM to use for peering.
      * 
* * 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; @@ -615,20 +677,21 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The IP address on the VM to use for peering.
      * 
* * 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 { @@ -636,28 +699,35 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The IP address on the VM to use for peering.
      * 
* * 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(); } + public Builder setIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ipAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The IP address on the VM to use for peering.
      * 
* * string ip_address = 3; + * * @return This builder for chaining. */ public Builder clearIpAddress() { @@ -667,26 +737,30 @@ public Builder clearIpAddress() { return this; } /** + * + * *
      * The IP address on the VM to use for peering.
      * 
* * 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(); } + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ipAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -696,41 +770,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.RouterApplianceInstance) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.RouterApplianceInstance) - private static final com.google.cloud.networkconnectivity.v1.RouterApplianceInstance DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1.RouterApplianceInstance + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.RouterApplianceInstance(); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouterApplianceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouterApplianceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -742,9 +818,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java similarity index 57% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java index 1ea6f2cf0b21..e9f532da2fd6 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface RouterApplianceInstanceOrBuilder extends +public interface RouterApplianceInstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.RouterApplianceInstance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The virtualMachine. */ java.lang.String getVirtualMachine(); /** + * + * *
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for virtualMachine. */ - com.google.protobuf.ByteString - getVirtualMachineBytes(); + com.google.protobuf.ByteString getVirtualMachineBytes(); /** + * + * *
    * The IP address on the VM to use for peering.
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ java.lang.String getIpAddress(); /** + * + * *
    * The IP address on the VM to use for peering.
    * 
* * string ip_address = 3; + * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString - getIpAddressBytes(); + com.google.protobuf.ByteString getIpAddressBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java similarity index 66% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java index 77bd73953b9b..24b9634f2eb3 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * RoutingVPC contains information about the VPC networks that are associated
  * with a hub's spokes.
@@ -11,53 +28,59 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.RoutingVPC}
  */
-public final class RoutingVPC extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RoutingVPC extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.RoutingVPC)
     RoutingVPCOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RoutingVPC.newBuilder() to construct.
   private RoutingVPC(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RoutingVPC() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RoutingVPC();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.RoutingVPC.class, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class);
+            com.google.cloud.networkconnectivity.v1.RoutingVPC.class,
+            com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class);
   }
 
   public static final int URI_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object uri_ = "";
   /**
+   *
+   *
    * 
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return The uri. */ @java.lang.Override @@ -66,29 +89,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -99,6 +122,8 @@ public java.lang.String getUri() { public static final int REQUIRED_FOR_NEW_SITE_TO_SITE_DATA_TRANSFER_SPOKES_FIELD_NUMBER = 2; private boolean requiredForNewSiteToSiteDataTransferSpokes_ = false; /** + * + * *
    * Output only. If true, indicates that this VPC network is currently associated with
    * spokes that use the data transfer feature (spokes where the
@@ -107,7 +132,10 @@ public java.lang.String getUri() {
    * most, one VPC network will have this field set to true.
    * 
* - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The requiredForNewSiteToSiteDataTransferSpokes. */ @java.lang.Override @@ -116,6 +144,7 @@ public boolean getRequiredForNewSiteToSiteDataTransferSpokes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,8 +156,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -148,8 +176,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (requiredForNewSiteToSiteDataTransferSpokes_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, requiredForNewSiteToSiteDataTransferSpokes_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 2, requiredForNewSiteToSiteDataTransferSpokes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -159,15 +188,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.networkconnectivity.v1.RoutingVPC)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.RoutingVPC other = (com.google.cloud.networkconnectivity.v1.RoutingVPC) obj; + com.google.cloud.networkconnectivity.v1.RoutingVPC other = + (com.google.cloud.networkconnectivity.v1.RoutingVPC) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (getRequiredForNewSiteToSiteDataTransferSpokes() != other.getRequiredForNewSiteToSiteDataTransferSpokes()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -184,104 +213,113 @@ public int hashCode() { hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + REQUIRED_FOR_NEW_SITE_TO_SITE_DATA_TRANSFER_SPOKES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequiredForNewSiteToSiteDataTransferSpokes()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getRequiredForNewSiteToSiteDataTransferSpokes()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.RoutingVPC prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * RoutingVPC contains information about the VPC networks that are associated
    * with a hub's spokes.
@@ -289,33 +327,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.RoutingVPC}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.RoutingVPC)
       com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.RoutingVPC.class, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class);
+              com.google.cloud.networkconnectivity.v1.RoutingVPC.class,
+              com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.RoutingVPC.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -326,9 +363,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
     }
 
     @java.lang.Override
@@ -347,8 +384,11 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.RoutingVPC buildPartial() {
-      com.google.cloud.networkconnectivity.v1.RoutingVPC result = new com.google.cloud.networkconnectivity.v1.RoutingVPC(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.RoutingVPC result =
+          new com.google.cloud.networkconnectivity.v1.RoutingVPC(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -359,7 +399,8 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.RoutingVPC re
         result.uri_ = uri_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.requiredForNewSiteToSiteDataTransferSpokes_ = requiredForNewSiteToSiteDataTransferSpokes_;
+        result.requiredForNewSiteToSiteDataTransferSpokes_ =
+            requiredForNewSiteToSiteDataTransferSpokes_;
       }
     }
 
@@ -367,38 +408,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.RoutingVPC re
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.RoutingVPC) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.RoutingVPC)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.RoutingVPC) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -406,14 +448,16 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.RoutingVPC other) {
-      if (other == com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance())
+        return this;
       if (!other.getUri().isEmpty()) {
         uri_ = other.uri_;
         bitField0_ |= 0x00000001;
         onChanged();
       }
       if (other.getRequiredForNewSiteToSiteDataTransferSpokes() != false) {
-        setRequiredForNewSiteToSiteDataTransferSpokes(other.getRequiredForNewSiteToSiteDataTransferSpokes());
+        setRequiredForNewSiteToSiteDataTransferSpokes(
+            other.getRequiredForNewSiteToSiteDataTransferSpokes());
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -441,22 +485,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              uri_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              requiredForNewSiteToSiteDataTransferSpokes_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                uri_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                requiredForNewSiteToSiteDataTransferSpokes_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -466,22 +513,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object uri_ = "";
     /**
+     *
+     *
      * 
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -490,20 +540,21 @@ public java.lang.String getUri() { } } /** + * + * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -511,28 +562,35 @@ public java.lang.String getUri() { } } /** + * + * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearUri() { @@ -542,17 +600,21 @@ public Builder clearUri() { return this; } /** + * + * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000001; @@ -560,8 +622,10 @@ public Builder setUriBytes( return this; } - private boolean requiredForNewSiteToSiteDataTransferSpokes_ ; + private boolean requiredForNewSiteToSiteDataTransferSpokes_; /** + * + * *
      * Output only. If true, indicates that this VPC network is currently associated with
      * spokes that use the data transfer feature (spokes where the
@@ -570,7 +634,10 @@ public Builder setUriBytes(
      * most, one VPC network will have this field set to true.
      * 
* - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The requiredForNewSiteToSiteDataTransferSpokes. */ @java.lang.Override @@ -578,6 +645,8 @@ public boolean getRequiredForNewSiteToSiteDataTransferSpokes() { return requiredForNewSiteToSiteDataTransferSpokes_; } /** + * + * *
      * Output only. If true, indicates that this VPC network is currently associated with
      * spokes that use the data transfer feature (spokes where the
@@ -586,18 +655,23 @@ public boolean getRequiredForNewSiteToSiteDataTransferSpokes() {
      * most, one VPC network will have this field set to true.
      * 
* - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The requiredForNewSiteToSiteDataTransferSpokes to set. * @return This builder for chaining. */ public Builder setRequiredForNewSiteToSiteDataTransferSpokes(boolean value) { - + requiredForNewSiteToSiteDataTransferSpokes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. If true, indicates that this VPC network is currently associated with
      * spokes that use the data transfer feature (spokes where the
@@ -606,7 +680,10 @@ public Builder setRequiredForNewSiteToSiteDataTransferSpokes(boolean value) {
      * most, one VPC network will have this field set to true.
      * 
* - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearRequiredForNewSiteToSiteDataTransferSpokes() { @@ -615,9 +692,9 @@ public Builder clearRequiredForNewSiteToSiteDataTransferSpokes() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,12 +704,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.RoutingVPC) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.RoutingVPC) private static final com.google.cloud.networkconnectivity.v1.RoutingVPC DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.RoutingVPC(); } @@ -641,27 +718,27 @@ public static com.google.cloud.networkconnectivity.v1.RoutingVPC getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RoutingVPC parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoutingVPC parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -676,6 +753,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.RoutingVPC getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java similarity index 58% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java index ef146aa507bc..017e8c5e14ab 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface RoutingVPCOrBuilder extends +public interface RoutingVPCOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.RoutingVPC) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * Output only. If true, indicates that this VPC network is currently associated with
    * spokes that use the data transfer feature (spokes where the
@@ -36,7 +59,10 @@ public interface RoutingVPCOrBuilder extends
    * most, one VPC network will have this field set to true.
    * 
* - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The requiredForNewSiteToSiteDataTransferSpokes. */ boolean getRequiredForNewSiteToSiteDataTransferSpokes(); diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java similarity index 63% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java index 61ec9b74b59f..555a80acf7e7 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * A spoke represents a connection between your Google Cloud network resources
  * and a non-Google-Cloud network.
@@ -16,15 +33,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.Spoke}
  */
-public final class Spoke extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Spoke extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.Spoke)
     SpokeOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Spoke.newBuilder() to construct.
   private Spoke(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Spoke() {
     name_ = "";
     description_ = "";
@@ -35,45 +53,48 @@ private Spoke() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Spoke();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.Spoke.class, com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
+            com.google.cloud.networkconnectivity.v1.Spoke.class,
+            com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -81,6 +102,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -89,14 +111,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; } } /** + * + * *
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -104,16 +127,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -124,11 +146,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the spoke was created.
    * 
* - * .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 @@ -136,11 +162,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the spoke was created.
    * 
* - * .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 @@ -148,11 +178,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the spoke was created.
    * 
* - * .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() { @@ -162,11 +195,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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 @@ -174,11 +211,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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 @@ -186,11 +227,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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() { @@ -198,32 +242,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_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.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - 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_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -233,20 +279,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 4;
    */
   @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();
   }
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -260,6 +307,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -269,17 +318,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      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;
   }
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -289,11 +340,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new 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();
     }
@@ -301,14 +352,18 @@ public java.lang.String getLabelsOrThrow(
   }
 
   public static final int DESCRIPTION_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object description_ = "";
   /**
+   *
+   *
    * 
    * An optional description of the spoke.
    * 
* * string description = 5; + * * @return The description. */ @java.lang.Override @@ -317,29 +372,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * An optional description of the spoke.
    * 
* * string description = 5; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -348,14 +403,20 @@ public java.lang.String getDescription() { } public static final int HUB_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object hub_ = ""; /** + * + * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The hub. */ @java.lang.Override @@ -364,29 +425,31 @@ public java.lang.String getHub() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; } } /** + * + * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for hub. */ @java.lang.Override - public com.google.protobuf.ByteString - getHubBytes() { + public com.google.protobuf.ByteString getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hub_ = b; return b; } else { @@ -397,11 +460,14 @@ public java.lang.String getHub() { public static final int LINKED_VPN_TUNNELS_FIELD_NUMBER = 17; private com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linkedVpnTunnels_; /** + * + * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; + * * @return Whether the linkedVpnTunnels field is set. */ @java.lang.Override @@ -409,18 +475,25 @@ public boolean hasLinkedVpnTunnels() { return linkedVpnTunnels_ != null; } /** + * + * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; + * * @return The linkedVpnTunnels. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunnels() { - return linkedVpnTunnels_ == null ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; + return linkedVpnTunnels_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() + : linkedVpnTunnels_; } /** + * + * *
    * VPN tunnels that are associated with the spoke.
    * 
@@ -428,18 +501,27 @@ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunn * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLinkedVpnTunnelsOrBuilder() { - return linkedVpnTunnels_ == null ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder + getLinkedVpnTunnelsOrBuilder() { + return linkedVpnTunnels_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() + : linkedVpnTunnels_; } public static final int LINKED_INTERCONNECT_ATTACHMENTS_FIELD_NUMBER = 18; - private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linkedInterconnectAttachments_; + private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + linkedInterconnectAttachments_; /** + * + * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * * @return Whether the linkedInterconnectAttachments field is set. */ @java.lang.Override @@ -447,37 +529,58 @@ public boolean hasLinkedInterconnectAttachments() { return linkedInterconnectAttachments_ != null; } /** + * + * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * * @return The linkedInterconnectAttachments. */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getLinkedInterconnectAttachments() { - return linkedInterconnectAttachments_ == null ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + getLinkedInterconnectAttachments() { + return linkedInterconnectAttachments_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() + : linkedInterconnectAttachments_; } /** + * + * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder getLinkedInterconnectAttachmentsOrBuilder() { - return linkedInterconnectAttachments_ == null ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder + getLinkedInterconnectAttachmentsOrBuilder() { + return linkedInterconnectAttachments_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() + : linkedInterconnectAttachments_; } public static final int LINKED_ROUTER_APPLIANCE_INSTANCES_FIELD_NUMBER = 19; - private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linkedRouterApplianceInstances_; + private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + linkedRouterApplianceInstances_; /** + * + * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * * @return Whether the linkedRouterApplianceInstances field is set. */ @java.lang.Override @@ -485,33 +588,53 @@ public boolean hasLinkedRouterApplianceInstances() { return linkedRouterApplianceInstances_ != null; } /** + * + * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * * @return The linkedRouterApplianceInstances. */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getLinkedRouterApplianceInstances() { - return linkedRouterApplianceInstances_ == null ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + getLinkedRouterApplianceInstances() { + return linkedRouterApplianceInstances_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + .getDefaultInstance() + : linkedRouterApplianceInstances_; } /** + * + * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder getLinkedRouterApplianceInstancesOrBuilder() { - return linkedRouterApplianceInstances_ == null ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder + getLinkedRouterApplianceInstancesOrBuilder() { + return linkedRouterApplianceInstances_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + .getDefaultInstance() + : linkedRouterApplianceInstances_; } public static final int UNIQUE_ID_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** + * + * *
    * Output only. The Google-generated UUID for the spoke. This value is unique across all
    * spoke resources. If a spoke is deleted and another with the same name is
@@ -519,6 +642,7 @@ public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrB
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ @java.lang.Override @@ -527,14 +651,15 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** + * + * *
    * Output only. The Google-generated UUID for the spoke. This value is unique across all
    * spoke resources. If a spoke is deleted and another with the same name is
@@ -542,16 +667,15 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -562,30 +686,44 @@ public java.lang.String getUniqueId() { public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** + * + * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.State getState() { + com.google.cloud.networkconnectivity.v1.State result = + com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -597,8 +735,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -608,12 +745,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -648,22 +781,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -675,20 +806,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, uniqueId_); } if (state_ != com.google.cloud.networkconnectivity.v1.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); } if (linkedVpnTunnels_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getLinkedVpnTunnels()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getLinkedVpnTunnels()); } if (linkedInterconnectAttachments_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getLinkedInterconnectAttachments()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, getLinkedInterconnectAttachments()); } if (linkedRouterApplianceInstances_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getLinkedRouterApplianceInstances()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 19, getLinkedRouterApplianceInstances()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -698,48 +829,43 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1.Spoke)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.Spoke other = (com.google.cloud.networkconnectivity.v1.Spoke) obj; + com.google.cloud.networkconnectivity.v1.Spoke other = + (com.google.cloud.networkconnectivity.v1.Spoke) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getHub() - .equals(other.getHub())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getHub().equals(other.getHub())) return false; if (hasLinkedVpnTunnels() != other.hasLinkedVpnTunnels()) return false; if (hasLinkedVpnTunnels()) { - if (!getLinkedVpnTunnels() - .equals(other.getLinkedVpnTunnels())) return false; + if (!getLinkedVpnTunnels().equals(other.getLinkedVpnTunnels())) return false; } - if (hasLinkedInterconnectAttachments() != other.hasLinkedInterconnectAttachments()) return false; + if (hasLinkedInterconnectAttachments() != other.hasLinkedInterconnectAttachments()) + return false; if (hasLinkedInterconnectAttachments()) { - if (!getLinkedInterconnectAttachments() - .equals(other.getLinkedInterconnectAttachments())) return false; + if (!getLinkedInterconnectAttachments().equals(other.getLinkedInterconnectAttachments())) + return false; } - if (hasLinkedRouterApplianceInstances() != other.hasLinkedRouterApplianceInstances()) return false; + if (hasLinkedRouterApplianceInstances() != other.hasLinkedRouterApplianceInstances()) + return false; if (hasLinkedRouterApplianceInstances()) { - if (!getLinkedRouterApplianceInstances() - .equals(other.getLinkedRouterApplianceInstances())) return false; + if (!getLinkedRouterApplianceInstances().equals(other.getLinkedRouterApplianceInstances())) + return false; } - if (!getUniqueId() - .equals(other.getUniqueId())) return false; + if (!getUniqueId().equals(other.getUniqueId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -791,97 +917,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.Spoke 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.networkconnectivity.v1.Spoke parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.Spoke parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.Spoke prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 spoke represents a connection between your Google Cloud network resources
    * and a non-Google-Cloud network.
@@ -894,55 +1027,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.Spoke}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.Spoke)
       com.google.cloud.networkconnectivity.v1.SpokeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.Spoke.class, com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
+              com.google.cloud.networkconnectivity.v1.Spoke.class,
+              com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.Spoke.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -982,9 +1112,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
     }
 
     @java.lang.Override
@@ -1003,8 +1133,11 @@ public com.google.cloud.networkconnectivity.v1.Spoke build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.Spoke buildPartial() {
-      com.google.cloud.networkconnectivity.v1.Spoke result = new com.google.cloud.networkconnectivity.v1.Spoke(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.Spoke result =
+          new com.google.cloud.networkconnectivity.v1.Spoke(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1015,14 +1148,10 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result)
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -1035,19 +1164,20 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result)
         result.hub_ = hub_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.linkedVpnTunnels_ = linkedVpnTunnelsBuilder_ == null
-            ? linkedVpnTunnels_
-            : linkedVpnTunnelsBuilder_.build();
+        result.linkedVpnTunnels_ =
+            linkedVpnTunnelsBuilder_ == null ? linkedVpnTunnels_ : linkedVpnTunnelsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.linkedInterconnectAttachments_ = linkedInterconnectAttachmentsBuilder_ == null
-            ? linkedInterconnectAttachments_
-            : linkedInterconnectAttachmentsBuilder_.build();
+        result.linkedInterconnectAttachments_ =
+            linkedInterconnectAttachmentsBuilder_ == null
+                ? linkedInterconnectAttachments_
+                : linkedInterconnectAttachmentsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.linkedRouterApplianceInstances_ = linkedRouterApplianceInstancesBuilder_ == null
-            ? linkedRouterApplianceInstances_
-            : linkedRouterApplianceInstancesBuilder_.build();
+        result.linkedRouterApplianceInstances_ =
+            linkedRouterApplianceInstancesBuilder_ == null
+                ? linkedRouterApplianceInstances_
+                : linkedRouterApplianceInstancesBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.uniqueId_ = uniqueId_;
@@ -1061,38 +1191,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.Spoke) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.Spoke)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.Spoke) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1112,8 +1243,7 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Spoke other) {
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -1168,81 +1298,89 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              hub_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 90: {
-              uniqueId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 90
-            case 120: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 120
-            case 138: {
-              input.readMessage(
-                  getLinkedVpnTunnelsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 138
-            case 146: {
-              input.readMessage(
-                  getLinkedInterconnectAttachmentsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 146
-            case 154: {
-              input.readMessage(
-                  getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 154
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                hub_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 90:
+              {
+                uniqueId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 90
+            case 120:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 120
+            case 138:
+              {
+                input.readMessage(
+                    getLinkedVpnTunnelsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 138
+            case 146:
+              {
+                input.readMessage(
+                    getLinkedInterconnectAttachmentsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 146
+            case 154:
+              {
+                input.readMessage(
+                    getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 154
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1252,10 +1390,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1263,13 +1404,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -1278,6 +1419,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1285,15 +1428,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -1301,6 +1443,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1308,18 +1452,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1327,6 +1475,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1336,6 +1485,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1343,12 +1494,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1358,39 +1511,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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) { @@ -1406,14 +1578,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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(); } else { @@ -1424,17 +1599,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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 (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1447,11 +1626,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1464,11 +1647,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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() { bitField0_ |= 0x00000002; @@ -1476,36 +1663,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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_; @@ -1513,39 +1712,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .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) { @@ -1561,14 +1779,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .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(); } else { @@ -1579,17 +1800,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .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 (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1602,11 +1827,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1619,11 +1848,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .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() { bitField0_ |= 0x00000004; @@ -1631,56 +1864,66 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1689,10 +1932,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1702,20 +1948,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 4;
      */
     @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();
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1729,6 +1976,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1738,17 +1987,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        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;
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1758,23 +2009,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new 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();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1783,23 +2036,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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() {
       bitField0_ |= 0x00000008;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1808,17 +2060,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4;
      */
-    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);
+    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);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1827,28 +2082,28 @@ public Builder putLabels(
      *
      * map<string, string> labels = 4;
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.lang.Object description_ = "";
     /**
+     *
+     *
      * 
      * An optional description of the spoke.
      * 
* * string description = 5; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1857,20 +2112,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * An optional description of the spoke.
      * 
* * string description = 5; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1878,28 +2134,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * An optional description of the spoke.
      * 
* * string description = 5; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * An optional description of the spoke.
      * 
* * string description = 5; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1909,17 +2172,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * An optional description of the spoke.
      * 
* * string description = 5; + * * @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(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -1929,18 +2196,22 @@ public Builder setDescriptionBytes( private java.lang.Object hub_ = ""; /** + * + * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The hub. */ public java.lang.String getHub() { java.lang.Object ref = hub_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; @@ -1949,20 +2220,23 @@ public java.lang.String getHub() { } } /** + * + * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for hub. */ - public com.google.protobuf.ByteString - getHubBytes() { + public com.google.protobuf.ByteString getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hub_ = b; return b; } else { @@ -1970,28 +2244,39 @@ public java.lang.String getHub() { } } /** + * + * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @param value The hub to set. * @return This builder for chaining. */ - public Builder setHub( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHub(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hub_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearHub() { @@ -2001,17 +2286,23 @@ public Builder clearHub() { return this; } /** + * + * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for hub to set. * @return This builder for chaining. */ - public Builder setHubBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHubBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hub_ = value; bitField0_ |= 0x00000020; @@ -2021,41 +2312,55 @@ public Builder setHubBytes( private com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linkedVpnTunnels_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> linkedVpnTunnelsBuilder_; + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> + linkedVpnTunnelsBuilder_; /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; + * * @return Whether the linkedVpnTunnels field is set. */ public boolean hasLinkedVpnTunnels() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; + * * @return The linkedVpnTunnels. */ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunnels() { if (linkedVpnTunnelsBuilder_ == null) { - return linkedVpnTunnels_ == null ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; + return linkedVpnTunnels_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() + : linkedVpnTunnels_; } else { return linkedVpnTunnelsBuilder_.getMessage(); } } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public Builder setLinkedVpnTunnels(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { + public Builder setLinkedVpnTunnels( + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { if (linkedVpnTunnelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2069,6 +2374,8 @@ public Builder setLinkedVpnTunnels(com.google.cloud.networkconnectivity.v1.Linke return this; } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
@@ -2087,17 +2394,21 @@ public Builder setLinkedVpnTunnels( return this; } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public Builder mergeLinkedVpnTunnels(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { + public Builder mergeLinkedVpnTunnels( + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { if (linkedVpnTunnelsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - linkedVpnTunnels_ != null && - linkedVpnTunnels_ != com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && linkedVpnTunnels_ != null + && linkedVpnTunnels_ + != com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) { getLinkedVpnTunnelsBuilder().mergeFrom(value); } else { linkedVpnTunnels_ = value; @@ -2110,6 +2421,8 @@ public Builder mergeLinkedVpnTunnels(com.google.cloud.networkconnectivity.v1.Lin return this; } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
@@ -2127,33 +2440,42 @@ public Builder clearLinkedVpnTunnels() { return this; } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder getLinkedVpnTunnelsBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder + getLinkedVpnTunnelsBuilder() { bitField0_ |= 0x00000040; onChanged(); return getLinkedVpnTunnelsFieldBuilder().getBuilder(); } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLinkedVpnTunnelsOrBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder + getLinkedVpnTunnelsOrBuilder() { if (linkedVpnTunnelsBuilder_ != null) { return linkedVpnTunnelsBuilder_.getMessageOrBuilder(); } else { - return linkedVpnTunnels_ == null ? - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; + return linkedVpnTunnels_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() + : linkedVpnTunnels_; } } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
@@ -2161,56 +2483,82 @@ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLink * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> getLinkedVpnTunnelsFieldBuilder() { if (linkedVpnTunnelsBuilder_ == null) { - linkedVpnTunnelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder>( - getLinkedVpnTunnels(), - getParentForChildren(), - isClean()); + linkedVpnTunnelsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder>( + getLinkedVpnTunnels(), getParentForChildren(), isClean()); linkedVpnTunnels_ = null; } return linkedVpnTunnelsBuilder_; } - private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linkedInterconnectAttachments_; + private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + linkedInterconnectAttachments_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> linkedInterconnectAttachmentsBuilder_; + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> + linkedInterconnectAttachmentsBuilder_; /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * * @return Whether the linkedInterconnectAttachments field is set. */ public boolean hasLinkedInterconnectAttachments() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * * @return The linkedInterconnectAttachments. */ - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getLinkedInterconnectAttachments() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + getLinkedInterconnectAttachments() { if (linkedInterconnectAttachmentsBuilder_ == null) { - return linkedInterconnectAttachments_ == null ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; + return linkedInterconnectAttachments_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + .getDefaultInstance() + : linkedInterconnectAttachments_; } else { return linkedInterconnectAttachmentsBuilder_.getMessage(); } } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ - public Builder setLinkedInterconnectAttachments(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { + public Builder setLinkedInterconnectAttachments( + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { if (linkedInterconnectAttachmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2224,14 +2572,19 @@ public Builder setLinkedInterconnectAttachments(com.google.cloud.networkconnecti return this; } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ public Builder setLinkedInterconnectAttachments( - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder builderForValue) { + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder + builderForValue) { if (linkedInterconnectAttachmentsBuilder_ == null) { linkedInterconnectAttachments_ = builderForValue.build(); } else { @@ -2242,17 +2595,24 @@ public Builder setLinkedInterconnectAttachments( return this; } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ - public Builder mergeLinkedInterconnectAttachments(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { + public Builder mergeLinkedInterconnectAttachments( + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { if (linkedInterconnectAttachmentsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - linkedInterconnectAttachments_ != null && - linkedInterconnectAttachments_ != com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && linkedInterconnectAttachments_ != null + && linkedInterconnectAttachments_ + != com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + .getDefaultInstance()) { getLinkedInterconnectAttachmentsBuilder().mergeFrom(value); } else { linkedInterconnectAttachments_ = value; @@ -2265,11 +2625,15 @@ public Builder mergeLinkedInterconnectAttachments(com.google.cloud.networkconnec return this; } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ public Builder clearLinkedInterconnectAttachments() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2282,90 +2646,132 @@ public Builder clearLinkedInterconnectAttachments() { return this; } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder getLinkedInterconnectAttachmentsBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder + getLinkedInterconnectAttachmentsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getLinkedInterconnectAttachmentsFieldBuilder().getBuilder(); } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder getLinkedInterconnectAttachmentsOrBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder + getLinkedInterconnectAttachmentsOrBuilder() { if (linkedInterconnectAttachmentsBuilder_ != null) { return linkedInterconnectAttachmentsBuilder_.getMessageOrBuilder(); } else { - return linkedInterconnectAttachments_ == null ? - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; + return linkedInterconnectAttachments_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + .getDefaultInstance() + : linkedInterconnectAttachments_; } } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> getLinkedInterconnectAttachmentsFieldBuilder() { if (linkedInterconnectAttachmentsBuilder_ == null) { - linkedInterconnectAttachmentsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder>( - getLinkedInterconnectAttachments(), - getParentForChildren(), - isClean()); + linkedInterconnectAttachmentsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder>( + getLinkedInterconnectAttachments(), getParentForChildren(), isClean()); linkedInterconnectAttachments_ = null; } return linkedInterconnectAttachmentsBuilder_; } - private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linkedRouterApplianceInstances_; + private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + linkedRouterApplianceInstances_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> linkedRouterApplianceInstancesBuilder_; + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> + linkedRouterApplianceInstancesBuilder_; /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * * @return Whether the linkedRouterApplianceInstances field is set. */ public boolean hasLinkedRouterApplianceInstances() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * * @return The linkedRouterApplianceInstances. */ - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getLinkedRouterApplianceInstances() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + getLinkedRouterApplianceInstances() { if (linkedRouterApplianceInstancesBuilder_ == null) { - return linkedRouterApplianceInstances_ == null ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; + return linkedRouterApplianceInstances_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + .getDefaultInstance() + : linkedRouterApplianceInstances_; } else { return linkedRouterApplianceInstancesBuilder_.getMessage(); } } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ - public Builder setLinkedRouterApplianceInstances(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { + public Builder setLinkedRouterApplianceInstances( + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { if (linkedRouterApplianceInstancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2379,14 +2785,19 @@ public Builder setLinkedRouterApplianceInstances(com.google.cloud.networkconnect return this; } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ public Builder setLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder builderForValue) { + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder + builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { linkedRouterApplianceInstances_ = builderForValue.build(); } else { @@ -2397,17 +2808,24 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ - public Builder mergeLinkedRouterApplianceInstances(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { + public Builder mergeLinkedRouterApplianceInstances( + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { if (linkedRouterApplianceInstancesBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - linkedRouterApplianceInstances_ != null && - linkedRouterApplianceInstances_ != com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && linkedRouterApplianceInstances_ != null + && linkedRouterApplianceInstances_ + != com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + .getDefaultInstance()) { getLinkedRouterApplianceInstancesBuilder().mergeFrom(value); } else { linkedRouterApplianceInstances_ = value; @@ -2420,11 +2838,15 @@ public Builder mergeLinkedRouterApplianceInstances(com.google.cloud.networkconne return this; } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ public Builder clearLinkedRouterApplianceInstances() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2437,48 +2859,67 @@ public Builder clearLinkedRouterApplianceInstances() { return this; } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder getLinkedRouterApplianceInstancesBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder + getLinkedRouterApplianceInstancesBuilder() { bitField0_ |= 0x00000100; onChanged(); return getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(); } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder getLinkedRouterApplianceInstancesOrBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder + getLinkedRouterApplianceInstancesOrBuilder() { if (linkedRouterApplianceInstancesBuilder_ != null) { return linkedRouterApplianceInstancesBuilder_.getMessageOrBuilder(); } else { - return linkedRouterApplianceInstances_ == null ? - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; + return linkedRouterApplianceInstances_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + .getDefaultInstance() + : linkedRouterApplianceInstances_; } } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> getLinkedRouterApplianceInstancesFieldBuilder() { if (linkedRouterApplianceInstancesBuilder_ == null) { - linkedRouterApplianceInstancesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder>( - getLinkedRouterApplianceInstances(), - getParentForChildren(), - isClean()); + linkedRouterApplianceInstancesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder>( + getLinkedRouterApplianceInstances(), getParentForChildren(), isClean()); linkedRouterApplianceInstances_ = null; } return linkedRouterApplianceInstancesBuilder_; @@ -2486,6 +2927,8 @@ public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrB private java.lang.Object uniqueId_ = ""; /** + * + * *
      * Output only. The Google-generated UUID for the spoke. This value is unique across all
      * spoke resources. If a spoke is deleted and another with the same name is
@@ -2493,13 +2936,13 @@ public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrB
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -2508,6 +2951,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. The Google-generated UUID for the spoke. This value is unique across all
      * spoke resources. If a spoke is deleted and another with the same name is
@@ -2515,15 +2960,14 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -2531,6 +2975,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. The Google-generated UUID for the spoke. This value is unique across all
      * spoke resources. If a spoke is deleted and another with the same name is
@@ -2538,18 +2984,22 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uniqueId_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Output only. The Google-generated UUID for the spoke. This value is unique across all
      * spoke resources. If a spoke is deleted and another with the same name is
@@ -2557,6 +3007,7 @@ public Builder setUniqueId(
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -2566,6 +3017,8 @@ public Builder clearUniqueId() { return this; } /** + * + * *
      * Output only. The Google-generated UUID for the spoke. This value is unique across all
      * spoke resources. If a spoke is deleted and another with the same name is
@@ -2573,12 +3026,14 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000200; @@ -2588,22 +3043,33 @@ public Builder setUniqueIdBytes( private int state_ = 0; /** + * + * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2614,24 +3080,35 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + com.google.cloud.networkconnectivity.v1.State result = + com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2645,11 +3122,16 @@ public Builder setState(com.google.cloud.networkconnectivity.v1.State value) { return this; } /** + * + * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2658,9 +3140,9 @@ public Builder clearState() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2670,12 +3152,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.Spoke) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.Spoke) private static final com.google.cloud.networkconnectivity.v1.Spoke DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.Spoke(); } @@ -2684,27 +3166,27 @@ public static com.google.cloud.networkconnectivity.v1.Spoke getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Spoke parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Spoke parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2719,6 +3201,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.Spoke getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java similarity index 69% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java index aacb1e934fa3..059386a5a918 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface SpokeOrBuilder extends +public interface SpokeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.Spoke) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -15,10 +33,13 @@ public interface SpokeOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -26,66 +47,90 @@ public interface SpokeOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The time the spoke was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the spoke was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the spoke was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the spoke was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time the spoke was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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(); /** + * + * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -96,6 +141,8 @@ public interface SpokeOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -104,15 +151,13 @@ public interface SpokeOrBuilder extends
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -121,9 +166,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -133,11 +179,13 @@ boolean containsLabels(
    * map<string, string> labels = 4;
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -146,68 +194,89 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * An optional description of the spoke.
    * 
* * string description = 5; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * An optional description of the spoke.
    * 
* * string description = 5; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The hub. */ java.lang.String getHub(); /** + * + * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for hub. */ - com.google.protobuf.ByteString - getHubBytes(); + com.google.protobuf.ByteString getHubBytes(); /** + * + * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; + * * @return Whether the linkedVpnTunnels field is set. */ boolean hasLinkedVpnTunnels(); /** + * + * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; + * * @return The linkedVpnTunnels. */ com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunnels(); /** + * + * *
    * VPN tunnels that are associated with the spoke.
    * 
@@ -217,60 +286,94 @@ java.lang.String getLabelsOrThrow( com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLinkedVpnTunnelsOrBuilder(); /** + * + * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * * @return Whether the linkedInterconnectAttachments field is set. */ boolean hasLinkedInterconnectAttachments(); /** + * + * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * * @return The linkedInterconnectAttachments. */ - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getLinkedInterconnectAttachments(); + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + getLinkedInterconnectAttachments(); /** + * + * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder getLinkedInterconnectAttachmentsOrBuilder(); + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder + getLinkedInterconnectAttachmentsOrBuilder(); /** + * + * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * * @return Whether the linkedRouterApplianceInstances field is set. */ boolean hasLinkedRouterApplianceInstances(); /** + * + * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * * @return The linkedRouterApplianceInstances. */ - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getLinkedRouterApplianceInstances(); + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + getLinkedRouterApplianceInstances(); /** + * + * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder getLinkedRouterApplianceInstancesOrBuilder(); + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder + getLinkedRouterApplianceInstancesOrBuilder(); /** + * + * *
    * Output only. The Google-generated UUID for the spoke. This value is unique across all
    * spoke resources. If a spoke is deleted and another with the same name is
@@ -278,10 +381,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ java.lang.String getUniqueId(); /** + * + * *
    * Output only. The Google-generated UUID for the spoke. This value is unique across all
    * spoke resources. If a spoke is deleted and another with the same name is
@@ -289,26 +395,36 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString - getUniqueIdBytes(); + com.google.protobuf.ByteString getUniqueIdBytes(); /** + * + * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.networkconnectivity.v1.State getState(); diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java index 28c6ad4e21a7..cb12e01e45b1 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The State enum represents the lifecycle stage of a Network Connectivity
  * Center resource.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.networkconnectivity.v1.State}
  */
-public enum State
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum State implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * No state information available
    * 
@@ -22,6 +40,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
    * The resource's create operation is in progress
    * 
@@ -30,6 +50,8 @@ public enum State */ CREATING(1), /** + * + * *
    * The resource is active
    * 
@@ -38,6 +60,8 @@ public enum State */ ACTIVE(2), /** + * + * *
    * The resource's Delete operation is in progress
    * 
@@ -49,6 +73,8 @@ public enum State ; /** + * + * *
    * No state information available
    * 
@@ -57,6 +83,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The resource's create operation is in progress
    * 
@@ -65,6 +93,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
    * The resource is active
    * 
@@ -73,6 +103,8 @@ public enum State */ public static final int ACTIVE_VALUE = 2; /** + * + * *
    * The resource's Delete operation is in progress
    * 
@@ -81,7 +113,6 @@ public enum State */ public static final int DELETING_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -106,50 +137,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 ACTIVE; - case 3: return DELETING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + 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.networkconnectivity.v1.HubProto.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; @@ -165,4 +197,3 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.State) } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java similarity index 72% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java index 3954173adbde..e555823046bb 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Request for [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateHubRequest} */ -public final class UpdateHubRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateHubRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.UpdateHubRequest) UpdateHubRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateHubRequest.newBuilder() to construct. private UpdateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateHubRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, + com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. In the case of an update to an existing hub, field mask is used to specify
    * the fields to be overwritten. The fields specified in the update_mask are
@@ -59,7 +80,9 @@ protected java.lang.Object newInstance(
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -67,6 +90,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. In the case of an update to an existing hub, field mask is used to specify
    * the fields to be overwritten. The fields specified in the update_mask are
@@ -75,7 +100,9 @@ public boolean hasUpdateMask() {
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -83,6 +110,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. In the case of an update to an existing hub, field mask is used to specify
    * the fields to be overwritten. The fields specified in the update_mask are
@@ -91,7 +120,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -101,11 +131,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int HUB_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1.Hub hub_; /** + * + * *
    * Required. The state that the hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ @java.lang.Override @@ -113,11 +148,16 @@ public boolean hasHub() { return hub_ != null; } /** + * + * *
    * Required. The state that the hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ @java.lang.Override @@ -125,11 +165,15 @@ public com.google.cloud.networkconnectivity.v1.Hub getHub() { return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } /** + * + * *
    * Required. The state that the hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { @@ -137,9 +181,12 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { } public static final int REQUEST_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -156,6 +203,7 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -164,14 +212,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -188,16 +237,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -206,6 +254,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,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 (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -238,12 +286,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHub()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -256,25 +302,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.networkconnectivity.v1.UpdateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.UpdateHubRequest other = (com.google.cloud.networkconnectivity.v1.UpdateHubRequest) obj; + com.google.cloud.networkconnectivity.v1.UpdateHubRequest other = + (com.google.cloud.networkconnectivity.v1.UpdateHubRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub() - .equals(other.getHub())) return false; + if (!getHub().equals(other.getHub())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -302,129 +346,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.UpdateHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateHubRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.UpdateHubRequest) com.google.cloud.networkconnectivity.v1.UpdateHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, + com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.UpdateHubRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +495,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; } @java.lang.Override @@ -465,8 +516,11 @@ public com.google.cloud.networkconnectivity.v1.UpdateHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.UpdateHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.UpdateHubRequest result = new com.google.cloud.networkconnectivity.v1.UpdateHubRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1.UpdateHubRequest result = + new com.google.cloud.networkconnectivity.v1.UpdateHubRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -474,14 +528,10 @@ public com.google.cloud.networkconnectivity.v1.UpdateHubRequest buildPartial() { private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.hub_ = hubBuilder_ == null - ? hub_ - : hubBuilder_.build(); + result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -492,38 +542,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateHubRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.UpdateHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateHubRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateHubRequest) other); } else { super.mergeFrom(other); return this; @@ -531,7 +582,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.UpdateHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.UpdateHubRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1.UpdateHubRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -569,31 +621,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getHubFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -603,12 +655,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used to specify
      * the fields to be overwritten. The fields specified in the update_mask are
@@ -617,13 +675,17 @@ public Builder mergeFrom(
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used to specify
      * the fields to be overwritten. The fields specified in the update_mask are
@@ -632,17 +694,23 @@ public boolean hasUpdateMask() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used to specify
      * the fields to be overwritten. The fields specified in the update_mask are
@@ -651,7 +719,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -667,6 +736,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used to specify
      * the fields to be overwritten. The fields specified in the update_mask are
@@ -675,10 +746,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -689,6 +760,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used to specify
      * the fields to be overwritten. The fields specified in the update_mask are
@@ -697,13 +770,14 @@ public Builder setUpdateMask(
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -716,6 +790,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used to specify
      * the fields to be overwritten. The fields specified in the update_mask are
@@ -724,7 +800,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -737,6 +814,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used to specify
      * the fields to be overwritten. The fields specified in the update_mask are
@@ -745,7 +824,8 @@ public Builder clearUpdateMask() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -753,6 +833,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used to specify
      * the fields to be overwritten. The fields specified in the update_mask are
@@ -761,17 +843,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used to specify
      * the fields to be overwritten. The fields specified in the update_mask are
@@ -780,17 +866,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -798,39 +888,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> hubBuilder_; + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder> + hubBuilder_; /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ public com.google.cloud.networkconnectivity.v1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() + : hub_; } else { return hubBuilder_.getMessage(); } } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { @@ -846,14 +955,17 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setHub( - com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { + public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { if (hubBuilder_ == null) { hub_ = builderForValue.build(); } else { @@ -864,17 +976,21 @@ public Builder setHub( return this; } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - hub_ != null && - hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && hub_ != null + && hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -887,11 +1003,15 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000002); @@ -904,11 +1024,15 @@ public Builder clearHub() { return this; } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000002; @@ -916,36 +1040,48 @@ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { return getHubFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null ? - com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() + : hub_; } } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder>( - getHub(), - getParentForChildren(), - isClean()); + hubBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder>( + getHub(), getParentForChildren(), isClean()); hub_ = null; } return hubBuilder_; @@ -953,6 +1089,8 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -969,13 +1107,13 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -984,6 +1122,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -1000,15 +1140,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1016,6 +1155,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -1032,18 +1173,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -1060,6 +1205,7 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1069,6 +1215,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -1085,21 +1233,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1109,12 +1259,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.UpdateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.UpdateHubRequest) private static final com.google.cloud.networkconnectivity.v1.UpdateHubRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.UpdateHubRequest(); } @@ -1123,27 +1273,27 @@ public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,6 +1308,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.UpdateHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java index befe2878e509..baf3acd19da5 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface UpdateHubRequestOrBuilder extends +public interface UpdateHubRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.UpdateHubRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. In the case of an update to an existing hub, field mask is used to specify
    * the fields to be overwritten. The fields specified in the update_mask are
@@ -16,11 +34,15 @@ public interface UpdateHubRequestOrBuilder extends
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. In the case of an update to an existing hub, field mask is used to specify
    * the fields to be overwritten. The fields specified in the update_mask are
@@ -29,11 +51,15 @@ public interface UpdateHubRequestOrBuilder extends
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. In the case of an update to an existing hub, field mask is used to specify
    * the fields to be overwritten. The fields specified in the update_mask are
@@ -42,38 +68,55 @@ public interface UpdateHubRequestOrBuilder extends
    * overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The state that the hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ boolean hasHub(); /** + * + * *
    * Required. The state that the hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ com.google.cloud.networkconnectivity.v1.Hub getHub(); /** + * + * *
    * Required. The state that the hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -90,10 +133,13 @@ public interface UpdateHubRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -110,8 +156,8 @@ public interface UpdateHubRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java index c7dbb61e84c6..58006e2de3ff 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Request for [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateSpokeRequest} */ -public final class UpdateSpokeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateSpokeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) UpdateSpokeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateSpokeRequest.newBuilder() to construct. private UpdateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateSpokeRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. In the case of an update to an existing spoke, field mask is used to
    * specify the fields to be overwritten. The fields specified in the
@@ -59,7 +80,9 @@ protected java.lang.Object newInstance(
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -67,6 +90,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. In the case of an update to an existing spoke, field mask is used to
    * specify the fields to be overwritten. The fields specified in the
@@ -75,7 +100,9 @@ public boolean hasUpdateMask() {
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -83,6 +110,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. In the case of an update to an existing spoke, field mask is used to
    * specify the fields to be overwritten. The fields specified in the
@@ -91,7 +120,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -101,11 +131,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int SPOKE_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1.Spoke spoke_; /** + * + * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ @java.lang.Override @@ -113,33 +148,49 @@ public boolean hasSpoke() { return spoke_ != null; } /** + * + * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } /** + * + * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -156,6 +207,7 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -164,14 +216,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -188,16 +241,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -206,6 +258,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,8 +270,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -238,12 +290,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpoke()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -256,25 +306,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.networkconnectivity.v1.UpdateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest other = (com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest other = + (com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke() - .equals(other.getSpoke())) return false; + if (!getSpoke().equals(other.getSpoke())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -302,129 +350,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateSpokeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) com.google.cloud.networkconnectivity.v1.UpdateSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +499,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; } @java.lang.Override @@ -465,8 +520,11 @@ public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest result = new com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest result = + new com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -474,14 +532,10 @@ public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest buildPartial() private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.spoke_ = spokeBuilder_ == null - ? spoke_ - : spokeBuilder_.build(); + result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -492,38 +546,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateSpokeRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) other); } else { super.mergeFrom(other); return this; @@ -531,7 +586,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -569,31 +625,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSpokeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -603,12 +659,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used to
      * specify the fields to be overwritten. The fields specified in the
@@ -617,13 +679,17 @@ public Builder mergeFrom(
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used to
      * specify the fields to be overwritten. The fields specified in the
@@ -632,17 +698,23 @@ public boolean hasUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used to
      * specify the fields to be overwritten. The fields specified in the
@@ -651,7 +723,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -667,6 +740,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used to
      * specify the fields to be overwritten. The fields specified in the
@@ -675,10 +750,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -689,6 +764,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used to
      * specify the fields to be overwritten. The fields specified in the
@@ -697,13 +774,14 @@ public Builder setUpdateMask(
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -716,6 +794,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used to
      * specify the fields to be overwritten. The fields specified in the
@@ -724,7 +804,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -737,6 +818,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used to
      * specify the fields to be overwritten. The fields specified in the
@@ -745,7 +828,8 @@ public Builder clearUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -753,6 +837,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used to
      * specify the fields to be overwritten. The fields specified in the
@@ -761,17 +847,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used to
      * specify the fields to be overwritten. The fields specified in the
@@ -780,17 +870,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -798,39 +892,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> spokeBuilder_; + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + spokeBuilder_; /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } else { return spokeBuilder_.getMessage(); } } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { @@ -846,14 +959,17 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSpoke( - com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { + public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { if (spokeBuilder_ == null) { spoke_ = builderForValue.build(); } else { @@ -864,17 +980,21 @@ public Builder setSpoke( return this; } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - spoke_ != null && - spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && spoke_ != null + && spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -887,11 +1007,15 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000002); @@ -904,11 +1028,15 @@ public Builder clearSpoke() { return this; } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000002; @@ -916,36 +1044,48 @@ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { return getSpokeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null ? - com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( - getSpoke(), - getParentForChildren(), - isClean()); + spokeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( + getSpoke(), getParentForChildren(), isClean()); spoke_ = null; } return spokeBuilder_; @@ -953,6 +1093,8 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -969,13 +1111,13 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -984,6 +1126,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -1000,15 +1144,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1016,6 +1159,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -1032,18 +1177,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -1060,6 +1209,7 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1069,6 +1219,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can use it
      * in cases when you need to retry your request. When you need to retry, this
@@ -1085,21 +1237,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1109,12 +1263,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(); } @@ -1123,27 +1277,27 @@ public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,6 +1312,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java index f10dd265d833..c4ce0af5bdf1 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface UpdateSpokeRequestOrBuilder extends +public interface UpdateSpokeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. In the case of an update to an existing spoke, field mask is used to
    * specify the fields to be overwritten. The fields specified in the
@@ -16,11 +34,15 @@ public interface UpdateSpokeRequestOrBuilder extends
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. In the case of an update to an existing spoke, field mask is used to
    * specify the fields to be overwritten. The fields specified in the
@@ -29,11 +51,15 @@ public interface UpdateSpokeRequestOrBuilder extends
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. In the case of an update to an existing spoke, field mask is used to
    * specify the fields to be overwritten. The fields specified in the
@@ -42,38 +68,55 @@ public interface UpdateSpokeRequestOrBuilder extends
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ boolean hasSpoke(); /** + * + * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ com.google.cloud.networkconnectivity.v1.Spoke getSpoke(); /** + * + * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -90,10 +133,13 @@ public interface UpdateSpokeRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can use it
    * in cases when you need to retry your request. When you need to retry, this
@@ -110,8 +156,8 @@ public interface UpdateSpokeRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java new file mode 100644 index 000000000000..e8e71eaf5f8b --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java @@ -0,0 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1alpha1/common.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public final class CommonProto { + private CommonProto() {} + + 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_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/networkconnectivity/v1alp" + + "ha1/common.proto\022)google.cloud.networkco" + + "nnectivity.v1alpha1\032\037google/api/field_be" + + "havior.proto\032\037google/protobuf/timestamp." + + "proto\"\200\002\n\021OperationMetadata\0224\n\013create_ti" + + "me\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004ver" + + "b\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\003B\243\002\n-com.google." + + "cloud.networkconnectivity.v1alpha1B\013Comm" + + "onProtoP\001Z\\google.golang.org/genproto/go" + + "ogleapis/cloud/networkconnectivity/v1alp" + + "ha1;networkconnectivity\252\002)Google.Cloud.N" + + "etworkConnectivity.V1Alpha1\312\002)Google\\Clo" + + "ud\\NetworkConnectivity\\V1alpha1\352\002,Google" + + "::Cloud::NetworkConnectivity::V1alpha1b\006" + + "proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java index b77dc1fda61b..ff4aaf180be5 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Request for [HubService.CreateHub][google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateHubRequest} */ -public final class CreateHubRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateHubRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) CreateHubRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateHubRequest.newBuilder() to construct. private CreateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateHubRequest() { parent_ = ""; hubId_ = ""; @@ -27,38 +45,45 @@ private CreateHubRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource's name of the Hub.
    * 
* - * string parent = 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 @@ -67,29 +92,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource's name of the Hub.
    * 
* - * string parent = 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 { @@ -98,14 +125,18 @@ public java.lang.String getParent() { } public static final int HUB_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object hubId_ = ""; /** + * + * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hubId. */ @java.lang.Override @@ -114,29 +145,29 @@ public java.lang.String getHubId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; } } /** + * + * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for hubId. */ @java.lang.Override - public com.google.protobuf.ByteString - getHubIdBytes() { + public com.google.protobuf.ByteString getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hubId_ = b; return b; } else { @@ -147,11 +178,16 @@ public java.lang.String getHubId() { public static final int HUB_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ @java.lang.Override @@ -159,33 +195,49 @@ public boolean hasHub() { return hub_ != null; } /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { - return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { - return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -201,6 +253,7 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -209,14 +262,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -232,16 +286,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -250,6 +303,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +315,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,8 +344,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hubId_); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHub()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -305,24 +357,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.networkconnectivity.v1alpha1.CreateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getHubId() - .equals(other.getHubId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getHubId().equals(other.getHubId())) return false; if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub() - .equals(other.getHub())) return false; + if (!getHub().equals(other.getHub())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,129 +399,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.CreateHub][google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateHubRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -489,13 +545,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance(); } @@ -510,13 +567,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -525,9 +586,7 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateH result.hubId_ = hubId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.hub_ = hubBuilder_ == null - ? hub_ - : hubBuilder_.build(); + result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -538,38 +597,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateH public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) other); } else { super.mergeFrom(other); return this; @@ -577,7 +637,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -622,34 +684,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - hubId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getHubFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + hubId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,22 +724,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource's name of the Hub.
      * 
* - * string parent = 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; @@ -683,20 +753,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name of the Hub.
      * 
* - * string parent = 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 { @@ -704,28 +777,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name of the Hub.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource's name of the Hub.
      * 
* - * string 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() { @@ -735,17 +819,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource's name of the Hub.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -755,18 +845,20 @@ public Builder setParentBytes( private java.lang.Object hubId_ = ""; /** + * + * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hubId. */ public java.lang.String getHubId() { java.lang.Object ref = hubId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; @@ -775,20 +867,21 @@ public java.lang.String getHubId() { } } /** + * + * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for hubId. */ - public com.google.protobuf.ByteString - getHubIdBytes() { + public com.google.protobuf.ByteString getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hubId_ = b; return b; } else { @@ -796,28 +889,35 @@ public java.lang.String getHubId() { } } /** + * + * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The hubId to set. * @return This builder for chaining. */ - public Builder setHubId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHubId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hubId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearHubId() { @@ -827,17 +927,21 @@ public Builder clearHubId() { return this; } /** + * + * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for hubId to set. * @return This builder for chaining. */ - public Builder setHubIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHubIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hubId_ = value; bitField0_ |= 0x00000002; @@ -847,39 +951,58 @@ public Builder setHubIdBytes( private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> hubBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + hubBuilder_; /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } else { return hubBuilder_.getMessage(); } } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { @@ -895,11 +1018,15 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setHub( com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder builderForValue) { @@ -913,17 +1040,21 @@ public Builder setHub( return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - hub_ != null && - hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && hub_ != null + && hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -936,11 +1067,15 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000004); @@ -953,11 +1088,15 @@ public Builder clearHub() { return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000004; @@ -965,36 +1104,48 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() return getHubFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null ? - com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( - getHub(), - getParentForChildren(), - isClean()); + hubBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( + getHub(), getParentForChildren(), isClean()); hub_ = null; } return hubBuilder_; @@ -1002,6 +1153,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1017,13 +1170,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1032,6 +1185,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1047,15 +1202,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1063,6 +1217,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1078,18 +1234,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1105,6 +1265,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1114,6 +1275,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1129,21 +1292,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1153,41 +1318,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1199,9 +1366,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java index 7ada53d7d300..fecd3ded33d5 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface CreateHubRequestOrBuilder extends +public interface CreateHubRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource's name of the Hub.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource's name of the Hub.
    * 
* - * string parent = 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(); /** + * + * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hubId. */ java.lang.String getHubId(); /** + * + * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for hubId. */ - com.google.protobuf.ByteString - getHubIdBytes(); + com.google.protobuf.ByteString getHubIdBytes(); /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ boolean hasHub(); /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ com.google.cloud.networkconnectivity.v1alpha1.Hub getHub(); /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -90,10 +136,13 @@ public interface CreateHubRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -109,8 +158,8 @@ public interface CreateHubRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java index da2748dcd13b..6f8e9420cec0 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest} */ -public final class CreateSpokeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateSpokeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) CreateSpokeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateSpokeRequest.newBuilder() to construct. private CreateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateSpokeRequest() { parent_ = ""; spokeId_ = ""; @@ -27,38 +45,45 @@ private CreateSpokeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * string parent = 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 @@ -67,29 +92,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * string parent = 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 { @@ -98,14 +125,18 @@ public java.lang.String getParent() { } public static final int SPOKE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object spokeId_ = ""; /** + * + * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The spokeId. */ @java.lang.Override @@ -114,29 +145,29 @@ public java.lang.String getSpokeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; } } /** + * + * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for spokeId. */ @java.lang.Override - public com.google.protobuf.ByteString - getSpokeIdBytes() { + public com.google.protobuf.ByteString getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); spokeId_ = b; return b; } else { @@ -147,11 +178,16 @@ public java.lang.String getSpokeId() { public static final int SPOKE_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ @java.lang.Override @@ -159,33 +195,49 @@ public boolean hasSpoke() { return spoke_ != null; } /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -201,6 +253,7 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -209,14 +262,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -232,16 +286,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -250,6 +303,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +315,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,8 +344,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, spokeId_); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSpoke()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -305,24 +357,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.networkconnectivity.v1alpha1.CreateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getSpokeId() - .equals(other.getSpokeId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getSpokeId().equals(other.getSpokeId())) return false; if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke() - .equals(other.getSpoke())) return false; + if (!getSpoke().equals(other.getSpoke())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,129 +399,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -489,13 +545,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance(); } @@ -510,13 +567,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -525,9 +586,7 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateS result.spokeId_ = spokeId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.spoke_ = spokeBuilder_ == null - ? spoke_ - : spokeBuilder_.build(); + result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -538,46 +597,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateS public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -622,34 +685,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - spokeId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getSpokeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + spokeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,22 +725,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * string parent = 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; @@ -683,20 +754,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * string parent = 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 { @@ -704,28 +778,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * string 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() { @@ -735,17 +820,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -755,18 +846,20 @@ public Builder setParentBytes( private java.lang.Object spokeId_ = ""; /** + * + * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The spokeId. */ public java.lang.String getSpokeId() { java.lang.Object ref = spokeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; @@ -775,20 +868,21 @@ public java.lang.String getSpokeId() { } } /** + * + * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for spokeId. */ - public com.google.protobuf.ByteString - getSpokeIdBytes() { + public com.google.protobuf.ByteString getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); spokeId_ = b; return b; } else { @@ -796,28 +890,35 @@ public java.lang.String getSpokeId() { } } /** + * + * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpokeId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } spokeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSpokeId() { @@ -827,17 +928,21 @@ public Builder clearSpokeId() { return this; } /** + * + * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpokeIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); spokeId_ = value; bitField0_ |= 0x00000002; @@ -847,39 +952,58 @@ public Builder setSpokeIdBytes( private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> spokeBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + spokeBuilder_; /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } else { return spokeBuilder_.getMessage(); } } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { @@ -895,11 +1019,15 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke valu return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSpoke( com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder builderForValue) { @@ -913,17 +1041,21 @@ public Builder setSpoke( return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - spoke_ != null && - spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && spoke_ != null + && spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -936,11 +1068,15 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke va return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000004); @@ -953,11 +1089,15 @@ public Builder clearSpoke() { return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000004; @@ -965,36 +1105,48 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuild return getSpokeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null ? - com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( - getSpoke(), - getParentForChildren(), - isClean()); + spokeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( + getSpoke(), getParentForChildren(), isClean()); spoke_ = null; } return spokeBuilder_; @@ -1002,6 +1154,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1017,13 +1171,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1032,6 +1186,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1047,15 +1203,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1063,6 +1218,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1078,18 +1235,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1105,6 +1266,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1114,6 +1276,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1129,21 +1293,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1153,41 +1319,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1199,9 +1367,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java index 7cdd693f7086..0acea62a3476 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface CreateSpokeRequestOrBuilder extends +public interface CreateSpokeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * string parent = 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(); /** + * + * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The spokeId. */ java.lang.String getSpokeId(); /** + * + * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for spokeId. */ - com.google.protobuf.ByteString - getSpokeIdBytes(); + com.google.protobuf.ByteString getSpokeIdBytes(); /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ boolean hasSpoke(); /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke(); /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -90,10 +136,13 @@ public interface CreateSpokeRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -109,8 +158,8 @@ public interface CreateSpokeRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java similarity index 69% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java index 64ea69b076e4..b12bad9a3b29 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest} */ -public final class DeleteHubRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteHubRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) DeleteHubRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteHubRequest.newBuilder() to construct. private DeleteHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteHubRequest() { name_ = ""; requestId_ = ""; @@ -26,38 +44,45 @@ private DeleteHubRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the Hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,29 +91,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the Hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,9 +124,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -115,6 +145,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -123,14 +154,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -146,16 +178,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -164,6 +195,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -206,17 +237,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.networkconnectivity.v1alpha1.DeleteHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,129 +268,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -371,13 +408,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance(); } @@ -392,13 +430,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -412,38 +454,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.DeleteH public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) other); } else { super.mergeFrom(other); return this; @@ -451,7 +494,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -488,22 +533,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -513,22 +561,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the Hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -537,20 +590,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -558,28 +614,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -589,17 +656,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the Hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -609,6 +682,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -624,13 +699,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -639,6 +714,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -654,15 +731,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -670,6 +746,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -685,18 +763,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -712,6 +794,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -721,6 +804,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -736,21 +821,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -760,41 +847,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -806,9 +895,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java index 861358b8374d..033fd24fc4b8 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface DeleteHubRequestOrBuilder extends +public interface DeleteHubRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the Hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -43,10 +70,13 @@ public interface DeleteHubRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -62,8 +92,8 @@ public interface DeleteHubRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java similarity index 69% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java index 5e99a2274873..1569d811fb22 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest} */ -public final class DeleteSpokeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteSpokeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) DeleteSpokeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteSpokeRequest.newBuilder() to construct. private DeleteSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteSpokeRequest() { name_ = ""; requestId_ = ""; @@ -26,38 +44,45 @@ private DeleteSpokeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the Spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,29 +91,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the Spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,9 +124,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -115,6 +145,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -123,14 +154,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -146,16 +178,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -164,6 +195,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -206,17 +237,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.networkconnectivity.v1alpha1.DeleteSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,129 +268,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -371,13 +408,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance(); } @@ -392,13 +430,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -412,46 +454,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.DeleteS public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -488,22 +534,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -513,22 +562,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the Spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -537,20 +591,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -558,28 +615,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -589,17 +657,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the Spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -609,6 +683,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -624,13 +700,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -639,6 +715,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -654,15 +732,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -670,6 +747,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -685,18 +764,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -712,6 +795,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -721,6 +805,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -736,21 +822,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -760,41 +848,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -806,9 +896,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java index 1be7096a8498..a1bef18bbd22 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface DeleteSpokeRequestOrBuilder extends +public interface DeleteSpokeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the Spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -43,10 +70,13 @@ public interface DeleteSpokeRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -62,8 +92,8 @@ public interface DeleteSpokeRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java similarity index 63% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java index 5ba1a3a7791d..f9b4ab4e5e6c 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java @@ -1,62 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Request for [HubService.GetHub][google.cloud.networkconnectivity.v1alpha1.HubService.GetHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetHubRequest} */ -public final class GetHubRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetHubRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) GetHubRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetHubRequest.newBuilder() to construct. private GetHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetHubRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the Hub resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +90,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 Hub resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -132,15 +159,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.networkconnectivity.v1alpha1.GetHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.GetHub][google.cloud.networkconnectivity.v1alpha1.HubService.GetHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetHubRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) com.google.cloud.networkconnectivity.v1alpha1.GetHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; } @java.lang.Override @@ -313,8 +347,11 @@ public com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +367,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.GetHubR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +462,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the Hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,20 +491,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the Hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -466,28 +515,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the Hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the Hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -497,26 +557,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the Hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) private static final com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest(); } @@ -540,27 +606,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java new file mode 100644 index 000000000000..f27e985b5766 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public interface GetHubRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the Hub resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the Hub resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java similarity index 61% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java index 6241282b9908..cf7d7735d223 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java @@ -1,62 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest} */ -public final class GetSpokeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSpokeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) GetSpokeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSpokeRequest.newBuilder() to construct. private GetSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSpokeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of Spoke resource.
    * 
* - * string name = 1 [(.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 @@ -65,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of Spoke resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -132,15 +159,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.networkconnectivity.v1alpha1.GetSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,13 +326,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance(); } @@ -313,13 +348,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -330,38 +369,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.GetSpok public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +409,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +443,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +465,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of Spoke resource.
      * 
* - * string name = 1 [(.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; @@ -445,20 +494,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of Spoke resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -466,28 +518,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of Spoke resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of Spoke resource.
      * 
* - * string 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() { @@ -497,26 +560,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of Spoke resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +595,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest(); } @@ -540,27 +610,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +645,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java new file mode 100644 index 000000000000..f96c9a120c67 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public interface GetSpokeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of Spoke resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of Spoke 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/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java similarity index 66% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java index 0785f0c3b51e..4f6053f779e0 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Network Connectivity Center is a hub-and-spoke abstraction for
  * network connectivity management in Google Cloud. It reduces
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Hub}
  */
-public final class Hub extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Hub extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.Hub)
     HubOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Hub.newBuilder() to construct.
   private Hub(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Hub() {
     name_ = "";
     description_ = "";
@@ -32,50 +50,54 @@ private Hub() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Hub();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1alpha1.Hub.class, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
+            com.google.cloud.networkconnectivity.v1alpha1.Hub.class,
+            com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -84,29 +106,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; } } /** + * + * *
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -117,11 +139,14 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -129,11 +154,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ @java.lang.Override @@ -141,6 +169,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Time when the Hub was created.
    * 
@@ -155,11 +185,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -167,11 +200,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ @java.lang.Override @@ -179,6 +215,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Time when the Hub was updated.
    * 
@@ -191,32 +229,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_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.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - 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_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * User-defined labels.
    * 
@@ -224,20 +264,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** + * + * *
    * User-defined labels.
    * 
@@ -249,6 +290,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * User-defined labels.
    * 
@@ -256,17 +299,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + 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; } /** + * + * *
    * User-defined labels.
    * 
@@ -274,11 +319,11 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new 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(); } @@ -286,14 +331,18 @@ public java.lang.String getLabelsOrThrow( } public static final int DESCRIPTION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Short description of the hub resource.
    * 
* * string description = 5; + * * @return The description. */ @java.lang.Override @@ -302,29 +351,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Short description of the hub resource.
    * 
* * string description = 5; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -333,37 +382,52 @@ public java.lang.String getDescription() { } public static final int SPOKES_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList spokes_; /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the spokes. */ - public com.google.protobuf.ProtocolStringList - getSpokesList() { + public com.google.protobuf.ProtocolStringList getSpokesList() { return spokes_; } /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The count of spokes. */ public int getSpokesCount() { return spokes_.size(); } /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The spokes at the given index. */ @@ -371,23 +435,30 @@ public java.lang.String getSpokes(int index) { return spokes_.get(index); } /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the spokes at the given index. */ - public com.google.protobuf.ByteString - getSpokesBytes(int index) { + public com.google.protobuf.ByteString getSpokesBytes(int index) { return spokes_.getByteString(index); } public static final int UNIQUE_ID_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -395,6 +466,7 @@ public java.lang.String getSpokes(int index) {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ @java.lang.Override @@ -403,14 +475,15 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -418,16 +491,15 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -438,30 +510,46 @@ public java.lang.String getUniqueId() { public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.networkconnectivity.v1alpha1.State getState() { + com.google.cloud.networkconnectivity.v1alpha1.State result = + com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null + ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -473,8 +561,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -484,12 +571,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -499,7 +582,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, uniqueId_); } - if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(9, state_); } getUnknownFields().writeTo(output); @@ -515,22 +599,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -546,9 +628,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, uniqueId_); } - if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, state_); + if (state_ + != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -558,33 +640,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.networkconnectivity.v1alpha1.Hub)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.Hub other = (com.google.cloud.networkconnectivity.v1alpha1.Hub) obj; + com.google.cloud.networkconnectivity.v1alpha1.Hub other = + (com.google.cloud.networkconnectivity.v1alpha1.Hub) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getSpokesList() - .equals(other.getSpokesList())) return false; - if (!getUniqueId() - .equals(other.getUniqueId())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getSpokesList().equals(other.getSpokesList())) return false; + if (!getUniqueId().equals(other.getUniqueId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -627,96 +703,103 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.Hub prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Connectivity Center is a hub-and-spoke abstraction for
    * network connectivity management in Google Cloud. It reduces
@@ -726,55 +809,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Hub}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.Hub)
       com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1alpha1.Hub.class, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
+              com.google.cloud.networkconnectivity.v1alpha1.Hub.class,
+              com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1alpha1.Hub.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -800,9 +880,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
     }
 
     @java.lang.Override
@@ -821,14 +901,18 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1alpha1.Hub buildPartial() {
-      com.google.cloud.networkconnectivity.v1alpha1.Hub result = new com.google.cloud.networkconnectivity.v1alpha1.Hub(this);
+      com.google.cloud.networkconnectivity.v1alpha1.Hub result =
+          new com.google.cloud.networkconnectivity.v1alpha1.Hub(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.Hub result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1alpha1.Hub result) {
       if (((bitField0_ & 0x00000020) != 0)) {
         spokes_ = spokes_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000020);
@@ -842,14 +926,10 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Hub res
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -870,38 +950,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Hub res
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.Hub) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Hub)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Hub) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -909,7 +990,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Hub other) {
-      if (other == com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -921,8 +1003,7 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Hub other
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -973,61 +1054,68 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureSpokesIsMutable();
-              spokes_.add(s);
-              break;
-            } // case 50
-            case 66: {
-              uniqueId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 66
-            case 72: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 72
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureSpokesIsMutable();
+                spokes_.add(s);
+                break;
+              } // case 50
+            case 66:
+              {
+                uniqueId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 66
+            case 72:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 72
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1037,22 +1125,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -1061,20 +1152,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -1082,28 +1174,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1113,17 +1212,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1133,34 +1236,47 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Time when the Hub was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Time when the Hub was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; + * * @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(); } } /** + * + * *
      * Time when the Hub was created.
      * 
@@ -1181,14 +1297,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the Hub was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1199,6 +1316,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Time when the Hub was created.
      * 
@@ -1207,9 +1326,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1222,6 +1341,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the Hub was created.
      * 
@@ -1239,6 +1360,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Time when the Hub was created.
      * 
@@ -1251,6 +1374,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the Hub was created.
      * 
@@ -1261,11 +1386,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Time when the Hub was created.
      * 
@@ -1273,14 +1401,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> 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_; @@ -1288,34 +1419,47 @@ 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_; /** + * + * *
      * Time when the Hub was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Time when the Hub was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @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(); } } /** + * + * *
      * Time when the Hub was updated.
      * 
@@ -1336,14 +1480,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the Hub was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1354,6 +1499,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Time when the Hub was updated.
      * 
@@ -1362,9 +1509,9 @@ public Builder setUpdateTime( */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1377,6 +1524,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the Hub was updated.
      * 
@@ -1394,6 +1543,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Time when the Hub was updated.
      * 
@@ -1406,6 +1557,8 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the Hub was updated.
      * 
@@ -1416,11 +1569,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Time when the Hub was updated.
      * 
@@ -1428,34 +1584,35 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1464,10 +1621,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * User-defined labels.
      * 
@@ -1475,20 +1635,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** + * + * *
      * User-defined labels.
      * 
@@ -1500,6 +1661,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * User-defined labels.
      * 
@@ -1507,17 +1670,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + 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; } /** + * + * *
      * User-defined labels.
      * 
@@ -1525,91 +1690,95 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new 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(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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); + 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); bitField0_ |= 0x00000008; return this; } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object description_ = ""; /** + * + * *
      * Short description of the hub resource.
      * 
* * string description = 5; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1618,20 +1787,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Short description of the hub resource.
      * 
* * string description = 5; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1639,28 +1809,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Short description of the hub resource.
      * 
* * string description = 5; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Short description of the hub resource.
      * 
* * string description = 5; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1670,17 +1847,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Short description of the hub resource.
      * 
* * string description = 5; + * * @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(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -1688,42 +1869,58 @@ public Builder setDescriptionBytes( return this; } - private com.google.protobuf.LazyStringList spokes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList spokes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSpokesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { spokes_ = new com.google.protobuf.LazyStringArrayList(spokes_); bitField0_ |= 0x00000020; - } + } } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the spokes. */ - public com.google.protobuf.ProtocolStringList - getSpokesList() { + public com.google.protobuf.ProtocolStringList getSpokesList() { return spokes_.getUnmodifiableView(); } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The count of spokes. */ public int getSpokesCount() { return spokes_.size(); } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The spokes at the given index. */ @@ -1731,76 +1928,100 @@ public java.lang.String getSpokes(int index) { return spokes_.get(index); } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the spokes at the given index. */ - public com.google.protobuf.ByteString - getSpokesBytes(int index) { + public com.google.protobuf.ByteString getSpokesBytes(int index) { return spokes_.getByteString(index); } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The spokes to set. * @return This builder for chaining. */ - public Builder setSpokes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpokes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSpokesIsMutable(); spokes_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The spokes to add. * @return This builder for chaining. */ - public Builder addSpokes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSpokes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSpokesIsMutable(); spokes_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param values The spokes to add. * @return This builder for chaining. */ - public Builder addAllSpokes( - java.lang.Iterable values) { + public Builder addAllSpokes(java.lang.Iterable values) { ensureSpokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, spokes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spokes_); onChanged(); return this; } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSpokes() { @@ -1810,17 +2031,23 @@ public Builder clearSpokes() { return this; } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the spokes to add. * @return This builder for chaining. */ - public Builder addSpokesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSpokesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureSpokesIsMutable(); spokes_.add(value); @@ -1830,6 +2057,8 @@ public Builder addSpokesBytes( private java.lang.Object uniqueId_ = ""; /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -1837,13 +2066,13 @@ public Builder addSpokesBytes(
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -1852,6 +2081,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -1859,15 +2090,14 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -1875,6 +2105,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -1882,18 +2114,22 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uniqueId_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -1901,6 +2137,7 @@ public Builder setUniqueId(
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -1910,6 +2147,8 @@ public Builder clearUniqueId() { return this; } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -1917,12 +2156,14 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000040; @@ -1932,22 +2173,33 @@ public Builder setUniqueIdBytes( private int state_ = 0; /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1958,24 +2210,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; + com.google.cloud.networkconnectivity.v1alpha1.State result = + com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null + ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1989,11 +2254,16 @@ public Builder setState(com.google.cloud.networkconnectivity.v1alpha1.State valu return this; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2002,9 +2272,9 @@ public Builder clearState() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2014,12 +2284,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.Hub) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.Hub) private static final com.google.cloud.networkconnectivity.v1alpha1.Hub DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.Hub(); } @@ -2028,27 +2298,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.Hub getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Hub parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Hub parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2063,6 +2333,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.Hub getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java index 710e35232205..598c124b3db5 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java @@ -1,51 +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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface HubOrBuilder extends +public interface HubOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.Hub) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Time when the Hub was created.
    * 
@@ -55,24 +84,32 @@ public interface HubOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Time when the Hub was updated.
    * 
@@ -82,6 +119,8 @@ public interface HubOrBuilder extends com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * User-defined labels.
    * 
@@ -90,30 +129,31 @@ public interface HubOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * User-defined labels.
    * 
@@ -121,82 +161,108 @@ boolean containsLabels( * map<string, string> labels = 4; */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Short description of the hub resource.
    * 
* * string description = 5; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Short description of the hub resource.
    * 
* * string description = 5; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the spokes. */ - java.util.List - getSpokesList(); + java.util.List getSpokesList(); /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The count of spokes. */ int getSpokesCount(); /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The spokes at the given index. */ java.lang.String getSpokes(int index); /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the spokes at the given index. */ - com.google.protobuf.ByteString - getSpokesBytes(int index); + com.google.protobuf.ByteString getSpokesBytes(int index); /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -204,10 +270,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ java.lang.String getUniqueId(); /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -215,26 +284,36 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString - getUniqueIdBytes(); + com.google.protobuf.ByteString getUniqueIdBytes(); /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.networkconnectivity.v1alpha1.State getState(); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java new file mode 100644 index 000000000000..4f2423ff81f4 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java @@ -0,0 +1,460 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1alpha1/hub.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public final class HubProto { + private HubProto() {} + + 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_networkconnectivity_v1alpha1_Hub_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/networkconnectivity/v1alp" + + "ha1/hub.proto\022)google.cloud.networkconne" + + "ctivity.v1alpha1\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\032\037google/" + + "api/field_behavior.proto\032\031google/api/res" + + "ource.proto\032#google/longrunning/operatio" + + "ns.proto\032 google/protobuf/field_mask.pro" + + "to\032\037google/protobuf/timestamp.proto\"\207\004\n\003" + + "Hub\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_time\030\002 " + + "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat" + + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "\022J\n\006labels\030\004 \003(\0132:.google.cloud.networkc" + + "onnectivity.v1alpha1.Hub.LabelsEntry\022\023\n\013" + + "description\030\005 \001(\t\022@\n\006spokes\030\006 \003(\tB0\340A\003\372A" + + "*\n(networkconnectivity.googleapis.com/Sp" + + "oke\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022D\n\005state\030\t \001" + + "(\01620.google.cloud.networkconnectivity.v1" + + "alpha1.StateB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:[\352AX\n&networkco" + + "nnectivity.googleapis.com/Hub\022.projects/" + + "{project}/locations/global/hubs/{hub}\"\234\006" + + "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_tim" + + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022/\n\013u" + + "pdate_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tamp\022L\n\006labels\030\004 \003(\0132<.google.cloud.netw" + + "orkconnectivity.v1alpha1.Spoke.LabelsEnt" + + "ry\022\023\n\013description\030\005 \001(\t\0228\n\003hub\030\006 \001(\tB+\372A" + + "(\n&networkconnectivity.googleapis.com/Hu" + + "b\022A\n\022linked_vpn_tunnels\030\014 \003(\tB%\372A\"\n comp" + + "ute.googleapis.com/VpnTunnel\022[\n\037linked_i" + + "nterconnect_attachments\030\r \003(\tB2\372A/\n-comp" + + "ute.googleapis.com/InterconnectAttachmen" + + "t\022m\n!linked_router_appliance_instances\030\016" + + " \003(\0132B.google.cloud.networkconnectivity." + + "v1alpha1.RouterApplianceInstance\022\026\n\tuniq" + + "ue_id\030\013 \001(\tB\003\340A\003\022D\n\005state\030\017 \001(\01620.google" + + ".cloud.networkconnectivity.v1alpha1.Stat" + + "eB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001:e\352Ab\n(networkconnectivity." + + "googleapis.com/Spoke\0226projects/{project}" + + "/locations/{location}/spokes/{spoke}\"\225\001\n" + + "\017ListHubsRequest\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\022\016\n\006fi" + + "lter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\020ListHubs" + + "Response\022<\n\004hubs\030\001 \003(\0132..google.cloud.ne" + + "tworkconnectivity.v1alpha1.Hub\022\027\n\017next_p" + + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\r" + + "GetHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" + + "workconnectivity.googleapis.com/Hub\"\275\001\n\020" + + "CreateHubRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\n!locations.googleapis.com/Location\022\023\n\006h" + + "ub_id\030\002 \001(\tB\003\340A\001\022@\n\003hub\030\003 \001(\0132..google.c" + + "loud.networkconnectivity.v1alpha1.HubB\003\340" + + "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\020UpdateHu" + + "bRequest\0224\n\013update_mask\030\001 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\003\340A\001\022@\n\003hub\030\002 \001(\0132..go" + + "ogle.cloud.networkconnectivity.v1alpha1." + + "HubB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"i\n\020Del" + + "eteHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" + + "workconnectivity.googleapis.com/Hub\022\027\n\nr" + + "equest_id\030\002 \001(\tB\003\340A\001\"\227\001\n\021ListSpokesReque" + + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + + "ogleapis.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\022\020\n\010" + + "order_by\030\005 \001(\t\"\204\001\n\022ListSpokesResponse\022@\n" + + "\006spokes\030\001 \003(\01320.google.cloud.networkconn" + + "ectivity.v1alpha1.Spoke\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\017GetSpok" + + "eRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(networkc" + + "onnectivity.googleapis.com/Spoke\"\305\001\n\022Cre" + + "ateSpokeRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\025\n\010sp" + + "oke_id\030\002 \001(\tB\003\340A\001\022D\n\005spoke\030\003 \001(\01320.googl" + + "e.cloud.networkconnectivity.v1alpha1.Spo" + + "keB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\251\001\n\022Upd" + + "ateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\003\340A\001\022D\n\005spoke\030\002" + + " \001(\01320.google.cloud.networkconnectivity." + + "v1alpha1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB" + + "\003\340A\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\t" + + "B0\340A\002\372A*\n(networkconnectivity.googleapis" + + ".com/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\213\001\n\027" + + "RouterApplianceInstance\022=\n\017virtual_machi" + + "ne\030\001 \001(\tB$\372A!\n\037compute.googleapis.com/In" + + "stance\022\022\n\nip_address\030\003 \001(\t\022\035\n\021network_in" + + "terface\030\002 \001(\tB\002\030\001*F\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010D" + + "ELETING\020\0032\255\021\n\nHubService\022\311\001\n\010ListHubs\022:." + + "google.cloud.networkconnectivity.v1alpha" + + "1.ListHubsRequest\032;.google.cloud.network" + + "connectivity.v1alpha1.ListHubsResponse\"D" + + "\202\323\344\223\0025\0223/v1alpha1/{parent=projects/*/loc" + + "ations/global}/hubs\332A\006parent\022\266\001\n\006GetHub\022" + + "8.google.cloud.networkconnectivity.v1alp" + + "ha1.GetHubRequest\032..google.cloud.network" + + "connectivity.v1alpha1.Hub\"B\202\323\344\223\0025\0223/v1al" + + "pha1/{name=projects/*/locations/global/h" + + "ubs/*}\332A\004name\022\330\001\n\tCreateHub\022;.google.clo" + + "ud.networkconnectivity.v1alpha1.CreateHu" + + "bRequest\032\035.google.longrunning.Operation\"" + + "o\202\323\344\223\002:\"3/v1alpha1/{parent=projects/*/lo" + + "cations/global}/hubs:\003hub\332A\021parent,hub,h" + + "ub_id\312A\030\n\003Hub\022\021OperationMetadata\022\332\001\n\tUpd" + + "ateHub\022;.google.cloud.networkconnectivit" + + "y.v1alpha1.UpdateHubRequest\032\035.google.lon" + + "grunning.Operation\"q\202\323\344\223\002>27/v1alpha1/{h" + + "ub.name=projects/*/locations/global/hubs" + + "/*}:\003hub\332A\017hub,update_mask\312A\030\n\003Hub\022\021Oper" + + "ationMetadata\022\330\001\n\tDeleteHub\022;.google.clo" + + "ud.networkconnectivity.v1alpha1.DeleteHu" + + "bRequest\032\035.google.longrunning.Operation\"" + + "o\202\323\344\223\0025*3/v1alpha1/{name=projects/*/loca" + + "tions/global/hubs/*}\332A\004name\312A*\n\025google.p" + + "rotobuf.Empty\022\021OperationMetadata\022\314\001\n\nLis" + + "tSpokes\022<.google.cloud.networkconnectivi" + + "ty.v1alpha1.ListSpokesRequest\032=.google.c" + + "loud.networkconnectivity.v1alpha1.ListSp" + + "okesResponse\"A\202\323\344\223\0022\0220/v1alpha1/{parent=" + + "projects/*/locations/*}/spokes\332A\006parent\022" + + "\271\001\n\010GetSpoke\022:.google.cloud.networkconne" + + "ctivity.v1alpha1.GetSpokeRequest\0320.googl" + + "e.cloud.networkconnectivity.v1alpha1.Spo" + + "ke\"?\202\323\344\223\0022\0220/v1alpha1/{name=projects/*/l" + + "ocations/*/spokes/*}\332A\004name\022\341\001\n\013CreateSp" + + "oke\022=.google.cloud.networkconnectivity.v" + + "1alpha1.CreateSpokeRequest\032\035.google.long" + + "running.Operation\"t\202\323\344\223\0029\"0/v1alpha1/{pa" + + "rent=projects/*/locations/*}/spokes:\005spo" + + "ke\332A\025parent,spoke,spoke_id\312A\032\n\005Spoke\022\021Op" + + "erationMetadata\022\343\001\n\013UpdateSpoke\022=.google" + + ".cloud.networkconnectivity.v1alpha1.Upda" + + "teSpokeRequest\032\035.google.longrunning.Oper" + + "ation\"v\202\323\344\223\002?26/v1alpha1/{spoke.name=pro" + + "jects/*/locations/*/spokes/*}:\005spoke\332A\021s" + + "poke,update_mask\312A\032\n\005Spoke\022\021OperationMet" + + "adata\022\331\001\n\013DeleteSpoke\022=.google.cloud.net" + + "workconnectivity.v1alpha1.DeleteSpokeReq" + + "uest\032\035.google.longrunning.Operation\"l\202\323\344" + + "\223\0022*0/v1alpha1/{name=projects/*/location" + + "s/*/spokes/*}\332A\004name\312A*\n\025google.protobuf" + + ".Empty\022\021OperationMetadata\032V\312A\"networkcon" + + "nectivity.googleapis.com\322A.https://www.g" + + "oogleapis.com/auth/cloud-platformB\332\004\n-co" + + "m.google.cloud.networkconnectivity.v1alp" + + "ha1B\010HubProtoP\001Z\\google.golang.org/genpr" + + "oto/googleapis/cloud/networkconnectivity" + + "/v1alpha1;networkconnectivity\252\002)Google.C" + + "loud.NetworkConnectivity.V1Alpha1\312\002)Goog" + + "le\\Cloud\\NetworkConnectivity\\V1alpha1\352\002," + + "Google::Cloud::NetworkConnectivity::V1al" + + "pha1\352A`\n compute.googleapis.com/VpnTunne" + + "l\022 * Request for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method. *
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsRequest} */ -public final class ListHubsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListHubsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) ListHubsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListHubsRequest.newBuilder() to construct. private ListHubsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListHubsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,38 +46,45 @@ private ListHubsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListHubsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 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 @@ -68,29 +93,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 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 { @@ -101,11 +128,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -114,14 +144,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -130,29 +164,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The page token.
    * 
* * 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 { @@ -161,14 +195,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -177,29 +215,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; } } /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * 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 { @@ -208,14 +246,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -224,29 +266,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -255,6 +297,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -296,8 +338,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_); @@ -316,23 +357,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.networkconnectivity.v1alpha1.ListHubsRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest other = (com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -360,129 +397,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,13 +540,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance(); } @@ -517,13 +562,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -546,38 +595,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListHub public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) other); } else { super.mergeFrom(other); return this; @@ -585,7 +635,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -635,37 +687,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -675,22 +733,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource's name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -699,20 +762,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * string parent = 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,28 +786,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * string 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() { @@ -751,17 +828,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -769,13 +852,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -783,27 +869,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -815,18 +907,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The page token.
      * 
* * 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; @@ -835,20 +929,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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 { @@ -856,28 +951,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The page token.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -887,17 +989,21 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -907,18 +1013,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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; @@ -927,20 +1035,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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 { @@ -948,28 +1057,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -979,17 +1095,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -999,18 +1119,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1019,20 +1141,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1040,28 +1163,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1071,26 +1201,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1100,12 +1234,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest(); } @@ -1114,27 +1249,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,6 +1284,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java index 18dcea236671..d04315d22cc4 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java @@ -1,99 +1,142 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListHubsRequestOrBuilder extends +public interface ListHubsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java index 38bda54f7ae1..f9b82a08d489 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsResponse} */ -public final class ListHubsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListHubsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) ListHubsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListHubsResponse.newBuilder() to construct. private ListHubsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListHubsResponse() { hubs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,33 +45,37 @@ private ListHubsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListHubsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); } public static final int HUBS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List hubs_; /** + * + * *
    * Hubs to be returned.
    * 
@@ -65,6 +87,8 @@ public java.util.List getHubs return hubs_; } /** + * + * *
    * Hubs to be returned.
    * 
@@ -72,11 +96,13 @@ public java.util.List getHubs * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getHubsOrBuilderList() { return hubs_; } /** + * + * *
    * Hubs to be returned.
    * 
@@ -88,6 +114,8 @@ public int getHubsCount() { return hubs_.size(); } /** + * + * *
    * Hubs to be returned.
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index) { return hubs_.get(index); } /** + * + * *
    * Hubs to be returned.
    * 
@@ -106,21 +136,24 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index) { * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder(int index) { return hubs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +162,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -161,37 +194,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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. */ @@ -199,20 +241,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; @@ -224,8 +269,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < hubs_.size(); i++) { output.writeMessage(1, hubs_.get(i)); } @@ -245,8 +289,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < hubs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, hubs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hubs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +310,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.networkconnectivity.v1alpha1.ListHubsResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse other = (com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) obj; + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse other = + (com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) obj; - if (!getHubsList() - .equals(other.getHubsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getHubsList().equals(other.getHubsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +348,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,13 +496,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance(); } @@ -469,14 +518,18 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse(this); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result = + new com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { if (hubsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { hubs_ = java.util.Collections.unmodifiableList(hubs_); @@ -493,7 +546,8 @@ private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1a result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -504,38 +558,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListHub public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) other); } else { super.mergeFrom(other); return this; @@ -543,7 +598,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance()) + return this; if (hubsBuilder_ == null) { if (!other.hubs_.isEmpty()) { if (hubs_.isEmpty()) { @@ -562,9 +619,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListHubsR hubsBuilder_ = null; hubs_ = other.hubs_; bitField0_ = (bitField0_ & ~0x00000001); - hubsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHubsFieldBuilder() : null; + hubsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHubsFieldBuilder() + : null; } else { hubsBuilder_.addAllMessages(other.hubs_); } @@ -611,36 +669,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.networkconnectivity.v1alpha1.Hub m = - input.readMessage( - com.google.cloud.networkconnectivity.v1alpha1.Hub.parser(), - extensionRegistry); - if (hubsBuilder_ == null) { - ensureHubsIsMutable(); - hubs_.add(m); - } else { - hubsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.networkconnectivity.v1alpha1.Hub m = + input.readMessage( + com.google.cloud.networkconnectivity.v1alpha1.Hub.parser(), + extensionRegistry); + if (hubsBuilder_ == null) { + ensureHubsIsMutable(); + hubs_.add(m); + } else { + hubsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,21 +712,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List hubs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureHubsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { hubs_ = new java.util.ArrayList(hubs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> hubsBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + hubsBuilder_; /** + * + * *
      * Hubs to be returned.
      * 
@@ -679,6 +748,8 @@ public java.util.List getHubs } } /** + * + * *
      * Hubs to be returned.
      * 
@@ -693,6 +764,8 @@ public int getHubsCount() { } } /** + * + * *
      * Hubs to be returned.
      * 
@@ -707,14 +780,15 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index) { } } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public Builder setHubs( - int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { + public Builder setHubs(int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -728,6 +802,8 @@ public Builder setHubs( return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -746,6 +822,8 @@ public Builder setHubs( return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -766,14 +844,15 @@ public Builder addHubs(com.google.cloud.networkconnectivity.v1alpha1.Hub value) return this; } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public Builder addHubs( - int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { + public Builder addHubs(int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -787,6 +866,8 @@ public Builder addHubs( return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -805,6 +886,8 @@ public Builder addHubs( return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -823,6 +906,8 @@ public Builder addHubs( return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -833,8 +918,7 @@ public Builder addAllHubs( java.lang.Iterable values) { if (hubsBuilder_ == null) { ensureHubsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, hubs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hubs_); onChanged(); } else { hubsBuilder_.addAllMessages(values); @@ -842,6 +926,8 @@ public Builder addAllHubs( return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -859,6 +945,8 @@ public Builder clearHubs() { return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -876,39 +964,44 @@ public Builder removeHubs(int index) { return this; } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubsBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubsBuilder(int index) { return getHubsFieldBuilder().getBuilder(index); } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder(int index) { if (hubsBuilder_ == null) { - return hubs_.get(index); } else { + return hubs_.get(index); + } else { return hubsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public java.util.List - getHubsOrBuilderList() { + public java.util.List + getHubsOrBuilderList() { if (hubsBuilder_ != null) { return hubsBuilder_.getMessageOrBuilderList(); } else { @@ -916,6 +1009,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuild } } /** + * + * *
      * Hubs to be returned.
      * 
@@ -923,42 +1018,49 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuild * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder() { - return getHubsFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); + return getHubsFieldBuilder() + .addBuilder(com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder( - int index) { - return getHubsFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder(int index) { + return getHubsFieldBuilder() + .addBuilder( + index, com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public java.util.List - getHubsBuilderList() { + public java.util.List + getHubsBuilderList() { return getHubsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> getHubsFieldBuilder() { if (hubsBuilder_ == null) { - hubsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( - hubs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + hubsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( + hubs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); hubs_ = null; } return hubsBuilder_; @@ -966,19 +1068,21 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -987,21 +1091,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1009,30 +1114,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1154,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1177,52 @@ public Builder setNextPageTokenBytes( 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * 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. */ @@ -1104,76 +1230,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) { - if (value == null) { throw new NullPointerException(); } + 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(); } + 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) { + 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() { @@ -1183,26 +1323,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) { - if (value == null) { throw new NullPointerException(); } + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1212,41 +1356,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse(); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1258,9 +1404,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java index 04585dd17478..0e7c350ae916 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListHubsResponseOrBuilder extends +public interface ListHubsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Hubs to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - java.util.List - getHubsList(); + java.util.List getHubsList(); /** + * + * *
    * Hubs to be returned.
    * 
@@ -25,6 +44,8 @@ public interface ListHubsResponseOrBuilder extends */ com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index); /** + * + * *
    * Hubs to be returned.
    * 
@@ -33,84 +54,102 @@ public interface ListHubsResponseOrBuilder extends */ int getHubsCount(); /** + * + * *
    * Hubs to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - java.util.List + java.util.List getHubsOrBuilderList(); /** + * + * *
    * Hubs to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder( - int index); + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder(int index); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java similarity index 66% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java index d02e80f4ce44..16ad2870ba59 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest} */ -public final class ListSpokesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSpokesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) ListSpokesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSpokesRequest.newBuilder() to construct. private ListSpokesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSpokesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,38 +46,45 @@ private ListSpokesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSpokesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent's resource name.
    * 
* - * string parent = 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 @@ -68,29 +93,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent's resource name.
    * 
* - * string parent = 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 { @@ -101,11 +128,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -114,14 +144,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -130,29 +164,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The page token.
    * 
* * 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 { @@ -161,14 +195,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -177,29 +215,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; } } /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * 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 { @@ -208,14 +246,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -224,29 +266,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -255,6 +297,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -296,8 +338,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_); @@ -316,23 +357,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.networkconnectivity.v1alpha1.ListSpokesRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other = (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -360,129 +397,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,13 +540,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance(); } @@ -517,13 +562,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -546,46 +595,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListSpo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -635,37 +688,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -675,22 +734,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent's resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -699,20 +763,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent's resource name.
      * 
* - * string parent = 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,28 +787,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent's resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent's resource name.
      * 
* - * string 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() { @@ -751,17 +829,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent's resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -769,13 +853,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -783,27 +870,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -815,18 +908,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The page token.
      * 
* * 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; @@ -835,20 +930,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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 { @@ -856,28 +952,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The page token.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -887,17 +990,21 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -907,18 +1014,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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; @@ -927,20 +1036,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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 { @@ -948,28 +1058,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -979,17 +1096,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -999,18 +1120,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1019,20 +1142,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1040,28 +1164,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1071,26 +1202,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1100,41 +1235,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1146,9 +1283,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java index ec02d876fd99..444a3f40fd43 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java @@ -1,99 +1,142 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListSpokesRequestOrBuilder extends +public interface ListSpokesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent's resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent's resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java index 9193ff955e1f..df099e099d9c 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse} */ -public final class ListSpokesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSpokesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) ListSpokesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSpokesResponse.newBuilder() to construct. private ListSpokesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSpokesResponse() { spokes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,33 +45,37 @@ private ListSpokesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSpokesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); } public static final int SPOKES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List spokes_; /** + * + * *
    * Spokes to be returned.
    * 
@@ -65,6 +87,8 @@ public java.util.List getSp return spokes_; } /** + * + * *
    * Spokes to be returned.
    * 
@@ -72,11 +96,13 @@ public java.util.List getSp * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSpokesOrBuilderList() { return spokes_; } /** + * + * *
    * Spokes to be returned.
    * 
@@ -88,6 +114,8 @@ public int getSpokesCount() { return spokes_.size(); } /** + * + * *
    * Spokes to be returned.
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpokes(int index) return spokes_.get(index); } /** + * + * *
    * Spokes to be returned.
    * 
@@ -112,15 +142,19 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrB } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +163,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -161,37 +195,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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. */ @@ -199,20 +242,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; @@ -224,8 +270,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < spokes_.size(); i++) { output.writeMessage(1, spokes_.get(i)); } @@ -245,8 +290,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < spokes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, spokes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, spokes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +311,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.networkconnectivity.v1alpha1.ListSpokesResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other = (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) obj; + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other = + (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) obj; - if (!getSpokesList() - .equals(other.getSpokesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getSpokesList().equals(other.getSpokesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +349,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,13 +497,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance(); } @@ -469,14 +519,18 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse(this); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result = + new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { if (spokesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { spokes_ = java.util.Collections.unmodifiableList(spokes_); @@ -493,7 +547,8 @@ private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1a result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -504,46 +559,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListSpo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other) { + if (other + == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance()) + return this; if (spokesBuilder_ == null) { if (!other.spokes_.isEmpty()) { if (spokes_.isEmpty()) { @@ -562,9 +621,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListSpoke spokesBuilder_ = null; spokes_ = other.spokes_; bitField0_ = (bitField0_ & ~0x00000001); - spokesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSpokesFieldBuilder() : null; + spokesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSpokesFieldBuilder() + : null; } else { spokesBuilder_.addAllMessages(other.spokes_); } @@ -611,36 +671,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.networkconnectivity.v1alpha1.Spoke m = - input.readMessage( - com.google.cloud.networkconnectivity.v1alpha1.Spoke.parser(), - extensionRegistry); - if (spokesBuilder_ == null) { - ensureSpokesIsMutable(); - spokes_.add(m); - } else { - spokesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.networkconnectivity.v1alpha1.Spoke m = + input.readMessage( + com.google.cloud.networkconnectivity.v1alpha1.Spoke.parser(), + extensionRegistry); + if (spokesBuilder_ == null) { + ensureSpokesIsMutable(); + spokes_.add(m); + } else { + spokesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,21 +714,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List spokes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSpokesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - spokes_ = new java.util.ArrayList(spokes_); + spokes_ = + new java.util.ArrayList(spokes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> spokesBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + spokesBuilder_; /** + * + * *
      * Spokes to be returned.
      * 
@@ -679,6 +751,8 @@ public java.util.List getSp } } /** + * + * *
      * Spokes to be returned.
      * 
@@ -693,6 +767,8 @@ public int getSpokesCount() { } } /** + * + * *
      * Spokes to be returned.
      * 
@@ -707,14 +783,15 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpokes(int index) } } /** + * + * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public Builder setSpokes( - int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { + public Builder setSpokes(int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -728,6 +805,8 @@ public Builder setSpokes( return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -746,6 +825,8 @@ public Builder setSpokes( return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -766,14 +847,15 @@ public Builder addSpokes(com.google.cloud.networkconnectivity.v1alpha1.Spoke val return this; } /** + * + * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public Builder addSpokes( - int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { + public Builder addSpokes(int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -787,6 +869,8 @@ public Builder addSpokes( return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -805,6 +889,8 @@ public Builder addSpokes( return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -823,6 +909,8 @@ public Builder addSpokes( return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -833,8 +921,7 @@ public Builder addAllSpokes( java.lang.Iterable values) { if (spokesBuilder_ == null) { ensureSpokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, spokes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spokes_); onChanged(); } else { spokesBuilder_.addAllMessages(values); @@ -842,6 +929,8 @@ public Builder addAllSpokes( return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -859,6 +948,8 @@ public Builder clearSpokes() { return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -876,17 +967,20 @@ public Builder removeSpokes(int index) { return this; } /** + * + * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokesBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokesBuilder(int index) { return getSpokesFieldBuilder().getBuilder(index); } /** + * + * *
      * Spokes to be returned.
      * 
@@ -896,19 +990,22 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokesBuil public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrBuilder( int index) { if (spokesBuilder_ == null) { - return spokes_.get(index); } else { + return spokes_.get(index); + } else { return spokesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public java.util.List - getSpokesOrBuilderList() { + public java.util.List + getSpokesOrBuilderList() { if (spokesBuilder_ != null) { return spokesBuilder_.getMessageOrBuilderList(); } else { @@ -916,6 +1013,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrB } } /** + * + * *
      * Spokes to be returned.
      * 
@@ -923,42 +1022,49 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrB * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuilder() { - return getSpokesFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); + return getSpokesFieldBuilder() + .addBuilder(com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); } /** + * + * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuilder( - int index) { - return getSpokesFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuilder(int index) { + return getSpokesFieldBuilder() + .addBuilder( + index, com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); } /** + * + * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public java.util.List - getSpokesBuilderList() { + public java.util.List + getSpokesBuilderList() { return getSpokesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> getSpokesFieldBuilder() { if (spokesBuilder_ == null) { - spokesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( - spokes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + spokesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( + spokes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); spokes_ = null; } return spokesBuilder_; @@ -966,19 +1072,21 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuil private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -987,21 +1095,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1009,30 +1118,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1158,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1181,52 @@ public Builder setNextPageTokenBytes( 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * 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. */ @@ -1104,76 +1234,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) { - if (value == null) { throw new NullPointerException(); } + 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(); } + 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) { + 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() { @@ -1183,26 +1327,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) { - if (value == null) { throw new NullPointerException(); } + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1212,41 +1360,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse(); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1258,9 +1408,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java index cd1aaeb8ddaf..f961b406b6ac 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListSpokesResponseOrBuilder extends +public interface ListSpokesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Spokes to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - java.util.List - getSpokesList(); + java.util.List getSpokesList(); /** + * + * *
    * Spokes to be returned.
    * 
@@ -25,6 +44,8 @@ public interface ListSpokesResponseOrBuilder extends */ com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpokes(int index); /** + * + * *
    * Spokes to be returned.
    * 
@@ -33,84 +54,102 @@ public interface ListSpokesResponseOrBuilder extends */ int getSpokesCount(); /** + * + * *
    * Spokes to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - java.util.List + java.util.List getSpokesOrBuilderList(); /** + * + * *
    * Spokes to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrBuilder( - int index); + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrBuilder(int index); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java index adc9f5345b26..e602957e7330 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/common.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,37 +46,42 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -66,11 +89,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -78,11 +105,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -92,11 +122,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -104,11 +138,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -116,11 +154,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -128,14 +169,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -144,29 +189,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -175,14 +220,18 @@ public java.lang.String getTarget() { } public static final int VERB_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -191,29 +240,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -222,14 +271,18 @@ public java.lang.String getVerb() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -238,29 +291,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -271,6 +324,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -279,6 +334,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -287,14 +343,18 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -303,29 +363,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -334,6 +394,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -345,8 +406,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -378,12 +438,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_); @@ -395,8 +453,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_); @@ -409,33 +466,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.networkconnectivity.v1alpha1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other = (com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) obj; + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other = + (com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -462,8 +513,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) + getUnknownFields().hashCode(); @@ -472,129 +522,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) com.google.cloud.networkconnectivity.v1alpha1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -618,13 +675,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.getDefaultInstance(); } @@ -639,23 +697,23 @@ public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result = new com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result = + new com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -678,46 +736,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Operati public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other) { + if (other + == com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -773,51 +835,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -827,43 +893,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time 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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -879,14 +965,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -897,17 +986,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -920,11 +1013,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -937,11 +1034,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -949,36 +1050,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -986,24 +1099,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1014,11 +1138,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1034,14 +1161,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1052,17 +1181,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1075,11 +1207,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1092,11 +1227,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1104,36 +1242,44 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1141,18 +1287,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1161,20 +1309,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1182,28 +1331,35 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1213,17 +1369,21 @@ public Builder clearTarget() { return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1233,18 +1393,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1253,20 +1415,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1274,28 +1437,35 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1305,17 +1475,21 @@ public Builder clearVerb() { return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1325,18 +1499,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1345,20 +1521,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1366,28 +1543,35 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1397,17 +1581,21 @@ public Builder clearStatusMessage() { return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1415,8 +1603,10 @@ public Builder setStatusMessageBytes( return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1425,6 +1615,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1432,6 +1623,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1440,17 +1633,20 @@ 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1459,6 +1655,7 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1470,18 +1667,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1490,20 +1689,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1511,28 +1711,35 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1542,26 +1749,30 @@ public Builder clearApiVersion() { return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1571,41 +1782,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) - private static final com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata(); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1617,9 +1830,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java index 9df65555334e..984bdadf0f01 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/common.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java similarity index 63% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java index a16aa2f28465..0b6f52d0e51d 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * RouterAppliance represents a Router appliance which is specified by a VM URI
  * and a NIC address.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance}
  */
-public final class RouterApplianceInstance extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RouterApplianceInstance extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance)
     RouterApplianceInstanceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RouterApplianceInstance.newBuilder() to construct.
   private RouterApplianceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RouterApplianceInstance() {
     virtualMachine_ = "";
     ipAddress_ = "";
@@ -28,38 +46,43 @@ private RouterApplianceInstance() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RouterApplianceInstance();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
+            com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class,
+            com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
   }
 
   public static final int VIRTUAL_MACHINE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object virtualMachine_ = "";
   /**
+   *
+   *
    * 
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The virtualMachine. */ @java.lang.Override @@ -68,29 +91,29 @@ public java.lang.String getVirtualMachine() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; } } /** + * + * *
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for virtualMachine. */ @java.lang.Override - public com.google.protobuf.ByteString - getVirtualMachineBytes() { + public com.google.protobuf.ByteString getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -99,14 +122,18 @@ public java.lang.String getVirtualMachine() { } public static final int IP_ADDRESS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object ipAddress_ = ""; /** + * + * *
    * The IP address of the network interface to use for peering.
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ @java.lang.Override @@ -115,29 +142,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; } } /** + * + * *
    * The IP address of the network interface to use for peering.
    * 
* * 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 { @@ -146,22 +173,24 @@ public java.lang.String getIpAddress() { } public static final int NETWORK_INTERFACE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object networkInterface_ = ""; /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface + * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The networkInterface. */ @java.lang.Override - @java.lang.Deprecated public java.lang.String getNetworkInterface() { + @java.lang.Deprecated + public java.lang.String getNetworkInterface() { java.lang.Object ref = networkInterface_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkInterface_ = s; return s; @@ -169,18 +198,18 @@ public java.lang.String getIpAddress() { } /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface + * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The bytes for networkInterface. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNetworkInterfaceBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getNetworkInterfaceBytes() { java.lang.Object ref = networkInterface_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); networkInterface_ = b; return b; } else { @@ -189,6 +218,7 @@ public java.lang.String getIpAddress() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +230,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualMachine_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, virtualMachine_); } @@ -237,19 +266,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.networkconnectivity.v1alpha1.RouterApplianceInstance)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other = (com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) obj; + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other = + (com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) obj; - if (!getVirtualMachine() - .equals(other.getVirtualMachine())) return false; - if (!getIpAddress() - .equals(other.getIpAddress())) return false; - if (!getNetworkInterface() - .equals(other.getNetworkInterface())) return false; + if (!getVirtualMachine().equals(other.getVirtualMachine())) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; + if (!getNetworkInterface().equals(other.getNetworkInterface())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -273,96 +300,105 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance 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.networkconnectivity.v1alpha1.RouterApplianceInstance + 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.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * RouterAppliance represents a Router appliance which is specified by a VM URI
    * and a NIC address.
@@ -370,33 +406,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance)
       com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
+              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class,
+              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
     }
 
-    // Construct using com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.newBuilder()
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -408,14 +444,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getDefaultInstanceForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance();
+    public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
+        getDefaultInstanceForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -429,13 +467,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance bui
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance buildPartial() {
-      com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result = new com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result =
+          new com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result) {
+    private void buildPartial0(
+        com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.virtualMachine_ = virtualMachine_;
@@ -452,46 +494,51 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.RouterA
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance)other);
+        return mergeFrom(
+            (com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other) {
-      if (other == com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other) {
+      if (other
+          == com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
+              .getDefaultInstance()) return this;
       if (!other.getVirtualMachine().isEmpty()) {
         virtualMachine_ = other.virtualMachine_;
         bitField0_ |= 0x00000001;
@@ -533,27 +580,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              virtualMachine_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              networkInterface_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 18
-            case 26: {
-              ipAddress_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                virtualMachine_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                networkInterface_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 18
+            case 26:
+              {
+                ipAddress_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -563,22 +614,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object virtualMachine_ = "";
     /**
+     *
+     *
      * 
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The virtualMachine. */ public java.lang.String getVirtualMachine() { java.lang.Object ref = virtualMachine_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; @@ -587,20 +641,21 @@ public java.lang.String getVirtualMachine() { } } /** + * + * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for virtualMachine. */ - public com.google.protobuf.ByteString - getVirtualMachineBytes() { + public com.google.protobuf.ByteString getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -608,28 +663,35 @@ public java.lang.String getVirtualMachine() { } } /** + * + * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @param value The virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachine( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVirtualMachine(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } virtualMachine_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearVirtualMachine() { @@ -639,17 +701,21 @@ public Builder clearVirtualMachine() { return this; } /** + * + * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachineBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVirtualMachineBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); virtualMachine_ = value; bitField0_ |= 0x00000001; @@ -659,18 +725,20 @@ public Builder setVirtualMachineBytes( private java.lang.Object ipAddress_ = ""; /** + * + * *
      * The IP address of the network interface to use for peering.
      * 
* * 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; @@ -679,20 +747,21 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The IP address of the network interface to use for peering.
      * 
* * 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 { @@ -700,28 +769,35 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The IP address of the network interface to use for peering.
      * 
* * 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(); } + public Builder setIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ipAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The IP address of the network interface to use for peering.
      * 
* * string ip_address = 3; + * * @return This builder for chaining. */ public Builder clearIpAddress() { @@ -731,17 +807,21 @@ public Builder clearIpAddress() { return this; } /** + * + * *
      * The IP address of the network interface to use for peering.
      * 
* * 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(); } + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ipAddress_ = value; bitField0_ |= 0x00000002; @@ -752,15 +832,17 @@ public Builder setIpAddressBytes( private java.lang.Object networkInterface_ = ""; /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated + * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is + * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The networkInterface. */ - @java.lang.Deprecated public java.lang.String getNetworkInterface() { + @java.lang.Deprecated + public java.lang.String getNetworkInterface() { java.lang.Object ref = networkInterface_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkInterface_ = s; return s; @@ -770,17 +852,18 @@ public Builder setIpAddressBytes( } /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated + * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is + * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The bytes for networkInterface. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getNetworkInterfaceBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getNetworkInterfaceBytes() { java.lang.Object ref = networkInterface_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); networkInterface_ = b; return b; } else { @@ -789,14 +872,18 @@ public Builder setIpAddressBytes( } /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated + * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is + * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @param value The networkInterface to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setNetworkInterface( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder setNetworkInterface(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } networkInterface_ = value; bitField0_ |= 0x00000004; onChanged(); @@ -804,11 +891,14 @@ public Builder setIpAddressBytes( } /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated + * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is + * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearNetworkInterface() { + @java.lang.Deprecated + public Builder clearNetworkInterface() { networkInterface_ = getDefaultInstance().getNetworkInterface(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); @@ -816,23 +906,27 @@ public Builder setIpAddressBytes( } /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated + * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is + * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @param value The bytes for networkInterface to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setNetworkInterfaceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder setNetworkInterfaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); networkInterface_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -842,41 +936,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) - private static final com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance(); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouterApplianceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouterApplianceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -888,9 +984,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java similarity index 55% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java index 09034b583365..9d10c38aef90 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java @@ -1,65 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface RouterApplianceInstanceOrBuilder extends +public interface RouterApplianceInstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The virtualMachine. */ java.lang.String getVirtualMachine(); /** + * + * *
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for virtualMachine. */ - com.google.protobuf.ByteString - getVirtualMachineBytes(); + com.google.protobuf.ByteString getVirtualMachineBytes(); /** + * + * *
    * The IP address of the network interface to use for peering.
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ java.lang.String getIpAddress(); /** + * + * *
    * The IP address of the network interface to use for peering.
    * 
* * string ip_address = 3; + * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString - getIpAddressBytes(); + com.google.protobuf.ByteString getIpAddressBytes(); /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface + * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The networkInterface. */ - @java.lang.Deprecated java.lang.String getNetworkInterface(); + @java.lang.Deprecated + java.lang.String getNetworkInterface(); /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface + * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The bytes for networkInterface. */ - @java.lang.Deprecated com.google.protobuf.ByteString - getNetworkInterfaceBytes(); + @java.lang.Deprecated + com.google.protobuf.ByteString getNetworkInterfaceBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java similarity index 66% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java index b425a46ccf5c..482de452ad94 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * A Spoke is an  abstraction of a network attachment being attached
  * to a Hub. A Spoke can be underlying a VPN tunnel, a
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Spoke}
  */
-public final class Spoke extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Spoke extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.Spoke)
     SpokeOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Spoke.newBuilder() to construct.
   private Spoke(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Spoke() {
     name_ = "";
     description_ = "";
@@ -34,50 +52,54 @@ private Spoke() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Spoke();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
+            com.google.cloud.networkconnectivity.v1alpha1.Spoke.class,
+            com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -86,29 +108,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; } } /** + * + * *
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -119,11 +141,14 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -131,11 +156,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ @java.lang.Override @@ -143,6 +171,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time when the Spoke was created.
    * 
@@ -157,11 +187,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -169,11 +202,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ @java.lang.Override @@ -181,6 +217,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The time when the Spoke was updated.
    * 
@@ -193,32 +231,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_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.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - 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_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * User-defined labels.
    * 
@@ -226,20 +266,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** + * + * *
    * User-defined labels.
    * 
@@ -251,6 +292,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * User-defined labels.
    * 
@@ -258,17 +301,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + 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; } /** + * + * *
    * User-defined labels.
    * 
@@ -276,11 +321,11 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new 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(); } @@ -288,14 +333,18 @@ public java.lang.String getLabelsOrThrow( } public static final int DESCRIPTION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Short description of the spoke resource
    * 
* * string description = 5; + * * @return The description. */ @java.lang.Override @@ -304,29 +353,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Short description of the spoke resource
    * 
* * string description = 5; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -335,14 +384,18 @@ public java.lang.String getDescription() { } public static final int HUB_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object hub_ = ""; /** + * + * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return The hub. */ @java.lang.Override @@ -351,29 +404,29 @@ public java.lang.String getHub() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; } } /** + * + * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for hub. */ @java.lang.Override - public com.google.protobuf.ByteString - getHubBytes() { + public com.google.protobuf.ByteString getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hub_ = b; return b; } else { @@ -382,37 +435,49 @@ public java.lang.String getHub() { } public static final int LINKED_VPN_TUNNELS_FIELD_NUMBER = 12; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList linkedVpnTunnels_; /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the linkedVpnTunnels. */ - public com.google.protobuf.ProtocolStringList - getLinkedVpnTunnelsList() { + public com.google.protobuf.ProtocolStringList getLinkedVpnTunnelsList() { return linkedVpnTunnels_; } /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return The count of linkedVpnTunnels. */ public int getLinkedVpnTunnelsCount() { return linkedVpnTunnels_.size(); } /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The linkedVpnTunnels at the given index. */ @@ -420,51 +485,69 @@ public java.lang.String getLinkedVpnTunnels(int index) { return linkedVpnTunnels_.get(index); } /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the linkedVpnTunnels at the given index. */ - public com.google.protobuf.ByteString - getLinkedVpnTunnelsBytes(int index) { + public com.google.protobuf.ByteString getLinkedVpnTunnelsBytes(int index) { return linkedVpnTunnels_.getByteString(index); } public static final int LINKED_INTERCONNECT_ATTACHMENTS_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList linkedInterconnectAttachments_; /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the linkedInterconnectAttachments. */ - public com.google.protobuf.ProtocolStringList - getLinkedInterconnectAttachmentsList() { + public com.google.protobuf.ProtocolStringList getLinkedInterconnectAttachmentsList() { return linkedInterconnectAttachments_; } /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return The count of linkedInterconnectAttachments. */ public int getLinkedInterconnectAttachmentsCount() { return linkedInterconnectAttachments_.size(); } /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The linkedInterconnectAttachments at the given index. */ @@ -472,84 +555,116 @@ public java.lang.String getLinkedInterconnectAttachments(int index) { return linkedInterconnectAttachments_.get(index); } /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the linkedInterconnectAttachments at the given index. */ - public com.google.protobuf.ByteString - getLinkedInterconnectAttachmentsBytes(int index) { + public com.google.protobuf.ByteString getLinkedInterconnectAttachmentsBytes(int index) { return linkedInterconnectAttachments_.getByteString(index); } public static final int LINKED_ROUTER_APPLIANCE_INSTANCES_FIELD_NUMBER = 14; + @SuppressWarnings("serial") - private java.util.List linkedRouterApplianceInstances_; + private java.util.List + linkedRouterApplianceInstances_; /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ @java.lang.Override - public java.util.List getLinkedRouterApplianceInstancesList() { + public java.util.List + getLinkedRouterApplianceInstancesList() { return linkedRouterApplianceInstances_; } /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> getLinkedRouterApplianceInstancesOrBuilderList() { return linkedRouterApplianceInstances_; } /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ @java.lang.Override public int getLinkedRouterApplianceInstancesCount() { return linkedRouterApplianceInstances_.size(); } /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getLinkedRouterApplianceInstances(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + getLinkedRouterApplianceInstances(int index) { return linkedRouterApplianceInstances_.get(index); } /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder getLinkedRouterApplianceInstancesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder + getLinkedRouterApplianceInstancesOrBuilder(int index) { return linkedRouterApplianceInstances_.get(index); } public static final int UNIQUE_ID_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -557,6 +672,7 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBu
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ @java.lang.Override @@ -565,14 +681,15 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -580,16 +697,15 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -600,30 +716,46 @@ public java.lang.String getUniqueId() { public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.networkconnectivity.v1alpha1.State getState() { + com.google.cloud.networkconnectivity.v1alpha1.State result = + com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null + ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -635,8 +767,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -646,12 +777,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -665,12 +792,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 12, linkedVpnTunnels_.getRaw(i)); } for (int i = 0; i < linkedInterconnectAttachments_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, linkedInterconnectAttachments_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 13, linkedInterconnectAttachments_.getRaw(i)); } for (int i = 0; i < linkedRouterApplianceInstances_.size(); i++) { output.writeMessage(14, linkedRouterApplianceInstances_.get(i)); } - if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(15, state_); } getUnknownFields().writeTo(output); @@ -686,22 +815,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -729,12 +856,13 @@ public int getSerializedSize() { size += 1 * getLinkedInterconnectAttachmentsList().size(); } for (int i = 0; i < linkedRouterApplianceInstances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, linkedRouterApplianceInstances_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, linkedRouterApplianceInstances_.get(i)); } - if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, state_); + if (state_ + != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -744,39 +872,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.networkconnectivity.v1alpha1.Spoke)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.Spoke other = (com.google.cloud.networkconnectivity.v1alpha1.Spoke) obj; + com.google.cloud.networkconnectivity.v1alpha1.Spoke other = + (com.google.cloud.networkconnectivity.v1alpha1.Spoke) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getHub() - .equals(other.getHub())) return false; - if (!getLinkedVpnTunnelsList() - .equals(other.getLinkedVpnTunnelsList())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getHub().equals(other.getHub())) return false; + if (!getLinkedVpnTunnelsList().equals(other.getLinkedVpnTunnelsList())) return false; if (!getLinkedInterconnectAttachmentsList() .equals(other.getLinkedInterconnectAttachmentsList())) return false; if (!getLinkedRouterApplianceInstancesList() .equals(other.getLinkedRouterApplianceInstancesList())) return false; - if (!getUniqueId() - .equals(other.getUniqueId())) return false; + if (!getUniqueId().equals(other.getUniqueId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -829,96 +950,103 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.Spoke prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Spoke is an  abstraction of a network attachment being attached
    * to a Hub. A Spoke can be underlying a VPN tunnel, a
@@ -927,55 +1055,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Spoke}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.Spoke)
       com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
+              com.google.cloud.networkconnectivity.v1alpha1.Spoke.class,
+              com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1alpha1.Spoke.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1011,9 +1136,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
     }
 
     @java.lang.Override
@@ -1032,14 +1157,18 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1alpha1.Spoke buildPartial() {
-      com.google.cloud.networkconnectivity.v1alpha1.Spoke result = new com.google.cloud.networkconnectivity.v1alpha1.Spoke(this);
+      com.google.cloud.networkconnectivity.v1alpha1.Spoke result =
+          new com.google.cloud.networkconnectivity.v1alpha1.Spoke(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.Spoke result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1alpha1.Spoke result) {
       if (((bitField0_ & 0x00000040) != 0)) {
         linkedVpnTunnels_ = linkedVpnTunnels_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000040);
@@ -1052,7 +1181,8 @@ private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1a
       result.linkedInterconnectAttachments_ = linkedInterconnectAttachments_;
       if (linkedRouterApplianceInstancesBuilder_ == null) {
         if (((bitField0_ & 0x00000100) != 0)) {
-          linkedRouterApplianceInstances_ = java.util.Collections.unmodifiableList(linkedRouterApplianceInstances_);
+          linkedRouterApplianceInstances_ =
+              java.util.Collections.unmodifiableList(linkedRouterApplianceInstances_);
           bitField0_ = (bitField0_ & ~0x00000100);
         }
         result.linkedRouterApplianceInstances_ = linkedRouterApplianceInstances_;
@@ -1067,14 +1197,10 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Spoke r
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -1098,38 +1224,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Spoke r
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.Spoke) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Spoke)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Spoke) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1137,7 +1264,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Spoke other) {
-      if (other == com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1149,8 +1277,7 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Spoke oth
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -1200,11 +1327,13 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Spoke oth
             linkedRouterApplianceInstancesBuilder_ = null;
             linkedRouterApplianceInstances_ = other.linkedRouterApplianceInstances_;
             bitField0_ = (bitField0_ & ~0x00000100);
-            linkedRouterApplianceInstancesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getLinkedRouterApplianceInstancesFieldBuilder() : null;
+            linkedRouterApplianceInstancesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getLinkedRouterApplianceInstancesFieldBuilder()
+                    : null;
           } else {
-            linkedRouterApplianceInstancesBuilder_.addAllMessages(other.linkedRouterApplianceInstances_);
+            linkedRouterApplianceInstancesBuilder_.addAllMessages(
+                other.linkedRouterApplianceInstances_);
           }
         }
       }
@@ -1242,85 +1371,96 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              hub_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 90: {
-              uniqueId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 90
-            case 98: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureLinkedVpnTunnelsIsMutable();
-              linkedVpnTunnels_.add(s);
-              break;
-            } // case 98
-            case 106: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureLinkedInterconnectAttachmentsIsMutable();
-              linkedInterconnectAttachments_.add(s);
-              break;
-            } // case 106
-            case 114: {
-              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance m =
-                  input.readMessage(
-                      com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.parser(),
-                      extensionRegistry);
-              if (linkedRouterApplianceInstancesBuilder_ == null) {
-                ensureLinkedRouterApplianceInstancesIsMutable();
-                linkedRouterApplianceInstances_.add(m);
-              } else {
-                linkedRouterApplianceInstancesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 114
-            case 120: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 120
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                hub_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 90:
+              {
+                uniqueId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 90
+            case 98:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureLinkedVpnTunnelsIsMutable();
+                linkedVpnTunnels_.add(s);
+                break;
+              } // case 98
+            case 106:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureLinkedInterconnectAttachmentsIsMutable();
+                linkedInterconnectAttachments_.add(s);
+                break;
+              } // case 106
+            case 114:
+              {
+                com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance m =
+                    input.readMessage(
+                        com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
+                            .parser(),
+                        extensionRegistry);
+                if (linkedRouterApplianceInstancesBuilder_ == null) {
+                  ensureLinkedRouterApplianceInstancesIsMutable();
+                  linkedRouterApplianceInstances_.add(m);
+                } else {
+                  linkedRouterApplianceInstancesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 114
+            case 120:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 120
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1330,22 +1470,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -1354,20 +1497,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -1375,28 +1519,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1406,17 +1557,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1426,34 +1581,47 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The time when the Spoke was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The time when the Spoke was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; + * * @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 when the Spoke was created.
      * 
@@ -1474,14 +1642,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the Spoke was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1492,6 +1661,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time when the Spoke was created.
      * 
@@ -1500,9 +1671,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1515,6 +1686,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the Spoke was created.
      * 
@@ -1532,6 +1705,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time when the Spoke was created.
      * 
@@ -1544,6 +1719,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the Spoke was created.
      * 
@@ -1554,11 +1731,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time when the Spoke was created.
      * 
@@ -1566,14 +1746,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> 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_; @@ -1581,34 +1764,47 @@ 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_; /** + * + * *
      * The time when the Spoke was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The time when the Spoke was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @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(); } } /** + * + * *
      * The time when the Spoke was updated.
      * 
@@ -1629,14 +1825,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the Spoke was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1647,6 +1844,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * The time when the Spoke was updated.
      * 
@@ -1655,9 +1854,9 @@ public Builder setUpdateTime( */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1670,6 +1869,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the Spoke was updated.
      * 
@@ -1687,6 +1888,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * The time when the Spoke was updated.
      * 
@@ -1699,6 +1902,8 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the Spoke was updated.
      * 
@@ -1709,11 +1914,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * The time when the Spoke was updated.
      * 
@@ -1721,34 +1929,35 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1757,10 +1966,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * User-defined labels.
      * 
@@ -1768,20 +1980,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** + * + * *
      * User-defined labels.
      * 
@@ -1793,6 +2006,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * User-defined labels.
      * 
@@ -1800,17 +2015,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + 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; } /** + * + * *
      * User-defined labels.
      * 
@@ -1818,91 +2035,95 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new 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(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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); + 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); bitField0_ |= 0x00000008; return this; } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object description_ = ""; /** + * + * *
      * Short description of the spoke resource
      * 
* * string description = 5; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1911,20 +2132,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Short description of the spoke resource
      * 
* * string description = 5; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1932,28 +2154,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Short description of the spoke resource
      * 
* * string description = 5; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Short description of the spoke resource
      * 
* * string description = 5; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1963,17 +2192,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Short description of the spoke resource
      * 
* * string description = 5; + * * @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(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -1983,18 +2216,20 @@ public Builder setDescriptionBytes( private java.lang.Object hub_ = ""; /** + * + * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return The hub. */ public java.lang.String getHub() { java.lang.Object ref = hub_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; @@ -2003,20 +2238,21 @@ public java.lang.String getHub() { } } /** + * + * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for hub. */ - public com.google.protobuf.ByteString - getHubBytes() { + public com.google.protobuf.ByteString getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hub_ = b; return b; } else { @@ -2024,28 +2260,35 @@ public java.lang.String getHub() { } } /** + * + * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @param value The hub to set. * @return This builder for chaining. */ - public Builder setHub( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHub(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hub_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearHub() { @@ -2055,17 +2298,21 @@ public Builder clearHub() { return this; } /** + * + * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for hub to set. * @return This builder for chaining. */ - public Builder setHubBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHubBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hub_ = value; bitField0_ |= 0x00000020; @@ -2073,42 +2320,55 @@ public Builder setHubBytes( return this; } - private com.google.protobuf.LazyStringList linkedVpnTunnels_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList linkedVpnTunnels_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLinkedVpnTunnelsIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { linkedVpnTunnels_ = new com.google.protobuf.LazyStringArrayList(linkedVpnTunnels_); bitField0_ |= 0x00000040; - } + } } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the linkedVpnTunnels. */ - public com.google.protobuf.ProtocolStringList - getLinkedVpnTunnelsList() { + public com.google.protobuf.ProtocolStringList getLinkedVpnTunnelsList() { return linkedVpnTunnels_.getUnmodifiableView(); } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return The count of linkedVpnTunnels. */ public int getLinkedVpnTunnelsCount() { return linkedVpnTunnels_.size(); } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The linkedVpnTunnels at the given index. */ @@ -2116,76 +2376,95 @@ public java.lang.String getLinkedVpnTunnels(int index) { return linkedVpnTunnels_.get(index); } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the linkedVpnTunnels at the given index. */ - public com.google.protobuf.ByteString - getLinkedVpnTunnelsBytes(int index) { + public com.google.protobuf.ByteString getLinkedVpnTunnelsBytes(int index) { return linkedVpnTunnels_.getByteString(index); } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The linkedVpnTunnels to set. * @return This builder for chaining. */ - public Builder setLinkedVpnTunnels( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLinkedVpnTunnels(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLinkedVpnTunnelsIsMutable(); linkedVpnTunnels_.set(index, value); onChanged(); return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param value The linkedVpnTunnels to add. * @return This builder for chaining. */ - public Builder addLinkedVpnTunnels( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLinkedVpnTunnels(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLinkedVpnTunnelsIsMutable(); linkedVpnTunnels_.add(value); onChanged(); return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param values The linkedVpnTunnels to add. * @return This builder for chaining. */ - public Builder addAllLinkedVpnTunnels( - java.lang.Iterable values) { + public Builder addAllLinkedVpnTunnels(java.lang.Iterable values) { ensureLinkedVpnTunnelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, linkedVpnTunnels_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, linkedVpnTunnels_); onChanged(); return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearLinkedVpnTunnels() { @@ -2195,17 +2474,22 @@ public Builder clearLinkedVpnTunnels() { return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the linkedVpnTunnels to add. * @return This builder for chaining. */ - public Builder addLinkedVpnTunnelsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLinkedVpnTunnelsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureLinkedVpnTunnelsIsMutable(); linkedVpnTunnels_.add(value); @@ -2213,42 +2497,59 @@ public Builder addLinkedVpnTunnelsBytes( return this; } - private com.google.protobuf.LazyStringList linkedInterconnectAttachments_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList linkedInterconnectAttachments_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLinkedInterconnectAttachmentsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - linkedInterconnectAttachments_ = new com.google.protobuf.LazyStringArrayList(linkedInterconnectAttachments_); + linkedInterconnectAttachments_ = + new com.google.protobuf.LazyStringArrayList(linkedInterconnectAttachments_); bitField0_ |= 0x00000080; - } + } } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the linkedInterconnectAttachments. */ - public com.google.protobuf.ProtocolStringList - getLinkedInterconnectAttachmentsList() { + public com.google.protobuf.ProtocolStringList getLinkedInterconnectAttachmentsList() { return linkedInterconnectAttachments_.getUnmodifiableView(); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return The count of linkedInterconnectAttachments. */ public int getLinkedInterconnectAttachmentsCount() { return linkedInterconnectAttachments_.size(); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The linkedInterconnectAttachments at the given index. */ @@ -2256,59 +2557,80 @@ public java.lang.String getLinkedInterconnectAttachments(int index) { return linkedInterconnectAttachments_.get(index); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the linkedInterconnectAttachments at the given index. */ - public com.google.protobuf.ByteString - getLinkedInterconnectAttachmentsBytes(int index) { + public com.google.protobuf.ByteString getLinkedInterconnectAttachmentsBytes(int index) { return linkedInterconnectAttachments_.getByteString(index); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The linkedInterconnectAttachments to set. * @return This builder for chaining. */ - public Builder setLinkedInterconnectAttachments( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLinkedInterconnectAttachments(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLinkedInterconnectAttachmentsIsMutable(); linkedInterconnectAttachments_.set(index, value); onChanged(); return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param value The linkedInterconnectAttachments to add. * @return This builder for chaining. */ - public Builder addLinkedInterconnectAttachments( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLinkedInterconnectAttachments(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLinkedInterconnectAttachmentsIsMutable(); linkedInterconnectAttachments_.add(value); onChanged(); return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param values The linkedInterconnectAttachments to add. * @return This builder for chaining. */ @@ -2321,11 +2643,16 @@ public Builder addAllLinkedInterconnectAttachments( return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearLinkedInterconnectAttachments() { @@ -2335,17 +2662,23 @@ public Builder clearLinkedInterconnectAttachments() { return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the linkedInterconnectAttachments to add. * @return This builder for chaining. */ - public Builder addLinkedInterconnectAttachmentsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLinkedInterconnectAttachmentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureLinkedInterconnectAttachmentsIsMutable(); linkedInterconnectAttachments_.add(value); @@ -2353,26 +2686,38 @@ public Builder addLinkedInterconnectAttachmentsBytes( return this; } - private java.util.List linkedRouterApplianceInstances_ = - java.util.Collections.emptyList(); + private java.util.List + linkedRouterApplianceInstances_ = java.util.Collections.emptyList(); + private void ensureLinkedRouterApplianceInstancesIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { - linkedRouterApplianceInstances_ = new java.util.ArrayList(linkedRouterApplianceInstances_); + linkedRouterApplianceInstances_ = + new java.util.ArrayList< + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance>( + linkedRouterApplianceInstances_); bitField0_ |= 0x00000100; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> linkedRouterApplianceInstancesBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> + linkedRouterApplianceInstancesBuilder_; /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public java.util.List getLinkedRouterApplianceInstancesList() { + public java.util.List + getLinkedRouterApplianceInstancesList() { if (linkedRouterApplianceInstancesBuilder_ == null) { return java.util.Collections.unmodifiableList(linkedRouterApplianceInstances_); } else { @@ -2380,11 +2725,15 @@ public java.util.List * The URIs of linked Router appliance resources *
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public int getLinkedRouterApplianceInstancesCount() { if (linkedRouterApplianceInstancesBuilder_ == null) { @@ -2394,13 +2743,18 @@ public int getLinkedRouterApplianceInstancesCount() { } } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getLinkedRouterApplianceInstances(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + getLinkedRouterApplianceInstances(int index) { if (linkedRouterApplianceInstancesBuilder_ == null) { return linkedRouterApplianceInstances_.get(index); } else { @@ -2408,11 +2762,15 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance get } } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder setLinkedRouterApplianceInstances( int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { @@ -2429,14 +2787,20 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder setLinkedRouterApplianceInstances( - int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder builderForValue) { + int index, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder + builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); linkedRouterApplianceInstances_.set(index, builderForValue.build()); @@ -2447,13 +2811,18 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public Builder addLinkedRouterApplianceInstances(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { + public Builder addLinkedRouterApplianceInstances( + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { if (linkedRouterApplianceInstancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2467,11 +2836,15 @@ public Builder addLinkedRouterApplianceInstances(com.google.cloud.networkconnect return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder addLinkedRouterApplianceInstances( int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { @@ -2488,14 +2861,19 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder addLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder builderForValue) { + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder + builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); linkedRouterApplianceInstances_.add(builderForValue.build()); @@ -2506,14 +2884,20 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder addLinkedRouterApplianceInstances( - int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder builderForValue) { + int index, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder + builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); linkedRouterApplianceInstances_.add(index, builderForValue.build()); @@ -2524,14 +2908,20 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder addAllLinkedRouterApplianceInstances( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance> + values) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -2543,11 +2933,15 @@ public Builder addAllLinkedRouterApplianceInstances( return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder clearLinkedRouterApplianceInstances() { if (linkedRouterApplianceInstancesBuilder_ == null) { @@ -2560,11 +2954,15 @@ public Builder clearLinkedRouterApplianceInstances() { return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder removeLinkedRouterApplianceInstances(int index) { if (linkedRouterApplianceInstancesBuilder_ == null) { @@ -2577,39 +2975,54 @@ public Builder removeLinkedRouterApplianceInstances(int index) { return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder getLinkedRouterApplianceInstancesBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder + getLinkedRouterApplianceInstancesBuilder(int index) { return getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(index); } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder getLinkedRouterApplianceInstancesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder + getLinkedRouterApplianceInstancesOrBuilder(int index) { if (linkedRouterApplianceInstancesBuilder_ == null) { - return linkedRouterApplianceInstances_.get(index); } else { + return linkedRouterApplianceInstances_.get(index); + } else { return linkedRouterApplianceInstancesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public java.util.List - getLinkedRouterApplianceInstancesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> + getLinkedRouterApplianceInstancesOrBuilderList() { if (linkedRouterApplianceInstancesBuilder_ != null) { return linkedRouterApplianceInstancesBuilder_.getMessageOrBuilderList(); } else { @@ -2617,45 +3030,70 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBu } } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder addLinkedRouterApplianceInstancesBuilder() { - return getLinkedRouterApplianceInstancesFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder + addLinkedRouterApplianceInstancesBuilder() { + return getLinkedRouterApplianceInstancesFieldBuilder() + .addBuilder( + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + .getDefaultInstance()); } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder addLinkedRouterApplianceInstancesBuilder( - int index) { - return getLinkedRouterApplianceInstancesFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder + addLinkedRouterApplianceInstancesBuilder(int index) { + return getLinkedRouterApplianceInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + .getDefaultInstance()); } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public java.util.List - getLinkedRouterApplianceInstancesBuilderList() { + public java.util.List< + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder> + getLinkedRouterApplianceInstancesBuilderList() { return getLinkedRouterApplianceInstancesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> getLinkedRouterApplianceInstancesFieldBuilder() { if (linkedRouterApplianceInstancesBuilder_ == null) { - linkedRouterApplianceInstancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder>( + linkedRouterApplianceInstancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder>( linkedRouterApplianceInstances_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), @@ -2667,6 +3105,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Bui private java.lang.Object uniqueId_ = ""; /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -2674,13 +3114,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Bui
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -2689,6 +3129,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -2696,15 +3138,14 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -2712,6 +3153,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -2719,18 +3162,22 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uniqueId_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -2738,6 +3185,7 @@ public Builder setUniqueId(
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -2747,6 +3195,8 @@ public Builder clearUniqueId() { return this; } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -2754,12 +3204,14 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000200; @@ -2769,22 +3221,33 @@ public Builder setUniqueIdBytes( private int state_ = 0; /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2795,24 +3258,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; + com.google.cloud.networkconnectivity.v1alpha1.State result = + com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null + ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2826,11 +3302,16 @@ public Builder setState(com.google.cloud.networkconnectivity.v1alpha1.State valu return this; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2839,9 +3320,9 @@ public Builder clearState() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2851,12 +3332,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.Spoke) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.Spoke) private static final com.google.cloud.networkconnectivity.v1alpha1.Spoke DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.Spoke(); } @@ -2865,27 +3346,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.Spoke getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Spoke parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Spoke parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2900,6 +3381,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.Spoke getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java similarity index 65% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java index eab4db8a11c2..2d619ff4a0d6 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java @@ -1,51 +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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface SpokeOrBuilder extends +public interface SpokeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.Spoke) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time when the Spoke was created.
    * 
@@ -55,24 +84,32 @@ public interface SpokeOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The time when the Spoke was updated.
    * 
@@ -82,6 +119,8 @@ public interface SpokeOrBuilder extends com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * User-defined labels.
    * 
@@ -90,30 +129,31 @@ public interface SpokeOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * User-defined labels.
    * 
@@ -121,187 +161,254 @@ boolean containsLabels( * map<string, string> labels = 4; */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Short description of the spoke resource
    * 
* * string description = 5; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Short description of the spoke resource
    * 
* * string description = 5; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return The hub. */ java.lang.String getHub(); /** + * + * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for hub. */ - com.google.protobuf.ByteString - getHubBytes(); + com.google.protobuf.ByteString getHubBytes(); /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the linkedVpnTunnels. */ - java.util.List - getLinkedVpnTunnelsList(); + java.util.List getLinkedVpnTunnelsList(); /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return The count of linkedVpnTunnels. */ int getLinkedVpnTunnelsCount(); /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The linkedVpnTunnels at the given index. */ java.lang.String getLinkedVpnTunnels(int index); /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the linkedVpnTunnels at the given index. */ - com.google.protobuf.ByteString - getLinkedVpnTunnelsBytes(int index); + com.google.protobuf.ByteString getLinkedVpnTunnelsBytes(int index); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the linkedInterconnectAttachments. */ - java.util.List - getLinkedInterconnectAttachmentsList(); + java.util.List getLinkedInterconnectAttachmentsList(); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return The count of linkedInterconnectAttachments. */ int getLinkedInterconnectAttachmentsCount(); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The linkedInterconnectAttachments at the given index. */ java.lang.String getLinkedInterconnectAttachments(int index); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the linkedInterconnectAttachments at the given index. */ - com.google.protobuf.ByteString - getLinkedInterconnectAttachmentsBytes(int index); + com.google.protobuf.ByteString getLinkedInterconnectAttachmentsBytes(int index); /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - java.util.List + java.util.List getLinkedRouterApplianceInstancesList(); /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getLinkedRouterApplianceInstances(int index); + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + getLinkedRouterApplianceInstances(int index); /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ int getLinkedRouterApplianceInstancesCount(); /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> getLinkedRouterApplianceInstancesOrBuilderList(); /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder getLinkedRouterApplianceInstancesOrBuilder( - int index); + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder + getLinkedRouterApplianceInstancesOrBuilder(int index); /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -309,10 +416,13 @@ com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder g
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ java.lang.String getUniqueId(); /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -320,26 +430,36 @@ com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder g
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString - getUniqueIdBytes(); + com.google.protobuf.ByteString getUniqueIdBytes(); /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.networkconnectivity.v1alpha1.State getState(); diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java similarity index 66% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java index 20edd63148a4..3b3ebc865572 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The State enum represents the lifecycle of a Network Connectivity Center
  * resource.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.networkconnectivity.v1alpha1.State}
  */
-public enum State
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum State implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * No state information available
    * 
@@ -22,6 +40,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
    * The resource's create operation is in progress
    * 
@@ -30,6 +50,8 @@ public enum State */ CREATING(1), /** + * + * *
    * The resource is active
    * 
@@ -38,6 +60,8 @@ public enum State */ ACTIVE(2), /** + * + * *
    * The resource's Delete operation is in progress
    * 
@@ -49,6 +73,8 @@ public enum State ; /** + * + * *
    * No state information available
    * 
@@ -57,6 +83,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The resource's create operation is in progress
    * 
@@ -65,6 +93,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
    * The resource is active
    * 
@@ -73,6 +103,8 @@ public enum State */ public static final int ACTIVE_VALUE = 2; /** + * + * *
    * The resource's Delete operation is in progress
    * 
@@ -81,7 +113,6 @@ public enum State */ public static final int DELETING_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -106,50 +137,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 ACTIVE; - case 3: return DELETING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + 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() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.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; @@ -165,4 +199,3 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1alpha1.State) } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java index af8c18df237a..6f3ae26bff5b 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Request for [HubService.UpdateHub][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest} */ -public final class UpdateHubRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateHubRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) UpdateHubRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateHubRequest.newBuilder() to construct. private UpdateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateHubRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -59,7 +80,9 @@ protected java.lang.Object newInstance(
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -67,6 +90,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -75,7 +100,9 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -83,6 +110,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -91,7 +120,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -101,11 +131,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int HUB_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; /** + * + * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ @java.lang.Override @@ -113,33 +148,49 @@ public boolean hasHub() { return hub_ != null; } /** + * + * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { - return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } /** + * + * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { - return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -155,6 +206,7 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -163,14 +215,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -186,16 +239,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -204,6 +256,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,8 +268,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -236,12 +288,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHub()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -254,25 +304,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.networkconnectivity.v1alpha1.UpdateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub() - .equals(other.getHub())) return false; + if (!getHub().equals(other.getHub())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,129 +348,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.UpdateHub][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -442,13 +497,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance(); } @@ -463,23 +519,23 @@ public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.hub_ = hubBuilder_ == null - ? hub_ - : hubBuilder_.build(); + result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -490,38 +546,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.UpdateH public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) other); } else { super.mergeFrom(other); return this; @@ -529,7 +586,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -567,31 +626,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getHubFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -601,12 +660,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -615,13 +680,17 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -630,17 +699,23 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -649,7 +724,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -665,6 +741,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -673,10 +751,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -687,6 +765,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -695,13 +775,14 @@ public Builder setUpdateMask(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -714,6 +795,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -722,7 +805,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -735,6 +819,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -743,7 +829,8 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -751,6 +838,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -759,17 +848,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -778,17 +871,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -796,39 +893,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> hubBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + hubBuilder_; /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } else { return hubBuilder_.getMessage(); } } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { @@ -844,11 +960,15 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { return this; } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setHub( com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder builderForValue) { @@ -862,17 +982,21 @@ public Builder setHub( return this; } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - hub_ != null && - hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && hub_ != null + && hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -885,11 +1009,15 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) return this; } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000002); @@ -902,11 +1030,15 @@ public Builder clearHub() { return this; } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000002; @@ -914,36 +1046,48 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() return getHubFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null ? - com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( - getHub(), - getParentForChildren(), - isClean()); + hubBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( + getHub(), getParentForChildren(), isClean()); hub_ = null; } return hubBuilder_; @@ -951,6 +1095,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -966,13 +1112,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -981,6 +1127,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -996,15 +1144,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1012,6 +1159,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1027,18 +1176,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1054,6 +1207,7 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1063,6 +1217,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1078,21 +1234,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1102,41 +1260,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1148,9 +1308,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java index 0646b5914e40..1a2cf0c696b7 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface UpdateHubRequestOrBuilder extends +public interface UpdateHubRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -16,11 +34,15 @@ public interface UpdateHubRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -29,11 +51,15 @@ public interface UpdateHubRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -42,38 +68,55 @@ public interface UpdateHubRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ boolean hasHub(); /** + * + * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ com.google.cloud.networkconnectivity.v1alpha1.Hub getHub(); /** + * + * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -89,10 +132,13 @@ public interface UpdateHubRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -108,8 +154,8 @@ public interface UpdateHubRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java index 9cf86439b9e7..649d740386b8 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Request for [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest} */ -public final class UpdateSpokeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateSpokeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) UpdateSpokeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateSpokeRequest.newBuilder() to construct. private UpdateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateSpokeRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -59,7 +80,9 @@ protected java.lang.Object newInstance(
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -67,6 +90,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -75,7 +100,9 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -83,6 +110,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -91,7 +120,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -101,11 +131,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int SPOKE_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; /** + * + * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ @java.lang.Override @@ -113,33 +148,49 @@ public boolean hasSpoke() { return spoke_ != null; } /** + * + * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } /** + * + * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -155,6 +206,7 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -163,14 +215,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -186,16 +239,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -204,6 +256,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,8 +268,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -236,12 +288,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpoke()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -254,25 +304,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.networkconnectivity.v1alpha1.UpdateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke() - .equals(other.getSpoke())) return false; + if (!getSpoke().equals(other.getSpoke())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,129 +348,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -442,13 +497,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance(); } @@ -463,23 +519,23 @@ public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.spoke_ = spokeBuilder_ == null - ? spoke_ - : spokeBuilder_.build(); + result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -490,46 +546,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.UpdateS public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -567,31 +627,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSpokeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -601,12 +661,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -615,13 +681,17 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -630,17 +700,23 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -649,7 +725,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -665,6 +742,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -673,10 +752,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -687,6 +766,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -695,13 +776,14 @@ public Builder setUpdateMask(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -714,6 +796,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -722,7 +806,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -735,6 +820,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -743,7 +830,8 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -751,6 +839,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -759,17 +849,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -778,17 +872,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -796,39 +894,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> spokeBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + spokeBuilder_; /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } else { return spokeBuilder_.getMessage(); } } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { @@ -844,11 +961,15 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke valu return this; } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSpoke( com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder builderForValue) { @@ -862,17 +983,21 @@ public Builder setSpoke( return this; } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - spoke_ != null && - spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && spoke_ != null + && spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -885,11 +1010,15 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke va return this; } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000002); @@ -902,11 +1031,15 @@ public Builder clearSpoke() { return this; } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000002; @@ -914,36 +1047,48 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuild return getSpokeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null ? - com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( - getSpoke(), - getParentForChildren(), - isClean()); + spokeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( + getSpoke(), getParentForChildren(), isClean()); spoke_ = null; } return spokeBuilder_; @@ -951,6 +1096,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -966,13 +1113,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -981,6 +1128,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -996,15 +1145,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1012,6 +1160,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1027,18 +1177,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1054,6 +1208,7 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1063,6 +1218,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1078,21 +1235,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1102,41 +1261,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1148,9 +1309,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java index 1d98b15275f3..122c9f806e3f 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface UpdateSpokeRequestOrBuilder extends +public interface UpdateSpokeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -16,11 +34,15 @@ public interface UpdateSpokeRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -29,11 +51,15 @@ public interface UpdateSpokeRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -42,38 +68,55 @@ public interface UpdateSpokeRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ boolean hasSpoke(); /** + * + * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke(); /** + * + * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -89,10 +132,13 @@ public interface UpdateSpokeRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -108,8 +154,8 @@ public interface UpdateSpokeRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java b/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java deleted file mode 100644 index bbd7409c5e31..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java +++ /dev/null @@ -1,1087 +0,0 @@ -package com.google.cloud.networkconnectivity.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Network Connectivity Center is a hub-and-spoke abstraction for network
- * connectivity management in Google Cloud. It reduces operational complexity
- * through a simple, centralized connectivity management model.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1/hub.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class HubServiceGrpc { - - private HubServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1.HubService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListHubsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListHubs", - requestType = com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListHubsMethod() { - io.grpc.MethodDescriptor getListHubsMethod; - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - HubServiceGrpc.getListHubsMethod = getListHubsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListHubsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListHubsResponse.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) - .build(); - } - } - } - return getListHubsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetHub", - requestType = com.google.cloud.networkconnectivity.v1.GetHubRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.Hub.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetHubMethod() { - io.grpc.MethodDescriptor getGetHubMethod; - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - HubServiceGrpc.getGetHubMethod = getGetHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.GetHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) - .build(); - } - } - } - return getGetHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateHub", - requestType = com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateHubMethod() { - io.grpc.MethodDescriptor getCreateHubMethod; - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - HubServiceGrpc.getCreateHubMethod = getCreateHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.CreateHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) - .build(); - } - } - } - return getCreateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateHub", - requestType = com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateHubMethod() { - io.grpc.MethodDescriptor getUpdateHubMethod; - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - HubServiceGrpc.getUpdateHubMethod = getUpdateHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) - .build(); - } - } - } - return getUpdateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteHub", - requestType = com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteHubMethod() { - io.grpc.MethodDescriptor getDeleteHubMethod; - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - HubServiceGrpc.getDeleteHubMethod = getDeleteHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) - .build(); - } - } - } - return getDeleteHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSpokesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSpokes", - requestType = com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSpokesMethod() { - io.grpc.MethodDescriptor getListSpokesMethod; - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - HubServiceGrpc.getListSpokesMethod = getListSpokesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListSpokesResponse.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) - .build(); - } - } - } - return getListSpokesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSpoke", - requestType = com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.Spoke.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSpokeMethod() { - io.grpc.MethodDescriptor getGetSpokeMethod; - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - HubServiceGrpc.getGetSpokeMethod = getGetSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) - .build(); - } - } - } - return getGetSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", - requestType = com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSpokeMethod() { - io.grpc.MethodDescriptor getCreateSpokeMethod; - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - HubServiceGrpc.getCreateSpokeMethod = getCreateSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) - .build(); - } - } - } - return getCreateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", - requestType = com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSpokeMethod() { - io.grpc.MethodDescriptor getUpdateSpokeMethod; - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - HubServiceGrpc.getUpdateSpokeMethod = getUpdateSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) - .build(); - } - } - } - return getUpdateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", - requestType = com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteSpokeMethod() { - io.grpc.MethodDescriptor getDeleteSpokeMethod; - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - HubServiceGrpc.getDeleteSpokeMethod = getDeleteSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) - .build(); - } - } - } - return getDeleteSpokeMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static HubServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - }; - return HubServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static HubServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - }; - return HubServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static HubServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - }; - return HubServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static abstract class HubServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists hubs in a given project.
-     * 
- */ - public void listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); - } - - /** - *
-     * Gets details about the specified hub.
-     * 
- */ - public void getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); - } - - /** - *
-     * Creates a new hub in the specified project.
-     * 
- */ - public void createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); - } - - /** - *
-     * Updates the description and/or labels of the specified hub.
-     * 
- */ - public void updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified hub.
-     * 
- */ - public void deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); - } - - /** - *
-     * Lists the spokes in the specified project and location.
-     * 
- */ - public void listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); - } - - /** - *
-     * Gets details about the specified spoke.
-     * 
- */ - public void getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); - } - - /** - *
-     * Creates a spoke in the specified project and location.
-     * 
- */ - public void createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSpokeMethod(), responseObserver); - } - - /** - *
-     * Updates the parameters of the specified spoke.
-     * 
- */ - public void updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSpokeMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified spoke.
-     * 
- */ - public void deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSpokeMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListHubsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1.ListHubsResponse>( - this, METHODID_LIST_HUBS))) - .addMethod( - getGetHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.GetHubRequest, - com.google.cloud.networkconnectivity.v1.Hub>( - this, METHODID_GET_HUB))) - .addMethod( - getCreateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.CreateHubRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_HUB))) - .addMethod( - getUpdateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.UpdateHubRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_HUB))) - .addMethod( - getDeleteHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.DeleteHubRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_HUB))) - .addMethod( - getListSpokesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1.ListSpokesResponse>( - this, METHODID_LIST_SPOKES))) - .addMethod( - getGetSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1.Spoke>( - this, METHODID_GET_SPOKE))) - .addMethod( - getCreateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_SPOKE))) - .addMethod( - getUpdateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_SPOKE))) - .addMethod( - getDeleteSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_SPOKE))) - .build(); - } - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { - private HubServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - - /** - *
-     * Lists hubs in a given project.
-     * 
- */ - public void listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details about the specified hub.
-     * 
- */ - public void getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new hub in the specified project.
-     * 
- */ - public void createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the description and/or labels of the specified hub.
-     * 
- */ - public void updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified hub.
-     * 
- */ - public void deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists the spokes in the specified project and location.
-     * 
- */ - public void listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details about the specified spoke.
-     * 
- */ - public void getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a spoke in the specified project and location.
-     * 
- */ - public void createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the parameters of the specified spoke.
-     * 
- */ - public void updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified spoke.
-     * 
- */ - public void deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static final class HubServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private HubServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists hubs in a given project.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.ListHubsResponse listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListHubsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details about the specified hub.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.Hub getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new hub in the specified project.
-     * 
- */ - public com.google.longrunning.Operation createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the description and/or labels of the specified hub.
-     * 
- */ - public com.google.longrunning.Operation updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified hub.
-     * 
- */ - public com.google.longrunning.Operation deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists the spokes in the specified project and location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.ListSpokesResponse listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSpokesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details about the specified spoke.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.Spoke getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSpokeMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a spoke in the specified project and location.
-     * 
- */ - public com.google.longrunning.Operation createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSpokeMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the parameters of the specified spoke.
-     * 
- */ - public com.google.longrunning.Operation updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified spoke.
-     * 
- */ - public com.google.longrunning.Operation deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static final class HubServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private HubServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lists hubs in a given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listHubs( - com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details about the specified hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getHub( - com.google.cloud.networkconnectivity.v1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new hub in the specified project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createHub( - com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the description and/or labels of the specified hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateHub( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteHub( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists the spokes in the specified project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSpokes( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details about the specified spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSpoke( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a spoke in the specified project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSpoke( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the parameters of the specified spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSpoke( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteSpoke( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_HUBS = 0; - private static final int METHODID_GET_HUB = 1; - private static final int METHODID_CREATE_HUB = 2; - private static final int METHODID_UPDATE_HUB = 3; - private static final int METHODID_DELETE_HUB = 4; - private static final int METHODID_LIST_SPOKES = 5; - private static final int METHODID_GET_SPOKE = 6; - private static final int METHODID_CREATE_SPOKE = 7; - private static final int METHODID_UPDATE_SPOKE = 8; - private static final int METHODID_DELETE_SPOKE = 9; - - 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 HubServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(HubServiceImplBase 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_HUBS: - serviceImpl.listHubs((com.google.cloud.networkconnectivity.v1.ListHubsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_HUB: - serviceImpl.getHub((com.google.cloud.networkconnectivity.v1.GetHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_HUB: - serviceImpl.createHub((com.google.cloud.networkconnectivity.v1.CreateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_HUB: - serviceImpl.updateHub((com.google.cloud.networkconnectivity.v1.UpdateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_HUB: - serviceImpl.deleteHub((com.google.cloud.networkconnectivity.v1.DeleteHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SPOKES: - serviceImpl.listSpokes((com.google.cloud.networkconnectivity.v1.ListSpokesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SPOKE: - serviceImpl.getSpoke((com.google.cloud.networkconnectivity.v1.GetSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SPOKE: - serviceImpl.createSpoke((com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SPOKE: - serviceImpl.updateSpoke((com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SPOKE: - serviceImpl.deleteSpoke((com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - HubServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("HubService"); - } - } - - private static final class HubServiceFileDescriptorSupplier - extends HubServiceBaseDescriptorSupplier { - HubServiceFileDescriptorSupplier() {} - } - - private static final class HubServiceMethodDescriptorSupplier - extends HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) - .addMethod(getListHubsMethod()) - .addMethod(getGetHubMethod()) - .addMethod(getCreateHubMethod()) - .addMethod(getUpdateHubMethod()) - .addMethod(getDeleteHubMethod()) - .addMethod(getListSpokesMethod()) - .addMethod(getGetSpokeMethod()) - .addMethod(getCreateSpokeMethod()) - .addMethod(getUpdateSpokeMethod()) - .addMethod(getDeleteSpokeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java deleted file mode 100644 index 4b78603a39ae..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java +++ /dev/null @@ -1,72 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1/common.proto - -package com.google.cloud.networkconnectivity.v1; - -public final class CommonProto { - private CommonProto() {} - 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_networkconnectivity_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/networkconnectivity/v1/co" + - "mmon.proto\022#google.cloud.networkconnecti" + - "vity.v1\032\037google/api/field_behavior.proto" + - "\032\037google/protobuf/timestamp.proto\"\200\002\n\021Op" + - "erationMetadata\0224\n\013create_time\030\001 \001(\0132\032.g" + - "oogle.protobuf.TimestampB\003\340A\003\0221\n\010end_tim" + - "e\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\026request" + - "ed_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_versio" + - "n\030\007 \001(\tB\003\340A\003B\205\002\n\'com.google.cloud.networ" + - "kconnectivity.v1B\013CommonProtoP\001ZVgoogle." + - "golang.org/genproto/googleapis/cloud/net" + - "workconnectivity/v1;networkconnectivity\252" + - "\002#Google.Cloud.NetworkConnectivity.V1\312\002#" + - "Google\\Cloud\\NetworkConnectivity\\V1\352\002&Go" + - "ogle::Cloud::NetworkConnectivity::V1b\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java deleted file mode 100644 index 4517f9b39e40..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1/hub.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface GetHubRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetHubRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the hub resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the hub resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java deleted file mode 100644 index 3293c5872324..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1/hub.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface GetSpokeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetSpokeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the spoke resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the spoke 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/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java deleted file mode 100644 index 708d0df3c973..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java +++ /dev/null @@ -1,478 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1/hub.proto - -package com.google.cloud.networkconnectivity.v1; - -public final class HubProto { - private HubProto() {} - 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_networkconnectivity_v1_Hub_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_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/networkconnectivity/v1/hu" + - "b.proto\022#google.cloud.networkconnectivit" + - "y.v1\032\034google/api/annotations.proto\032\027goog" + - "le/api/client.proto\032\037google/api/field_be" + - "havior.proto\032\031google/api/resource.proto\032" + - "#google/longrunning/operations.proto\032 go" + - "ogle/protobuf/field_mask.proto\032\037google/p" + - "rotobuf/timestamp.proto\"\212\004\n\003Hub\022\021\n\004name\030" + - "\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132\032.google" + - ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" + - "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022D" + - "\n\006labels\030\004 \003(\01324.google.cloud.networkcon" + - "nectivity.v1.Hub.LabelsEntry\022\023\n\013descript" + - "ion\030\005 \001(\t\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022>\n\005sta" + - "te\030\t \001(\0162*.google.cloud.networkconnectiv" + - "ity.v1.StateB\003\340A\003\022E\n\014routing_vpcs\030\n \003(\0132" + - "/.google.cloud.networkconnectivity.v1.Ro" + - "utingVPC\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001:[\352AX\n&networkconnectivit" + - "y.googleapis.com/Hub\022.projects/{project}" + - "/locations/global/hubs/{hub}\"\177\n\nRoutingV" + - "PC\0220\n\003uri\030\001 \001(\tB#\372A \n\036compute.googleapis" + - ".com/Network\022?\n2required_for_new_site_to" + - "_site_data_transfer_spokes\030\002 \001(\010B\003\340A\003\"\276\006" + - "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create_tim" + - "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + - "\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf." + - "TimestampB\003\340A\003\022F\n\006labels\030\004 \003(\01326.google." + - "cloud.networkconnectivity.v1.Spoke.Label" + - "sEntry\022\023\n\013description\030\005 \001(\t\022;\n\003hub\030\006 \001(\t" + - "B.\340A\005\372A(\n&networkconnectivity.googleapis" + - ".com/Hub\022Q\n\022linked_vpn_tunnels\030\021 \001(\01325.g" + - "oogle.cloud.networkconnectivity.v1.Linke" + - "dVpnTunnels\022k\n\037linked_interconnect_attac" + - "hments\030\022 \001(\0132B.google.cloud.networkconne" + - "ctivity.v1.LinkedInterconnectAttachments" + - "\022n\n!linked_router_appliance_instances\030\023 " + - "\001(\0132C.google.cloud.networkconnectivity.v" + - "1.LinkedRouterApplianceInstances\022\026\n\tuniq" + - "ue_id\030\013 \001(\tB\003\340A\003\022>\n\005state\030\017 \001(\0162*.google" + - ".cloud.networkconnectivity.v1.StateB\003\340A\003" + - "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001:e\352Ab\n(networkconnectivity.google" + - "apis.com/Spoke\0226projects/{project}/locat" + - "ions/{location}/spokes/{spoke}\"\225\001\n\017ListH" + - "ubsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" + - "tions.googleapis.com/Location\022\021\n\tpage_si" + - "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004" + - " \001(\t\022\020\n\010order_by\030\005 \001(\t\"x\n\020ListHubsRespon" + - "se\0226\n\004hubs\030\001 \003(\0132(.google.cloud.networkc" + - "onnectivity.v1.Hub\022\027\n\017next_page_token\030\002 " + - "\001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\rGetHubReques" + - "t\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&networkconnecti" + - "vity.googleapis.com/Hub\"\267\001\n\020CreateHubReq" + - "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." + - "googleapis.com/Location\022\023\n\006hub_id\030\002 \001(\tB" + - "\003\340A\002\022:\n\003hub\030\003 \001(\0132(.google.cloud.network" + - "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\004" + - " \001(\tB\003\340A\001\"\235\001\n\020UpdateHubRequest\0224\n\013update" + - "_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB" + - "\003\340A\001\022:\n\003hub\030\002 \001(\0132(.google.cloud.network" + - "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\003" + - " \001(\tB\003\340A\001\"i\n\020DeleteHubRequest\022<\n\004name\030\001 " + - "\001(\tB.\340A\002\372A(\n&networkconnectivity.googlea" + - "pis.com/Hub\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\227\001\n" + - "\021ListSpokesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" + - "A#\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\006" + - "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\022ListSp" + - "okesResponse\022:\n\006spokes\030\001 \003(\0132*.google.cl" + - "oud.networkconnectivity.v1.Spoke\022\027\n\017next" + - "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q" + - "\n\017GetSpokeRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n" + - "(networkconnectivity.googleapis.com/Spok" + - "e\"\277\001\n\022CreateSpokeRequest\0229\n\006parent\030\001 \001(\t" + - "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + - "ion\022\025\n\010spoke_id\030\002 \001(\tB\003\340A\002\022>\n\005spoke\030\003 \001(" + - "\0132*.google.cloud.networkconnectivity.v1." + - "SpokeB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\022" + - "UpdateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132" + - "\032.google.protobuf.FieldMaskB\003\340A\001\022>\n\005spok" + - "e\030\002 \001(\0132*.google.cloud.networkconnectivi" + - "ty.v1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A" + - "\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\tB0\340" + - "A\002\372A*\n(networkconnectivity.googleapis.co" + - "m/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"k\n\020Link" + - "edVpnTunnels\0223\n\004uris\030\001 \003(\tB%\372A\"\n compute" + - ".googleapis.com/VpnTunnel\022\"\n\032site_to_sit" + - "e_data_transfer\030\002 \001(\010\"\205\001\n\035LinkedIntercon" + - "nectAttachments\022@\n\004uris\030\001 \003(\tB2\372A/\n-comp" + - "ute.googleapis.com/InterconnectAttachmen" + - "t\022\"\n\032site_to_site_data_transfer\030\002 \001(\010\"\225\001" + - "\n\036LinkedRouterApplianceInstances\022O\n\tinst" + - "ances\030\001 \003(\0132<.google.cloud.networkconnec" + - "tivity.v1.RouterApplianceInstance\022\"\n\032sit" + - "e_to_site_data_transfer\030\002 \001(\010\"l\n\027RouterA" + - "pplianceInstance\022=\n\017virtual_machine\030\001 \001(" + - "\tB$\372A!\n\037compute.googleapis.com/Instance\022" + - "\022\n\nip_address\030\003 \001(\t\"c\n\020LocationMetadata\022" + - "O\n\021location_features\030\001 \003(\01624.google.clou" + - "d.networkconnectivity.v1.LocationFeature" + - "*F\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREA" + - "TING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003*f\n\017Loca" + - "tionFeature\022 \n\034LOCATION_FEATURE_UNSPECIF" + - "IED\020\000\022\030\n\024SITE_TO_CLOUD_SPOKES\020\001\022\027\n\023SITE_" + - "TO_SITE_SPOKES\020\0022\235\020\n\nHubService\022\267\001\n\010List" + - "Hubs\0224.google.cloud.networkconnectivity." + - "v1.ListHubsRequest\0325.google.cloud.networ" + - "kconnectivity.v1.ListHubsResponse\">\202\323\344\223\002" + - "/\022-/v1/{parent=projects/*/locations/glob" + - "al}/hubs\332A\006parent\022\244\001\n\006GetHub\0222.google.cl" + - "oud.networkconnectivity.v1.GetHubRequest" + - "\032(.google.cloud.networkconnectivity.v1.H" + - "ub\"<\202\323\344\223\002/\022-/v1/{name=projects/*/locatio" + - "ns/global/hubs/*}\332A\004name\022\314\001\n\tCreateHub\0225" + - ".google.cloud.networkconnectivity.v1.Cre" + - "ateHubRequest\032\035.google.longrunning.Opera" + - "tion\"i\202\323\344\223\0024\"-/v1/{parent=projects/*/loc" + - "ations/global}/hubs:\003hub\332A\021parent,hub,hu" + - "b_id\312A\030\n\003Hub\022\021OperationMetadata\022\316\001\n\tUpda" + - "teHub\0225.google.cloud.networkconnectivity" + - ".v1.UpdateHubRequest\032\035.google.longrunnin" + - "g.Operation\"k\202\323\344\223\002821/v1/{hub.name=proje" + - "cts/*/locations/global/hubs/*}:\003hub\332A\017hu" + - "b,update_mask\312A\030\n\003Hub\022\021OperationMetadata" + - "\022\314\001\n\tDeleteHub\0225.google.cloud.networkcon" + - "nectivity.v1.DeleteHubRequest\032\035.google.l" + - "ongrunning.Operation\"i\202\323\344\223\002/*-/v1/{name=" + - "projects/*/locations/global/hubs/*}\332A\004na" + - "me\312A*\n\025google.protobuf.Empty\022\021OperationM" + - "etadata\022\272\001\n\nListSpokes\0226.google.cloud.ne" + - "tworkconnectivity.v1.ListSpokesRequest\0327" + - ".google.cloud.networkconnectivity.v1.Lis" + - "tSpokesResponse\";\202\323\344\223\002,\022*/v1/{parent=pro" + - "jects/*/locations/*}/spokes\332A\006parent\022\247\001\n" + - "\010GetSpoke\0224.google.cloud.networkconnecti" + - "vity.v1.GetSpokeRequest\032*.google.cloud.n" + - "etworkconnectivity.v1.Spoke\"9\202\323\344\223\002,\022*/v1" + - "/{name=projects/*/locations/*/spokes/*}\332" + - "A\004name\022\325\001\n\013CreateSpoke\0227.google.cloud.ne" + - "tworkconnectivity.v1.CreateSpokeRequest\032" + - "\035.google.longrunning.Operation\"n\202\323\344\223\0023\"*" + - "/v1/{parent=projects/*/locations/*}/spok" + - "es:\005spoke\332A\025parent,spoke,spoke_id\312A\032\n\005Sp" + - "oke\022\021OperationMetadata\022\327\001\n\013UpdateSpoke\0227" + - ".google.cloud.networkconnectivity.v1.Upd" + - "ateSpokeRequest\032\035.google.longrunning.Ope" + - "ration\"p\202\323\344\223\002920/v1/{spoke.name=projects" + - "/*/locations/*/spokes/*}:\005spoke\332A\021spoke," + - "update_mask\312A\032\n\005Spoke\022\021OperationMetadata" + - "\022\315\001\n\013DeleteSpoke\0227.google.cloud.networkc" + - "onnectivity.v1.DeleteSpokeRequest\032\035.goog" + - "le.longrunning.Operation\"f\202\323\344\223\002,**/v1/{n" + - "ame=projects/*/locations/*/spokes/*}\332A\004n" + - "ame\312A*\n\025google.protobuf.Empty\022\021Operation" + - "Metadata\032V\312A\"networkconnectivity.googlea" + - "pis.com\322A.https://www.googleapis.com/aut" + - "h/cloud-platformB\221\005\n\'com.google.cloud.ne" + - "tworkconnectivity.v1B\010HubProtoP\001ZVgoogle" + - ".golang.org/genproto/googleapis/cloud/ne" + - "tworkconnectivity/v1;networkconnectivity" + - "\252\002#Google.Cloud.NetworkConnectivity.V1\312\002" + - "#Google\\Cloud\\NetworkConnectivity\\V1\352\002&G" + - "oogle::Cloud::NetworkConnectivity::V1\352A`" + - "\n compute.googleapis.com/VpnTunnel\022 - * Network Connectivity Center is a hub-and-spoke abstraction for - * network connectivity management in Google Cloud. It reduces - * operational complexity through a simple, centralized connectivity management - * model. - *
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1alpha1/hub.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class HubServiceGrpc { - - private HubServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1alpha1.HubService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListHubsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListHubs", - requestType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListHubsMethod() { - io.grpc.MethodDescriptor getListHubsMethod; - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - HubServiceGrpc.getListHubsMethod = getListHubsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) - .build(); - } - } - } - return getListHubsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.Hub.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetHubMethod() { - io.grpc.MethodDescriptor getGetHubMethod; - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - HubServiceGrpc.getGetHubMethod = getGetHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) - .build(); - } - } - } - return getGetHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateHubMethod() { - io.grpc.MethodDescriptor getCreateHubMethod; - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - HubServiceGrpc.getCreateHubMethod = getCreateHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) - .build(); - } - } - } - return getCreateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateHubMethod() { - io.grpc.MethodDescriptor getUpdateHubMethod; - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - HubServiceGrpc.getUpdateHubMethod = getUpdateHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) - .build(); - } - } - } - return getUpdateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteHubMethod() { - io.grpc.MethodDescriptor getDeleteHubMethod; - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - HubServiceGrpc.getDeleteHubMethod = getDeleteHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) - .build(); - } - } - } - return getDeleteHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSpokesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSpokes", - requestType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSpokesMethod() { - io.grpc.MethodDescriptor getListSpokesMethod; - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - HubServiceGrpc.getListSpokesMethod = getListSpokesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) - .build(); - } - } - } - return getListSpokesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSpokeMethod() { - io.grpc.MethodDescriptor getGetSpokeMethod; - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - HubServiceGrpc.getGetSpokeMethod = getGetSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) - .build(); - } - } - } - return getGetSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSpokeMethod() { - io.grpc.MethodDescriptor getCreateSpokeMethod; - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - HubServiceGrpc.getCreateSpokeMethod = getCreateSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) - .build(); - } - } - } - return getCreateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSpokeMethod() { - io.grpc.MethodDescriptor getUpdateSpokeMethod; - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - HubServiceGrpc.getUpdateSpokeMethod = getUpdateSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) - .build(); - } - } - } - return getUpdateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteSpokeMethod() { - io.grpc.MethodDescriptor getDeleteSpokeMethod; - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - HubServiceGrpc.getDeleteSpokeMethod = getDeleteSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) - .build(); - } - } - } - return getDeleteSpokeMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static HubServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - }; - return HubServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static HubServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - }; - return HubServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static HubServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - }; - return HubServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static abstract class HubServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public void listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single Hub.
-     * 
- */ - public void getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); - } - - /** - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public void createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); - } - - /** - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public void updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); - } - - /** - *
-     * Deletes a single Hub.
-     * 
- */ - public void deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); - } - - /** - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public void listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single Spoke.
-     * 
- */ - public void getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); - } - - /** - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public void createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSpokeMethod(), responseObserver); - } - - /** - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public void updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSpokeMethod(), responseObserver); - } - - /** - *
-     * Deletes a single Spoke.
-     * 
- */ - public void deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSpokeMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListHubsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>( - this, METHODID_LIST_HUBS))) - .addMethod( - getGetHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, - com.google.cloud.networkconnectivity.v1alpha1.Hub>( - this, METHODID_GET_HUB))) - .addMethod( - getCreateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_HUB))) - .addMethod( - getUpdateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_HUB))) - .addMethod( - getDeleteHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_HUB))) - .addMethod( - getListSpokesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>( - this, METHODID_LIST_SPOKES))) - .addMethod( - getGetSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1alpha1.Spoke>( - this, METHODID_GET_SPOKE))) - .addMethod( - getCreateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_SPOKE))) - .addMethod( - getUpdateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_SPOKE))) - .addMethod( - getDeleteSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_SPOKE))) - .build(); - } - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { - private HubServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - - /** - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public void listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single Hub.
-     * 
- */ - public void getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public void createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public void updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a single Hub.
-     * 
- */ - public void deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public void listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single Spoke.
-     * 
- */ - public void getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public void createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public void updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a single Spoke.
-     * 
- */ - public void deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static final class HubServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private HubServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListHubsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single Hub.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public com.google.longrunning.Operation updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a single Hub.
-     * 
- */ - public com.google.longrunning.Operation deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSpokesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single Spoke.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSpokeMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSpokeMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public com.google.longrunning.Operation updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a single Spoke.
-     * 
- */ - public com.google.longrunning.Operation deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static final class HubServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private HubServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listHubs( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single Hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getHub( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createHub( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateHub( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a single Hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteHub( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSpokes( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single Spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSpoke( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSpoke( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSpoke( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a single Spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteSpoke( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_HUBS = 0; - private static final int METHODID_GET_HUB = 1; - private static final int METHODID_CREATE_HUB = 2; - private static final int METHODID_UPDATE_HUB = 3; - private static final int METHODID_DELETE_HUB = 4; - private static final int METHODID_LIST_SPOKES = 5; - private static final int METHODID_GET_SPOKE = 6; - private static final int METHODID_CREATE_SPOKE = 7; - private static final int METHODID_UPDATE_SPOKE = 8; - private static final int METHODID_DELETE_SPOKE = 9; - - 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 HubServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(HubServiceImplBase 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_HUBS: - serviceImpl.listHubs((com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_HUB: - serviceImpl.getHub((com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_HUB: - serviceImpl.createHub((com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_HUB: - serviceImpl.updateHub((com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_HUB: - serviceImpl.deleteHub((com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SPOKES: - serviceImpl.listSpokes((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SPOKE: - serviceImpl.getSpoke((com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SPOKE: - serviceImpl.createSpoke((com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SPOKE: - serviceImpl.updateSpoke((com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SPOKE: - serviceImpl.deleteSpoke((com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - HubServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("HubService"); - } - } - - private static final class HubServiceFileDescriptorSupplier - extends HubServiceBaseDescriptorSupplier { - HubServiceFileDescriptorSupplier() {} - } - - private static final class HubServiceMethodDescriptorSupplier - extends HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) - .addMethod(getListHubsMethod()) - .addMethod(getGetHubMethod()) - .addMethod(getCreateHubMethod()) - .addMethod(getUpdateHubMethod()) - .addMethod(getDeleteHubMethod()) - .addMethod(getListSpokesMethod()) - .addMethod(getGetSpokeMethod()) - .addMethod(getCreateSpokeMethod()) - .addMethod(getUpdateSpokeMethod()) - .addMethod(getDeleteSpokeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java deleted file mode 100644 index 4bee516017a0..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java +++ /dev/null @@ -1,73 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1alpha1/common.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public final class CommonProto { - private CommonProto() {} - 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_networkconnectivity_v1alpha1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/networkconnectivity/v1alp" + - "ha1/common.proto\022)google.cloud.networkco" + - "nnectivity.v1alpha1\032\037google/api/field_be" + - "havior.proto\032\037google/protobuf/timestamp." + - "proto\"\200\002\n\021OperationMetadata\0224\n\013create_ti" + - "me\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A" + - "\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf.Ti" + - "mestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004ver" + - "b\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\003B\243\002\n-com.google." + - "cloud.networkconnectivity.v1alpha1B\013Comm" + - "onProtoP\001Z\\google.golang.org/genproto/go" + - "ogleapis/cloud/networkconnectivity/v1alp" + - "ha1;networkconnectivity\252\002)Google.Cloud.N" + - "etworkConnectivity.V1Alpha1\312\002)Google\\Clo" + - "ud\\NetworkConnectivity\\V1alpha1\352\002,Google" + - "::Cloud::NetworkConnectivity::V1alpha1b\006" + - "proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java deleted file mode 100644 index c6b8ae7dba4a..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1alpha1/hub.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public interface GetHubRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the Hub resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the Hub resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java deleted file mode 100644 index a34464f02bd3..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1alpha1/hub.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public interface GetSpokeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of Spoke resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of Spoke 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/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java deleted file mode 100644 index 3156d40d4846..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java +++ /dev/null @@ -1,408 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1alpha1/hub.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public final class HubProto { - private HubProto() {} - 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_networkconnectivity_v1alpha1_Hub_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/networkconnectivity/v1alp" + - "ha1/hub.proto\022)google.cloud.networkconne" + - "ctivity.v1alpha1\032\034google/api/annotations" + - ".proto\032\027google/api/client.proto\032\037google/" + - "api/field_behavior.proto\032\031google/api/res" + - "ource.proto\032#google/longrunning/operatio" + - "ns.proto\032 google/protobuf/field_mask.pro" + - "to\032\037google/protobuf/timestamp.proto\"\207\004\n\003" + - "Hub\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_time\030\002 " + - "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat" + - "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + - "\022J\n\006labels\030\004 \003(\0132:.google.cloud.networkc" + - "onnectivity.v1alpha1.Hub.LabelsEntry\022\023\n\013" + - "description\030\005 \001(\t\022@\n\006spokes\030\006 \003(\tB0\340A\003\372A" + - "*\n(networkconnectivity.googleapis.com/Sp" + - "oke\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022D\n\005state\030\t \001" + - "(\01620.google.cloud.networkconnectivity.v1" + - "alpha1.StateB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030" + - "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:[\352AX\n&networkco" + - "nnectivity.googleapis.com/Hub\022.projects/" + - "{project}/locations/global/hubs/{hub}\"\234\006" + - "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_tim" + - "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022/\n\013u" + - "pdate_time\030\003 \001(\0132\032.google.protobuf.Times" + - "tamp\022L\n\006labels\030\004 \003(\0132<.google.cloud.netw" + - "orkconnectivity.v1alpha1.Spoke.LabelsEnt" + - "ry\022\023\n\013description\030\005 \001(\t\0228\n\003hub\030\006 \001(\tB+\372A" + - "(\n&networkconnectivity.googleapis.com/Hu" + - "b\022A\n\022linked_vpn_tunnels\030\014 \003(\tB%\372A\"\n comp" + - "ute.googleapis.com/VpnTunnel\022[\n\037linked_i" + - "nterconnect_attachments\030\r \003(\tB2\372A/\n-comp" + - "ute.googleapis.com/InterconnectAttachmen" + - "t\022m\n!linked_router_appliance_instances\030\016" + - " \003(\0132B.google.cloud.networkconnectivity." + - "v1alpha1.RouterApplianceInstance\022\026\n\tuniq" + - "ue_id\030\013 \001(\tB\003\340A\003\022D\n\005state\030\017 \001(\01620.google" + - ".cloud.networkconnectivity.v1alpha1.Stat" + - "eB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + - "lue\030\002 \001(\t:\0028\001:e\352Ab\n(networkconnectivity." + - "googleapis.com/Spoke\0226projects/{project}" + - "/locations/{location}/spokes/{spoke}\"\225\001\n" + - "\017ListHubsRequest\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\022\016\n\006fi" + - "lter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\020ListHubs" + - "Response\022<\n\004hubs\030\001 \003(\0132..google.cloud.ne" + - "tworkconnectivity.v1alpha1.Hub\022\027\n\017next_p" + - "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\r" + - "GetHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" + - "workconnectivity.googleapis.com/Hub\"\275\001\n\020" + - "CreateHubRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + - "\n!locations.googleapis.com/Location\022\023\n\006h" + - "ub_id\030\002 \001(\tB\003\340A\001\022@\n\003hub\030\003 \001(\0132..google.c" + - "loud.networkconnectivity.v1alpha1.HubB\003\340" + - "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\020UpdateHu" + - "bRequest\0224\n\013update_mask\030\001 \001(\0132\032.google.p" + - "rotobuf.FieldMaskB\003\340A\001\022@\n\003hub\030\002 \001(\0132..go" + - "ogle.cloud.networkconnectivity.v1alpha1." + - "HubB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"i\n\020Del" + - "eteHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" + - "workconnectivity.googleapis.com/Hub\022\027\n\nr" + - "equest_id\030\002 \001(\tB\003\340A\001\"\227\001\n\021ListSpokesReque" + - "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + - "ogleapis.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\022\020\n\010" + - "order_by\030\005 \001(\t\"\204\001\n\022ListSpokesResponse\022@\n" + - "\006spokes\030\001 \003(\01320.google.cloud.networkconn" + - "ectivity.v1alpha1.Spoke\022\027\n\017next_page_tok" + - "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\017GetSpok" + - "eRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(networkc" + - "onnectivity.googleapis.com/Spoke\"\305\001\n\022Cre" + - "ateSpokeRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n" + - "!locations.googleapis.com/Location\022\025\n\010sp" + - "oke_id\030\002 \001(\tB\003\340A\001\022D\n\005spoke\030\003 \001(\01320.googl" + - "e.cloud.networkconnectivity.v1alpha1.Spo" + - "keB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\251\001\n\022Upd" + - "ateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132\032.g" + - "oogle.protobuf.FieldMaskB\003\340A\001\022D\n\005spoke\030\002" + - " \001(\01320.google.cloud.networkconnectivity." + - "v1alpha1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB" + - "\003\340A\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\t" + - "B0\340A\002\372A*\n(networkconnectivity.googleapis" + - ".com/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\213\001\n\027" + - "RouterApplianceInstance\022=\n\017virtual_machi" + - "ne\030\001 \001(\tB$\372A!\n\037compute.googleapis.com/In" + - "stance\022\022\n\nip_address\030\003 \001(\t\022\035\n\021network_in" + - "terface\030\002 \001(\tB\002\030\001*F\n\005State\022\025\n\021STATE_UNSP" + - "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010D" + - "ELETING\020\0032\255\021\n\nHubService\022\311\001\n\010ListHubs\022:." + - "google.cloud.networkconnectivity.v1alpha" + - "1.ListHubsRequest\032;.google.cloud.network" + - "connectivity.v1alpha1.ListHubsResponse\"D" + - "\202\323\344\223\0025\0223/v1alpha1/{parent=projects/*/loc" + - "ations/global}/hubs\332A\006parent\022\266\001\n\006GetHub\022" + - "8.google.cloud.networkconnectivity.v1alp" + - "ha1.GetHubRequest\032..google.cloud.network" + - "connectivity.v1alpha1.Hub\"B\202\323\344\223\0025\0223/v1al" + - "pha1/{name=projects/*/locations/global/h" + - "ubs/*}\332A\004name\022\330\001\n\tCreateHub\022;.google.clo" + - "ud.networkconnectivity.v1alpha1.CreateHu" + - "bRequest\032\035.google.longrunning.Operation\"" + - "o\202\323\344\223\002:\"3/v1alpha1/{parent=projects/*/lo" + - "cations/global}/hubs:\003hub\332A\021parent,hub,h" + - "ub_id\312A\030\n\003Hub\022\021OperationMetadata\022\332\001\n\tUpd" + - "ateHub\022;.google.cloud.networkconnectivit" + - "y.v1alpha1.UpdateHubRequest\032\035.google.lon" + - "grunning.Operation\"q\202\323\344\223\002>27/v1alpha1/{h" + - "ub.name=projects/*/locations/global/hubs" + - "/*}:\003hub\332A\017hub,update_mask\312A\030\n\003Hub\022\021Oper" + - "ationMetadata\022\330\001\n\tDeleteHub\022;.google.clo" + - "ud.networkconnectivity.v1alpha1.DeleteHu" + - "bRequest\032\035.google.longrunning.Operation\"" + - "o\202\323\344\223\0025*3/v1alpha1/{name=projects/*/loca" + - "tions/global/hubs/*}\332A\004name\312A*\n\025google.p" + - "rotobuf.Empty\022\021OperationMetadata\022\314\001\n\nLis" + - "tSpokes\022<.google.cloud.networkconnectivi" + - "ty.v1alpha1.ListSpokesRequest\032=.google.c" + - "loud.networkconnectivity.v1alpha1.ListSp" + - "okesResponse\"A\202\323\344\223\0022\0220/v1alpha1/{parent=" + - "projects/*/locations/*}/spokes\332A\006parent\022" + - "\271\001\n\010GetSpoke\022:.google.cloud.networkconne" + - "ctivity.v1alpha1.GetSpokeRequest\0320.googl" + - "e.cloud.networkconnectivity.v1alpha1.Spo" + - "ke\"?\202\323\344\223\0022\0220/v1alpha1/{name=projects/*/l" + - "ocations/*/spokes/*}\332A\004name\022\341\001\n\013CreateSp" + - "oke\022=.google.cloud.networkconnectivity.v" + - "1alpha1.CreateSpokeRequest\032\035.google.long" + - "running.Operation\"t\202\323\344\223\0029\"0/v1alpha1/{pa" + - "rent=projects/*/locations/*}/spokes:\005spo" + - "ke\332A\025parent,spoke,spoke_id\312A\032\n\005Spoke\022\021Op" + - "erationMetadata\022\343\001\n\013UpdateSpoke\022=.google" + - ".cloud.networkconnectivity.v1alpha1.Upda" + - "teSpokeRequest\032\035.google.longrunning.Oper" + - "ation\"v\202\323\344\223\002?26/v1alpha1/{spoke.name=pro" + - "jects/*/locations/*/spokes/*}:\005spoke\332A\021s" + - "poke,update_mask\312A\032\n\005Spoke\022\021OperationMet" + - "adata\022\331\001\n\013DeleteSpoke\022=.google.cloud.net" + - "workconnectivity.v1alpha1.DeleteSpokeReq" + - "uest\032\035.google.longrunning.Operation\"l\202\323\344" + - "\223\0022*0/v1alpha1/{name=projects/*/location" + - "s/*/spokes/*}\332A\004name\312A*\n\025google.protobuf" + - ".Empty\022\021OperationMetadata\032V\312A\"networkcon" + - "nectivity.googleapis.com\322A.https://www.g" + - "oogleapis.com/auth/cloud-platformB\332\004\n-co" + - "m.google.cloud.networkconnectivity.v1alp" + - "ha1B\010HubProtoP\001Z\\google.golang.org/genpr" + - "oto/googleapis/cloud/networkconnectivity" + - "/v1alpha1;networkconnectivity\252\002)Google.C" + - "loud.NetworkConnectivity.V1Alpha1\312\002)Goog" + - "le\\Cloud\\NetworkConnectivity\\V1alpha1\352\002," + - "Google::Cloud::NetworkConnectivity::V1al" + - "pha1\352A`\n compute.googleapis.com/VpnTunne" + - "l\022 Date: Thu, 26 Jan 2023 03:11:13 +0000 Subject: [PATCH 3/6] feat: Update Hub API PiperOrigin-RevId: 504700327 Source-Link: https://github.com/googleapis/googleapis/commit/91b494f124b2f88e70a7e89aa6457ba53423b595 Source-Link: https://github.com/googleapis/googleapis-gen/commit/9af0d4fe79b60c9fcb8539497d18a14f5917d952 Copy-Tag: eyJwIjoiamF2YS1uZXR3b3JrY29ubmVjdGl2aXR5Ly5Pd2xCb3QueWFtbCIsImgiOiI5YWYwZDRmZTc5YjYwYzlmY2I4NTM5NDk3ZDE4YTE0ZjU5MTdkOTUyIn0= --- .../v1/HubServiceGrpc.java | 1388 --- .../v1alpha1/HubServiceGrpc.java | 1400 --- .../networkconnectivity/v1/CommonProto.java | 93 - .../v1/GetHubRequestOrBuilder.java | 54 - .../v1/GetSpokeRequestOrBuilder.java | 54 - .../networkconnectivity/v1/HubProto.java | 533 -- .../v1alpha1/CommonProto.java | 94 - .../v1alpha1/GetHubRequestOrBuilder.java | 54 - .../v1alpha1/GetSpokeRequestOrBuilder.java | 54 - .../v1alpha1/HubProto.java | 460 - .../v1/HubServiceClient.java | 92 +- .../v1/HubServiceSettings.java | 1 + .../v1/PolicyBasedRoutingServiceClient.java | 944 ++ .../v1/PolicyBasedRoutingServiceSettings.java | 272 + .../v1/gapic_metadata.json | 21 + .../networkconnectivity/v1/package-info.java | 21 + .../stub/GrpcHubServiceCallableFactory.java | 0 .../v1/stub/GrpcHubServiceStub.java | 1 + ...icyBasedRoutingServiceCallableFactory.java | 113 + .../GrpcPolicyBasedRoutingServiceStub.java | 326 + .../v1/stub/HubServiceStub.java | 0 .../v1/stub/HubServiceStubSettings.java | 0 .../stub/PolicyBasedRoutingServiceStub.java | 86 + ...PolicyBasedRoutingServiceStubSettings.java | 572 ++ .../v1/HubServiceClientTest.java | 0 .../v1/MockHubService.java | 0 .../v1/MockHubServiceImpl.java | 0 .../v1/MockPolicyBasedRoutingService.java | 59 + .../v1/MockPolicyBasedRoutingServiceImpl.java | 146 + .../PolicyBasedRoutingServiceClientTest.java | 501 ++ .../v1/HubServiceGrpc.java | 1095 +++ .../v1/PolicyBasedRoutingServiceGrpc.java | 566 ++ .../networkconnectivity/v1/CommonProto.java | 81 + .../v1/CreateHubRequest.java | 715 +- .../v1/CreateHubRequestOrBuilder.java | 93 +- .../v1/CreatePolicyBasedRouteRequest.java | 1207 +++ ...reatePolicyBasedRouteRequestOrBuilder.java | 116 + .../v1/CreateSpokeRequest.java | 721 +- .../v1/CreateSpokeRequestOrBuilder.java | 93 +- .../v1/DeleteHubRequest.java | 504 +- .../v1/DeleteHubRequestOrBuilder.java | 64 +- .../v1/DeletePolicyBasedRouteRequest.java | 814 ++ ...eletePolicyBasedRouteRequestOrBuilder.java | 69 + .../v1/DeleteSpokeRequest.java | 504 +- .../v1/DeleteSpokeRequestOrBuilder.java | 64 +- .../networkconnectivity/v1/GetHubRequest.java | 364 +- .../v1/GetHubRequestOrBuilder.java | 29 + .../v1/GetPolicyBasedRouteRequest.java | 580 ++ .../GetPolicyBasedRouteRequestOrBuilder.java | 29 + .../v1/GetSpokeRequest.java | 362 +- .../v1/GetSpokeRequestOrBuilder.java | 29 + .../cloud/networkconnectivity/v1/Hub.java | 1266 ++- .../cloud/networkconnectivity/v1/HubName.java | 0 .../networkconnectivity/v1/HubOrBuilder.java | 153 +- .../networkconnectivity/v1/HubProto.java | 477 + .../v1/LinkedInterconnectAttachments.java | 593 +- ...inkedInterconnectAttachmentsOrBuilder.java | 59 +- .../v1/LinkedRouterApplianceInstances.java | 766 +- ...nkedRouterApplianceInstancesOrBuilder.java | 72 +- .../v1/LinkedVpnTunnels.java | 558 +- .../v1/LinkedVpnTunnelsOrBuilder.java | 59 +- .../v1/ListHubsRequest.java | 615 +- .../v1/ListHubsRequestOrBuilder.java | 65 +- .../v1/ListHubsResponse.java | 598 +- .../v1/ListHubsResponseOrBuilder.java | 63 +- .../v1/ListPolicyBasedRoutesRequest.java | 1154 +++ ...ListPolicyBasedRoutesRequestOrBuilder.java | 99 + .../v1/ListPolicyBasedRoutesResponse.java | 1266 +++ ...istPolicyBasedRoutesResponseOrBuilder.java | 116 + .../v1/ListSpokesRequest.java | 613 +- .../v1/ListSpokesRequestOrBuilder.java | 65 +- .../v1/ListSpokesResponse.java | 593 +- .../v1/ListSpokesResponseOrBuilder.java | 63 +- .../v1/LocationFeature.java | 84 +- .../v1/LocationMetadata.java | 454 +- .../v1/LocationMetadataOrBuilder.java | 51 +- .../networkconnectivity/v1/LocationName.java | 0 .../v1/OperationMetadata.java | 835 +- .../v1/OperationMetadataOrBuilder.java | 91 +- .../v1/PolicyBasedRoute.java | 7688 +++++++++++++++++ .../v1/PolicyBasedRouteName.java | 228 + .../v1/PolicyBasedRouteOrBuilder.java | 408 + .../v1/PolicyBasedRoutingProto.java | 296 + .../v1/RouterApplianceInstance.java | 423 +- .../v1/RouterApplianceInstanceOrBuilder.java | 36 +- .../networkconnectivity/v1/RoutingVPC.java | 409 +- .../v1/RoutingVPCOrBuilder.java | 38 +- .../cloud/networkconnectivity/v1/Spoke.java | 1698 ++-- .../networkconnectivity/v1/SpokeName.java | 0 .../v1/SpokeOrBuilder.java | 212 +- .../cloud/networkconnectivity/v1/State.java | 108 +- .../v1/UpdateHubRequest.java | 788 +- .../v1/UpdateHubRequestOrBuilder.java | 114 +- .../v1/UpdateSpokeRequest.java | 724 +- .../v1/UpdateSpokeRequestOrBuilder.java | 96 +- .../cloud/networkconnectivity/v1/common.proto | 9 + .../cloud/networkconnectivity/v1/hub.proto | 266 +- .../v1/policy_based_routing.proto | 338 + .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../hubservice/createhub/AsyncCreateHub.java | 0 .../createhub/AsyncCreateHubLRO.java | 0 .../hubservice/createhub/SyncCreateHub.java | 0 .../SyncCreateHubLocationnameHubString.java | 0 .../SyncCreateHubStringHubString.java | 0 .../createspoke/AsyncCreateSpoke.java | 0 .../createspoke/AsyncCreateSpokeLRO.java | 0 .../createspoke/SyncCreateSpoke.java | 0 ...yncCreateSpokeLocationnameSpokeString.java | 0 .../SyncCreateSpokeStringSpokeString.java | 0 .../hubservice/deletehub/AsyncDeleteHub.java | 0 .../deletehub/AsyncDeleteHubLRO.java | 0 .../hubservice/deletehub/SyncDeleteHub.java | 0 .../deletehub/SyncDeleteHubHubname.java | 0 .../deletehub/SyncDeleteHubString.java | 0 .../deletespoke/AsyncDeleteSpoke.java | 0 .../deletespoke/AsyncDeleteSpokeLRO.java | 0 .../deletespoke/SyncDeleteSpoke.java | 0 .../deletespoke/SyncDeleteSpokeSpokename.java | 0 .../deletespoke/SyncDeleteSpokeString.java | 0 .../v1/hubservice/gethub/AsyncGetHub.java | 0 .../v1/hubservice/gethub/SyncGetHub.java | 0 .../hubservice/gethub/SyncGetHubHubname.java | 0 .../hubservice/gethub/SyncGetHubString.java | 0 .../v1/hubservice/getspoke/AsyncGetSpoke.java | 0 .../v1/hubservice/getspoke/SyncGetSpoke.java | 0 .../getspoke/SyncGetSpokeSpokename.java | 0 .../getspoke/SyncGetSpokeString.java | 0 .../v1/hubservice/listhubs/AsyncListHubs.java | 0 .../listhubs/AsyncListHubsPaged.java | 0 .../v1/hubservice/listhubs/SyncListHubs.java | 0 .../listhubs/SyncListHubsLocationname.java | 0 .../listhubs/SyncListHubsString.java | 0 .../listspokes/AsyncListSpokes.java | 0 .../listspokes/AsyncListSpokesPaged.java | 0 .../hubservice/listspokes/SyncListSpokes.java | 0 .../SyncListSpokesLocationname.java | 0 .../listspokes/SyncListSpokesString.java | 0 .../hubservice/updatehub/AsyncUpdateHub.java | 0 .../updatehub/AsyncUpdateHubLRO.java | 0 .../hubservice/updatehub/SyncUpdateHub.java | 0 .../updatehub/SyncUpdateHubHubFieldmask.java | 0 .../updatespoke/AsyncUpdateSpoke.java | 0 .../updatespoke/AsyncUpdateSpokeLRO.java | 0 .../updatespoke/SyncUpdateSpoke.java | 0 .../SyncUpdateSpokeSpokeFieldmask.java | 0 .../hubservicesettings/gethub/SyncGetHub.java | 0 .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../AsyncCreatePolicyBasedRoute.java | 55 + .../AsyncCreatePolicyBasedRouteLRO.java | 57 + .../SyncCreatePolicyBasedRoute.java | 51 + ...uteLocationnamePolicybasedrouteString.java | 49 + ...asedRouteStringPolicybasedrouteString.java | 48 + .../AsyncDeletePolicyBasedRoute.java | 54 + .../AsyncDeletePolicyBasedRouteLRO.java | 57 + .../SyncDeletePolicyBasedRoute.java | 50 + ...ePolicyBasedRoutePolicybasedroutename.java | 44 + .../SyncDeletePolicyBasedRouteString.java | 44 + .../AsyncGetPolicyBasedRoute.java | 53 + .../SyncGetPolicyBasedRoute.java | 49 + ...tPolicyBasedRoutePolicybasedroutename.java | 44 + .../SyncGetPolicyBasedRouteString.java | 44 + .../AsyncListPolicyBasedRoutes.java | 57 + .../AsyncListPolicyBasedRoutesPaged.java | 65 + .../SyncListPolicyBasedRoutes.java | 54 + ...SyncListPolicyBasedRoutesLocationname.java | 46 + .../SyncListPolicyBasedRoutesString.java | 46 + .../SyncGetPolicyBasedRoute.java | 50 + .../gethub/SyncGetHub.java | 0 .../SyncGetPolicyBasedRoute.java | 50 + .../v1alpha1/HubServiceClient.java | 0 .../v1alpha1/HubServiceSettings.java | 1 + .../v1alpha1/gapic_metadata.json | 0 .../v1alpha1/package-info.java | 0 .../stub/GrpcHubServiceCallableFactory.java | 0 .../v1alpha1/stub/GrpcHubServiceStub.java | 1 + .../v1alpha1/stub/HubServiceStub.java | 0 .../v1alpha1/stub/HubServiceStubSettings.java | 0 .../v1alpha1/HubServiceClientTest.java | 0 .../v1alpha1/MockHubService.java | 0 .../v1alpha1/MockHubServiceImpl.java | 0 .../v1alpha1/HubServiceGrpc.java | 1092 +++ .../v1alpha1/CommonProto.java | 73 + .../v1alpha1/CreateHubRequest.java | 662 +- .../v1alpha1/CreateHubRequestOrBuilder.java | 73 +- .../v1alpha1/CreateSpokeRequest.java | 665 +- .../v1alpha1/CreateSpokeRequestOrBuilder.java | 73 +- .../v1alpha1/DeleteHubRequest.java | 448 +- .../v1alpha1/DeleteHubRequestOrBuilder.java | 44 +- .../v1alpha1/DeleteSpokeRequest.java | 451 +- .../v1alpha1/DeleteSpokeRequestOrBuilder.java | 44 +- .../v1alpha1/GetHubRequest.java | 356 +- .../v1alpha1/GetHubRequestOrBuilder.java | 29 + .../v1alpha1/GetSpokeRequest.java | 366 +- .../v1alpha1/GetSpokeRequestOrBuilder.java | 29 + .../networkconnectivity/v1alpha1/Hub.java | 1148 +-- .../networkconnectivity/v1alpha1/HubName.java | 0 .../v1alpha1/HubOrBuilder.java | 139 +- .../v1alpha1/HubProto.java | 408 + .../v1alpha1/ListHubsRequest.java | 617 +- .../v1alpha1/ListHubsRequestOrBuilder.java | 65 +- .../v1alpha1/ListHubsResponse.java | 609 +- .../v1alpha1/ListHubsResponseOrBuilder.java | 63 +- .../v1alpha1/ListSpokesRequest.java | 630 +- .../v1alpha1/ListSpokesRequestOrBuilder.java | 65 +- .../v1alpha1/ListSpokesResponse.java | 609 +- .../v1alpha1/ListSpokesResponseOrBuilder.java | 63 +- .../v1alpha1/LocationName.java | 0 .../v1alpha1/OperationMetadata.java | 858 +- .../v1alpha1/OperationMetadataOrBuilder.java | 91 +- .../v1alpha1/RouterApplianceInstance.java | 539 +- .../RouterApplianceInstanceOrBuilder.java | 53 +- .../networkconnectivity/v1alpha1/Spoke.java | 1653 ++-- .../v1alpha1/SpokeName.java | 0 .../v1alpha1/SpokeOrBuilder.java | 220 +- .../networkconnectivity/v1alpha1/State.java | 93 +- .../v1alpha1/UpdateHubRequest.java | 615 +- .../v1alpha1/UpdateHubRequestOrBuilder.java | 64 +- .../v1alpha1/UpdateSpokeRequest.java | 618 +- .../v1alpha1/UpdateSpokeRequestOrBuilder.java | 64 +- .../networkconnectivity/v1alpha1/common.proto | 0 .../networkconnectivity/v1alpha1/hub.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../hubservice/createhub/AsyncCreateHub.java | 0 .../createhub/AsyncCreateHubLRO.java | 0 .../hubservice/createhub/SyncCreateHub.java | 0 .../SyncCreateHubLocationnameHubString.java | 0 .../SyncCreateHubStringHubString.java | 0 .../createspoke/AsyncCreateSpoke.java | 0 .../createspoke/AsyncCreateSpokeLRO.java | 0 .../createspoke/SyncCreateSpoke.java | 0 ...yncCreateSpokeLocationnameSpokeString.java | 0 .../SyncCreateSpokeStringSpokeString.java | 0 .../hubservice/deletehub/AsyncDeleteHub.java | 0 .../deletehub/AsyncDeleteHubLRO.java | 0 .../hubservice/deletehub/SyncDeleteHub.java | 0 .../deletehub/SyncDeleteHubHubname.java | 0 .../deletehub/SyncDeleteHubString.java | 0 .../deletespoke/AsyncDeleteSpoke.java | 0 .../deletespoke/AsyncDeleteSpokeLRO.java | 0 .../deletespoke/SyncDeleteSpoke.java | 0 .../deletespoke/SyncDeleteSpokeSpokename.java | 0 .../deletespoke/SyncDeleteSpokeString.java | 0 .../hubservice/gethub/AsyncGetHub.java | 0 .../hubservice/gethub/SyncGetHub.java | 0 .../hubservice/gethub/SyncGetHubHubname.java | 0 .../hubservice/gethub/SyncGetHubString.java | 0 .../hubservice/getspoke/AsyncGetSpoke.java | 0 .../hubservice/getspoke/SyncGetSpoke.java | 0 .../getspoke/SyncGetSpokeSpokename.java | 0 .../getspoke/SyncGetSpokeString.java | 0 .../hubservice/listhubs/AsyncListHubs.java | 0 .../listhubs/AsyncListHubsPaged.java | 0 .../hubservice/listhubs/SyncListHubs.java | 0 .../listhubs/SyncListHubsLocationname.java | 0 .../listhubs/SyncListHubsString.java | 0 .../listspokes/AsyncListSpokes.java | 0 .../listspokes/AsyncListSpokesPaged.java | 0 .../hubservice/listspokes/SyncListSpokes.java | 0 .../SyncListSpokesLocationname.java | 0 .../listspokes/SyncListSpokesString.java | 0 .../hubservice/updatehub/AsyncUpdateHub.java | 0 .../updatehub/AsyncUpdateHubLRO.java | 0 .../hubservice/updatehub/SyncUpdateHub.java | 0 .../updatehub/SyncUpdateHubHubFieldmask.java | 0 .../updatespoke/AsyncUpdateSpoke.java | 0 .../updatespoke/AsyncUpdateSpokeLRO.java | 0 .../updatespoke/SyncUpdateSpoke.java | 0 .../SyncUpdateSpokeSpokeFieldmask.java | 0 .../hubservicesettings/gethub/SyncGetHub.java | 0 .../gethub/SyncGetHub.java | 0 273 files changed, 33393 insertions(+), 21597 deletions(-) delete mode 100644 java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java delete mode 100644 java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java (95%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java (99%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json (64%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java (62%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java (99%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceCallableFactory.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceStub.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java (100%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java (100%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingService.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingServiceImpl.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClientTest.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java (64%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java (58%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequest.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequestOrBuilder.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java (63%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java (58%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java (64%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java (55%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequest.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequestOrBuilder.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java (64%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java (56%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java (60%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequest.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java (60%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java (68%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java (74%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachments.java (57%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java (68%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java (58%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java (66%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java (60%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java (68%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java (58%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java (71%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java (71%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequest.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequestOrBuilder.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponse.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponseOrBuilder.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java (58%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java (72%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java (73%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java (62%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java (75%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoute.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteOrBuilder.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingProto.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java (65%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java (57%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java (63%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java (54%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java (61%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java (66%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java (59%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java (53%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java (64%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java (63%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto (86%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto (74%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/policy_based_routing.proto rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java (100%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRoute.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRouteLRO.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRoute.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteStringPolicybasedrouteString.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRoute.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRouteLRO.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoute.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoutePolicybasedroutename.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRouteString.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/AsyncGetPolicyBasedRoute.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoute.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoutePolicybasedroutename.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRouteString.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutes.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutesPaged.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutes.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesLocationname.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesString.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservicesettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java (100%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/policybasedroutingservicestubsettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java (99%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java (99%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java (100%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java (68%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java (68%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java (69%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java (69%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java (63%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java (61%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java (66%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java (67%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequest.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java (59%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java (71%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java (73%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java (66%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java (59%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java (71%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java (73%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java (75%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java (63%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java (55%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java (66%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java (65%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java (66%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java (76%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java (76%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java (100%) diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java deleted file mode 100644 index bc51c44ed715..000000000000 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java +++ /dev/null @@ -1,1388 +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.networkconnectivity.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Network Connectivity Center is a hub-and-spoke abstraction for network
- * connectivity management in Google Cloud. It reduces operational complexity
- * through a simple, centralized connectivity management model.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1/hub.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class HubServiceGrpc { - - private HubServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1.HubService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1.ListHubsResponse> - getListHubsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListHubs", - requestType = com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1.ListHubsResponse> - getListHubsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1.ListHubsResponse> - getListHubsMethod; - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - HubServiceGrpc.getListHubsMethod = - getListHubsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListHubsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListHubsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) - .build(); - } - } - } - return getListHubsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetHubRequest, - com.google.cloud.networkconnectivity.v1.Hub> - getGetHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetHub", - requestType = com.google.cloud.networkconnectivity.v1.GetHubRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.Hub.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetHubRequest, - com.google.cloud.networkconnectivity.v1.Hub> - getGetHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetHubRequest, - com.google.cloud.networkconnectivity.v1.Hub> - getGetHubMethod; - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - HubServiceGrpc.getGetHubMethod = - getGetHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.GetHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) - .build(); - } - } - } - return getGetHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreateHubRequest, - com.google.longrunning.Operation> - getCreateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateHub", - requestType = com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreateHubRequest, - com.google.longrunning.Operation> - getCreateHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreateHubRequest, - com.google.longrunning.Operation> - getCreateHubMethod; - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - HubServiceGrpc.getCreateHubMethod = - getCreateHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.CreateHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) - .build(); - } - } - } - return getCreateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.UpdateHubRequest, - com.google.longrunning.Operation> - getUpdateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateHub", - requestType = com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.UpdateHubRequest, - com.google.longrunning.Operation> - getUpdateHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.UpdateHubRequest, - com.google.longrunning.Operation> - getUpdateHubMethod; - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - HubServiceGrpc.getUpdateHubMethod = - getUpdateHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) - .build(); - } - } - } - return getUpdateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeleteHubRequest, - com.google.longrunning.Operation> - getDeleteHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteHub", - requestType = com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeleteHubRequest, - com.google.longrunning.Operation> - getDeleteHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeleteHubRequest, - com.google.longrunning.Operation> - getDeleteHubMethod; - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - HubServiceGrpc.getDeleteHubMethod = - getDeleteHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) - .build(); - } - } - } - return getDeleteHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1.ListSpokesResponse> - getListSpokesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSpokes", - requestType = com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1.ListSpokesResponse> - getListSpokesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1.ListSpokesResponse> - getListSpokesMethod; - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - HubServiceGrpc.getListSpokesMethod = - getListSpokesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListSpokesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) - .build(); - } - } - } - return getListSpokesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1.Spoke> - getGetSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSpoke", - requestType = com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.Spoke.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1.Spoke> - getGetSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1.Spoke> - getGetSpokeMethod; - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - HubServiceGrpc.getGetSpokeMethod = - getGetSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) - .build(); - } - } - } - return getGetSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, - com.google.longrunning.Operation> - getCreateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", - requestType = com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, - com.google.longrunning.Operation> - getCreateSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, - com.google.longrunning.Operation> - getCreateSpokeMethod; - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - HubServiceGrpc.getCreateSpokeMethod = - getCreateSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) - .build(); - } - } - } - return getCreateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, - com.google.longrunning.Operation> - getUpdateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", - requestType = com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, - com.google.longrunning.Operation> - getUpdateSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, - com.google.longrunning.Operation> - getUpdateSpokeMethod; - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - HubServiceGrpc.getUpdateSpokeMethod = - getUpdateSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) - .build(); - } - } - } - return getUpdateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, - com.google.longrunning.Operation> - getDeleteSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", - requestType = com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, - com.google.longrunning.Operation> - getDeleteSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, - com.google.longrunning.Operation> - getDeleteSpokeMethod; - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - HubServiceGrpc.getDeleteSpokeMethod = - getDeleteSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) - .build(); - } - } - } - return getDeleteSpokeMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static HubServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - }; - return HubServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static HubServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - }; - return HubServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static HubServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - }; - return HubServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public abstract static class HubServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists hubs in a given project.
-     * 
- */ - public void listHubs( - com.google.cloud.networkconnectivity.v1.ListHubsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details about the specified hub.
-     * 
- */ - public void getHub( - com.google.cloud.networkconnectivity.v1.GetHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new hub in the specified project.
-     * 
- */ - public void createHub( - com.google.cloud.networkconnectivity.v1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the description and/or labels of the specified hub.
-     * 
- */ - public void updateHub( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified hub.
-     * 
- */ - public void deleteHub( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the spokes in the specified project and location.
-     * 
- */ - public void listSpokes( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details about the specified spoke.
-     * 
- */ - public void getSpoke( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a spoke in the specified project and location.
-     * 
- */ - public void createSpoke( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSpokeMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of the specified spoke.
-     * 
- */ - public void updateSpoke( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSpokeMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified spoke.
-     * 
- */ - public void deleteSpoke( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSpokeMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListHubsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1.ListHubsResponse>( - this, METHODID_LIST_HUBS))) - .addMethod( - getGetHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.GetHubRequest, - com.google.cloud.networkconnectivity.v1.Hub>(this, METHODID_GET_HUB))) - .addMethod( - getCreateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.CreateHubRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_HUB))) - .addMethod( - getUpdateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.UpdateHubRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_HUB))) - .addMethod( - getDeleteHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.DeleteHubRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_HUB))) - .addMethod( - getListSpokesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1.ListSpokesResponse>( - this, METHODID_LIST_SPOKES))) - .addMethod( - getGetSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1.Spoke>(this, METHODID_GET_SPOKE))) - .addMethod( - getCreateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_SPOKE))) - .addMethod( - getUpdateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_SPOKE))) - .addMethod( - getDeleteSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_SPOKE))) - .build(); - } - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { - private HubServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists hubs in a given project.
-     * 
- */ - public void listHubs( - com.google.cloud.networkconnectivity.v1.ListHubsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets details about the specified hub.
-     * 
- */ - public void getHub( - com.google.cloud.networkconnectivity.v1.GetHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a new hub in the specified project.
-     * 
- */ - public void createHub( - com.google.cloud.networkconnectivity.v1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates the description and/or labels of the specified hub.
-     * 
- */ - public void updateHub( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Deletes the specified hub.
-     * 
- */ - public void deleteHub( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists the spokes in the specified project and location.
-     * 
- */ - public void listSpokes( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets details about the specified spoke.
-     * 
- */ - public void getSpoke( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a spoke in the specified project and location.
-     * 
- */ - public void createSpoke( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of the specified spoke.
-     * 
- */ - public void updateSpoke( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified spoke.
-     * 
- */ - public void deleteSpoke( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static final class HubServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private HubServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists hubs in a given project.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.ListHubsResponse listHubs( - com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListHubsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details about the specified hub.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.Hub getHub( - com.google.cloud.networkconnectivity.v1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new hub in the specified project.
-     * 
- */ - public com.google.longrunning.Operation createHub( - com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the description and/or labels of the specified hub.
-     * 
- */ - public com.google.longrunning.Operation updateHub( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified hub.
-     * 
- */ - public com.google.longrunning.Operation deleteHub( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the spokes in the specified project and location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.ListSpokesResponse listSpokes( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSpokesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details about the specified spoke.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.Spoke getSpoke( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSpokeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a spoke in the specified project and location.
-     * 
- */ - public com.google.longrunning.Operation createSpoke( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSpokeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of the specified spoke.
-     * 
- */ - public com.google.longrunning.Operation updateSpoke( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified spoke.
-     * 
- */ - public com.google.longrunning.Operation deleteSpoke( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static final class HubServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private HubServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists hubs in a given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1.ListHubsResponse> - listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details about the specified hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1.Hub> - getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new hub in the specified project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the description and/or labels of the specified hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the spokes in the specified project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1.ListSpokesResponse> - listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details about the specified spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1.Spoke> - getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a spoke in the specified project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of the specified spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_HUBS = 0; - private static final int METHODID_GET_HUB = 1; - private static final int METHODID_CREATE_HUB = 2; - private static final int METHODID_UPDATE_HUB = 3; - private static final int METHODID_DELETE_HUB = 4; - private static final int METHODID_LIST_SPOKES = 5; - private static final int METHODID_GET_SPOKE = 6; - private static final int METHODID_CREATE_SPOKE = 7; - private static final int METHODID_UPDATE_SPOKE = 8; - private static final int METHODID_DELETE_SPOKE = 9; - - 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 HubServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(HubServiceImplBase 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_HUBS: - serviceImpl.listHubs( - (com.google.cloud.networkconnectivity.v1.ListHubsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1.ListHubsResponse>) - responseObserver); - break; - case METHODID_GET_HUB: - serviceImpl.getHub( - (com.google.cloud.networkconnectivity.v1.GetHubRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_HUB: - serviceImpl.createHub( - (com.google.cloud.networkconnectivity.v1.CreateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_HUB: - serviceImpl.updateHub( - (com.google.cloud.networkconnectivity.v1.UpdateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_HUB: - serviceImpl.deleteHub( - (com.google.cloud.networkconnectivity.v1.DeleteHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SPOKES: - serviceImpl.listSpokes( - (com.google.cloud.networkconnectivity.v1.ListSpokesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1.ListSpokesResponse>) - responseObserver); - break; - case METHODID_GET_SPOKE: - serviceImpl.getSpoke( - (com.google.cloud.networkconnectivity.v1.GetSpokeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_SPOKE: - serviceImpl.createSpoke( - (com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SPOKE: - serviceImpl.updateSpoke( - (com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SPOKE: - serviceImpl.deleteSpoke( - (com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - HubServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("HubService"); - } - } - - private static final class HubServiceFileDescriptorSupplier - extends HubServiceBaseDescriptorSupplier { - HubServiceFileDescriptorSupplier() {} - } - - private static final class HubServiceMethodDescriptorSupplier - extends HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) - .addMethod(getListHubsMethod()) - .addMethod(getGetHubMethod()) - .addMethod(getCreateHubMethod()) - .addMethod(getUpdateHubMethod()) - .addMethod(getDeleteHubMethod()) - .addMethod(getListSpokesMethod()) - .addMethod(getGetSpokeMethod()) - .addMethod(getCreateSpokeMethod()) - .addMethod(getUpdateSpokeMethod()) - .addMethod(getDeleteSpokeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java deleted file mode 100644 index aae81be9d5c9..000000000000 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java +++ /dev/null @@ -1,1400 +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.networkconnectivity.v1alpha1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Network Connectivity Center is a hub-and-spoke abstraction for
- * network connectivity management in Google Cloud. It reduces
- * operational complexity through a simple, centralized connectivity management
- * model.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1alpha1/hub.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class HubServiceGrpc { - - private HubServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1alpha1.HubService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> - getListHubsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListHubs", - requestType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> - getListHubsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> - getListHubsMethod; - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - HubServiceGrpc.getListHubsMethod = - getListHubsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) - .build(); - } - } - } - return getListHubsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, - com.google.cloud.networkconnectivity.v1alpha1.Hub> - getGetHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.Hub.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, - com.google.cloud.networkconnectivity.v1alpha1.Hub> - getGetHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, - com.google.cloud.networkconnectivity.v1alpha1.Hub> - getGetHubMethod; - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - HubServiceGrpc.getGetHubMethod = - getGetHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.Hub - .getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) - .build(); - } - } - } - return getGetHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, - com.google.longrunning.Operation> - getCreateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, - com.google.longrunning.Operation> - getCreateHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, - com.google.longrunning.Operation> - getCreateHubMethod; - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - HubServiceGrpc.getCreateHubMethod = - getCreateHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) - .build(); - } - } - } - return getCreateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, - com.google.longrunning.Operation> - getUpdateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, - com.google.longrunning.Operation> - getUpdateHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, - com.google.longrunning.Operation> - getUpdateHubMethod; - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - HubServiceGrpc.getUpdateHubMethod = - getUpdateHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) - .build(); - } - } - } - return getUpdateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, - com.google.longrunning.Operation> - getDeleteHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, - com.google.longrunning.Operation> - getDeleteHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, - com.google.longrunning.Operation> - getDeleteHubMethod; - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - HubServiceGrpc.getDeleteHubMethod = - getDeleteHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) - .build(); - } - } - } - return getDeleteHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> - getListSpokesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSpokes", - requestType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> - getListSpokesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> - getListSpokesMethod; - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - HubServiceGrpc.getListSpokesMethod = - getListSpokesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) - .build(); - } - } - } - return getListSpokesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1alpha1.Spoke> - getGetSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1alpha1.Spoke> - getGetSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1alpha1.Spoke> - getGetSpokeMethod; - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - HubServiceGrpc.getGetSpokeMethod = - getGetSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.Spoke - .getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) - .build(); - } - } - } - return getGetSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, - com.google.longrunning.Operation> - getCreateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, - com.google.longrunning.Operation> - getCreateSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, - com.google.longrunning.Operation> - getCreateSpokeMethod; - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - HubServiceGrpc.getCreateSpokeMethod = - getCreateSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) - .build(); - } - } - } - return getCreateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, - com.google.longrunning.Operation> - getUpdateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, - com.google.longrunning.Operation> - getUpdateSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, - com.google.longrunning.Operation> - getUpdateSpokeMethod; - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - HubServiceGrpc.getUpdateSpokeMethod = - getUpdateSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) - .build(); - } - } - } - return getUpdateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, - com.google.longrunning.Operation> - getDeleteSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, - com.google.longrunning.Operation> - getDeleteSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, - com.google.longrunning.Operation> - getDeleteSpokeMethod; - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - HubServiceGrpc.getDeleteSpokeMethod = - getDeleteSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) - .build(); - } - } - } - return getDeleteSpokeMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static HubServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - }; - return HubServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static HubServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - }; - return HubServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static HubServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - }; - return HubServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public abstract static class HubServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public void listHubs( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Hub.
-     * 
- */ - public void getHub( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public void createHub( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public void updateHub( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single Hub.
-     * 
- */ - public void deleteHub( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public void listSpokes( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Spoke.
-     * 
- */ - public void getSpoke( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public void createSpoke( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSpokeMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public void updateSpoke( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSpokeMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single Spoke.
-     * 
- */ - public void deleteSpoke( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSpokeMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListHubsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>( - this, METHODID_LIST_HUBS))) - .addMethod( - getGetHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, - com.google.cloud.networkconnectivity.v1alpha1.Hub>(this, METHODID_GET_HUB))) - .addMethod( - getCreateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_HUB))) - .addMethod( - getUpdateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_HUB))) - .addMethod( - getDeleteHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_HUB))) - .addMethod( - getListSpokesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>( - this, METHODID_LIST_SPOKES))) - .addMethod( - getGetSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1alpha1.Spoke>( - this, METHODID_GET_SPOKE))) - .addMethod( - getCreateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_SPOKE))) - .addMethod( - getUpdateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_SPOKE))) - .addMethod( - getDeleteSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_SPOKE))) - .build(); - } - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { - private HubServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public void listHubs( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Hub.
-     * 
- */ - public void getHub( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public void createHub( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public void updateHub( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Deletes a single Hub.
-     * 
- */ - public void deleteHub( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public void listSpokes( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Spoke.
-     * 
- */ - public void getSpoke( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public void createSpoke( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public void updateSpoke( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single Spoke.
-     * 
- */ - public void deleteSpoke( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static final class HubServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private HubServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse listHubs( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListHubsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single Hub.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createHub( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public com.google.longrunning.Operation updateHub( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single Hub.
-     * 
- */ - public com.google.longrunning.Operation deleteHub( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse listSpokes( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSpokesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single Spoke.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSpokeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createSpoke( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSpokeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public com.google.longrunning.Operation updateSpoke( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single Spoke.
-     * 
- */ - public com.google.longrunning.Operation deleteSpoke( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static final class HubServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private HubServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> - listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single Hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1alpha1.Hub> - getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single Hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> - listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single Spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1alpha1.Spoke> - getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single Spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_HUBS = 0; - private static final int METHODID_GET_HUB = 1; - private static final int METHODID_CREATE_HUB = 2; - private static final int METHODID_UPDATE_HUB = 3; - private static final int METHODID_DELETE_HUB = 4; - private static final int METHODID_LIST_SPOKES = 5; - private static final int METHODID_GET_SPOKE = 6; - private static final int METHODID_CREATE_SPOKE = 7; - private static final int METHODID_UPDATE_SPOKE = 8; - private static final int METHODID_DELETE_SPOKE = 9; - - 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 HubServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(HubServiceImplBase 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_HUBS: - serviceImpl.listHubs( - (com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>) - responseObserver); - break; - case METHODID_GET_HUB: - serviceImpl.getHub( - (com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_HUB: - serviceImpl.createHub( - (com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_HUB: - serviceImpl.updateHub( - (com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_HUB: - serviceImpl.deleteHub( - (com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SPOKES: - serviceImpl.listSpokes( - (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>) - responseObserver); - break; - case METHODID_GET_SPOKE: - serviceImpl.getSpoke( - (com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_SPOKE: - serviceImpl.createSpoke( - (com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SPOKE: - serviceImpl.updateSpoke( - (com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SPOKE: - serviceImpl.deleteSpoke( - (com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - HubServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("HubService"); - } - } - - private static final class HubServiceFileDescriptorSupplier - extends HubServiceBaseDescriptorSupplier { - HubServiceFileDescriptorSupplier() {} - } - - private static final class HubServiceMethodDescriptorSupplier - extends HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) - .addMethod(getListHubsMethod()) - .addMethod(getGetHubMethod()) - .addMethod(getCreateHubMethod()) - .addMethod(getUpdateHubMethod()) - .addMethod(getDeleteHubMethod()) - .addMethod(getListSpokesMethod()) - .addMethod(getGetSpokeMethod()) - .addMethod(getCreateSpokeMethod()) - .addMethod(getUpdateSpokeMethod()) - .addMethod(getDeleteSpokeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java deleted file mode 100644 index 30dbe31a4391..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.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/networkconnectivity/v1/common.proto - -package com.google.cloud.networkconnectivity.v1; - -public final class CommonProto { - private CommonProto() {} - - 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_networkconnectivity_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/networkconnectivity/v1/co" - + "mmon.proto\022#google.cloud.networkconnecti" - + "vity.v1\032\037google/api/field_behavior.proto" - + "\032\037google/protobuf/timestamp.proto\"\200\002\n\021Op" - + "erationMetadata\0224\n\013create_time\030\001 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\0221\n\010end_tim" - + "e\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\026request" - + "ed_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_versio" - + "n\030\007 \001(\tB\003\340A\003B\205\002\n\'com.google.cloud.networ" - + "kconnectivity.v1B\013CommonProtoP\001ZVgoogle." - + "golang.org/genproto/googleapis/cloud/net" - + "workconnectivity/v1;networkconnectivity\252" - + "\002#Google.Cloud.NetworkConnectivity.V1\312\002#" - + "Google\\Cloud\\NetworkConnectivity\\V1\352\002&Go" - + "ogle::Cloud::NetworkConnectivity::V1b\006pr" - + "oto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java deleted file mode 100644 index 8ab3d81a3f94..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.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/networkconnectivity/v1/hub.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface GetHubRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetHubRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the hub resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the hub resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java deleted file mode 100644 index dda46174d3d7..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.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/networkconnectivity/v1/hub.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface GetSpokeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetSpokeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the spoke resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the spoke 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java deleted file mode 100644 index 3a2324e14528..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java +++ /dev/null @@ -1,533 +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/networkconnectivity/v1/hub.proto - -package com.google.cloud.networkconnectivity.v1; - -public final class HubProto { - private HubProto() {} - - 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_networkconnectivity_v1_Hub_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_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/networkconnectivity/v1/hu" - + "b.proto\022#google.cloud.networkconnectivit" - + "y.v1\032\034google/api/annotations.proto\032\027goog" - + "le/api/client.proto\032\037google/api/field_be" - + "havior.proto\032\031google/api/resource.proto\032" - + "#google/longrunning/operations.proto\032 go" - + "ogle/protobuf/field_mask.proto\032\037google/p" - + "rotobuf/timestamp.proto\"\212\004\n\003Hub\022\021\n\004name\030" - + "\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" - + "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022D" - + "\n\006labels\030\004 \003(\01324.google.cloud.networkcon" - + "nectivity.v1.Hub.LabelsEntry\022\023\n\013descript" - + "ion\030\005 \001(\t\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022>\n\005sta" - + "te\030\t \001(\0162*.google.cloud.networkconnectiv" - + "ity.v1.StateB\003\340A\003\022E\n\014routing_vpcs\030\n \003(\0132" - + "/.google.cloud.networkconnectivity.v1.Ro" - + "utingVPC\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001:[\352AX\n&networkconnectivit" - + "y.googleapis.com/Hub\022.projects/{project}" - + "/locations/global/hubs/{hub}\"\177\n\nRoutingV" - + "PC\0220\n\003uri\030\001 \001(\tB#\372A \n\036compute.googleapis" - + ".com/Network\022?\n2required_for_new_site_to" - + "_site_data_transfer_spokes\030\002 \001(\010B\003\340A\003\"\276\006" - + "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create_tim" - + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\022F\n\006labels\030\004 \003(\01326.google." - + "cloud.networkconnectivity.v1.Spoke.Label" - + "sEntry\022\023\n\013description\030\005 \001(\t\022;\n\003hub\030\006 \001(\t" - + "B.\340A\005\372A(\n&networkconnectivity.googleapis" - + ".com/Hub\022Q\n\022linked_vpn_tunnels\030\021 \001(\01325.g" - + "oogle.cloud.networkconnectivity.v1.Linke" - + "dVpnTunnels\022k\n\037linked_interconnect_attac" - + "hments\030\022 \001(\0132B.google.cloud.networkconne" - + "ctivity.v1.LinkedInterconnectAttachments" - + "\022n\n!linked_router_appliance_instances\030\023 " - + "\001(\0132C.google.cloud.networkconnectivity.v" - + "1.LinkedRouterApplianceInstances\022\026\n\tuniq" - + "ue_id\030\013 \001(\tB\003\340A\003\022>\n\005state\030\017 \001(\0162*.google" - + ".cloud.networkconnectivity.v1.StateB\003\340A\003" - + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001:e\352Ab\n(networkconnectivity.google" - + "apis.com/Spoke\0226projects/{project}/locat" - + "ions/{location}/spokes/{spoke}\"\225\001\n\017ListH" - + "ubsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" - + "tions.googleapis.com/Location\022\021\n\tpage_si" - + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004" - + " \001(\t\022\020\n\010order_by\030\005 \001(\t\"x\n\020ListHubsRespon" - + "se\0226\n\004hubs\030\001 \003(\0132(.google.cloud.networkc" - + "onnectivity.v1.Hub\022\027\n\017next_page_token\030\002 " - + "\001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\rGetHubReques" - + "t\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&networkconnecti" - + "vity.googleapis.com/Hub\"\267\001\n\020CreateHubReq" - + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." - + "googleapis.com/Location\022\023\n\006hub_id\030\002 \001(\tB" - + "\003\340A\002\022:\n\003hub\030\003 \001(\0132(.google.cloud.network" - + "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\004" - + " \001(\tB\003\340A\001\"\235\001\n\020UpdateHubRequest\0224\n\013update" - + "_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB" - + "\003\340A\001\022:\n\003hub\030\002 \001(\0132(.google.cloud.network" - + "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\003" - + " \001(\tB\003\340A\001\"i\n\020DeleteHubRequest\022<\n\004name\030\001 " - + "\001(\tB.\340A\002\372A(\n&networkconnectivity.googlea" - + "pis.com/Hub\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\227\001\n" - + "\021ListSpokesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" - + "A#\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\006" - + "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\022ListSp" - + "okesResponse\022:\n\006spokes\030\001 \003(\0132*.google.cl" - + "oud.networkconnectivity.v1.Spoke\022\027\n\017next" - + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q" - + "\n\017GetSpokeRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n" - + "(networkconnectivity.googleapis.com/Spok" - + "e\"\277\001\n\022CreateSpokeRequest\0229\n\006parent\030\001 \001(\t" - + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" - + "ion\022\025\n\010spoke_id\030\002 \001(\tB\003\340A\002\022>\n\005spoke\030\003 \001(" - + "\0132*.google.cloud.networkconnectivity.v1." - + "SpokeB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\022" - + "UpdateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132" - + "\032.google.protobuf.FieldMaskB\003\340A\001\022>\n\005spok" - + "e\030\002 \001(\0132*.google.cloud.networkconnectivi" - + "ty.v1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A" - + "\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\tB0\340" - + "A\002\372A*\n(networkconnectivity.googleapis.co" - + "m/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"k\n\020Link" - + "edVpnTunnels\0223\n\004uris\030\001 \003(\tB%\372A\"\n compute" - + ".googleapis.com/VpnTunnel\022\"\n\032site_to_sit" - + "e_data_transfer\030\002 \001(\010\"\205\001\n\035LinkedIntercon" - + "nectAttachments\022@\n\004uris\030\001 \003(\tB2\372A/\n-comp" - + "ute.googleapis.com/InterconnectAttachmen" - + "t\022\"\n\032site_to_site_data_transfer\030\002 \001(\010\"\225\001" - + "\n\036LinkedRouterApplianceInstances\022O\n\tinst" - + "ances\030\001 \003(\0132<.google.cloud.networkconnec" - + "tivity.v1.RouterApplianceInstance\022\"\n\032sit" - + "e_to_site_data_transfer\030\002 \001(\010\"l\n\027RouterA" - + "pplianceInstance\022=\n\017virtual_machine\030\001 \001(" - + "\tB$\372A!\n\037compute.googleapis.com/Instance\022" - + "\022\n\nip_address\030\003 \001(\t\"c\n\020LocationMetadata\022" - + "O\n\021location_features\030\001 \003(\01624.google.clou" - + "d.networkconnectivity.v1.LocationFeature" - + "*F\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREA" - + "TING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003*f\n\017Loca" - + "tionFeature\022 \n\034LOCATION_FEATURE_UNSPECIF" - + "IED\020\000\022\030\n\024SITE_TO_CLOUD_SPOKES\020\001\022\027\n\023SITE_" - + "TO_SITE_SPOKES\020\0022\235\020\n\nHubService\022\267\001\n\010List" - + "Hubs\0224.google.cloud.networkconnectivity." - + "v1.ListHubsRequest\0325.google.cloud.networ" - + "kconnectivity.v1.ListHubsResponse\">\202\323\344\223\002" - + "/\022-/v1/{parent=projects/*/locations/glob" - + "al}/hubs\332A\006parent\022\244\001\n\006GetHub\0222.google.cl" - + "oud.networkconnectivity.v1.GetHubRequest" - + "\032(.google.cloud.networkconnectivity.v1.H" - + "ub\"<\202\323\344\223\002/\022-/v1/{name=projects/*/locatio" - + "ns/global/hubs/*}\332A\004name\022\314\001\n\tCreateHub\0225" - + ".google.cloud.networkconnectivity.v1.Cre" - + "ateHubRequest\032\035.google.longrunning.Opera" - + "tion\"i\202\323\344\223\0024\"-/v1/{parent=projects/*/loc" - + "ations/global}/hubs:\003hub\332A\021parent,hub,hu" - + "b_id\312A\030\n\003Hub\022\021OperationMetadata\022\316\001\n\tUpda" - + "teHub\0225.google.cloud.networkconnectivity" - + ".v1.UpdateHubRequest\032\035.google.longrunnin" - + "g.Operation\"k\202\323\344\223\002821/v1/{hub.name=proje" - + "cts/*/locations/global/hubs/*}:\003hub\332A\017hu" - + "b,update_mask\312A\030\n\003Hub\022\021OperationMetadata" - + "\022\314\001\n\tDeleteHub\0225.google.cloud.networkcon" - + "nectivity.v1.DeleteHubRequest\032\035.google.l" - + "ongrunning.Operation\"i\202\323\344\223\002/*-/v1/{name=" - + "projects/*/locations/global/hubs/*}\332A\004na" - + "me\312A*\n\025google.protobuf.Empty\022\021OperationM" - + "etadata\022\272\001\n\nListSpokes\0226.google.cloud.ne" - + "tworkconnectivity.v1.ListSpokesRequest\0327" - + ".google.cloud.networkconnectivity.v1.Lis" - + "tSpokesResponse\";\202\323\344\223\002,\022*/v1/{parent=pro" - + "jects/*/locations/*}/spokes\332A\006parent\022\247\001\n" - + "\010GetSpoke\0224.google.cloud.networkconnecti" - + "vity.v1.GetSpokeRequest\032*.google.cloud.n" - + "etworkconnectivity.v1.Spoke\"9\202\323\344\223\002,\022*/v1" - + "/{name=projects/*/locations/*/spokes/*}\332" - + "A\004name\022\325\001\n\013CreateSpoke\0227.google.cloud.ne" - + "tworkconnectivity.v1.CreateSpokeRequest\032" - + "\035.google.longrunning.Operation\"n\202\323\344\223\0023\"*" - + "/v1/{parent=projects/*/locations/*}/spok" - + "es:\005spoke\332A\025parent,spoke,spoke_id\312A\032\n\005Sp" - + "oke\022\021OperationMetadata\022\327\001\n\013UpdateSpoke\0227" - + ".google.cloud.networkconnectivity.v1.Upd" - + "ateSpokeRequest\032\035.google.longrunning.Ope" - + "ration\"p\202\323\344\223\002920/v1/{spoke.name=projects" - + "/*/locations/*/spokes/*}:\005spoke\332A\021spoke," - + "update_mask\312A\032\n\005Spoke\022\021OperationMetadata" - + "\022\315\001\n\013DeleteSpoke\0227.google.cloud.networkc" - + "onnectivity.v1.DeleteSpokeRequest\032\035.goog" - + "le.longrunning.Operation\"f\202\323\344\223\002,**/v1/{n" - + "ame=projects/*/locations/*/spokes/*}\332A\004n" - + "ame\312A*\n\025google.protobuf.Empty\022\021Operation" - + "Metadata\032V\312A\"networkconnectivity.googlea" - + "pis.com\322A.https://www.googleapis.com/aut" - + "h/cloud-platformB\221\005\n\'com.google.cloud.ne" - + "tworkconnectivity.v1B\010HubProtoP\001ZVgoogle" - + ".golang.org/genproto/googleapis/cloud/ne" - + "tworkconnectivity/v1;networkconnectivity" - + "\252\002#Google.Cloud.NetworkConnectivity.V1\312\002" - + "#Google\\Cloud\\NetworkConnectivity\\V1\352\002&G" - + "oogle::Cloud::NetworkConnectivity::V1\352A`" - + "\n compute.googleapis.com/VpnTunnel\022 - * Required. Name of the Hub resource to get. - *
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the Hub resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java deleted file mode 100644 index f96c9a120c67..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public interface GetSpokeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of Spoke resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of Spoke 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java deleted file mode 100644 index 4f2423ff81f4..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java +++ /dev/null @@ -1,460 +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/networkconnectivity/v1alpha1/hub.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public final class HubProto { - private HubProto() {} - - 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_networkconnectivity_v1alpha1_Hub_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/networkconnectivity/v1alp" - + "ha1/hub.proto\022)google.cloud.networkconne" - + "ctivity.v1alpha1\032\034google/api/annotations" - + ".proto\032\027google/api/client.proto\032\037google/" - + "api/field_behavior.proto\032\031google/api/res" - + "ource.proto\032#google/longrunning/operatio" - + "ns.proto\032 google/protobuf/field_mask.pro" - + "to\032\037google/protobuf/timestamp.proto\"\207\004\n\003" - + "Hub\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_time\030\002 " - + "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat" - + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" - + "\022J\n\006labels\030\004 \003(\0132:.google.cloud.networkc" - + "onnectivity.v1alpha1.Hub.LabelsEntry\022\023\n\013" - + "description\030\005 \001(\t\022@\n\006spokes\030\006 \003(\tB0\340A\003\372A" - + "*\n(networkconnectivity.googleapis.com/Sp" - + "oke\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022D\n\005state\030\t \001" - + "(\01620.google.cloud.networkconnectivity.v1" - + "alpha1.StateB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:[\352AX\n&networkco" - + "nnectivity.googleapis.com/Hub\022.projects/" - + "{project}/locations/global/hubs/{hub}\"\234\006" - + "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_tim" - + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022/\n\013u" - + "pdate_time\030\003 \001(\0132\032.google.protobuf.Times" - + "tamp\022L\n\006labels\030\004 \003(\0132<.google.cloud.netw" - + "orkconnectivity.v1alpha1.Spoke.LabelsEnt" - + "ry\022\023\n\013description\030\005 \001(\t\0228\n\003hub\030\006 \001(\tB+\372A" - + "(\n&networkconnectivity.googleapis.com/Hu" - + "b\022A\n\022linked_vpn_tunnels\030\014 \003(\tB%\372A\"\n comp" - + "ute.googleapis.com/VpnTunnel\022[\n\037linked_i" - + "nterconnect_attachments\030\r \003(\tB2\372A/\n-comp" - + "ute.googleapis.com/InterconnectAttachmen" - + "t\022m\n!linked_router_appliance_instances\030\016" - + " \003(\0132B.google.cloud.networkconnectivity." - + "v1alpha1.RouterApplianceInstance\022\026\n\tuniq" - + "ue_id\030\013 \001(\tB\003\340A\003\022D\n\005state\030\017 \001(\01620.google" - + ".cloud.networkconnectivity.v1alpha1.Stat" - + "eB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001:e\352Ab\n(networkconnectivity." - + "googleapis.com/Spoke\0226projects/{project}" - + "/locations/{location}/spokes/{spoke}\"\225\001\n" - + "\017ListHubsRequest\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\022\016\n\006fi" - + "lter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\020ListHubs" - + "Response\022<\n\004hubs\030\001 \003(\0132..google.cloud.ne" - + "tworkconnectivity.v1alpha1.Hub\022\027\n\017next_p" - + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\r" - + "GetHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" - + "workconnectivity.googleapis.com/Hub\"\275\001\n\020" - + "CreateHubRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" - + "\n!locations.googleapis.com/Location\022\023\n\006h" - + "ub_id\030\002 \001(\tB\003\340A\001\022@\n\003hub\030\003 \001(\0132..google.c" - + "loud.networkconnectivity.v1alpha1.HubB\003\340" - + "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\020UpdateHu" - + "bRequest\0224\n\013update_mask\030\001 \001(\0132\032.google.p" - + "rotobuf.FieldMaskB\003\340A\001\022@\n\003hub\030\002 \001(\0132..go" - + "ogle.cloud.networkconnectivity.v1alpha1." - + "HubB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"i\n\020Del" - + "eteHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" - + "workconnectivity.googleapis.com/Hub\022\027\n\nr" - + "equest_id\030\002 \001(\tB\003\340A\001\"\227\001\n\021ListSpokesReque" - + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" - + "ogleapis.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\022\020\n\010" - + "order_by\030\005 \001(\t\"\204\001\n\022ListSpokesResponse\022@\n" - + "\006spokes\030\001 \003(\01320.google.cloud.networkconn" - + "ectivity.v1alpha1.Spoke\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\017GetSpok" - + "eRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(networkc" - + "onnectivity.googleapis.com/Spoke\"\305\001\n\022Cre" - + "ateSpokeRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n" - + "!locations.googleapis.com/Location\022\025\n\010sp" - + "oke_id\030\002 \001(\tB\003\340A\001\022D\n\005spoke\030\003 \001(\01320.googl" - + "e.cloud.networkconnectivity.v1alpha1.Spo" - + "keB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\251\001\n\022Upd" - + "ateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\003\340A\001\022D\n\005spoke\030\002" - + " \001(\01320.google.cloud.networkconnectivity." - + "v1alpha1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB" - + "\003\340A\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\t" - + "B0\340A\002\372A*\n(networkconnectivity.googleapis" - + ".com/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\213\001\n\027" - + "RouterApplianceInstance\022=\n\017virtual_machi" - + "ne\030\001 \001(\tB$\372A!\n\037compute.googleapis.com/In" - + "stance\022\022\n\nip_address\030\003 \001(\t\022\035\n\021network_in" - + "terface\030\002 \001(\tB\002\030\001*F\n\005State\022\025\n\021STATE_UNSP" - + "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010D" - + "ELETING\020\0032\255\021\n\nHubService\022\311\001\n\010ListHubs\022:." - + "google.cloud.networkconnectivity.v1alpha" - + "1.ListHubsRequest\032;.google.cloud.network" - + "connectivity.v1alpha1.ListHubsResponse\"D" - + "\202\323\344\223\0025\0223/v1alpha1/{parent=projects/*/loc" - + "ations/global}/hubs\332A\006parent\022\266\001\n\006GetHub\022" - + "8.google.cloud.networkconnectivity.v1alp" - + "ha1.GetHubRequest\032..google.cloud.network" - + "connectivity.v1alpha1.Hub\"B\202\323\344\223\0025\0223/v1al" - + "pha1/{name=projects/*/locations/global/h" - + "ubs/*}\332A\004name\022\330\001\n\tCreateHub\022;.google.clo" - + "ud.networkconnectivity.v1alpha1.CreateHu" - + "bRequest\032\035.google.longrunning.Operation\"" - + "o\202\323\344\223\002:\"3/v1alpha1/{parent=projects/*/lo" - + "cations/global}/hubs:\003hub\332A\021parent,hub,h" - + "ub_id\312A\030\n\003Hub\022\021OperationMetadata\022\332\001\n\tUpd" - + "ateHub\022;.google.cloud.networkconnectivit" - + "y.v1alpha1.UpdateHubRequest\032\035.google.lon" - + "grunning.Operation\"q\202\323\344\223\002>27/v1alpha1/{h" - + "ub.name=projects/*/locations/global/hubs" - + "/*}:\003hub\332A\017hub,update_mask\312A\030\n\003Hub\022\021Oper" - + "ationMetadata\022\330\001\n\tDeleteHub\022;.google.clo" - + "ud.networkconnectivity.v1alpha1.DeleteHu" - + "bRequest\032\035.google.longrunning.Operation\"" - + "o\202\323\344\223\0025*3/v1alpha1/{name=projects/*/loca" - + "tions/global/hubs/*}\332A\004name\312A*\n\025google.p" - + "rotobuf.Empty\022\021OperationMetadata\022\314\001\n\nLis" - + "tSpokes\022<.google.cloud.networkconnectivi" - + "ty.v1alpha1.ListSpokesRequest\032=.google.c" - + "loud.networkconnectivity.v1alpha1.ListSp" - + "okesResponse\"A\202\323\344\223\0022\0220/v1alpha1/{parent=" - + "projects/*/locations/*}/spokes\332A\006parent\022" - + "\271\001\n\010GetSpoke\022:.google.cloud.networkconne" - + "ctivity.v1alpha1.GetSpokeRequest\0320.googl" - + "e.cloud.networkconnectivity.v1alpha1.Spo" - + "ke\"?\202\323\344\223\0022\0220/v1alpha1/{name=projects/*/l" - + "ocations/*/spokes/*}\332A\004name\022\341\001\n\013CreateSp" - + "oke\022=.google.cloud.networkconnectivity.v" - + "1alpha1.CreateSpokeRequest\032\035.google.long" - + "running.Operation\"t\202\323\344\223\0029\"0/v1alpha1/{pa" - + "rent=projects/*/locations/*}/spokes:\005spo" - + "ke\332A\025parent,spoke,spoke_id\312A\032\n\005Spoke\022\021Op" - + "erationMetadata\022\343\001\n\013UpdateSpoke\022=.google" - + ".cloud.networkconnectivity.v1alpha1.Upda" - + "teSpokeRequest\032\035.google.longrunning.Oper" - + "ation\"v\202\323\344\223\002?26/v1alpha1/{spoke.name=pro" - + "jects/*/locations/*/spokes/*}:\005spoke\332A\021s" - + "poke,update_mask\312A\032\n\005Spoke\022\021OperationMet" - + "adata\022\331\001\n\013DeleteSpoke\022=.google.cloud.net" - + "workconnectivity.v1alpha1.DeleteSpokeReq" - + "uest\032\035.google.longrunning.Operation\"l\202\323\344" - + "\223\0022*0/v1alpha1/{name=projects/*/location" - + "s/*/spokes/*}\332A\004name\312A*\n\025google.protobuf" - + ".Empty\022\021OperationMetadata\032V\312A\"networkcon" - + "nectivity.googleapis.com\322A.https://www.g" - + "oogleapis.com/auth/cloud-platformB\332\004\n-co" - + "m.google.cloud.networkconnectivity.v1alp" - + "ha1B\010HubProtoP\001Z\\google.golang.org/genpr" - + "oto/googleapis/cloud/networkconnectivity" - + "/v1alpha1;networkconnectivity\252\002)Google.C" - + "loud.NetworkConnectivity.V1Alpha1\312\002)Goog" - + "le\\Cloud\\NetworkConnectivity\\V1alpha1\352\002," - + "Google::Cloud::NetworkConnectivity::V1al" - + "pha1\352A`\n compute.googleapis.com/VpnTunne" - + "l\022Sample code: * @@ -205,7 +205,7 @@ public final ListHubsPagedResponse listHubs(LocationName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists hubs in a given project. + * Lists the Network Connectivity Center hubs associated with a given project. * *

Sample code: * @@ -233,7 +233,7 @@ public final ListHubsPagedResponse listHubs(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists hubs in a given project. + * Lists the Network Connectivity Center hubs associated with a given project. * *

Sample code: * @@ -267,7 +267,7 @@ public final ListHubsPagedResponse listHubs(ListHubsRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists hubs in a given project. + * Lists the Network Connectivity Center hubs associated with a given project. * *

Sample code: * @@ -300,7 +300,7 @@ public final UnaryCallable listHubsPaged // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists hubs in a given project. + * Lists the Network Connectivity Center hubs associated with a given project. * *

Sample code: * @@ -340,7 +340,7 @@ public final UnaryCallable listHubsCallable() // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details about the specified hub. + * Gets details about a Network Connectivity Center hub. * *

Sample code: * @@ -367,7 +367,7 @@ public final Hub getHub(HubName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details about the specified hub. + * Gets details about a Network Connectivity Center hub. * *

Sample code: * @@ -393,7 +393,7 @@ public final Hub getHub(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details about the specified hub. + * Gets details about a Network Connectivity Center hub. * *

Sample code: * @@ -419,7 +419,7 @@ public final Hub getHub(GetHubRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details about the specified hub. + * Gets details about a Network Connectivity Center hub. * *

Sample code: * @@ -444,7 +444,7 @@ public final UnaryCallable getHubCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new hub in the specified project. + * Creates a new Network Connectivity Center hub in the specified project. * *

Sample code: * @@ -480,7 +480,7 @@ public final OperationFuture createHubAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new hub in the specified project. + * Creates a new Network Connectivity Center hub in the specified project. * *

Sample code: * @@ -512,7 +512,7 @@ public final OperationFuture createHubAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new hub in the specified project. + * Creates a new Network Connectivity Center hub in the specified project. * *

Sample code: * @@ -543,7 +543,7 @@ public final OperationFuture createHubAsync(CreateHubReq // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new hub in the specified project. + * Creates a new Network Connectivity Center hub in the specified project. * *

Sample code: * @@ -575,7 +575,7 @@ public final OperationFuture createHubAsync(CreateHubReq // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new hub in the specified project. + * Creates a new Network Connectivity Center hub in the specified project. * *

Sample code: * @@ -605,7 +605,7 @@ public final UnaryCallable createHubCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the description and/or labels of the specified hub. + * Updates the description and/or labels of a Network Connectivity Center hub. * *

Sample code: * @@ -638,7 +638,7 @@ public final OperationFuture updateHubAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the description and/or labels of the specified hub. + * Updates the description and/or labels of a Network Connectivity Center hub. * *

Sample code: * @@ -668,7 +668,7 @@ public final OperationFuture updateHubAsync(UpdateHubReq // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the description and/or labels of the specified hub. + * Updates the description and/or labels of a Network Connectivity Center hub. * *

Sample code: * @@ -699,7 +699,7 @@ public final OperationFuture updateHubAsync(UpdateHubReq // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the description and/or labels of the specified hub. + * Updates the description and/or labels of a Network Connectivity Center hub. * *

Sample code: * @@ -728,7 +728,7 @@ public final UnaryCallable updateHubCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes the specified hub. + * Deletes a Network Connectivity Center hub. * *

Sample code: * @@ -755,7 +755,7 @@ public final OperationFuture deleteHubAsync(HubName na // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes the specified hub. + * Deletes a Network Connectivity Center hub. * *

Sample code: * @@ -781,7 +781,7 @@ public final OperationFuture deleteHubAsync(String nam // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes the specified hub. + * Deletes a Network Connectivity Center hub. * *

Sample code: * @@ -810,7 +810,7 @@ public final OperationFuture deleteHubAsync(DeleteHubR // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes the specified hub. + * Deletes a Network Connectivity Center hub. * *

Sample code: * @@ -840,7 +840,7 @@ public final OperationFuture deleteHubAsync(DeleteHubR // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes the specified hub. + * Deletes a Network Connectivity Center hub. * *

Sample code: * @@ -868,7 +868,7 @@ public final UnaryCallable deleteHubCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the spokes in the specified project and location. + * Lists the Network Connectivity Center spokes in a specified project and location. * *

Sample code: * @@ -897,7 +897,7 @@ public final ListSpokesPagedResponse listSpokes(LocationName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the spokes in the specified project and location. + * Lists the Network Connectivity Center spokes in a specified project and location. * *

Sample code: * @@ -925,7 +925,7 @@ public final ListSpokesPagedResponse listSpokes(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the spokes in the specified project and location. + * Lists the Network Connectivity Center spokes in a specified project and location. * *

Sample code: * @@ -959,7 +959,7 @@ public final ListSpokesPagedResponse listSpokes(ListSpokesRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the spokes in the specified project and location. + * Lists the Network Connectivity Center spokes in a specified project and location. * *

Sample code: * @@ -992,7 +992,7 @@ public final UnaryCallable listSpoke // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the spokes in the specified project and location. + * Lists the Network Connectivity Center spokes in a specified project and location. * *

Sample code: * @@ -1032,7 +1032,7 @@ public final UnaryCallable listSpokesCall // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details about the specified spoke. + * Gets details about a Network Connectivity Center spoke. * *

Sample code: * @@ -1059,7 +1059,7 @@ public final Spoke getSpoke(SpokeName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details about the specified spoke. + * Gets details about a Network Connectivity Center spoke. * *

Sample code: * @@ -1085,7 +1085,7 @@ public final Spoke getSpoke(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details about the specified spoke. + * Gets details about a Network Connectivity Center spoke. * *

Sample code: * @@ -1113,7 +1113,7 @@ public final Spoke getSpoke(GetSpokeRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details about the specified spoke. + * Gets details about a Network Connectivity Center spoke. * *

Sample code: * @@ -1140,7 +1140,7 @@ public final UnaryCallable getSpokeCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a spoke in the specified project and location. + * Creates a Network Connectivity Center spoke. * *

Sample code: * @@ -1176,7 +1176,7 @@ public final OperationFuture createSpokeAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a spoke in the specified project and location. + * Creates a Network Connectivity Center spoke. * *

Sample code: * @@ -1212,7 +1212,7 @@ public final OperationFuture createSpokeAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a spoke in the specified project and location. + * Creates a Network Connectivity Center spoke. * *

Sample code: * @@ -1244,7 +1244,7 @@ public final OperationFuture createSpokeAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a spoke in the specified project and location. + * Creates a Network Connectivity Center spoke. * *

Sample code: * @@ -1276,7 +1276,7 @@ public final OperationFuture createSpokeAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a spoke in the specified project and location. + * Creates a Network Connectivity Center spoke. * *

Sample code: * @@ -1306,7 +1306,7 @@ public final UnaryCallable createSpokeCallable() // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of the specified spoke. + * Updates the parameters of a Network Connectivity Center spoke. * *

Sample code: * @@ -1339,7 +1339,7 @@ public final OperationFuture updateSpokeAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of the specified spoke. + * Updates the parameters of a Network Connectivity Center spoke. * *

Sample code: * @@ -1370,7 +1370,7 @@ public final OperationFuture updateSpokeAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of the specified spoke. + * Updates the parameters of a Network Connectivity Center spoke. * *

Sample code: * @@ -1401,7 +1401,7 @@ public final OperationFuture updateSpokeAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of the specified spoke. + * Updates the parameters of a Network Connectivity Center spoke. * *

Sample code: * @@ -1430,7 +1430,7 @@ public final UnaryCallable updateSpokeCallable() // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes the specified spoke. + * Deletes a Network Connectivity Center spoke. * *

Sample code: * @@ -1457,7 +1457,7 @@ public final OperationFuture deleteSpokeAsync(SpokeNam // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes the specified spoke. + * Deletes a Network Connectivity Center spoke. * *

Sample code: * @@ -1483,7 +1483,7 @@ public final OperationFuture deleteSpokeAsync(String n // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes the specified spoke. + * Deletes a Network Connectivity Center spoke. * *

Sample code: * @@ -1513,7 +1513,7 @@ public final OperationFuture deleteSpokeAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes the specified spoke. + * Deletes a Network Connectivity Center spoke. * *

Sample code: * @@ -1543,7 +1543,7 @@ public final OperationFuture deleteSpokeAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes the specified spoke. + * Deletes a Network Connectivity Center spoke. * *

Sample code: * diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java similarity index 99% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java index 8602b8d3a73f..0f54d6e73b8d 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.networkconnectivity.v1.stub.HubServiceStubSettings; diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java new file mode 100644 index 000000000000..c006579e4952 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java @@ -0,0 +1,944 @@ +/* + * 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.networkconnectivity.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.networkconnectivity.v1.stub.PolicyBasedRoutingServiceStub; +import com.google.cloud.networkconnectivity.v1.stub.PolicyBasedRoutingServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Policy-Based Routing allows GCP customers to specify flexibile routing + * policies for Layer 4 traffic traversing through the connected service. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+ *     PolicyBasedRoutingServiceClient.create()) {
+ *   PolicyBasedRouteName name =
+ *       PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]");
+ *   PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the PolicyBasedRoutingServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. 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. + *
  2. 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. + *
  3. 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. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of + * PolicyBasedRoutingServiceSettings to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * PolicyBasedRoutingServiceSettings policyBasedRoutingServiceSettings =
+ *     PolicyBasedRoutingServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+ *     PolicyBasedRoutingServiceClient.create(policyBasedRoutingServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * PolicyBasedRoutingServiceSettings policyBasedRoutingServiceSettings =
+ *     PolicyBasedRoutingServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+ *     PolicyBasedRoutingServiceClient.create(policyBasedRoutingServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class PolicyBasedRoutingServiceClient implements BackgroundResource { + private final PolicyBasedRoutingServiceSettings settings; + private final PolicyBasedRoutingServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of PolicyBasedRoutingServiceClient with default settings. */ + public static final PolicyBasedRoutingServiceClient create() throws IOException { + return create(PolicyBasedRoutingServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of PolicyBasedRoutingServiceClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final PolicyBasedRoutingServiceClient create( + PolicyBasedRoutingServiceSettings settings) throws IOException { + return new PolicyBasedRoutingServiceClient(settings); + } + + /** + * Constructs an instance of PolicyBasedRoutingServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(PolicyBasedRoutingServiceSettings). + */ + public static final PolicyBasedRoutingServiceClient create(PolicyBasedRoutingServiceStub stub) { + return new PolicyBasedRoutingServiceClient(stub); + } + + /** + * Constructs an instance of PolicyBasedRoutingServiceClient, 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 PolicyBasedRoutingServiceClient(PolicyBasedRoutingServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((PolicyBasedRoutingServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + protected PolicyBasedRoutingServiceClient(PolicyBasedRoutingServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final PolicyBasedRoutingServiceSettings getSettings() { + return settings; + } + + public PolicyBasedRoutingServiceStub getStub() { + return stub; + } + + /** + * 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() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists PolicyBasedRoutes in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+   *     PolicyBasedRoutingServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (PolicyBasedRoute element :
+   *       policyBasedRoutingServiceClient.listPolicyBasedRoutes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPolicyBasedRoutesPagedResponse listPolicyBasedRoutes(LocationName parent) { + ListPolicyBasedRoutesRequest request = + ListPolicyBasedRoutesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listPolicyBasedRoutes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists PolicyBasedRoutes in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+   *     PolicyBasedRoutingServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (PolicyBasedRoute element :
+   *       policyBasedRoutingServiceClient.listPolicyBasedRoutes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource's name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPolicyBasedRoutesPagedResponse listPolicyBasedRoutes(String parent) { + ListPolicyBasedRoutesRequest request = + ListPolicyBasedRoutesRequest.newBuilder().setParent(parent).build(); + return listPolicyBasedRoutes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists PolicyBasedRoutes in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+   *     PolicyBasedRoutingServiceClient.create()) {
+   *   ListPolicyBasedRoutesRequest request =
+   *       ListPolicyBasedRoutesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (PolicyBasedRoute element :
+   *       policyBasedRoutingServiceClient.listPolicyBasedRoutes(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 ListPolicyBasedRoutesPagedResponse listPolicyBasedRoutes( + ListPolicyBasedRoutesRequest request) { + return listPolicyBasedRoutesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists PolicyBasedRoutes in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+   *     PolicyBasedRoutingServiceClient.create()) {
+   *   ListPolicyBasedRoutesRequest request =
+   *       ListPolicyBasedRoutesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       policyBasedRoutingServiceClient.listPolicyBasedRoutesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (PolicyBasedRoute element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPolicyBasedRoutesPagedCallable() { + return stub.listPolicyBasedRoutesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists PolicyBasedRoutes in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+   *     PolicyBasedRoutingServiceClient.create()) {
+   *   ListPolicyBasedRoutesRequest request =
+   *       ListPolicyBasedRoutesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListPolicyBasedRoutesResponse response =
+   *         policyBasedRoutingServiceClient.listPolicyBasedRoutesCallable().call(request);
+   *     for (PolicyBasedRoute element : response.getPolicyBasedRoutesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPolicyBasedRoutesCallable() { + return stub.listPolicyBasedRoutesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single PolicyBasedRoute. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+   *     PolicyBasedRoutingServiceClient.create()) {
+   *   PolicyBasedRouteName name =
+   *       PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]");
+   *   PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(name);
+   * }
+   * }
+ * + * @param name Required. Name of the PolicyBasedRoute resource to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PolicyBasedRoute getPolicyBasedRoute(PolicyBasedRouteName name) { + GetPolicyBasedRouteRequest request = + GetPolicyBasedRouteRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getPolicyBasedRoute(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single PolicyBasedRoute. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+   *     PolicyBasedRoutingServiceClient.create()) {
+   *   String name =
+   *       PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]").toString();
+   *   PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(name);
+   * }
+   * }
+ * + * @param name Required. Name of the PolicyBasedRoute resource to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PolicyBasedRoute getPolicyBasedRoute(String name) { + GetPolicyBasedRouteRequest request = + GetPolicyBasedRouteRequest.newBuilder().setName(name).build(); + return getPolicyBasedRoute(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single PolicyBasedRoute. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+   *     PolicyBasedRoutingServiceClient.create()) {
+   *   GetPolicyBasedRouteRequest request =
+   *       GetPolicyBasedRouteRequest.newBuilder()
+   *           .setName(
+   *               PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]")
+   *                   .toString())
+   *           .build();
+   *   PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(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 PolicyBasedRoute getPolicyBasedRoute(GetPolicyBasedRouteRequest request) { + return getPolicyBasedRouteCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single PolicyBasedRoute. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+   *     PolicyBasedRoutingServiceClient.create()) {
+   *   GetPolicyBasedRouteRequest request =
+   *       GetPolicyBasedRouteRequest.newBuilder()
+   *           .setName(
+   *               PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       policyBasedRoutingServiceClient.getPolicyBasedRouteCallable().futureCall(request);
+   *   // Do something.
+   *   PolicyBasedRoute response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getPolicyBasedRouteCallable() { + return stub.getPolicyBasedRouteCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new PolicyBasedRoute in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+   *     PolicyBasedRoutingServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build();
+   *   String policyBasedRouteId = "policyBasedRouteId-18034589";
+   *   PolicyBasedRoute response =
+   *       policyBasedRoutingServiceClient
+   *           .createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource's name of the PolicyBasedRoute. + * @param policyBasedRoute Required. Initial values for a new Policy Based Route. + * @param policyBasedRouteId Optional. Unique id for the Policy Based Route to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createPolicyBasedRouteAsync( + LocationName parent, PolicyBasedRoute policyBasedRoute, String policyBasedRouteId) { + CreatePolicyBasedRouteRequest request = + CreatePolicyBasedRouteRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setPolicyBasedRoute(policyBasedRoute) + .setPolicyBasedRouteId(policyBasedRouteId) + .build(); + return createPolicyBasedRouteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new PolicyBasedRoute in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+   *     PolicyBasedRoutingServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build();
+   *   String policyBasedRouteId = "policyBasedRouteId-18034589";
+   *   PolicyBasedRoute response =
+   *       policyBasedRoutingServiceClient
+   *           .createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource's name of the PolicyBasedRoute. + * @param policyBasedRoute Required. Initial values for a new Policy Based Route. + * @param policyBasedRouteId Optional. Unique id for the Policy Based Route to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createPolicyBasedRouteAsync( + String parent, PolicyBasedRoute policyBasedRoute, String policyBasedRouteId) { + CreatePolicyBasedRouteRequest request = + CreatePolicyBasedRouteRequest.newBuilder() + .setParent(parent) + .setPolicyBasedRoute(policyBasedRoute) + .setPolicyBasedRouteId(policyBasedRouteId) + .build(); + return createPolicyBasedRouteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new PolicyBasedRoute in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+   *     PolicyBasedRoutingServiceClient.create()) {
+   *   CreatePolicyBasedRouteRequest request =
+   *       CreatePolicyBasedRouteRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPolicyBasedRouteId("policyBasedRouteId-18034589")
+   *           .setPolicyBasedRoute(PolicyBasedRoute.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   PolicyBasedRoute response =
+   *       policyBasedRoutingServiceClient.createPolicyBasedRouteAsync(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 createPolicyBasedRouteAsync( + CreatePolicyBasedRouteRequest request) { + return createPolicyBasedRouteOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new PolicyBasedRoute in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+   *     PolicyBasedRoutingServiceClient.create()) {
+   *   CreatePolicyBasedRouteRequest request =
+   *       CreatePolicyBasedRouteRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPolicyBasedRouteId("policyBasedRouteId-18034589")
+   *           .setPolicyBasedRoute(PolicyBasedRoute.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       policyBasedRoutingServiceClient
+   *           .createPolicyBasedRouteOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   PolicyBasedRoute response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createPolicyBasedRouteOperationCallable() { + return stub.createPolicyBasedRouteOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new PolicyBasedRoute in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+   *     PolicyBasedRoutingServiceClient.create()) {
+   *   CreatePolicyBasedRouteRequest request =
+   *       CreatePolicyBasedRouteRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPolicyBasedRouteId("policyBasedRouteId-18034589")
+   *           .setPolicyBasedRoute(PolicyBasedRoute.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       policyBasedRoutingServiceClient.createPolicyBasedRouteCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createPolicyBasedRouteCallable() { + return stub.createPolicyBasedRouteCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single PolicyBasedRoute. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+   *     PolicyBasedRoutingServiceClient.create()) {
+   *   PolicyBasedRouteName name =
+   *       PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]");
+   *   policyBasedRoutingServiceClient.deletePolicyBasedRouteAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the PolicyBasedRoute resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deletePolicyBasedRouteAsync( + PolicyBasedRouteName name) { + DeletePolicyBasedRouteRequest request = + DeletePolicyBasedRouteRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deletePolicyBasedRouteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single PolicyBasedRoute. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+   *     PolicyBasedRoutingServiceClient.create()) {
+   *   String name =
+   *       PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]").toString();
+   *   policyBasedRoutingServiceClient.deletePolicyBasedRouteAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the PolicyBasedRoute resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deletePolicyBasedRouteAsync(String name) { + DeletePolicyBasedRouteRequest request = + DeletePolicyBasedRouteRequest.newBuilder().setName(name).build(); + return deletePolicyBasedRouteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single PolicyBasedRoute. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+   *     PolicyBasedRoutingServiceClient.create()) {
+   *   DeletePolicyBasedRouteRequest request =
+   *       DeletePolicyBasedRouteRequest.newBuilder()
+   *           .setName(
+   *               PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   policyBasedRoutingServiceClient.deletePolicyBasedRouteAsync(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 deletePolicyBasedRouteAsync( + DeletePolicyBasedRouteRequest request) { + return deletePolicyBasedRouteOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single PolicyBasedRoute. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+   *     PolicyBasedRoutingServiceClient.create()) {
+   *   DeletePolicyBasedRouteRequest request =
+   *       DeletePolicyBasedRouteRequest.newBuilder()
+   *           .setName(
+   *               PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       policyBasedRoutingServiceClient
+   *           .deletePolicyBasedRouteOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deletePolicyBasedRouteOperationCallable() { + return stub.deletePolicyBasedRouteOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single PolicyBasedRoute. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+   *     PolicyBasedRoutingServiceClient.create()) {
+   *   DeletePolicyBasedRouteRequest request =
+   *       DeletePolicyBasedRouteRequest.newBuilder()
+   *           .setName(
+   *               PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       policyBasedRoutingServiceClient.deletePolicyBasedRouteCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deletePolicyBasedRouteCallable() { + return stub.deletePolicyBasedRouteCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListPolicyBasedRoutesPagedResponse + extends AbstractPagedListResponse< + ListPolicyBasedRoutesRequest, + ListPolicyBasedRoutesResponse, + PolicyBasedRoute, + ListPolicyBasedRoutesPage, + ListPolicyBasedRoutesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPolicyBasedRoutesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListPolicyBasedRoutesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListPolicyBasedRoutesPagedResponse(ListPolicyBasedRoutesPage page) { + super(page, ListPolicyBasedRoutesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListPolicyBasedRoutesPage + extends AbstractPage< + ListPolicyBasedRoutesRequest, + ListPolicyBasedRoutesResponse, + PolicyBasedRoute, + ListPolicyBasedRoutesPage> { + + private ListPolicyBasedRoutesPage( + PageContext + context, + ListPolicyBasedRoutesResponse response) { + super(context, response); + } + + private static ListPolicyBasedRoutesPage createEmptyPage() { + return new ListPolicyBasedRoutesPage(null, null); + } + + @Override + protected ListPolicyBasedRoutesPage createPage( + PageContext + context, + ListPolicyBasedRoutesResponse response) { + return new ListPolicyBasedRoutesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListPolicyBasedRoutesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListPolicyBasedRoutesRequest, + ListPolicyBasedRoutesResponse, + PolicyBasedRoute, + ListPolicyBasedRoutesPage, + ListPolicyBasedRoutesFixedSizeCollection> { + + private ListPolicyBasedRoutesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListPolicyBasedRoutesFixedSizeCollection createEmptyCollection() { + return new ListPolicyBasedRoutesFixedSizeCollection(null, 0); + } + + @Override + protected ListPolicyBasedRoutesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListPolicyBasedRoutesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java new file mode 100644 index 000000000000..6c4da7e49e0d --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java @@ -0,0 +1,272 @@ +/* + * 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.networkconnectivity.v1; + +import static com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient.ListPolicyBasedRoutesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +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.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.networkconnectivity.v1.stub.PolicyBasedRoutingServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link PolicyBasedRoutingServiceClient}. + * + *

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

    + *
  • The default service address (networkconnectivity.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getPolicyBasedRoute to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * PolicyBasedRoutingServiceSettings.Builder policyBasedRoutingServiceSettingsBuilder =
+ *     PolicyBasedRoutingServiceSettings.newBuilder();
+ * policyBasedRoutingServiceSettingsBuilder
+ *     .getPolicyBasedRouteSettings()
+ *     .setRetrySettings(
+ *         policyBasedRoutingServiceSettingsBuilder
+ *             .getPolicyBasedRouteSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * PolicyBasedRoutingServiceSettings policyBasedRoutingServiceSettings =
+ *     policyBasedRoutingServiceSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class PolicyBasedRoutingServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to listPolicyBasedRoutes. */ + public PagedCallSettings< + ListPolicyBasedRoutesRequest, + ListPolicyBasedRoutesResponse, + ListPolicyBasedRoutesPagedResponse> + listPolicyBasedRoutesSettings() { + return ((PolicyBasedRoutingServiceStubSettings) getStubSettings()) + .listPolicyBasedRoutesSettings(); + } + + /** Returns the object with the settings used for calls to getPolicyBasedRoute. */ + public UnaryCallSettings + getPolicyBasedRouteSettings() { + return ((PolicyBasedRoutingServiceStubSettings) getStubSettings()) + .getPolicyBasedRouteSettings(); + } + + /** Returns the object with the settings used for calls to createPolicyBasedRoute. */ + public UnaryCallSettings + createPolicyBasedRouteSettings() { + return ((PolicyBasedRoutingServiceStubSettings) getStubSettings()) + .createPolicyBasedRouteSettings(); + } + + /** Returns the object with the settings used for calls to createPolicyBasedRoute. */ + public OperationCallSettings + createPolicyBasedRouteOperationSettings() { + return ((PolicyBasedRoutingServiceStubSettings) getStubSettings()) + .createPolicyBasedRouteOperationSettings(); + } + + /** Returns the object with the settings used for calls to deletePolicyBasedRoute. */ + public UnaryCallSettings + deletePolicyBasedRouteSettings() { + return ((PolicyBasedRoutingServiceStubSettings) getStubSettings()) + .deletePolicyBasedRouteSettings(); + } + + /** Returns the object with the settings used for calls to deletePolicyBasedRoute. */ + public OperationCallSettings + deletePolicyBasedRouteOperationSettings() { + return ((PolicyBasedRoutingServiceStubSettings) getStubSettings()) + .deletePolicyBasedRouteOperationSettings(); + } + + public static final PolicyBasedRoutingServiceSettings create( + PolicyBasedRoutingServiceStubSettings stub) throws IOException { + return new PolicyBasedRoutingServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return PolicyBasedRoutingServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return PolicyBasedRoutingServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return PolicyBasedRoutingServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return PolicyBasedRoutingServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return PolicyBasedRoutingServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return PolicyBasedRoutingServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return PolicyBasedRoutingServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected PolicyBasedRoutingServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for PolicyBasedRoutingServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(PolicyBasedRoutingServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(PolicyBasedRoutingServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(PolicyBasedRoutingServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(PolicyBasedRoutingServiceStubSettings.newBuilder()); + } + + public PolicyBasedRoutingServiceStubSettings.Builder getStubSettingsBuilder() { + return ((PolicyBasedRoutingServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listPolicyBasedRoutes. */ + public PagedCallSettings.Builder< + ListPolicyBasedRoutesRequest, + ListPolicyBasedRoutesResponse, + ListPolicyBasedRoutesPagedResponse> + listPolicyBasedRoutesSettings() { + return getStubSettingsBuilder().listPolicyBasedRoutesSettings(); + } + + /** Returns the builder for the settings used for calls to getPolicyBasedRoute. */ + public UnaryCallSettings.Builder + getPolicyBasedRouteSettings() { + return getStubSettingsBuilder().getPolicyBasedRouteSettings(); + } + + /** Returns the builder for the settings used for calls to createPolicyBasedRoute. */ + public UnaryCallSettings.Builder + createPolicyBasedRouteSettings() { + return getStubSettingsBuilder().createPolicyBasedRouteSettings(); + } + + /** Returns the builder for the settings used for calls to createPolicyBasedRoute. */ + public OperationCallSettings.Builder< + CreatePolicyBasedRouteRequest, PolicyBasedRoute, OperationMetadata> + createPolicyBasedRouteOperationSettings() { + return getStubSettingsBuilder().createPolicyBasedRouteOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deletePolicyBasedRoute. */ + public UnaryCallSettings.Builder + deletePolicyBasedRouteSettings() { + return getStubSettingsBuilder().deletePolicyBasedRouteSettings(); + } + + /** Returns the builder for the settings used for calls to deletePolicyBasedRoute. */ + public OperationCallSettings.Builder + deletePolicyBasedRouteOperationSettings() { + return getStubSettingsBuilder().deletePolicyBasedRouteOperationSettings(); + } + + @Override + public PolicyBasedRoutingServiceSettings build() throws IOException { + return new PolicyBasedRoutingServiceSettings(this); + } + } +} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json similarity index 64% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json index 466ca6374aa6..c2a68318d1b1 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json @@ -43,6 +43,27 @@ } } } + }, + "PolicyBasedRoutingService": { + "clients": { + "grpc": { + "libraryClient": "PolicyBasedRoutingServiceClient", + "rpcs": { + "CreatePolicyBasedRoute": { + "methods": ["createPolicyBasedRouteAsync", "createPolicyBasedRouteAsync", "createPolicyBasedRouteAsync", "createPolicyBasedRouteOperationCallable", "createPolicyBasedRouteCallable"] + }, + "DeletePolicyBasedRoute": { + "methods": ["deletePolicyBasedRouteAsync", "deletePolicyBasedRouteAsync", "deletePolicyBasedRouteAsync", "deletePolicyBasedRouteOperationCallable", "deletePolicyBasedRouteCallable"] + }, + "GetPolicyBasedRoute": { + "methods": ["getPolicyBasedRoute", "getPolicyBasedRoute", "getPolicyBasedRoute", "getPolicyBasedRouteCallable"] + }, + "ListPolicyBasedRoutes": { + "methods": ["listPolicyBasedRoutes", "listPolicyBasedRoutes", "listPolicyBasedRoutes", "listPolicyBasedRoutesPagedCallable", "listPolicyBasedRoutesCallable"] + } + } + } + } } } } \ No newline at end of file diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java similarity index 62% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java index 0aa0afcf4e1a..daeb8017fa34 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java @@ -38,6 +38,27 @@ * Hub response = hubServiceClient.getHub(name); * } * }

+ * + *

======================= PolicyBasedRoutingServiceClient ======================= + * + *

Service Description: Policy-Based Routing allows GCP customers to specify flexibile routing + * policies for Layer 4 traffic traversing through the connected service. + * + *

Sample for PolicyBasedRoutingServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
+ *     PolicyBasedRoutingServiceClient.create()) {
+ *   PolicyBasedRouteName name =
+ *       PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]");
+ *   PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(name);
+ * }
+ * }
*/ @Generated("by gapic-generator-java") package com.google.cloud.networkconnectivity.v1; diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java similarity index 99% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java index 91b811c5fc87..a4c973ff1360 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java @@ -48,6 +48,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceCallableFactory.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceCallableFactory.java new file mode 100644 index 000000000000..30603bafc32f --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * 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.networkconnectivity.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +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.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the PolicyBasedRoutingService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcPolicyBasedRoutingServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceStub.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceStub.java new file mode 100644 index 000000000000..287e63c97335 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceStub.java @@ -0,0 +1,326 @@ +/* + * 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.networkconnectivity.v1.stub; + +import static com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient.ListPolicyBasedRoutesPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest; +import com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest; +import com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest; +import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest; +import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse; +import com.google.cloud.networkconnectivity.v1.OperationMetadata; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the PolicyBasedRoutingService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcPolicyBasedRoutingServiceStub extends PolicyBasedRoutingServiceStub { + private static final MethodDescriptor + listPolicyBasedRoutesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService/ListPolicyBasedRoutes") + .setRequestMarshaller( + ProtoUtils.marshaller(ListPolicyBasedRoutesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListPolicyBasedRoutesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getPolicyBasedRouteMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService/GetPolicyBasedRoute") + .setRequestMarshaller( + ProtoUtils.marshaller(GetPolicyBasedRouteRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(PolicyBasedRoute.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createPolicyBasedRouteMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService/CreatePolicyBasedRoute") + .setRequestMarshaller( + ProtoUtils.marshaller(CreatePolicyBasedRouteRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deletePolicyBasedRouteMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService/DeletePolicyBasedRoute") + .setRequestMarshaller( + ProtoUtils.marshaller(DeletePolicyBasedRouteRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final UnaryCallable + listPolicyBasedRoutesCallable; + private final UnaryCallable + listPolicyBasedRoutesPagedCallable; + private final UnaryCallable + getPolicyBasedRouteCallable; + private final UnaryCallable + createPolicyBasedRouteCallable; + private final OperationCallable< + CreatePolicyBasedRouteRequest, PolicyBasedRoute, OperationMetadata> + createPolicyBasedRouteOperationCallable; + private final UnaryCallable + deletePolicyBasedRouteCallable; + private final OperationCallable + deletePolicyBasedRouteOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcPolicyBasedRoutingServiceStub create( + PolicyBasedRoutingServiceStubSettings settings) throws IOException { + return new GrpcPolicyBasedRoutingServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcPolicyBasedRoutingServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcPolicyBasedRoutingServiceStub( + PolicyBasedRoutingServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcPolicyBasedRoutingServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcPolicyBasedRoutingServiceStub( + PolicyBasedRoutingServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcPolicyBasedRoutingServiceStub, 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 GrpcPolicyBasedRoutingServiceStub( + PolicyBasedRoutingServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcPolicyBasedRoutingServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcPolicyBasedRoutingServiceStub, 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 GrpcPolicyBasedRoutingServiceStub( + PolicyBasedRoutingServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listPolicyBasedRoutesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listPolicyBasedRoutesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + getPolicyBasedRouteTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getPolicyBasedRouteMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + createPolicyBasedRouteTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createPolicyBasedRouteMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + deletePolicyBasedRouteTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deletePolicyBasedRouteMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + + this.listPolicyBasedRoutesCallable = + callableFactory.createUnaryCallable( + listPolicyBasedRoutesTransportSettings, + settings.listPolicyBasedRoutesSettings(), + clientContext); + this.listPolicyBasedRoutesPagedCallable = + callableFactory.createPagedCallable( + listPolicyBasedRoutesTransportSettings, + settings.listPolicyBasedRoutesSettings(), + clientContext); + this.getPolicyBasedRouteCallable = + callableFactory.createUnaryCallable( + getPolicyBasedRouteTransportSettings, + settings.getPolicyBasedRouteSettings(), + clientContext); + this.createPolicyBasedRouteCallable = + callableFactory.createUnaryCallable( + createPolicyBasedRouteTransportSettings, + settings.createPolicyBasedRouteSettings(), + clientContext); + this.createPolicyBasedRouteOperationCallable = + callableFactory.createOperationCallable( + createPolicyBasedRouteTransportSettings, + settings.createPolicyBasedRouteOperationSettings(), + clientContext, + operationsStub); + this.deletePolicyBasedRouteCallable = + callableFactory.createUnaryCallable( + deletePolicyBasedRouteTransportSettings, + settings.deletePolicyBasedRouteSettings(), + clientContext); + this.deletePolicyBasedRouteOperationCallable = + callableFactory.createOperationCallable( + deletePolicyBasedRouteTransportSettings, + settings.deletePolicyBasedRouteOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listPolicyBasedRoutesCallable() { + return listPolicyBasedRoutesCallable; + } + + @Override + public UnaryCallable + listPolicyBasedRoutesPagedCallable() { + return listPolicyBasedRoutesPagedCallable; + } + + @Override + public UnaryCallable getPolicyBasedRouteCallable() { + return getPolicyBasedRouteCallable; + } + + @Override + public UnaryCallable createPolicyBasedRouteCallable() { + return createPolicyBasedRouteCallable; + } + + @Override + public OperationCallable + createPolicyBasedRouteOperationCallable() { + return createPolicyBasedRouteOperationCallable; + } + + @Override + public UnaryCallable deletePolicyBasedRouteCallable() { + return deletePolicyBasedRouteCallable; + } + + @Override + public OperationCallable + deletePolicyBasedRouteOperationCallable() { + return deletePolicyBasedRouteOperationCallable; + } + + @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/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java new file mode 100644 index 000000000000..d1cb115a8e14 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java @@ -0,0 +1,86 @@ +/* + * 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.networkconnectivity.v1.stub; + +import static com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient.ListPolicyBasedRoutesPagedResponse; + +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.networkconnectivity.v1.CreatePolicyBasedRouteRequest; +import com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest; +import com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest; +import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest; +import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse; +import com.google.cloud.networkconnectivity.v1.OperationMetadata; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; +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. +/** + * Base stub class for the PolicyBasedRoutingService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class PolicyBasedRoutingServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public UnaryCallable + listPolicyBasedRoutesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listPolicyBasedRoutesPagedCallable()"); + } + + public UnaryCallable + listPolicyBasedRoutesCallable() { + throw new UnsupportedOperationException("Not implemented: listPolicyBasedRoutesCallable()"); + } + + public UnaryCallable getPolicyBasedRouteCallable() { + throw new UnsupportedOperationException("Not implemented: getPolicyBasedRouteCallable()"); + } + + public OperationCallable + createPolicyBasedRouteOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createPolicyBasedRouteOperationCallable()"); + } + + public UnaryCallable createPolicyBasedRouteCallable() { + throw new UnsupportedOperationException("Not implemented: createPolicyBasedRouteCallable()"); + } + + public OperationCallable + deletePolicyBasedRouteOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deletePolicyBasedRouteOperationCallable()"); + } + + public UnaryCallable deletePolicyBasedRouteCallable() { + throw new UnsupportedOperationException("Not implemented: deletePolicyBasedRouteCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java new file mode 100644 index 000000000000..e113fcb8d78d --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java @@ -0,0 +1,572 @@ +/* + * 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.networkconnectivity.v1.stub; + +import static com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient.ListPolicyBasedRoutesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +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.networkconnectivity.v1.CreatePolicyBasedRouteRequest; +import com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest; +import com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest; +import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest; +import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse; +import com.google.cloud.networkconnectivity.v1.OperationMetadata; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; +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; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link PolicyBasedRoutingServiceStub}. + * + *

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

    + *
  • The default service address (networkconnectivity.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getPolicyBasedRoute to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * PolicyBasedRoutingServiceStubSettings.Builder policyBasedRoutingServiceSettingsBuilder =
+ *     PolicyBasedRoutingServiceStubSettings.newBuilder();
+ * policyBasedRoutingServiceSettingsBuilder
+ *     .getPolicyBasedRouteSettings()
+ *     .setRetrySettings(
+ *         policyBasedRoutingServiceSettingsBuilder
+ *             .getPolicyBasedRouteSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * PolicyBasedRoutingServiceStubSettings policyBasedRoutingServiceSettings =
+ *     policyBasedRoutingServiceSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class PolicyBasedRoutingServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final PagedCallSettings< + ListPolicyBasedRoutesRequest, + ListPolicyBasedRoutesResponse, + ListPolicyBasedRoutesPagedResponse> + listPolicyBasedRoutesSettings; + private final UnaryCallSettings + getPolicyBasedRouteSettings; + private final UnaryCallSettings + createPolicyBasedRouteSettings; + private final OperationCallSettings< + CreatePolicyBasedRouteRequest, PolicyBasedRoute, OperationMetadata> + createPolicyBasedRouteOperationSettings; + private final UnaryCallSettings + deletePolicyBasedRouteSettings; + private final OperationCallSettings + deletePolicyBasedRouteOperationSettings; + + private static final PagedListDescriptor< + ListPolicyBasedRoutesRequest, ListPolicyBasedRoutesResponse, PolicyBasedRoute> + LIST_POLICY_BASED_ROUTES_PAGE_STR_DESC = + new PagedListDescriptor< + ListPolicyBasedRoutesRequest, ListPolicyBasedRoutesResponse, PolicyBasedRoute>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListPolicyBasedRoutesRequest injectToken( + ListPolicyBasedRoutesRequest payload, String token) { + return ListPolicyBasedRoutesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListPolicyBasedRoutesRequest injectPageSize( + ListPolicyBasedRoutesRequest payload, int pageSize) { + return ListPolicyBasedRoutesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListPolicyBasedRoutesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListPolicyBasedRoutesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListPolicyBasedRoutesResponse payload) { + return payload.getPolicyBasedRoutesList() == null + ? ImmutableList.of() + : payload.getPolicyBasedRoutesList(); + } + }; + + private static final PagedListResponseFactory< + ListPolicyBasedRoutesRequest, + ListPolicyBasedRoutesResponse, + ListPolicyBasedRoutesPagedResponse> + LIST_POLICY_BASED_ROUTES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListPolicyBasedRoutesRequest, + ListPolicyBasedRoutesResponse, + ListPolicyBasedRoutesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListPolicyBasedRoutesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListPolicyBasedRoutesRequest, ListPolicyBasedRoutesResponse, PolicyBasedRoute> + pageContext = + PageContext.create( + callable, LIST_POLICY_BASED_ROUTES_PAGE_STR_DESC, request, context); + return ListPolicyBasedRoutesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listPolicyBasedRoutes. */ + public PagedCallSettings< + ListPolicyBasedRoutesRequest, + ListPolicyBasedRoutesResponse, + ListPolicyBasedRoutesPagedResponse> + listPolicyBasedRoutesSettings() { + return listPolicyBasedRoutesSettings; + } + + /** Returns the object with the settings used for calls to getPolicyBasedRoute. */ + public UnaryCallSettings + getPolicyBasedRouteSettings() { + return getPolicyBasedRouteSettings; + } + + /** Returns the object with the settings used for calls to createPolicyBasedRoute. */ + public UnaryCallSettings + createPolicyBasedRouteSettings() { + return createPolicyBasedRouteSettings; + } + + /** Returns the object with the settings used for calls to createPolicyBasedRoute. */ + public OperationCallSettings + createPolicyBasedRouteOperationSettings() { + return createPolicyBasedRouteOperationSettings; + } + + /** Returns the object with the settings used for calls to deletePolicyBasedRoute. */ + public UnaryCallSettings + deletePolicyBasedRouteSettings() { + return deletePolicyBasedRouteSettings; + } + + /** Returns the object with the settings used for calls to deletePolicyBasedRoute. */ + public OperationCallSettings + deletePolicyBasedRouteOperationSettings() { + return deletePolicyBasedRouteOperationSettings; + } + + public PolicyBasedRoutingServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcPolicyBasedRoutingServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "networkconnectivity.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "networkconnectivity.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + 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() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(PolicyBasedRoutingServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected PolicyBasedRoutingServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listPolicyBasedRoutesSettings = settingsBuilder.listPolicyBasedRoutesSettings().build(); + getPolicyBasedRouteSettings = settingsBuilder.getPolicyBasedRouteSettings().build(); + createPolicyBasedRouteSettings = settingsBuilder.createPolicyBasedRouteSettings().build(); + createPolicyBasedRouteOperationSettings = + settingsBuilder.createPolicyBasedRouteOperationSettings().build(); + deletePolicyBasedRouteSettings = settingsBuilder.deletePolicyBasedRouteSettings().build(); + deletePolicyBasedRouteOperationSettings = + settingsBuilder.deletePolicyBasedRouteOperationSettings().build(); + } + + /** Builder for PolicyBasedRoutingServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListPolicyBasedRoutesRequest, + ListPolicyBasedRoutesResponse, + ListPolicyBasedRoutesPagedResponse> + listPolicyBasedRoutesSettings; + private final UnaryCallSettings.Builder + getPolicyBasedRouteSettings; + private final UnaryCallSettings.Builder + createPolicyBasedRouteSettings; + private final OperationCallSettings.Builder< + CreatePolicyBasedRouteRequest, PolicyBasedRoute, OperationMetadata> + createPolicyBasedRouteOperationSettings; + private final UnaryCallSettings.Builder + deletePolicyBasedRouteSettings; + private final OperationCallSettings.Builder< + DeletePolicyBasedRouteRequest, Empty, OperationMetadata> + deletePolicyBasedRouteOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_1_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listPolicyBasedRoutesSettings = + PagedCallSettings.newBuilder(LIST_POLICY_BASED_ROUTES_PAGE_STR_FACT); + getPolicyBasedRouteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createPolicyBasedRouteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createPolicyBasedRouteOperationSettings = OperationCallSettings.newBuilder(); + deletePolicyBasedRouteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deletePolicyBasedRouteOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listPolicyBasedRoutesSettings, + getPolicyBasedRouteSettings, + createPolicyBasedRouteSettings, + deletePolicyBasedRouteSettings); + initDefaults(this); + } + + protected Builder(PolicyBasedRoutingServiceStubSettings settings) { + super(settings); + + listPolicyBasedRoutesSettings = settings.listPolicyBasedRoutesSettings.toBuilder(); + getPolicyBasedRouteSettings = settings.getPolicyBasedRouteSettings.toBuilder(); + createPolicyBasedRouteSettings = settings.createPolicyBasedRouteSettings.toBuilder(); + createPolicyBasedRouteOperationSettings = + settings.createPolicyBasedRouteOperationSettings.toBuilder(); + deletePolicyBasedRouteSettings = settings.deletePolicyBasedRouteSettings.toBuilder(); + deletePolicyBasedRouteOperationSettings = + settings.deletePolicyBasedRouteOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listPolicyBasedRoutesSettings, + getPolicyBasedRouteSettings, + createPolicyBasedRouteSettings, + deletePolicyBasedRouteSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listPolicyBasedRoutesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getPolicyBasedRouteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createPolicyBasedRouteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deletePolicyBasedRouteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .createPolicyBasedRouteOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(PolicyBasedRoute.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 + .deletePolicyBasedRouteOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.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())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listPolicyBasedRoutes. */ + public PagedCallSettings.Builder< + ListPolicyBasedRoutesRequest, + ListPolicyBasedRoutesResponse, + ListPolicyBasedRoutesPagedResponse> + listPolicyBasedRoutesSettings() { + return listPolicyBasedRoutesSettings; + } + + /** Returns the builder for the settings used for calls to getPolicyBasedRoute. */ + public UnaryCallSettings.Builder + getPolicyBasedRouteSettings() { + return getPolicyBasedRouteSettings; + } + + /** Returns the builder for the settings used for calls to createPolicyBasedRoute. */ + public UnaryCallSettings.Builder + createPolicyBasedRouteSettings() { + return createPolicyBasedRouteSettings; + } + + /** Returns the builder for the settings used for calls to createPolicyBasedRoute. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreatePolicyBasedRouteRequest, PolicyBasedRoute, OperationMetadata> + createPolicyBasedRouteOperationSettings() { + return createPolicyBasedRouteOperationSettings; + } + + /** Returns the builder for the settings used for calls to deletePolicyBasedRoute. */ + public UnaryCallSettings.Builder + deletePolicyBasedRouteSettings() { + return deletePolicyBasedRouteSettings; + } + + /** Returns the builder for the settings used for calls to deletePolicyBasedRoute. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deletePolicyBasedRouteOperationSettings() { + return deletePolicyBasedRouteOperationSettings; + } + + @Override + public PolicyBasedRoutingServiceStubSettings build() throws IOException { + return new PolicyBasedRoutingServiceStubSettings(this); + } + } +} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingService.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingService.java new file mode 100644 index 000000000000..14c65288159c --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingService.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.networkconnectivity.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockPolicyBasedRoutingService implements MockGrpcService { + private final MockPolicyBasedRoutingServiceImpl serviceImpl; + + public MockPolicyBasedRoutingService() { + serviceImpl = new MockPolicyBasedRoutingServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingServiceImpl.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingServiceImpl.java new file mode 100644 index 000000000000..a57877e4d35a --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingServiceImpl.java @@ -0,0 +1,146 @@ +/* + * 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.networkconnectivity.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceGrpc.PolicyBasedRoutingServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockPolicyBasedRoutingServiceImpl extends PolicyBasedRoutingServiceImplBase { + private List requests; + private Queue responses; + + public MockPolicyBasedRoutingServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listPolicyBasedRoutes( + ListPolicyBasedRoutesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListPolicyBasedRoutesResponse) { + requests.add(request); + responseObserver.onNext(((ListPolicyBasedRoutesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListPolicyBasedRoutes, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListPolicyBasedRoutesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getPolicyBasedRoute( + GetPolicyBasedRouteRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof PolicyBasedRoute) { + requests.add(request); + responseObserver.onNext(((PolicyBasedRoute) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetPolicyBasedRoute, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PolicyBasedRoute.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createPolicyBasedRoute( + CreatePolicyBasedRouteRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreatePolicyBasedRoute, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deletePolicyBasedRoute( + DeletePolicyBasedRouteRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeletePolicyBasedRoute, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClientTest.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClientTest.java new file mode 100644 index 000000000000..eb5fa73866eb --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClientTest.java @@ -0,0 +1,501 @@ +/* + * 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.networkconnectivity.v1; + +import static com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient.ListPolicyBasedRoutesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +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 PolicyBasedRoutingServiceClientTest { + private static MockPolicyBasedRoutingService mockPolicyBasedRoutingService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private PolicyBasedRoutingServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockPolicyBasedRoutingService = new MockPolicyBasedRoutingService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockPolicyBasedRoutingService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + PolicyBasedRoutingServiceSettings settings = + PolicyBasedRoutingServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = PolicyBasedRoutingServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listPolicyBasedRoutesTest() throws Exception { + PolicyBasedRoute responsesElement = PolicyBasedRoute.newBuilder().build(); + ListPolicyBasedRoutesResponse expectedResponse = + ListPolicyBasedRoutesResponse.newBuilder() + .setNextPageToken("") + .addAllPolicyBasedRoutes(Arrays.asList(responsesElement)) + .build(); + mockPolicyBasedRoutingService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPolicyBasedRoutesPagedResponse pagedListResponse = client.listPolicyBasedRoutes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPolicyBasedRoutesList().get(0), resources.get(0)); + + List actualRequests = mockPolicyBasedRoutingService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPolicyBasedRoutesRequest actualRequest = + ((ListPolicyBasedRoutesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPolicyBasedRoutesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPolicyBasedRoutingService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listPolicyBasedRoutes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPolicyBasedRoutesTest2() throws Exception { + PolicyBasedRoute responsesElement = PolicyBasedRoute.newBuilder().build(); + ListPolicyBasedRoutesResponse expectedResponse = + ListPolicyBasedRoutesResponse.newBuilder() + .setNextPageToken("") + .addAllPolicyBasedRoutes(Arrays.asList(responsesElement)) + .build(); + mockPolicyBasedRoutingService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListPolicyBasedRoutesPagedResponse pagedListResponse = client.listPolicyBasedRoutes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPolicyBasedRoutesList().get(0), resources.get(0)); + + List actualRequests = mockPolicyBasedRoutingService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPolicyBasedRoutesRequest actualRequest = + ((ListPolicyBasedRoutesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPolicyBasedRoutesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPolicyBasedRoutingService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listPolicyBasedRoutes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPolicyBasedRouteTest() throws Exception { + PolicyBasedRoute expectedResponse = + PolicyBasedRoute.newBuilder() + .setName( + PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setNetwork("network1843485230") + .setFilter(PolicyBasedRoute.Filter.newBuilder().build()) + .setPriority(-1165461084) + .addAllWarnings(new ArrayList()) + .setSelfLink("selfLink1191800166") + .setKind("kind3292052") + .build(); + mockPolicyBasedRoutingService.addResponse(expectedResponse); + + PolicyBasedRouteName name = + PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]"); + + PolicyBasedRoute actualResponse = client.getPolicyBasedRoute(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPolicyBasedRoutingService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPolicyBasedRouteRequest actualRequest = ((GetPolicyBasedRouteRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPolicyBasedRouteExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPolicyBasedRoutingService.addException(exception); + + try { + PolicyBasedRouteName name = + PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]"); + client.getPolicyBasedRoute(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPolicyBasedRouteTest2() throws Exception { + PolicyBasedRoute expectedResponse = + PolicyBasedRoute.newBuilder() + .setName( + PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setNetwork("network1843485230") + .setFilter(PolicyBasedRoute.Filter.newBuilder().build()) + .setPriority(-1165461084) + .addAllWarnings(new ArrayList()) + .setSelfLink("selfLink1191800166") + .setKind("kind3292052") + .build(); + mockPolicyBasedRoutingService.addResponse(expectedResponse); + + String name = "name3373707"; + + PolicyBasedRoute actualResponse = client.getPolicyBasedRoute(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPolicyBasedRoutingService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPolicyBasedRouteRequest actualRequest = ((GetPolicyBasedRouteRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPolicyBasedRouteExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPolicyBasedRoutingService.addException(exception); + + try { + String name = "name3373707"; + client.getPolicyBasedRoute(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createPolicyBasedRouteTest() throws Exception { + PolicyBasedRoute expectedResponse = + PolicyBasedRoute.newBuilder() + .setName( + PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setNetwork("network1843485230") + .setFilter(PolicyBasedRoute.Filter.newBuilder().build()) + .setPriority(-1165461084) + .addAllWarnings(new ArrayList()) + .setSelfLink("selfLink1191800166") + .setKind("kind3292052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createPolicyBasedRouteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockPolicyBasedRoutingService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build(); + String policyBasedRouteId = "policyBasedRouteId-18034589"; + + PolicyBasedRoute actualResponse = + client.createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPolicyBasedRoutingService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreatePolicyBasedRouteRequest actualRequest = + ((CreatePolicyBasedRouteRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(policyBasedRoute, actualRequest.getPolicyBasedRoute()); + Assert.assertEquals(policyBasedRouteId, actualRequest.getPolicyBasedRouteId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createPolicyBasedRouteExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPolicyBasedRoutingService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build(); + String policyBasedRouteId = "policyBasedRouteId-18034589"; + client.createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId).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()); + } + } + + @Test + public void createPolicyBasedRouteTest2() throws Exception { + PolicyBasedRoute expectedResponse = + PolicyBasedRoute.newBuilder() + .setName( + PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setNetwork("network1843485230") + .setFilter(PolicyBasedRoute.Filter.newBuilder().build()) + .setPriority(-1165461084) + .addAllWarnings(new ArrayList()) + .setSelfLink("selfLink1191800166") + .setKind("kind3292052") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createPolicyBasedRouteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockPolicyBasedRoutingService.addResponse(resultOperation); + + String parent = "parent-995424086"; + PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build(); + String policyBasedRouteId = "policyBasedRouteId-18034589"; + + PolicyBasedRoute actualResponse = + client.createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPolicyBasedRoutingService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreatePolicyBasedRouteRequest actualRequest = + ((CreatePolicyBasedRouteRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(policyBasedRoute, actualRequest.getPolicyBasedRoute()); + Assert.assertEquals(policyBasedRouteId, actualRequest.getPolicyBasedRouteId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createPolicyBasedRouteExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPolicyBasedRoutingService.addException(exception); + + try { + String parent = "parent-995424086"; + PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build(); + String policyBasedRouteId = "policyBasedRouteId-18034589"; + client.createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId).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()); + } + } + + @Test + public void deletePolicyBasedRouteTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deletePolicyBasedRouteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockPolicyBasedRoutingService.addResponse(resultOperation); + + PolicyBasedRouteName name = + PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]"); + + client.deletePolicyBasedRouteAsync(name).get(); + + List actualRequests = mockPolicyBasedRoutingService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeletePolicyBasedRouteRequest actualRequest = + ((DeletePolicyBasedRouteRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deletePolicyBasedRouteExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPolicyBasedRoutingService.addException(exception); + + try { + PolicyBasedRouteName name = + PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]"); + client.deletePolicyBasedRouteAsync(name).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()); + } + } + + @Test + public void deletePolicyBasedRouteTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deletePolicyBasedRouteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockPolicyBasedRoutingService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deletePolicyBasedRouteAsync(name).get(); + + List actualRequests = mockPolicyBasedRoutingService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeletePolicyBasedRouteRequest actualRequest = + ((DeletePolicyBasedRouteRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deletePolicyBasedRouteExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPolicyBasedRoutingService.addException(exception); + + try { + String name = "name3373707"; + client.deletePolicyBasedRouteAsync(name).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/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java b/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java new file mode 100644 index 000000000000..111a08cb8271 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java @@ -0,0 +1,1095 @@ +package com.google.cloud.networkconnectivity.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Network Connectivity Center is a hub-and-spoke abstraction for network
+ * connectivity management in Google Cloud. It reduces operational complexity
+ * through a simple, centralized connectivity management model.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networkconnectivity/v1/hub.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class HubServiceGrpc { + + private HubServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1.HubService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListHubsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListHubs", + requestType = com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListHubsMethod() { + io.grpc.MethodDescriptor getListHubsMethod; + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + HubServiceGrpc.getListHubsMethod = getListHubsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListHubsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListHubsResponse.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) + .build(); + } + } + } + return getListHubsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetHub", + requestType = com.google.cloud.networkconnectivity.v1.GetHubRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.Hub.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetHubMethod() { + io.grpc.MethodDescriptor getGetHubMethod; + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + HubServiceGrpc.getGetHubMethod = getGetHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.GetHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) + .build(); + } + } + } + return getGetHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateHub", + requestType = com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateHubMethod() { + io.grpc.MethodDescriptor getCreateHubMethod; + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + HubServiceGrpc.getCreateHubMethod = getCreateHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.CreateHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) + .build(); + } + } + } + return getCreateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateHub", + requestType = com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateHubMethod() { + io.grpc.MethodDescriptor getUpdateHubMethod; + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + HubServiceGrpc.getUpdateHubMethod = getUpdateHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) + .build(); + } + } + } + return getUpdateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteHub", + requestType = com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteHubMethod() { + io.grpc.MethodDescriptor getDeleteHubMethod; + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + HubServiceGrpc.getDeleteHubMethod = getDeleteHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) + .build(); + } + } + } + return getDeleteHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSpokesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSpokes", + requestType = com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSpokesMethod() { + io.grpc.MethodDescriptor getListSpokesMethod; + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + HubServiceGrpc.getListSpokesMethod = getListSpokesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListSpokesResponse.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) + .build(); + } + } + } + return getListSpokesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSpoke", + requestType = com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.Spoke.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSpokeMethod() { + io.grpc.MethodDescriptor getGetSpokeMethod; + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + HubServiceGrpc.getGetSpokeMethod = getGetSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) + .build(); + } + } + } + return getGetSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", + requestType = com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSpokeMethod() { + io.grpc.MethodDescriptor getCreateSpokeMethod; + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + HubServiceGrpc.getCreateSpokeMethod = getCreateSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) + .build(); + } + } + } + return getCreateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", + requestType = com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSpokeMethod() { + io.grpc.MethodDescriptor getUpdateSpokeMethod; + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + HubServiceGrpc.getUpdateSpokeMethod = getUpdateSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) + .build(); + } + } + } + return getUpdateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", + requestType = com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSpokeMethod() { + io.grpc.MethodDescriptor getDeleteSpokeMethod; + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + HubServiceGrpc.getDeleteSpokeMethod = getDeleteSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) + .build(); + } + } + } + return getDeleteSpokeMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static HubServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + }; + return HubServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static HubServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + }; + return HubServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static HubServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + }; + return HubServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static abstract class HubServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists the Network Connectivity Center hubs associated with a given project.
+     * 
+ */ + public void listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); + } + + /** + *
+     * Gets details about a Network Connectivity Center hub.
+     * 
+ */ + public void getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); + } + + /** + *
+     * Creates a new Network Connectivity Center hub in the specified project.
+     * 
+ */ + public void createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); + } + + /** + *
+     * Updates the description and/or labels of a Network Connectivity Center
+     * hub.
+     * 
+ */ + public void updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); + } + + /** + *
+     * Deletes a Network Connectivity Center hub.
+     * 
+ */ + public void deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); + } + + /** + *
+     * Lists the Network Connectivity Center spokes in a specified project and
+     * location.
+     * 
+ */ + public void listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); + } + + /** + *
+     * Gets details about a Network Connectivity Center spoke.
+     * 
+ */ + public void getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); + } + + /** + *
+     * Creates a Network Connectivity Center spoke.
+     * 
+ */ + public void createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSpokeMethod(), responseObserver); + } + + /** + *
+     * Updates the parameters of a Network Connectivity Center spoke.
+     * 
+ */ + public void updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSpokeMethod(), responseObserver); + } + + /** + *
+     * Deletes a Network Connectivity Center spoke.
+     * 
+ */ + public void deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSpokeMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListHubsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1.ListHubsResponse>( + this, METHODID_LIST_HUBS))) + .addMethod( + getGetHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.GetHubRequest, + com.google.cloud.networkconnectivity.v1.Hub>( + this, METHODID_GET_HUB))) + .addMethod( + getCreateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.CreateHubRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_HUB))) + .addMethod( + getUpdateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.UpdateHubRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_HUB))) + .addMethod( + getDeleteHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.DeleteHubRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_HUB))) + .addMethod( + getListSpokesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1.ListSpokesResponse>( + this, METHODID_LIST_SPOKES))) + .addMethod( + getGetSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1.Spoke>( + this, METHODID_GET_SPOKE))) + .addMethod( + getCreateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_SPOKE))) + .addMethod( + getUpdateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_SPOKE))) + .addMethod( + getDeleteSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_SPOKE))) + .build(); + } + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { + private HubServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + + /** + *
+     * Lists the Network Connectivity Center hubs associated with a given project.
+     * 
+ */ + public void listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details about a Network Connectivity Center hub.
+     * 
+ */ + public void getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new Network Connectivity Center hub in the specified project.
+     * 
+ */ + public void createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the description and/or labels of a Network Connectivity Center
+     * hub.
+     * 
+ */ + public void updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a Network Connectivity Center hub.
+     * 
+ */ + public void deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the Network Connectivity Center spokes in a specified project and
+     * location.
+     * 
+ */ + public void listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details about a Network Connectivity Center spoke.
+     * 
+ */ + public void getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a Network Connectivity Center spoke.
+     * 
+ */ + public void createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the parameters of a Network Connectivity Center spoke.
+     * 
+ */ + public void updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a Network Connectivity Center spoke.
+     * 
+ */ + public void deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static final class HubServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private HubServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists the Network Connectivity Center hubs associated with a given project.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.ListHubsResponse listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListHubsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details about a Network Connectivity Center hub.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.Hub getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new Network Connectivity Center hub in the specified project.
+     * 
+ */ + public com.google.longrunning.Operation createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the description and/or labels of a Network Connectivity Center
+     * hub.
+     * 
+ */ + public com.google.longrunning.Operation updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a Network Connectivity Center hub.
+     * 
+ */ + public com.google.longrunning.Operation deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists the Network Connectivity Center spokes in a specified project and
+     * location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.ListSpokesResponse listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSpokesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details about a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.Spoke getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSpokeMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.longrunning.Operation createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSpokeMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the parameters of a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.longrunning.Operation updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.longrunning.Operation deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static final class HubServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private HubServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Lists the Network Connectivity Center hubs associated with a given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listHubs( + com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details about a Network Connectivity Center hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getHub( + com.google.cloud.networkconnectivity.v1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new Network Connectivity Center hub in the specified project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createHub( + com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the description and/or labels of a Network Connectivity Center
+     * hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateHub( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a Network Connectivity Center hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteHub( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists the Network Connectivity Center spokes in a specified project and
+     * location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSpokes( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details about a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSpoke( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSpoke( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the parameters of a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSpoke( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSpoke( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_HUBS = 0; + private static final int METHODID_GET_HUB = 1; + private static final int METHODID_CREATE_HUB = 2; + private static final int METHODID_UPDATE_HUB = 3; + private static final int METHODID_DELETE_HUB = 4; + private static final int METHODID_LIST_SPOKES = 5; + private static final int METHODID_GET_SPOKE = 6; + private static final int METHODID_CREATE_SPOKE = 7; + private static final int METHODID_UPDATE_SPOKE = 8; + private static final int METHODID_DELETE_SPOKE = 9; + + 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 HubServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(HubServiceImplBase 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_HUBS: + serviceImpl.listHubs((com.google.cloud.networkconnectivity.v1.ListHubsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_HUB: + serviceImpl.getHub((com.google.cloud.networkconnectivity.v1.GetHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_HUB: + serviceImpl.createHub((com.google.cloud.networkconnectivity.v1.CreateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_HUB: + serviceImpl.updateHub((com.google.cloud.networkconnectivity.v1.UpdateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_HUB: + serviceImpl.deleteHub((com.google.cloud.networkconnectivity.v1.DeleteHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SPOKES: + serviceImpl.listSpokes((com.google.cloud.networkconnectivity.v1.ListSpokesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SPOKE: + serviceImpl.getSpoke((com.google.cloud.networkconnectivity.v1.GetSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SPOKE: + serviceImpl.createSpoke((com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SPOKE: + serviceImpl.updateSpoke((com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SPOKE: + serviceImpl.deleteSpoke((com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + HubServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("HubService"); + } + } + + private static final class HubServiceFileDescriptorSupplier + extends HubServiceBaseDescriptorSupplier { + HubServiceFileDescriptorSupplier() {} + } + + private static final class HubServiceMethodDescriptorSupplier + extends HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) + .addMethod(getListHubsMethod()) + .addMethod(getGetHubMethod()) + .addMethod(getCreateHubMethod()) + .addMethod(getUpdateHubMethod()) + .addMethod(getDeleteHubMethod()) + .addMethod(getListSpokesMethod()) + .addMethod(getGetSpokeMethod()) + .addMethod(getCreateSpokeMethod()) + .addMethod(getUpdateSpokeMethod()) + .addMethod(getDeleteSpokeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java b/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java new file mode 100644 index 000000000000..1080ea6c081c --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java @@ -0,0 +1,566 @@ +package com.google.cloud.networkconnectivity.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Policy-Based Routing allows GCP customers to specify flexibile routing
+ * policies for Layer 4 traffic traversing through the connected service.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networkconnectivity/v1/policy_based_routing.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class PolicyBasedRoutingServiceGrpc { + + private PolicyBasedRoutingServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListPolicyBasedRoutesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPolicyBasedRoutes", + requestType = com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListPolicyBasedRoutesMethod() { + io.grpc.MethodDescriptor getListPolicyBasedRoutesMethod; + if ((getListPolicyBasedRoutesMethod = PolicyBasedRoutingServiceGrpc.getListPolicyBasedRoutesMethod) == null) { + synchronized (PolicyBasedRoutingServiceGrpc.class) { + if ((getListPolicyBasedRoutesMethod = PolicyBasedRoutingServiceGrpc.getListPolicyBasedRoutesMethod) == null) { + PolicyBasedRoutingServiceGrpc.getListPolicyBasedRoutesMethod = getListPolicyBasedRoutesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPolicyBasedRoutes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.getDefaultInstance())) + .setSchemaDescriptor(new PolicyBasedRoutingServiceMethodDescriptorSupplier("ListPolicyBasedRoutes")) + .build(); + } + } + } + return getListPolicyBasedRoutesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetPolicyBasedRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPolicyBasedRoute", + requestType = com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetPolicyBasedRouteMethod() { + io.grpc.MethodDescriptor getGetPolicyBasedRouteMethod; + if ((getGetPolicyBasedRouteMethod = PolicyBasedRoutingServiceGrpc.getGetPolicyBasedRouteMethod) == null) { + synchronized (PolicyBasedRoutingServiceGrpc.class) { + if ((getGetPolicyBasedRouteMethod = PolicyBasedRoutingServiceGrpc.getGetPolicyBasedRouteMethod) == null) { + PolicyBasedRoutingServiceGrpc.getGetPolicyBasedRouteMethod = getGetPolicyBasedRouteMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicyBasedRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance())) + .setSchemaDescriptor(new PolicyBasedRoutingServiceMethodDescriptorSupplier("GetPolicyBasedRoute")) + .build(); + } + } + } + return getGetPolicyBasedRouteMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreatePolicyBasedRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePolicyBasedRoute", + requestType = com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreatePolicyBasedRouteMethod() { + io.grpc.MethodDescriptor getCreatePolicyBasedRouteMethod; + if ((getCreatePolicyBasedRouteMethod = PolicyBasedRoutingServiceGrpc.getCreatePolicyBasedRouteMethod) == null) { + synchronized (PolicyBasedRoutingServiceGrpc.class) { + if ((getCreatePolicyBasedRouteMethod = PolicyBasedRoutingServiceGrpc.getCreatePolicyBasedRouteMethod) == null) { + PolicyBasedRoutingServiceGrpc.getCreatePolicyBasedRouteMethod = getCreatePolicyBasedRouteMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePolicyBasedRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new PolicyBasedRoutingServiceMethodDescriptorSupplier("CreatePolicyBasedRoute")) + .build(); + } + } + } + return getCreatePolicyBasedRouteMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeletePolicyBasedRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePolicyBasedRoute", + requestType = com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeletePolicyBasedRouteMethod() { + io.grpc.MethodDescriptor getDeletePolicyBasedRouteMethod; + if ((getDeletePolicyBasedRouteMethod = PolicyBasedRoutingServiceGrpc.getDeletePolicyBasedRouteMethod) == null) { + synchronized (PolicyBasedRoutingServiceGrpc.class) { + if ((getDeletePolicyBasedRouteMethod = PolicyBasedRoutingServiceGrpc.getDeletePolicyBasedRouteMethod) == null) { + PolicyBasedRoutingServiceGrpc.getDeletePolicyBasedRouteMethod = getDeletePolicyBasedRouteMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePolicyBasedRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new PolicyBasedRoutingServiceMethodDescriptorSupplier("DeletePolicyBasedRoute")) + .build(); + } + } + } + return getDeletePolicyBasedRouteMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static PolicyBasedRoutingServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PolicyBasedRoutingServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PolicyBasedRoutingServiceStub(channel, callOptions); + } + }; + return PolicyBasedRoutingServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static PolicyBasedRoutingServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PolicyBasedRoutingServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PolicyBasedRoutingServiceBlockingStub(channel, callOptions); + } + }; + return PolicyBasedRoutingServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static PolicyBasedRoutingServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PolicyBasedRoutingServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PolicyBasedRoutingServiceFutureStub(channel, callOptions); + } + }; + return PolicyBasedRoutingServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Policy-Based Routing allows GCP customers to specify flexibile routing
+   * policies for Layer 4 traffic traversing through the connected service.
+   * 
+ */ + public static abstract class PolicyBasedRoutingServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists PolicyBasedRoutes in a given project and location.
+     * 
+ */ + public void listPolicyBasedRoutes(com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPolicyBasedRoutesMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single PolicyBasedRoute.
+     * 
+ */ + public void getPolicyBasedRoute(com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyBasedRouteMethod(), responseObserver); + } + + /** + *
+     * Creates a new PolicyBasedRoute in a given project and location.
+     * 
+ */ + public void createPolicyBasedRoute(com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePolicyBasedRouteMethod(), responseObserver); + } + + /** + *
+     * Deletes a single PolicyBasedRoute.
+     * 
+ */ + public void deletePolicyBasedRoute(com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePolicyBasedRouteMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListPolicyBasedRoutesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest, + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse>( + this, METHODID_LIST_POLICY_BASED_ROUTES))) + .addMethod( + getGetPolicyBasedRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute>( + this, METHODID_GET_POLICY_BASED_ROUTE))) + .addMethod( + getCreatePolicyBasedRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_POLICY_BASED_ROUTE))) + .addMethod( + getDeletePolicyBasedRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_POLICY_BASED_ROUTE))) + .build(); + } + } + + /** + *
+   * Policy-Based Routing allows GCP customers to specify flexibile routing
+   * policies for Layer 4 traffic traversing through the connected service.
+   * 
+ */ + public static final class PolicyBasedRoutingServiceStub extends io.grpc.stub.AbstractAsyncStub { + private PolicyBasedRoutingServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PolicyBasedRoutingServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PolicyBasedRoutingServiceStub(channel, callOptions); + } + + /** + *
+     * Lists PolicyBasedRoutes in a given project and location.
+     * 
+ */ + public void listPolicyBasedRoutes(com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPolicyBasedRoutesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single PolicyBasedRoute.
+     * 
+ */ + public void getPolicyBasedRoute(com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPolicyBasedRouteMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new PolicyBasedRoute in a given project and location.
+     * 
+ */ + public void createPolicyBasedRoute(com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePolicyBasedRouteMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single PolicyBasedRoute.
+     * 
+ */ + public void deletePolicyBasedRoute(com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePolicyBasedRouteMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Policy-Based Routing allows GCP customers to specify flexibile routing
+   * policies for Layer 4 traffic traversing through the connected service.
+   * 
+ */ + public static final class PolicyBasedRoutingServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private PolicyBasedRoutingServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PolicyBasedRoutingServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PolicyBasedRoutingServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists PolicyBasedRoutes in a given project and location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse listPolicyBasedRoutes(com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPolicyBasedRoutesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single PolicyBasedRoute.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoute(com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPolicyBasedRouteMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new PolicyBasedRoute in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createPolicyBasedRoute(com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePolicyBasedRouteMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single PolicyBasedRoute.
+     * 
+ */ + public com.google.longrunning.Operation deletePolicyBasedRoute(com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePolicyBasedRouteMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Policy-Based Routing allows GCP customers to specify flexibile routing
+   * policies for Layer 4 traffic traversing through the connected service.
+   * 
+ */ + public static final class PolicyBasedRoutingServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private PolicyBasedRoutingServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PolicyBasedRoutingServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PolicyBasedRoutingServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Lists PolicyBasedRoutes in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listPolicyBasedRoutes( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPolicyBasedRoutesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single PolicyBasedRoute.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getPolicyBasedRoute( + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPolicyBasedRouteMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new PolicyBasedRoute in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createPolicyBasedRoute( + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePolicyBasedRouteMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single PolicyBasedRoute.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deletePolicyBasedRoute( + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePolicyBasedRouteMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_POLICY_BASED_ROUTES = 0; + private static final int METHODID_GET_POLICY_BASED_ROUTE = 1; + private static final int METHODID_CREATE_POLICY_BASED_ROUTE = 2; + private static final int METHODID_DELETE_POLICY_BASED_ROUTE = 3; + + 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 PolicyBasedRoutingServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(PolicyBasedRoutingServiceImplBase 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_POLICY_BASED_ROUTES: + serviceImpl.listPolicyBasedRoutes((com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_POLICY_BASED_ROUTE: + serviceImpl.getPolicyBasedRoute((com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_POLICY_BASED_ROUTE: + serviceImpl.createPolicyBasedRoute((com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_POLICY_BASED_ROUTE: + serviceImpl.deletePolicyBasedRoute((com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) 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 PolicyBasedRoutingServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + PolicyBasedRoutingServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("PolicyBasedRoutingService"); + } + } + + private static final class PolicyBasedRoutingServiceFileDescriptorSupplier + extends PolicyBasedRoutingServiceBaseDescriptorSupplier { + PolicyBasedRoutingServiceFileDescriptorSupplier() {} + } + + private static final class PolicyBasedRoutingServiceMethodDescriptorSupplier + extends PolicyBasedRoutingServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + PolicyBasedRoutingServiceMethodDescriptorSupplier(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 (PolicyBasedRoutingServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PolicyBasedRoutingServiceFileDescriptorSupplier()) + .addMethod(getListPolicyBasedRoutesMethod()) + .addMethod(getGetPolicyBasedRouteMethod()) + .addMethod(getCreatePolicyBasedRouteMethod()) + .addMethod(getDeletePolicyBasedRouteMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java new file mode 100644 index 000000000000..ea1de6f61b90 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java @@ -0,0 +1,81 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/common.proto + +package com.google.cloud.networkconnectivity.v1; + +public final class CommonProto { + private CommonProto() {} + 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_networkconnectivity_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/networkconnectivity/v1/co" + + "mmon.proto\022#google.cloud.networkconnecti" + + "vity.v1\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\032\037google/prot" + + "obuf/timestamp.proto\"\200\002\n\021OperationMetada" + + "ta\0224\n\013create_time\030\001 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.goo" + + "gle.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_me" + + "ssage\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellati" + + "on\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003B" + + "\327\003\n\'com.google.cloud.networkconnectivity" + + ".v1B\013CommonProtoP\001ZVgoogle.golang.org/ge" + + "nproto/googleapis/cloud/networkconnectiv" + + "ity/v1;networkconnectivity\252\002#Google.Clou" + + "d.NetworkConnectivity.V1\312\002#Google\\Cloud\\" + + "NetworkConnectivity\\V1\352\002&Google::Cloud::" + + "NetworkConnectivity::V1\352Az\n-compute.goog" + + "leapis.com/InterconnectAttachment\022Iproje" + + "cts/{project}/regions/{region}/interconn" + + "ectAttachments/{resource_id}\352AR\n\036compute" + + ".googleapis.com/Network\0220projects/{proje" + + "ct}/global/networks/{resource_id}b\006proto" + + "3" + }; + 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.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceDefinition); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java similarity index 64% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java index 38f69400c1a9..0cc58883b141 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java @@ -1,42 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * Request for [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub] method.
+ * Request for
+ * [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub]
+ * method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateHubRequest} */ -public final class CreateHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.CreateHubRequest) CreateHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateHubRequest.newBuilder() to construct. private CreateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateHubRequest() { parent_ = ""; hubId_ = ""; @@ -45,45 +29,38 @@ private CreateHubRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, - com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 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 @@ -92,31 +69,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 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 { @@ -125,18 +100,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int HUB_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object hubId_ = ""; /** - * - * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hubId. */ @java.lang.Override @@ -145,29 +116,29 @@ public java.lang.String getHubId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; } } /** - * - * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hubId. */ @java.lang.Override - public com.google.protobuf.ByteString getHubIdBytes() { + public com.google.protobuf.ByteString + getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hubId_ = b; return b; } else { @@ -178,16 +149,11 @@ public com.google.protobuf.ByteString getHubIdBytes() { public static final int HUB_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1.Hub hub_; /** - * - * *
    * Required. The initial values for a new hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ @java.lang.Override @@ -195,16 +161,11 @@ public boolean hasHub() { return hub_ != null; } /** - * - * *
    * Required. The initial values for a new hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ @java.lang.Override @@ -212,15 +173,11 @@ public com.google.cloud.networkconnectivity.v1.Hub getHub() { return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } /** - * - * *
    * Required. The initial values for a new hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { @@ -228,18 +185,15 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -250,7 +204,6 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -259,21 +212,20 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -284,15 +236,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -301,7 +254,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -313,7 +265,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -342,7 +295,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hubId_); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHub()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -355,21 +309,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.networkconnectivity.v1.CreateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.CreateHubRequest other = - (com.google.cloud.networkconnectivity.v1.CreateHubRequest) obj; + com.google.cloud.networkconnectivity.v1.CreateHubRequest other = (com.google.cloud.networkconnectivity.v1.CreateHubRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getHubId().equals(other.getHubId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getHubId() + .equals(other.getHubId())) return false; if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub().equals(other.getHub())) return false; + if (!getHub() + .equals(other.getHub())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -397,136 +354,131 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.CreateHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.CreateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub] method.
+   * Request for
+   * [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub]
+   * method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.CreateHubRequest) com.google.cloud.networkconnectivity.v1.CreateHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, - com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.CreateHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -543,9 +495,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; } @java.lang.Override @@ -564,11 +516,8 @@ public com.google.cloud.networkconnectivity.v1.CreateHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.CreateHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.CreateHubRequest result = - new com.google.cloud.networkconnectivity.v1.CreateHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.CreateHubRequest result = new com.google.cloud.networkconnectivity.v1.CreateHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -582,7 +531,9 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateHubRequ result.hubId_ = hubId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build(); + result.hub_ = hubBuilder_ == null + ? hub_ + : hubBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -593,39 +544,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateHubRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.CreateHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateHubRequest)other); } else { super.mergeFrom(other); return this; @@ -633,8 +583,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.CreateHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.CreateHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.CreateHubRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -679,37 +628,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - hubId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + hubId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getHubFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -719,27 +665,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string parent = 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; @@ -748,23 +689,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string parent = 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 { @@ -772,39 +710,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string 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() { @@ -814,23 +741,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -840,20 +761,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object hubId_ = ""; /** - * - * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hubId. */ public java.lang.String getHubId() { java.lang.Object ref = hubId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; @@ -862,21 +781,20 @@ public java.lang.String getHubId() { } } /** - * - * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hubId. */ - public com.google.protobuf.ByteString getHubIdBytes() { + public com.google.protobuf.ByteString + getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hubId_ = b; return b; } else { @@ -884,35 +802,28 @@ public com.google.protobuf.ByteString getHubIdBytes() { } } /** - * - * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The hubId to set. * @return This builder for chaining. */ - public Builder setHubId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHubId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hubId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearHubId() { @@ -922,21 +833,17 @@ public Builder clearHubId() { return this; } /** - * - * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for hubId to set. * @return This builder for chaining. */ - public Builder setHubIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHubIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hubId_ = value; bitField0_ |= 0x00000002; @@ -946,58 +853,39 @@ public Builder setHubIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networkconnectivity.v1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder> - hubBuilder_; + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> hubBuilder_; /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ public com.google.cloud.networkconnectivity.v1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } else { return hubBuilder_.getMessage(); } } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { @@ -1013,17 +901,14 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { + public Builder setHub( + com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { if (hubBuilder_ == null) { hub_ = builderForValue.build(); } else { @@ -1034,21 +919,17 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub.Builder builde return this; } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && hub_ != null - && hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + hub_ != null && + hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -1061,15 +942,11 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1082,15 +959,11 @@ public Builder clearHub() { return this; } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000004; @@ -1098,48 +971,36 @@ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { return getHubFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? + com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder>( - getHub(), getParentForChildren(), isClean()); + hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder>( + getHub(), + getParentForChildren(), + isClean()); hub_ = null; } return hubBuilder_; @@ -1147,14 +1008,12 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1165,13 +1024,13 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1180,14 +1039,12 @@ public java.lang.String getRequestId() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1198,14 +1055,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1213,14 +1071,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1231,28 +1087,24 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1263,7 +1115,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1273,14 +1124,12 @@ public Builder clearRequestId() { return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1291,23 +1140,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1317,12 +1164,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.CreateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.CreateHubRequest) private static final com.google.cloud.networkconnectivity.v1.CreateHubRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.CreateHubRequest(); } @@ -1331,27 +1178,27 @@ public static com.google.cloud.networkconnectivity.v1.CreateHubRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1366,4 +1213,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.CreateHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java similarity index 58% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java index bd70138d2883..a186543f7ef5 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java @@ -1,132 +1,86 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface CreateHubRequestOrBuilder - extends +public interface CreateHubRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.CreateHubRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hubId. */ java.lang.String getHubId(); /** - * - * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hubId. */ - com.google.protobuf.ByteString getHubIdBytes(); + com.google.protobuf.ByteString + getHubIdBytes(); /** - * - * *
    * Required. The initial values for a new hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ boolean hasHub(); /** - * - * *
    * Required. The initial values for a new hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ com.google.cloud.networkconnectivity.v1.Hub getHub(); /** - * - * *
    * Required. The initial values for a new hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -137,19 +91,16 @@ public interface CreateHubRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -160,8 +111,8 @@ public interface CreateHubRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequest.java new file mode 100644 index 000000000000..f88d016231c3 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequest.java @@ -0,0 +1,1207 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/policy_based_routing.proto + +package com.google.cloud.networkconnectivity.v1; + +/** + *
+ * Request for [PolicyBasedRouting.CreatePolicyBasedRoute][] method.
+ * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest} + */ +public final class CreatePolicyBasedRouteRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) + CreatePolicyBasedRouteRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreatePolicyBasedRouteRequest.newBuilder() to construct. + private CreatePolicyBasedRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreatePolicyBasedRouteRequest() { + parent_ = ""; + policyBasedRouteId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreatePolicyBasedRouteRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.class, com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. The parent resource's name of the PolicyBasedRoute.
+   * 
+ * + * 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 resource's name of the PolicyBasedRoute.
+   * 
+ * + * 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 POLICY_BASED_ROUTE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object policyBasedRouteId_ = ""; + /** + *
+   * Optional. Unique id for the Policy Based Route to create.
+   * 
+ * + * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The policyBasedRouteId. + */ + @java.lang.Override + public java.lang.String getPolicyBasedRouteId() { + java.lang.Object ref = policyBasedRouteId_; + 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(); + policyBasedRouteId_ = s; + return s; + } + } + /** + *
+   * Optional. Unique id for the Policy Based Route to create.
+   * 
+ * + * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for policyBasedRouteId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPolicyBasedRouteIdBytes() { + java.lang.Object ref = policyBasedRouteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + policyBasedRouteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICY_BASED_ROUTE_FIELD_NUMBER = 3; + private com.google.cloud.networkconnectivity.v1.PolicyBasedRoute policyBasedRoute_; + /** + *
+   * Required. Initial values for a new Policy Based Route.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the policyBasedRoute field is set. + */ + @java.lang.Override + public boolean hasPolicyBasedRoute() { + return policyBasedRoute_ != null; + } + /** + *
+   * Required. Initial values for a new Policy Based Route.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The policyBasedRoute. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoute() { + return policyBasedRoute_ == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() : policyBasedRoute_; + } + /** + *
+   * Required. Initial values for a new Policy Based Route.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPolicyBasedRouteOrBuilder() { + return policyBasedRoute_ == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() : policyBasedRoute_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + *
+   * Optional. An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and t
+   * he request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + *
+   * Optional. An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and t
+   * he request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyBasedRouteId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, policyBasedRouteId_); + } + if (policyBasedRoute_ != null) { + output.writeMessage(3, getPolicyBasedRoute()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyBasedRouteId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, policyBasedRouteId_); + } + if (policyBasedRoute_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPolicyBasedRoute()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += getUnknownFields().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.networkconnectivity.v1.CreatePolicyBasedRouteRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest other = (com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getPolicyBasedRouteId() + .equals(other.getPolicyBasedRouteId())) return false; + if (hasPolicyBasedRoute() != other.hasPolicyBasedRoute()) return false; + if (hasPolicyBasedRoute()) { + if (!getPolicyBasedRoute() + .equals(other.getPolicyBasedRoute())) return false; + } + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + POLICY_BASED_ROUTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getPolicyBasedRouteId().hashCode(); + if (hasPolicyBasedRoute()) { + hash = (37 * hash) + POLICY_BASED_ROUTE_FIELD_NUMBER; + hash = (53 * hash) + getPolicyBasedRoute().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest 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 [PolicyBasedRouting.CreatePolicyBasedRoute][] method.
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.class, com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + policyBasedRouteId_ = ""; + policyBasedRoute_ = null; + if (policyBasedRouteBuilder_ != null) { + policyBasedRouteBuilder_.dispose(); + policyBasedRouteBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest build() { + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest buildPartial() { + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest result = new com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.policyBasedRouteId_ = policyBasedRouteId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.policyBasedRoute_ = policyBasedRouteBuilder_ == null + ? policyBasedRoute_ + : policyBasedRouteBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.networkconnectivity.v1.CreatePolicyBasedRouteRequest) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest other) { + if (other == com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPolicyBasedRouteId().isEmpty()) { + policyBasedRouteId_ = other.policyBasedRouteId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasPolicyBasedRoute()) { + mergePolicyBasedRoute(other.getPolicyBasedRoute()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + policyBasedRouteId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getPolicyBasedRouteFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The parent resource's name of the PolicyBasedRoute.
+     * 
+ * + * 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 resource's name of the PolicyBasedRoute.
+     * 
+ * + * 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 resource's name of the PolicyBasedRoute.
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The parent resource's name of the PolicyBasedRoute.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The parent resource's name of the PolicyBasedRoute.
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object policyBasedRouteId_ = ""; + /** + *
+     * Optional. Unique id for the Policy Based Route to create.
+     * 
+ * + * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The policyBasedRouteId. + */ + public java.lang.String getPolicyBasedRouteId() { + java.lang.Object ref = policyBasedRouteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyBasedRouteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. Unique id for the Policy Based Route to create.
+     * 
+ * + * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for policyBasedRouteId. + */ + public com.google.protobuf.ByteString + getPolicyBasedRouteIdBytes() { + java.lang.Object ref = policyBasedRouteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + policyBasedRouteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. Unique id for the Policy Based Route to create.
+     * 
+ * + * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The policyBasedRouteId to set. + * @return This builder for chaining. + */ + public Builder setPolicyBasedRouteId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + policyBasedRouteId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Optional. Unique id for the Policy Based Route to create.
+     * 
+ * + * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearPolicyBasedRouteId() { + policyBasedRouteId_ = getDefaultInstance().getPolicyBasedRouteId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Optional. Unique id for the Policy Based Route to create.
+     * 
+ * + * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for policyBasedRouteId to set. + * @return This builder for chaining. + */ + public Builder setPolicyBasedRouteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + policyBasedRouteId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networkconnectivity.v1.PolicyBasedRoute policyBasedRoute_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> policyBasedRouteBuilder_; + /** + *
+     * Required. Initial values for a new Policy Based Route.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the policyBasedRoute field is set. + */ + public boolean hasPolicyBasedRoute() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Required. Initial values for a new Policy Based Route.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The policyBasedRoute. + */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoute() { + if (policyBasedRouteBuilder_ == null) { + return policyBasedRoute_ == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() : policyBasedRoute_; + } else { + return policyBasedRouteBuilder_.getMessage(); + } + } + /** + *
+     * Required. Initial values for a new Policy Based Route.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setPolicyBasedRoute(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { + if (policyBasedRouteBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + policyBasedRoute_ = value; + } else { + policyBasedRouteBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. Initial values for a new Policy Based Route.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setPolicyBasedRoute( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder builderForValue) { + if (policyBasedRouteBuilder_ == null) { + policyBasedRoute_ = builderForValue.build(); + } else { + policyBasedRouteBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. Initial values for a new Policy Based Route.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergePolicyBasedRoute(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { + if (policyBasedRouteBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + policyBasedRoute_ != null && + policyBasedRoute_ != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance()) { + getPolicyBasedRouteBuilder().mergeFrom(value); + } else { + policyBasedRoute_ = value; + } + } else { + policyBasedRouteBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. Initial values for a new Policy Based Route.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearPolicyBasedRoute() { + bitField0_ = (bitField0_ & ~0x00000004); + policyBasedRoute_ = null; + if (policyBasedRouteBuilder_ != null) { + policyBasedRouteBuilder_.dispose(); + policyBasedRouteBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. Initial values for a new Policy Based Route.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder getPolicyBasedRouteBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPolicyBasedRouteFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Initial values for a new Policy Based Route.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPolicyBasedRouteOrBuilder() { + if (policyBasedRouteBuilder_ != null) { + return policyBasedRouteBuilder_.getMessageOrBuilder(); + } else { + return policyBasedRoute_ == null ? + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() : policyBasedRoute_; + } + } + /** + *
+     * Required. Initial values for a new Policy Based Route.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> + getPolicyBasedRouteFieldBuilder() { + if (policyBasedRouteBuilder_ == null) { + policyBasedRouteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder>( + getPolicyBasedRoute(), + getParentForChildren(), + isClean()); + policyBasedRoute_ = null; + } + return policyBasedRouteBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + *
+     * Optional. An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and t
+     * he request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and t
+     * he request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and t
+     * he request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Optional. An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and t
+     * he request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Optional. An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and t
+     * he request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) + private static final com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePolicyBasedRouteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequestOrBuilder.java new file mode 100644 index 000000000000..57445d1c2212 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequestOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/policy_based_routing.proto + +package com.google.cloud.networkconnectivity.v1; + +public interface CreatePolicyBasedRouteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent resource's name of the PolicyBasedRoute.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent resource's name of the PolicyBasedRoute.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Optional. Unique id for the Policy Based Route to create.
+   * 
+ * + * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The policyBasedRouteId. + */ + java.lang.String getPolicyBasedRouteId(); + /** + *
+   * Optional. Unique id for the Policy Based Route to create.
+   * 
+ * + * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for policyBasedRouteId. + */ + com.google.protobuf.ByteString + getPolicyBasedRouteIdBytes(); + + /** + *
+   * Required. Initial values for a new Policy Based Route.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the policyBasedRoute field is set. + */ + boolean hasPolicyBasedRoute(); + /** + *
+   * Required. Initial values for a new Policy Based Route.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The policyBasedRoute. + */ + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoute(); + /** + *
+   * Required. Initial values for a new Policy Based Route.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPolicyBasedRouteOrBuilder(); + + /** + *
+   * Optional. An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and t
+   * he request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + *
+   * Optional. An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and t
+   * he request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString + getRequestIdBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java similarity index 63% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java index f4e0b920d667..60ed284ffeda 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java @@ -1,42 +1,25 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke].
+ * The request for
+ * [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateSpokeRequest} */ -public final class CreateSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.CreateSpokeRequest) CreateSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSpokeRequest.newBuilder() to construct. private CreateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSpokeRequest() { parent_ = ""; spokeId_ = ""; @@ -45,45 +28,38 @@ private CreateSpokeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 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 @@ -92,31 +68,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 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 { @@ -125,18 +99,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SPOKE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object spokeId_ = ""; /** - * - * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The spokeId. */ @java.lang.Override @@ -145,29 +115,29 @@ public java.lang.String getSpokeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; } } /** - * - * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for spokeId. */ @java.lang.Override - public com.google.protobuf.ByteString getSpokeIdBytes() { + public com.google.protobuf.ByteString + getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); spokeId_ = b; return b; } else { @@ -178,16 +148,11 @@ public com.google.protobuf.ByteString getSpokeIdBytes() { public static final int SPOKE_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1.Spoke spoke_; /** - * - * *
    * Required. The initial values for a new spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ @java.lang.Override @@ -195,55 +160,39 @@ public boolean hasSpoke() { return spoke_ != null; } /** - * - * *
    * Required. The initial values for a new spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } /** - * - * *
    * Required. The initial values for a new spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -254,7 +203,6 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -263,21 +211,20 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -288,15 +235,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -305,7 +253,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,7 +264,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -346,7 +294,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, spokeId_); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSpoke()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -359,21 +308,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.networkconnectivity.v1.CreateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest other = - (com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest other = (com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getSpokeId().equals(other.getSpokeId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getSpokeId() + .equals(other.getSpokeId())) return false; if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke().equals(other.getSpoke())) return false; + if (!getSpoke() + .equals(other.getSpoke())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -401,136 +353,130 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke].
+   * The request for
+   * [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.CreateSpokeRequest) com.google.cloud.networkconnectivity.v1.CreateSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -547,9 +493,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; } @java.lang.Override @@ -568,11 +514,8 @@ public com.google.cloud.networkconnectivity.v1.CreateSpokeRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.CreateSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest result = - new com.google.cloud.networkconnectivity.v1.CreateSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest result = new com.google.cloud.networkconnectivity.v1.CreateSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -586,7 +529,9 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateSpokeRe result.spokeId_ = spokeId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build(); + result.spoke_ = spokeBuilder_ == null + ? spoke_ + : spokeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -597,39 +542,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateSpokeRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateSpokeRequest)other); } else { super.mergeFrom(other); return this; @@ -637,8 +581,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -683,37 +626,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - spokeId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + spokeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getSpokeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -723,27 +663,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string parent = 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; @@ -752,23 +687,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string parent = 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 { @@ -776,39 +708,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string 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() { @@ -818,23 +739,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -844,20 +759,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object spokeId_ = ""; /** - * - * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The spokeId. */ public java.lang.String getSpokeId() { java.lang.Object ref = spokeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; @@ -866,21 +779,20 @@ public java.lang.String getSpokeId() { } } /** - * - * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for spokeId. */ - public com.google.protobuf.ByteString getSpokeIdBytes() { + public com.google.protobuf.ByteString + getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); spokeId_ = b; return b; } else { @@ -888,35 +800,28 @@ public com.google.protobuf.ByteString getSpokeIdBytes() { } } /** - * - * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpokeId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } spokeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSpokeId() { @@ -926,21 +831,17 @@ public Builder clearSpokeId() { return this; } /** - * - * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpokeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); spokeId_ = value; bitField0_ |= 0x00000002; @@ -950,58 +851,39 @@ public Builder setSpokeIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networkconnectivity.v1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> - spokeBuilder_; + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> spokeBuilder_; /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } else { return spokeBuilder_.getMessage(); } } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { @@ -1017,17 +899,14 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { + public Builder setSpoke( + com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { if (spokeBuilder_ == null) { spoke_ = builderForValue.build(); } else { @@ -1038,21 +917,17 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke.Builder bu return this; } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && spoke_ != null - && spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + spoke_ != null && + spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -1065,15 +940,11 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1086,15 +957,11 @@ public Builder clearSpoke() { return this; } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000004; @@ -1102,48 +969,36 @@ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { return getSpokeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? + com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( - getSpoke(), getParentForChildren(), isClean()); + spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( + getSpoke(), + getParentForChildren(), + isClean()); spoke_ = null; } return spokeBuilder_; @@ -1151,14 +1006,12 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder( private java.lang.Object requestId_ = ""; /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1169,13 +1022,13 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1184,14 +1037,12 @@ public java.lang.String getRequestId() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1202,14 +1053,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1217,14 +1069,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1235,28 +1085,24 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1267,7 +1113,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1277,14 +1122,12 @@ public Builder clearRequestId() { return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1295,23 +1138,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1321,12 +1162,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.CreateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.CreateSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.CreateSpokeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.CreateSpokeRequest(); } @@ -1335,27 +1176,27 @@ public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1370,4 +1211,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.CreateSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java similarity index 58% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java index d97544e35ebc..3a19585101aa 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java @@ -1,132 +1,86 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface CreateSpokeRequestOrBuilder - extends +public interface CreateSpokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.CreateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The spokeId. */ java.lang.String getSpokeId(); /** - * - * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for spokeId. */ - com.google.protobuf.ByteString getSpokeIdBytes(); + com.google.protobuf.ByteString + getSpokeIdBytes(); /** - * - * *
    * Required. The initial values for a new spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ boolean hasSpoke(); /** - * - * *
    * Required. The initial values for a new spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ com.google.cloud.networkconnectivity.v1.Spoke getSpoke(); /** - * - * *
    * Required. The initial values for a new spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -137,19 +91,16 @@ public interface CreateSpokeRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -160,8 +111,8 @@ public interface CreateSpokeRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java similarity index 64% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java index 6180045df1ff..7cf1f77cac25 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java @@ -1,42 +1,25 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub].
+ * The request for
+ * [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteHubRequest} */ -public final class DeleteHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.DeleteHubRequest) DeleteHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteHubRequest.newBuilder() to construct. private DeleteHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteHubRequest() { name_ = ""; requestId_ = ""; @@ -44,45 +27,38 @@ private DeleteHubRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, - com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -91,31 +67,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,18 +98,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -146,7 +117,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -155,21 +125,20 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -180,15 +149,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -197,7 +167,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +178,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -239,16 +209,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1.DeleteHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.DeleteHubRequest other = - (com.google.cloud.networkconnectivity.v1.DeleteHubRequest) obj; + com.google.cloud.networkconnectivity.v1.DeleteHubRequest other = (com.google.cloud.networkconnectivity.v1.DeleteHubRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,136 +241,130 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.DeleteHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub].
+   * The request for
+   * [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.DeleteHubRequest) com.google.cloud.networkconnectivity.v1.DeleteHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, - com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.DeleteHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; } @java.lang.Override @@ -431,11 +396,8 @@ public com.google.cloud.networkconnectivity.v1.DeleteHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.DeleteHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.DeleteHubRequest result = - new com.google.cloud.networkconnectivity.v1.DeleteHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.DeleteHubRequest result = new com.google.cloud.networkconnectivity.v1.DeleteHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -454,39 +416,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.DeleteHubRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.DeleteHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteHubRequest)other); } else { super.mergeFrom(other); return this; @@ -494,8 +455,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.DeleteHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.DeleteHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.DeleteHubRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -532,25 +492,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -560,27 +517,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -589,23 +541,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -613,39 +562,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -655,23 +593,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -681,14 +613,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -699,13 +629,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -714,14 +644,12 @@ public java.lang.String getRequestId() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -732,14 +660,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -747,14 +676,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -765,28 +692,24 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -797,7 +720,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -807,14 +729,12 @@ public Builder clearRequestId() { return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -825,23 +745,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -851,12 +769,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.DeleteHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.DeleteHubRequest) private static final com.google.cloud.networkconnectivity.v1.DeleteHubRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.DeleteHubRequest(); } @@ -865,27 +783,27 @@ public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -900,4 +818,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.DeleteHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java similarity index 55% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java index 8fab3d44d204..926e1844c73f 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java @@ -1,66 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface DeleteHubRequestOrBuilder - extends +public interface DeleteHubRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.DeleteHubRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -71,19 +44,16 @@ public interface DeleteHubRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -94,8 +64,8 @@ public interface DeleteHubRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequest.java new file mode 100644 index 000000000000..ac6d6258ede5 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequest.java @@ -0,0 +1,814 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/policy_based_routing.proto + +package com.google.cloud.networkconnectivity.v1; + +/** + *
+ * Request for [PolicyBasedRouting.DeletePolicyBasedRoute][] method.
+ * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest} + */ +public final class DeletePolicyBasedRouteRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) + DeletePolicyBasedRouteRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeletePolicyBasedRouteRequest.newBuilder() to construct. + private DeletePolicyBasedRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeletePolicyBasedRouteRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeletePolicyBasedRouteRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.class, com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. Name of the PolicyBasedRoute resource 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. Name of the PolicyBasedRoute resource 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; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + *
+   * Optional. An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and t
+   * he request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + *
+   * Optional. An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and t
+   * he request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = 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(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().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(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += getUnknownFields().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.networkconnectivity.v1.DeletePolicyBasedRouteRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest other = (com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest 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 [PolicyBasedRouting.DeletePolicyBasedRoute][] method.
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.class, com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest build() { + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest buildPartial() { + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest result = new com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.networkconnectivity.v1.DeletePolicyBasedRouteRequest) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest other) { + if (other == com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Name of the PolicyBasedRoute resource 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. Name of the PolicyBasedRoute resource 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. Name of the PolicyBasedRoute resource 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Name of the PolicyBasedRoute resource 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(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Name of the PolicyBasedRoute resource 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + *
+     * Optional. An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and t
+     * he request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and t
+     * he request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and t
+     * he request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Optional. An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and t
+     * he request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Optional. An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and t
+     * he request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) + private static final com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePolicyBasedRouteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequestOrBuilder.java new file mode 100644 index 000000000000..f2e7d2aba376 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequestOrBuilder.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/policy_based_routing.proto + +package com.google.cloud.networkconnectivity.v1; + +public interface DeletePolicyBasedRouteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the PolicyBasedRoute resource to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the PolicyBasedRoute resource to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Optional. An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and t
+   * he request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + *
+   * Optional. An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and t
+   * he request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString + getRequestIdBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java similarity index 64% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java index 95020321d8e4..bde74b026fa3 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java @@ -1,42 +1,25 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke].
+ * The request for
+ * [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteSpokeRequest} */ -public final class DeleteSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) DeleteSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteSpokeRequest.newBuilder() to construct. private DeleteSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteSpokeRequest() { name_ = ""; requestId_ = ""; @@ -44,45 +27,38 @@ private DeleteSpokeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -91,31 +67,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,18 +98,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -146,7 +117,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -155,21 +125,20 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -180,15 +149,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -197,7 +167,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +178,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -239,16 +209,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest other = - (com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest other = (com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,136 +241,130 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke].
+   * The request for
+   * [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) com.google.cloud.networkconnectivity.v1.DeleteSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; } @java.lang.Override @@ -431,11 +396,8 @@ public com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest result = - new com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest result = new com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -454,39 +416,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.DeleteSpokeRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest)other); } else { super.mergeFrom(other); return this; @@ -494,8 +455,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -532,25 +492,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -560,27 +517,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -589,23 +541,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -613,39 +562,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -655,23 +593,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -681,14 +613,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -699,13 +629,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -714,14 +644,12 @@ public java.lang.String getRequestId() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -732,14 +660,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -747,14 +676,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -765,28 +692,24 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -797,7 +720,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -807,14 +729,12 @@ public Builder clearRequestId() { return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -825,23 +745,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -851,12 +769,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(); } @@ -865,27 +783,27 @@ public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -900,4 +818,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java similarity index 56% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java index 96cfe5f6061a..7e5685f9491b 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java @@ -1,66 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface DeleteSpokeRequestOrBuilder - extends +public interface DeleteSpokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -71,19 +44,16 @@ public interface DeleteSpokeRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -94,8 +64,8 @@ public interface DeleteSpokeRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java similarity index 60% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java index ee7d77b0e600..09dd53c08e9c 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java @@ -1,87 +1,64 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * Request for [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub] method.
+ * Request for
+ * [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub]
+ * method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.GetHubRequest} */ -public final class GetHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetHubRequest) GetHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetHubRequest.newBuilder() to construct. private GetHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetHubRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.GetHubRequest.class, - com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the hub resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,31 +67,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the hub resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -159,15 +134,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.networkconnectivity.v1.GetHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.GetHubRequest other = - (com.google.cloud.networkconnectivity.v1.GetHubRequest) obj; + com.google.cloud.networkconnectivity.v1.GetHubRequest other = (com.google.cloud.networkconnectivity.v1.GetHubRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +162,131 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.GetHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.GetHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub] method.
+   * Request for
+   * [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub]
+   * method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.GetHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetHubRequest) com.google.cloud.networkconnectivity.v1.GetHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.GetHubRequest.class, - com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.GetHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +296,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; } @java.lang.Override @@ -347,11 +317,8 @@ public com.google.cloud.networkconnectivity.v1.GetHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.GetHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.GetHubRequest result = - new com.google.cloud.networkconnectivity.v1.GetHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.GetHubRequest result = new com.google.cloud.networkconnectivity.v1.GetHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -367,39 +334,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.GetHubRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.GetHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.GetHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.GetHubRequest)other); } else { super.mergeFrom(other); return this; @@ -407,8 +373,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.GetHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.GetHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.GetHubRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +405,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,27 +425,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -491,23 +449,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -515,39 +470,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -557,32 +501,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.GetHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetHubRequest) private static final com.google.cloud.networkconnectivity.v1.GetHubRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.GetHubRequest(); } @@ -606,27 +544,27 @@ public static com.google.cloud.networkconnectivity.v1.GetHubRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.GetHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java new file mode 100644 index 000000000000..4517f9b39e40 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/hub.proto + +package com.google.cloud.networkconnectivity.v1; + +public interface GetHubRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetHubRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the hub resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the hub resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequest.java new file mode 100644 index 000000000000..4266da7cecc6 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequest.java @@ -0,0 +1,580 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/policy_based_routing.proto + +package com.google.cloud.networkconnectivity.v1; + +/** + *
+ * Request for [PolicyBasedRouting.GetPolicyBasedRoute][] method.
+ * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest} + */ +public final class GetPolicyBasedRouteRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) + GetPolicyBasedRouteRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetPolicyBasedRouteRequest.newBuilder() to construct. + private GetPolicyBasedRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetPolicyBasedRouteRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetPolicyBasedRouteRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.class, com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. Name of the PolicyBasedRoute resource to get.
+   * 
+ * + * 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 PolicyBasedRoute resource to get.
+   * 
+ * + * 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_); + } + getUnknownFields().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 += getUnknownFields().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.networkconnectivity.v1.GetPolicyBasedRouteRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest other = (com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest 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.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest 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.networkconnectivity.v1.GetPolicyBasedRouteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest 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.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest 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.networkconnectivity.v1.GetPolicyBasedRouteRequest 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 [PolicyBasedRouting.GetPolicyBasedRoute][] method.
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.class, com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest build() { + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest buildPartial() { + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest result = new com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.networkconnectivity.v1.GetPolicyBasedRouteRequest) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest other) { + if (other == com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Name of the PolicyBasedRoute resource to get.
+     * 
+ * + * 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 PolicyBasedRoute resource to get.
+     * 
+ * + * 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 PolicyBasedRoute resource to get.
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Name of the PolicyBasedRoute resource to get.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Name of the PolicyBasedRoute resource to get.
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + 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.networkconnectivity.v1.GetPolicyBasedRouteRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) + private static final com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPolicyBasedRouteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.networkconnectivity.v1.GetPolicyBasedRouteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.java new file mode 100644 index 000000000000..06417084b704 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/policy_based_routing.proto + +package com.google.cloud.networkconnectivity.v1; + +public interface GetPolicyBasedRouteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the PolicyBasedRoute resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the PolicyBasedRoute resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java similarity index 60% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java index 38d368b3111d..10f760e5129d 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java @@ -1,87 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke].
+ * The request for
+ * [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.GetSpokeRequest} */ -public final class GetSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetSpokeRequest) GetSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSpokeRequest.newBuilder() to construct. private GetSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSpokeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, - com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the spoke resource.
    * 
* - * - * string name = 1 [(.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 @@ -90,31 +66,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the spoke resource.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -159,15 +133,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.networkconnectivity.v1.GetSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.GetSpokeRequest other = - (com.google.cloud.networkconnectivity.v1.GetSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.GetSpokeRequest other = (com.google.cloud.networkconnectivity.v1.GetSpokeRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +161,130 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.GetSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke].
+   * The request for
+   * [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.GetSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetSpokeRequest) com.google.cloud.networkconnectivity.v1.GetSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, - com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.GetSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +294,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; } @java.lang.Override @@ -347,11 +315,8 @@ public com.google.cloud.networkconnectivity.v1.GetSpokeRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.GetSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.GetSpokeRequest result = - new com.google.cloud.networkconnectivity.v1.GetSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.GetSpokeRequest result = new com.google.cloud.networkconnectivity.v1.GetSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -367,39 +332,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.GetSpokeReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.GetSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.GetSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.GetSpokeRequest)other); } else { super.mergeFrom(other); return this; @@ -407,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.GetSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.GetSpokeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.GetSpokeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,27 +423,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the spoke resource.
      * 
* - * - * string name = 1 [(.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; @@ -491,23 +447,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the spoke resource.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -515,39 +468,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the spoke resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the spoke resource.
      * 
* - * - * string 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() { @@ -557,32 +499,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the spoke resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +528,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.GetSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.GetSpokeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.GetSpokeRequest(); } @@ -606,27 +542,27 @@ public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +577,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.GetSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java new file mode 100644 index 000000000000..3293c5872324 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/hub.proto + +package com.google.cloud.networkconnectivity.v1; + +public interface GetSpokeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetSpokeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the spoke resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the spoke 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java similarity index 68% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java index e9387933ffba..d6abae1373af 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java @@ -1,46 +1,28 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * A hub is a collection of spokes. A single hub can contain spokes from
- * multiple regions. However, if any of a hub's spokes use the data transfer
- * feature, the resources associated with those spokes must all reside in the
- * same VPC network. Spokes that do not use data transfer can be associated
- * with any VPC network in your project.
+ * A Network Connectivity Center hub is a collection of spokes. A single hub
+ * can contain spokes from multiple regions. However, if any of a hub's spokes
+ * use the data transfer feature, the resources associated with those spokes
+ * must all reside in the same VPC network. Spokes that do not use data
+ * transfer can be associated with any VPC network in your project.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.Hub} */ -public final class Hub extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Hub extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.Hub) HubOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Hub.newBuilder() to construct. private Hub(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Hub() { name_ = ""; description_ = ""; @@ -51,48 +33,45 @@ private Hub() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Hub(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.Hub.class, - com.google.cloud.networkconnectivity.v1.Hub.Builder.class); + com.google.cloud.networkconnectivity.v1.Hub.class, com.google.cloud.networkconnectivity.v1.Hub.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -100,7 +79,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -109,15 +87,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; } } /** - * - * *
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -125,15 +102,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -144,15 +122,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the hub was created.
    * 
* - * .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 @@ -160,15 +134,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the hub was created.
    * 
* - * .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 @@ -176,14 +146,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the hub was created.
    * 
* - * .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() { @@ -193,15 +160,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time the hub was last updated.
    * 
* - * .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 @@ -209,15 +172,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time the hub was last updated.
    * 
* - * .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 @@ -225,14 +184,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time the hub was last updated.
    * 
* - * .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() { @@ -240,34 +196,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_Hub_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.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - 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_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -277,21 +231,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 4;
    */
   @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();
   }
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -305,8 +258,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -316,19 +267,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+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;
   }
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -338,11 +287,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @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();
     }
@@ -350,18 +299,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   public static final int DESCRIPTION_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object description_ = "";
   /**
-   *
-   *
    * 
    * An optional description of the hub.
    * 
* * string description = 5; - * * @return The description. */ @java.lang.Override @@ -370,29 +315,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * An optional description of the hub.
    * 
* * string description = 5; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -401,20 +346,16 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int UNIQUE_ID_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** - * - * *
-   * Output only. The Google-generated UUID for the hub. This value is unique across all hub
-   * resources. If a hub is deleted and another with the same name is created,
-   * the new hub is assigned a different unique_id.
+   * Output only. The Google-generated UUID for the hub. This value is unique
+   * across all hub resources. If a hub is deleted and another with the same
+   * name is created, the new hub is assigned a different unique_id.
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ @java.lang.Override @@ -423,31 +364,31 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** - * - * *
-   * Output only. The Google-generated UUID for the hub. This value is unique across all hub
-   * resources. If a hub is deleted and another with the same name is created,
-   * the new hub is assigned a different unique_id.
+   * Output only. The Google-generated UUID for the hub. This value is unique
+   * across all hub resources. If a hub is deleted and another with the same
+   * name is created, the new hub is assigned a different unique_id.
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -458,49 +399,33 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; /** - * - * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = - com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { + com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } public static final int ROUTING_VPCS_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private java.util.List routingVpcs_; /** - * - * *
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -514,8 +439,6 @@ public java.util.List getRou
     return routingVpcs_;
   }
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -525,13 +448,11 @@ public java.util.List getRou
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getRoutingVpcsOrBuilderList() {
     return routingVpcs_;
   }
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -545,8 +466,6 @@ public int getRoutingVpcsCount() {
     return routingVpcs_.size();
   }
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -560,8 +479,6 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int ind
     return routingVpcs_.get(index);
   }
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -577,7 +494,6 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -589,7 +505,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.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_);
     }
@@ -599,8 +516,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (updateTime_ != null) {
       output.writeMessage(3, getUpdateTime());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        4);
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_);
     }
@@ -626,20 +547,22 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime());
-    }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getUpdateTime());
+    }
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(4, labels__);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_);
@@ -648,10 +571,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, uniqueId_);
     }
     if (state_ != com.google.cloud.networkconnectivity.v1.State.STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(9, state_);
     }
     for (int i = 0; i < routingVpcs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, routingVpcs_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, routingVpcs_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -661,28 +586,34 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.networkconnectivity.v1.Hub)) {
       return super.equals(obj);
     }
-    com.google.cloud.networkconnectivity.v1.Hub other =
-        (com.google.cloud.networkconnectivity.v1.Hub) obj;
+    com.google.cloud.networkconnectivity.v1.Hub other = (com.google.cloud.networkconnectivity.v1.Hub) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime().equals(other.getCreateTime())) return false;
+      if (!getCreateTime()
+          .equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
-    }
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
-    if (!getDescription().equals(other.getDescription())) return false;
-    if (!getUniqueId().equals(other.getUniqueId())) return false;
+      if (!getUpdateTime()
+          .equals(other.getUpdateTime())) return false;
+    }
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
+    if (!getDescription()
+        .equals(other.getDescription())) return false;
+    if (!getUniqueId()
+        .equals(other.getUniqueId())) return false;
     if (state_ != other.state_) return false;
-    if (!getRoutingVpcsList().equals(other.getRoutingVpcsList())) return false;
+    if (!getRoutingVpcsList()
+        .equals(other.getRoutingVpcsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -723,160 +654,156 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub 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.networkconnectivity.v1.Hub parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.networkconnectivity.v1.Hub parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.networkconnectivity.v1.Hub parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.Hub prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 hub is a collection of spokes. A single hub can contain spokes from
-   * multiple regions. However, if any of a hub's spokes use the data transfer
-   * feature, the resources associated with those spokes must all reside in the
-   * same VPC network. Spokes that do not use data transfer can be associated
-   * with any VPC network in your project.
+   * A Network Connectivity Center hub is a collection of spokes. A single hub
+   * can contain spokes from multiple regions. However, if any of a hub's spokes
+   * use the data transfer feature, the resources associated with those spokes
+   * must all reside in the same VPC network. Spokes that do not use data
+   * transfer can be associated with any VPC network in your project.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.Hub} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.Hub) com.google.cloud.networkconnectivity.v1.HubOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 4: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.Hub.class, - com.google.cloud.networkconnectivity.v1.Hub.Builder.class); + com.google.cloud.networkconnectivity.v1.Hub.class, com.google.cloud.networkconnectivity.v1.Hub.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.Hub.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -907,9 +834,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor; } @java.lang.Override @@ -928,12 +855,9 @@ public com.google.cloud.networkconnectivity.v1.Hub build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.Hub buildPartial() { - com.google.cloud.networkconnectivity.v1.Hub result = - new com.google.cloud.networkconnectivity.v1.Hub(this); + com.google.cloud.networkconnectivity.v1.Hub result = new com.google.cloud.networkconnectivity.v1.Hub(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -956,10 +880,14 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Hub result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.labels_ = internalGetLabels(); @@ -980,39 +908,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Hub result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.Hub) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.Hub) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.Hub)other); } else { super.mergeFrom(other); return this; @@ -1032,7 +959,8 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Hub other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000008; if (!other.getDescription().isEmpty()) { description_ = other.description_; @@ -1065,10 +993,9 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Hub other) { routingVpcsBuilder_ = null; routingVpcs_ = other.routingVpcs_; bitField0_ = (bitField0_ & ~0x00000080); - routingVpcsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRoutingVpcsFieldBuilder() - : null; + routingVpcsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRoutingVpcsFieldBuilder() : null; } else { routingVpcsBuilder_.addAllMessages(other.routingVpcs_); } @@ -1100,75 +1027,68 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 66: - { - uniqueId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 66 - case 72: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 72 - case 82: - { - com.google.cloud.networkconnectivity.v1.RoutingVPC m = - input.readMessage( - com.google.cloud.networkconnectivity.v1.RoutingVPC.parser(), - extensionRegistry); - if (routingVpcsBuilder_ == null) { - ensureRoutingVpcsIsMutable(); - routingVpcs_.add(m); - } else { - routingVpcsBuilder_.addMessage(m); - } - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 66: { + uniqueId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 72: { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 72 + case 82: { + com.google.cloud.networkconnectivity.v1.RoutingVPC m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.RoutingVPC.parser(), + extensionRegistry); + if (routingVpcsBuilder_ == null) { + ensureRoutingVpcsIsMutable(); + routingVpcs_.add(m); + } else { + routingVpcsBuilder_.addMessage(m); + } + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1178,13 +1098,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1192,13 +1109,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1207,8 +1124,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1216,14 +1131,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1231,8 +1147,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1240,22 +1154,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1263,7 +1173,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1273,8 +1182,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1282,14 +1189,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1299,58 +1204,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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) { @@ -1366,17 +1252,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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(); } else { @@ -1387,21 +1270,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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 (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1414,15 +1293,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1435,15 +1310,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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() { bitField0_ |= 0x00000002; @@ -1451,48 +1322,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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_; @@ -1500,58 +1359,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .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) { @@ -1567,17 +1407,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .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(); } else { @@ -1588,21 +1425,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .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 (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1615,15 +1448,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1636,15 +1465,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .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() { bitField0_ |= 0x00000004; @@ -1652,66 +1477,56 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1720,13 +1535,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1736,21 +1548,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 4;
      */
     @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();
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1764,8 +1575,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1775,19 +1584,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+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;
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1797,25 +1604,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @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();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1824,22 +1629,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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() {
       bitField0_ |= 0x00000008;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1848,20 +1654,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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);
+    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);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1870,28 +1673,28 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 4;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.lang.Object description_ = "";
     /**
-     *
-     *
      * 
      * An optional description of the hub.
      * 
* * string description = 5; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1900,21 +1703,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * An optional description of the hub.
      * 
* * string description = 5; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1922,35 +1724,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * An optional description of the hub.
      * 
* * string description = 5; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * An optional description of the hub.
      * 
* * string description = 5; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1960,21 +1755,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * An optional description of the hub.
      * 
* * string description = 5; - * * @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(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -1984,22 +1775,20 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object uniqueId_ = ""; /** - * - * *
-     * Output only. The Google-generated UUID for the hub. This value is unique across all hub
-     * resources. If a hub is deleted and another with the same name is created,
-     * the new hub is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the hub. This value is unique
+     * across all hub resources. If a hub is deleted and another with the same
+     * name is created, the new hub is assigned a different unique_id.
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -2008,23 +1797,22 @@ public java.lang.String getUniqueId() { } } /** - * - * *
-     * Output only. The Google-generated UUID for the hub. This value is unique across all hub
-     * resources. If a hub is deleted and another with the same name is created,
-     * the new hub is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the hub. This value is unique
+     * across all hub resources. If a hub is deleted and another with the same
+     * name is created, the new hub is assigned a different unique_id.
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -2032,39 +1820,32 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { } } /** - * - * *
-     * Output only. The Google-generated UUID for the hub. This value is unique across all hub
-     * resources. If a hub is deleted and another with the same name is created,
-     * the new hub is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the hub. This value is unique
+     * across all hub resources. If a hub is deleted and another with the same
+     * name is created, the new hub is assigned a different unique_id.
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uniqueId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
-     * Output only. The Google-generated UUID for the hub. This value is unique across all hub
-     * resources. If a hub is deleted and another with the same name is created,
-     * the new hub is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the hub. This value is unique
+     * across all hub resources. If a hub is deleted and another with the same
+     * name is created, the new hub is assigned a different unique_id.
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -2074,23 +1855,19 @@ public Builder clearUniqueId() { return this; } /** - * - * *
-     * Output only. The Google-generated UUID for the hub. This value is unique across all hub
-     * resources. If a hub is deleted and another with the same name is created,
-     * the new hub is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the hub. This value is unique
+     * across all hub resources. If a hub is deleted and another with the same
+     * name is created, the new hub is assigned a different unique_id.
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000020; @@ -2100,33 +1877,22 @@ public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2137,35 +1903,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = - com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2179,16 +1934,11 @@ public Builder setState(com.google.cloud.networkconnectivity.v1.State value) { return this; } /** - * - * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -2199,26 +1949,18 @@ public Builder clearState() { } private java.util.List routingVpcs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRoutingVpcsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - routingVpcs_ = - new java.util.ArrayList( - routingVpcs_); + routingVpcs_ = new java.util.ArrayList(routingVpcs_); bitField0_ |= 0x00000080; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.RoutingVPC, - com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, - com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder> - routingVpcsBuilder_; + com.google.cloud.networkconnectivity.v1.RoutingVPC, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder> routingVpcsBuilder_; /** - * - * *
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2235,8 +1977,6 @@ public java.util.List getRou
       }
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2253,8 +1993,6 @@ public int getRoutingVpcsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2271,8 +2009,6 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int ind
       }
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2296,8 +2032,6 @@ public Builder setRoutingVpcs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2318,8 +2052,6 @@ public Builder setRoutingVpcs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2342,8 +2074,6 @@ public Builder addRoutingVpcs(com.google.cloud.networkconnectivity.v1.RoutingVPC
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2367,8 +2097,6 @@ public Builder addRoutingVpcs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2389,8 +2117,6 @@ public Builder addRoutingVpcs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2411,8 +2137,6 @@ public Builder addRoutingVpcs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2425,7 +2149,8 @@ public Builder addAllRoutingVpcs(
         java.lang.Iterable values) {
       if (routingVpcsBuilder_ == null) {
         ensureRoutingVpcsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, routingVpcs_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, routingVpcs_);
         onChanged();
       } else {
         routingVpcsBuilder_.addAllMessages(values);
@@ -2433,8 +2158,6 @@ public Builder addAllRoutingVpcs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2454,8 +2177,6 @@ public Builder clearRoutingVpcs() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2475,8 +2196,6 @@ public Builder removeRoutingVpcs(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2490,8 +2209,6 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder getRoutingVpcs
       return getRoutingVpcsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2503,14 +2220,11 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder getRoutingVpcs
     public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder(
         int index) {
       if (routingVpcsBuilder_ == null) {
-        return routingVpcs_.get(index);
-      } else {
+        return routingVpcs_.get(index);  } else {
         return routingVpcsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2519,8 +2233,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
      *
      * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
      */
-    public java.util.List
-        getRoutingVpcsOrBuilderList() {
+    public java.util.List 
+         getRoutingVpcsOrBuilderList() {
       if (routingVpcsBuilder_ != null) {
         return routingVpcsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2528,8 +2242,6 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
       }
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2539,12 +2251,10 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
      * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
      */
     public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcsBuilder() {
-      return getRoutingVpcsFieldBuilder()
-          .addBuilder(com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
+      return getRoutingVpcsFieldBuilder().addBuilder(
+          com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2555,13 +2265,10 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcs
      */
     public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcsBuilder(
         int index) {
-      return getRoutingVpcsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
+      return getRoutingVpcsFieldBuilder().addBuilder(
+          index, com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2570,30 +2277,27 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcs
      *
      * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
      */
-    public java.util.List
-        getRoutingVpcsBuilderList() {
+    public java.util.List 
+         getRoutingVpcsBuilderList() {
       return getRoutingVpcsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.networkconnectivity.v1.RoutingVPC,
-            com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder,
-            com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder>
+        com.google.cloud.networkconnectivity.v1.RoutingVPC, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder> 
         getRoutingVpcsFieldBuilder() {
       if (routingVpcsBuilder_ == null) {
-        routingVpcsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.networkconnectivity.v1.RoutingVPC,
-                com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder,
-                com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder>(
-                routingVpcs_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean());
+        routingVpcsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.networkconnectivity.v1.RoutingVPC, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder>(
+                routingVpcs_,
+                ((bitField0_ & 0x00000080) != 0),
+                getParentForChildren(),
+                isClean());
         routingVpcs_ = null;
       }
       return routingVpcsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2603,12 +2307,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.Hub)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.Hub)
   private static final com.google.cloud.networkconnectivity.v1.Hub DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.Hub();
   }
@@ -2617,27 +2321,27 @@ public static com.google.cloud.networkconnectivity.v1.Hub getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Hub parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Hub parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2652,4 +2356,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.networkconnectivity.v1.Hub getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
similarity index 100%
rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
similarity index 74%
rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
index 3c96bf01cfb1..425f1e0e55fb 100644
--- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
+++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.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/networkconnectivity/v1/hub.proto
 
 package com.google.cloud.networkconnectivity.v1;
 
-public interface HubOrBuilder
-    extends
+public interface HubOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.Hub)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -33,13 +15,10 @@ public interface HubOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -47,90 +26,66 @@ public interface HubOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The time the hub was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the hub was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the hub was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the hub was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time the hub was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time the hub was last updated.
    * 
* - * .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(); /** - * - * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -141,8 +96,6 @@ public interface HubOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -151,13 +104,15 @@ public interface HubOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -166,10 +121,9 @@ public interface HubOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -179,13 +133,11 @@ public interface HubOrBuilder
    * map<string, string> labels = 4;
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -194,94 +146,73 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * An optional description of the hub.
    * 
* * string description = 5; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * An optional description of the hub.
    * 
* * string description = 5; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
-   * Output only. The Google-generated UUID for the hub. This value is unique across all hub
-   * resources. If a hub is deleted and another with the same name is created,
-   * the new hub is assigned a different unique_id.
+   * Output only. The Google-generated UUID for the hub. This value is unique
+   * across all hub resources. If a hub is deleted and another with the same
+   * name is created, the new hub is assigned a different unique_id.
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ java.lang.String getUniqueId(); /** - * - * *
-   * Output only. The Google-generated UUID for the hub. This value is unique across all hub
-   * resources. If a hub is deleted and another with the same name is created,
-   * the new hub is assigned a different unique_id.
+   * Output only. The Google-generated UUID for the hub. This value is unique
+   * across all hub resources. If a hub is deleted and another with the same
+   * name is created, the new hub is assigned a different unique_id.
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString getUniqueIdBytes(); + com.google.protobuf.ByteString + getUniqueIdBytes(); /** - * - * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.networkconnectivity.v1.State getState(); /** - * - * *
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -290,10 +221,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
-  java.util.List getRoutingVpcsList();
+  java.util.List 
+      getRoutingVpcsList();
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -304,8 +234,6 @@ java.lang.String getLabelsOrDefault(
    */
   com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int index);
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -316,8 +244,6 @@ java.lang.String getLabelsOrDefault(
    */
   int getRoutingVpcsCount();
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -326,11 +252,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
-  java.util.List
+  java.util.List 
       getRoutingVpcsOrBuilderList();
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -339,5 +263,6 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
-  com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder(int index);
+  com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder(
+      int index);
 }
diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java
new file mode 100644
index 000000000000..2a88f7200aa9
--- /dev/null
+++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java
@@ -0,0 +1,477 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/networkconnectivity/v1/hub.proto
+
+package com.google.cloud.networkconnectivity.v1;
+
+public final class HubProto {
+  private HubProto() {}
+  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_networkconnectivity_v1_Hub_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_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/networkconnectivity/v1/hu" +
+      "b.proto\022#google.cloud.networkconnectivit" +
+      "y.v1\032\034google/api/annotations.proto\032\027goog" +
+      "le/api/client.proto\032\037google/api/field_be" +
+      "havior.proto\032\031google/api/resource.proto\032" +
+      "#google/longrunning/operations.proto\032 go" +
+      "ogle/protobuf/field_mask.proto\032\037google/p" +
+      "rotobuf/timestamp.proto\"\212\004\n\003Hub\022\021\n\004name\030" +
+      "\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132\032.google" +
+      ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" +
+      "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022D" +
+      "\n\006labels\030\004 \003(\01324.google.cloud.networkcon" +
+      "nectivity.v1.Hub.LabelsEntry\022\023\n\013descript" +
+      "ion\030\005 \001(\t\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022>\n\005sta" +
+      "te\030\t \001(\0162*.google.cloud.networkconnectiv" +
+      "ity.v1.StateB\003\340A\003\022E\n\014routing_vpcs\030\n \003(\0132" +
+      "/.google.cloud.networkconnectivity.v1.Ro" +
+      "utingVPC\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" +
+      "value\030\002 \001(\t:\0028\001:[\352AX\n&networkconnectivit" +
+      "y.googleapis.com/Hub\022.projects/{project}" +
+      "/locations/global/hubs/{hub}\"\177\n\nRoutingV" +
+      "PC\0220\n\003uri\030\001 \001(\tB#\372A \n\036compute.googleapis" +
+      ".com/Network\022?\n2required_for_new_site_to" +
+      "_site_data_transfer_spokes\030\002 \001(\010B\003\340A\003\"\276\006" +
+      "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create_tim" +
+      "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" +
+      "\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf." +
+      "TimestampB\003\340A\003\022F\n\006labels\030\004 \003(\01326.google." +
+      "cloud.networkconnectivity.v1.Spoke.Label" +
+      "sEntry\022\023\n\013description\030\005 \001(\t\022;\n\003hub\030\006 \001(\t" +
+      "B.\340A\005\372A(\n&networkconnectivity.googleapis" +
+      ".com/Hub\022Q\n\022linked_vpn_tunnels\030\021 \001(\01325.g" +
+      "oogle.cloud.networkconnectivity.v1.Linke" +
+      "dVpnTunnels\022k\n\037linked_interconnect_attac" +
+      "hments\030\022 \001(\0132B.google.cloud.networkconne" +
+      "ctivity.v1.LinkedInterconnectAttachments" +
+      "\022n\n!linked_router_appliance_instances\030\023 " +
+      "\001(\0132C.google.cloud.networkconnectivity.v" +
+      "1.LinkedRouterApplianceInstances\022\026\n\tuniq" +
+      "ue_id\030\013 \001(\tB\003\340A\003\022>\n\005state\030\017 \001(\0162*.google" +
+      ".cloud.networkconnectivity.v1.StateB\003\340A\003" +
+      "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " +
+      "\001(\t:\0028\001:e\352Ab\n(networkconnectivity.google" +
+      "apis.com/Spoke\0226projects/{project}/locat" +
+      "ions/{location}/spokes/{spoke}\"\225\001\n\017ListH" +
+      "ubsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" +
+      "tions.googleapis.com/Location\022\021\n\tpage_si" +
+      "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004" +
+      " \001(\t\022\020\n\010order_by\030\005 \001(\t\"x\n\020ListHubsRespon" +
+      "se\0226\n\004hubs\030\001 \003(\0132(.google.cloud.networkc" +
+      "onnectivity.v1.Hub\022\027\n\017next_page_token\030\002 " +
+      "\001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\rGetHubReques" +
+      "t\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&networkconnecti" +
+      "vity.googleapis.com/Hub\"\267\001\n\020CreateHubReq" +
+      "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." +
+      "googleapis.com/Location\022\023\n\006hub_id\030\002 \001(\tB" +
+      "\003\340A\002\022:\n\003hub\030\003 \001(\0132(.google.cloud.network" +
+      "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\004" +
+      " \001(\tB\003\340A\001\"\235\001\n\020UpdateHubRequest\0224\n\013update" +
+      "_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB" +
+      "\003\340A\001\022:\n\003hub\030\002 \001(\0132(.google.cloud.network" +
+      "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\003" +
+      " \001(\tB\003\340A\001\"i\n\020DeleteHubRequest\022<\n\004name\030\001 " +
+      "\001(\tB.\340A\002\372A(\n&networkconnectivity.googlea" +
+      "pis.com/Hub\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\227\001\n" +
+      "\021ListSpokesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" +
+      "A#\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\006" +
+      "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\022ListSp" +
+      "okesResponse\022:\n\006spokes\030\001 \003(\0132*.google.cl" +
+      "oud.networkconnectivity.v1.Spoke\022\027\n\017next" +
+      "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q" +
+      "\n\017GetSpokeRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n" +
+      "(networkconnectivity.googleapis.com/Spok" +
+      "e\"\277\001\n\022CreateSpokeRequest\0229\n\006parent\030\001 \001(\t" +
+      "B)\340A\002\372A#\n!locations.googleapis.com/Locat" +
+      "ion\022\025\n\010spoke_id\030\002 \001(\tB\003\340A\002\022>\n\005spoke\030\003 \001(" +
+      "\0132*.google.cloud.networkconnectivity.v1." +
+      "SpokeB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\022" +
+      "UpdateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132" +
+      "\032.google.protobuf.FieldMaskB\003\340A\001\022>\n\005spok" +
+      "e\030\002 \001(\0132*.google.cloud.networkconnectivi" +
+      "ty.v1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A" +
+      "\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\tB0\340" +
+      "A\002\372A*\n(networkconnectivity.googleapis.co" +
+      "m/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\250\001\n\020Lin" +
+      "kedVpnTunnels\0223\n\004uris\030\001 \003(\tB%\372A\"\n comput" +
+      "e.googleapis.com/VpnTunnel\022\"\n\032site_to_si" +
+      "te_data_transfer\030\002 \001(\010\022;\n\013vpc_network\030\003 " +
+      "\001(\tB&\340A\003\372A \n\036compute.googleapis.com/Netw" +
+      "ork\"\302\001\n\035LinkedInterconnectAttachments\022@\n" +
+      "\004uris\030\001 \003(\tB2\372A/\n-compute.googleapis.com" +
+      "/InterconnectAttachment\022\"\n\032site_to_site_" +
+      "data_transfer\030\002 \001(\010\022;\n\013vpc_network\030\003 \001(\t" +
+      "B&\340A\003\372A \n\036compute.googleapis.com/Network" +
+      "\"\322\001\n\036LinkedRouterApplianceInstances\022O\n\ti" +
+      "nstances\030\001 \003(\0132<.google.cloud.networkcon" +
+      "nectivity.v1.RouterApplianceInstance\022\"\n\032" +
+      "site_to_site_data_transfer\030\002 \001(\010\022;\n\013vpc_" +
+      "network\030\003 \001(\tB&\340A\003\372A \n\036compute.googleapi" +
+      "s.com/Network\"l\n\027RouterApplianceInstance" +
+      "\022=\n\017virtual_machine\030\001 \001(\tB$\372A!\n\037compute." +
+      "googleapis.com/Instance\022\022\n\nip_address\030\003 " +
+      "\001(\t\"c\n\020LocationMetadata\022O\n\021location_feat" +
+      "ures\030\001 \003(\01624.google.cloud.networkconnect" +
+      "ivity.v1.LocationFeature*f\n\017LocationFeat" +
+      "ure\022 \n\034LOCATION_FEATURE_UNSPECIFIED\020\000\022\030\n" +
+      "\024SITE_TO_CLOUD_SPOKES\020\001\022\027\n\023SITE_TO_SITE_" +
+      "SPOKES\020\002*T\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" +
+      "\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003" +
+      "\022\014\n\010UPDATING\020\0062\235\020\n\nHubService\022\267\001\n\010ListHu" +
+      "bs\0224.google.cloud.networkconnectivity.v1" +
+      ".ListHubsRequest\0325.google.cloud.networkc" +
+      "onnectivity.v1.ListHubsResponse\">\202\323\344\223\002/\022" +
+      "-/v1/{parent=projects/*/locations/global" +
+      "}/hubs\332A\006parent\022\244\001\n\006GetHub\0222.google.clou" +
+      "d.networkconnectivity.v1.GetHubRequest\032(" +
+      ".google.cloud.networkconnectivity.v1.Hub" +
+      "\"<\202\323\344\223\002/\022-/v1/{name=projects/*/locations" +
+      "/global/hubs/*}\332A\004name\022\314\001\n\tCreateHub\0225.g" +
+      "oogle.cloud.networkconnectivity.v1.Creat" +
+      "eHubRequest\032\035.google.longrunning.Operati" +
+      "on\"i\202\323\344\223\0024\"-/v1/{parent=projects/*/locat" +
+      "ions/global}/hubs:\003hub\332A\021parent,hub,hub_" +
+      "id\312A\030\n\003Hub\022\021OperationMetadata\022\316\001\n\tUpdate" +
+      "Hub\0225.google.cloud.networkconnectivity.v" +
+      "1.UpdateHubRequest\032\035.google.longrunning." +
+      "Operation\"k\202\323\344\223\002821/v1/{hub.name=project" +
+      "s/*/locations/global/hubs/*}:\003hub\332A\017hub," +
+      "update_mask\312A\030\n\003Hub\022\021OperationMetadata\022\314" +
+      "\001\n\tDeleteHub\0225.google.cloud.networkconne" +
+      "ctivity.v1.DeleteHubRequest\032\035.google.lon" +
+      "grunning.Operation\"i\202\323\344\223\002/*-/v1/{name=pr" +
+      "ojects/*/locations/global/hubs/*}\332A\004name" +
+      "\312A*\n\025google.protobuf.Empty\022\021OperationMet" +
+      "adata\022\272\001\n\nListSpokes\0226.google.cloud.netw" +
+      "orkconnectivity.v1.ListSpokesRequest\0327.g" +
+      "oogle.cloud.networkconnectivity.v1.ListS" +
+      "pokesResponse\";\202\323\344\223\002,\022*/v1/{parent=proje" +
+      "cts/*/locations/*}/spokes\332A\006parent\022\247\001\n\010G" +
+      "etSpoke\0224.google.cloud.networkconnectivi" +
+      "ty.v1.GetSpokeRequest\032*.google.cloud.net" +
+      "workconnectivity.v1.Spoke\"9\202\323\344\223\002,\022*/v1/{" +
+      "name=projects/*/locations/*/spokes/*}\332A\004" +
+      "name\022\325\001\n\013CreateSpoke\0227.google.cloud.netw" +
+      "orkconnectivity.v1.CreateSpokeRequest\032\035." +
+      "google.longrunning.Operation\"n\202\323\344\223\0023\"*/v" +
+      "1/{parent=projects/*/locations/*}/spokes" +
+      ":\005spoke\332A\025parent,spoke,spoke_id\312A\032\n\005Spok" +
+      "e\022\021OperationMetadata\022\327\001\n\013UpdateSpoke\0227.g" +
+      "oogle.cloud.networkconnectivity.v1.Updat" +
+      "eSpokeRequest\032\035.google.longrunning.Opera" +
+      "tion\"p\202\323\344\223\002920/v1/{spoke.name=projects/*" +
+      "/locations/*/spokes/*}:\005spoke\332A\021spoke,up" +
+      "date_mask\312A\032\n\005Spoke\022\021OperationMetadata\022\315" +
+      "\001\n\013DeleteSpoke\0227.google.cloud.networkcon" +
+      "nectivity.v1.DeleteSpokeRequest\032\035.google" +
+      ".longrunning.Operation\"f\202\323\344\223\002,**/v1/{nam" +
+      "e=projects/*/locations/*/spokes/*}\332A\004nam" +
+      "e\312A*\n\025google.protobuf.Empty\022\021OperationMe" +
+      "tadata\032V\312A\"networkconnectivity.googleapi" +
+      "s.com\322A.https://www.googleapis.com/auth/" +
+      "cloud-platformB\277\003\n\'com.google.cloud.netw" +
+      "orkconnectivity.v1B\010HubProtoP\001ZVgoogle.g" +
+      "olang.org/genproto/googleapis/cloud/netw" +
+      "orkconnectivity/v1;networkconnectivity\252\002" +
+      "#Google.Cloud.NetworkConnectivity.V1\312\002#G" +
+      "oogle\\Cloud\\NetworkConnectivity\\V1\352\002&Goo" +
+      "gle::Cloud::NetworkConnectivity::V1\352A`\n " +
+      "compute.googleapis.com/VpnTunnel\022
  * A collection of VLAN attachment resources. These resources should
  * be redundant attachments that all advertise the same prefixes to Google
@@ -30,87 +13,77 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments}
  */
-public final class LinkedInterconnectAttachments extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LinkedInterconnectAttachments extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments)
     LinkedInterconnectAttachmentsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LinkedInterconnectAttachments.newBuilder() to construct.
   private LinkedInterconnectAttachments(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LinkedInterconnectAttachments() {
     uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    vpcNetwork_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LinkedInterconnectAttachments();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class,
-            com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
+            com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
   }
 
   public static final int URIS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringList uris_;
   /**
-   *
-   *
    * 
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_; } /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -118,26 +91,22 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 2; private boolean siteToSiteDataTransfer_ = false; /** - * - * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -145,7 +114,6 @@ public com.google.protobuf.ByteString getUrisBytes(int index) {
    * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -153,8 +121,54 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } - private byte memoizedIsInitialized = -1; + public static final int VPC_NETWORK_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object vpcNetwork_ = ""; + /** + *
+   * Output only. The VPC network where these VLAN attachments are located.
+   * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The vpcNetwork. + */ + @java.lang.Override + public java.lang.String getVpcNetwork() { + java.lang.Object ref = vpcNetwork_; + 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(); + vpcNetwork_ = s; + return s; + } + } + /** + *
+   * Output only. The VPC network where these VLAN attachments are located.
+   * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for vpcNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVpcNetworkBytes() { + java.lang.Object ref = vpcNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vpcNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,13 +180,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 { for (int i = 0; i < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); } if (siteToSiteDataTransfer_ != false) { output.writeBool(2, siteToSiteDataTransfer_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, vpcNetwork_); + } getUnknownFields().writeTo(output); } @@ -191,7 +209,11 @@ public int getSerializedSize() { size += 1 * getUrisList().size(); } if (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, siteToSiteDataTransfer_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vpcNetwork_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -201,16 +223,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.networkconnectivity.v1.LinkedInterconnectAttachments)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other = - (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) obj; + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other = (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) obj; - if (!getUrisList().equals(other.getUrisList())) return false; - if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; + if (!getUrisList() + .equals(other.getUrisList())) return false; + if (getSiteToSiteDataTransfer() + != other.getSiteToSiteDataTransfer()) return false; + if (!getVpcNetwork() + .equals(other.getVpcNetwork())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,112 +252,106 @@ public int hashCode() { hash = (53 * hash) + getUrisList().hashCode(); } hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSiteToSiteDataTransfer()); + hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getVpcNetwork().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - 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.networkconnectivity.v1.LinkedInterconnectAttachments 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.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 collection of VLAN attachment resources. These resources should
    * be redundant attachments that all advertise the same prefixes to Google
@@ -342,33 +361,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments)
       com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class,
-              com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
+              com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -376,20 +395,19 @@ public Builder clear() {
       uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
       bitField0_ = (bitField0_ & ~0x00000001);
       siteToSiteDataTransfer_ = false;
+      vpcNetwork_ = "";
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments
-        getDefaultInstanceForType() {
-      return com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments
-          .getDefaultInstance();
+    public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getDefaultInstanceForType() {
+      return com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -403,18 +421,14 @@ public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments bui
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments buildPartial() {
-      com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result =
-          new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(this);
+      com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result = new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
+    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         uris_ = uris_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -422,63 +436,60 @@ private void buildPartialRepeatedFields(
       result.uris_ = uris_;
     }
 
-    private void buildPartial0(
-        com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
+    private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_;
       }
+      if (((from_bitField0_ & 0x00000004) != 0)) {
+        result.vpcNetwork_ = vpcNetwork_;
+      }
     }
 
     @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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) {
-        return mergeFrom(
-            (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other) {
-      if (other
-          == com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other) {
+      if (other == com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance()) return this;
       if (!other.uris_.isEmpty()) {
         if (uris_.isEmpty()) {
           uris_ = other.uris_;
@@ -492,6 +503,11 @@ public Builder mergeFrom(
       if (other.getSiteToSiteDataTransfer() != false) {
         setSiteToSiteDataTransfer(other.getSiteToSiteDataTransfer());
       }
+      if (!other.getVpcNetwork().isEmpty()) {
+        vpcNetwork_ = other.vpcNetwork_;
+        bitField0_ |= 0x00000004;
+        onChanged();
+      }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -518,26 +534,28 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureUrisIsMutable();
-                uris_.add(s);
-                break;
-              } // case 10
-            case 16:
-              {
-                siteToSiteDataTransfer_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureUrisIsMutable();
+              uris_.add(s);
+              break;
+            } // case 10
+            case 16: {
+              siteToSiteDataTransfer_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              vpcNetwork_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -547,55 +565,44 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList uris_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensureUrisIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         uris_ = new com.google.protobuf.LazyStringArrayList(uris_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_.getUnmodifiableView(); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -603,90 +610,76 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUris( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUris( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris(java.lang.Iterable values) { + public Builder addAllUris( + java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uris_); onChanged(); return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearUris() { @@ -696,21 +689,17 @@ public Builder clearUris() { return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUrisBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); @@ -718,10 +707,8 @@ public Builder addUrisBytes(com.google.protobuf.ByteString value) { return this; } - private boolean siteToSiteDataTransfer_; + private boolean siteToSiteDataTransfer_ ; /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -729,7 +716,6 @@ public Builder addUrisBytes(com.google.protobuf.ByteString value) {
      * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -737,8 +723,6 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -746,20 +730,17 @@ public boolean getSiteToSiteDataTransfer() {
      * 
* * bool site_to_site_data_transfer = 2; - * * @param value The siteToSiteDataTransfer to set. * @return This builder for chaining. */ public Builder setSiteToSiteDataTransfer(boolean value) { - + siteToSiteDataTransfer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -767,7 +748,6 @@ public Builder setSiteToSiteDataTransfer(boolean value) {
      * 
* * bool site_to_site_data_transfer = 2; - * * @return This builder for chaining. */ public Builder clearSiteToSiteDataTransfer() { @@ -777,8 +757,100 @@ public Builder clearSiteToSiteDataTransfer() { return this; } + private java.lang.Object vpcNetwork_ = ""; + /** + *
+     * Output only. The VPC network where these VLAN attachments are located.
+     * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The vpcNetwork. + */ + public java.lang.String getVpcNetwork() { + java.lang.Object ref = vpcNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vpcNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The VPC network where these VLAN attachments are located.
+     * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for vpcNetwork. + */ + public com.google.protobuf.ByteString + getVpcNetworkBytes() { + java.lang.Object ref = vpcNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vpcNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The VPC network where these VLAN attachments are located.
+     * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @param value The vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetwork( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + vpcNetwork_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Output only. The VPC network where these VLAN attachments are located.
+     * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearVpcNetwork() { + vpcNetwork_ = getDefaultInstance().getVpcNetwork(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Output only. The VPC network where these VLAN attachments are located.
+     * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @param value The bytes for vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + vpcNetwork_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -788,43 +860,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) - private static final com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkedInterconnectAttachments parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkedInterconnectAttachments parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -836,8 +906,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java similarity index 68% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java index c4da8cd9a262..7d3715c99245 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java @@ -1,82 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LinkedInterconnectAttachmentsOrBuilder - extends +public interface LinkedInterconnectAttachmentsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the uris. */ - java.util.List getUrisList(); + java.util.List + getUrisList(); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of uris. */ int getUrisCount(); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString getUrisBytes(int index); + com.google.protobuf.ByteString + getUrisBytes(int index); /** - * - * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -84,8 +56,27 @@ public interface LinkedInterconnectAttachmentsOrBuilder
    * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ boolean getSiteToSiteDataTransfer(); + + /** + *
+   * Output only. The VPC network where these VLAN attachments are located.
+   * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The vpcNetwork. + */ + java.lang.String getVpcNetwork(); + /** + *
+   * Output only. The VPC network where these VLAN attachments are located.
+   * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for vpcNetwork. + */ + com.google.protobuf.ByteString + getVpcNetworkBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java similarity index 58% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java index 1aca3c782c05..b0251c13a16c 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * A collection of router appliance instances. If you configure multiple router
  * appliance instances to receive data from the same set of sites outside of
@@ -30,132 +13,109 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances}
  */
-public final class LinkedRouterApplianceInstances extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LinkedRouterApplianceInstances extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)
     LinkedRouterApplianceInstancesOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LinkedRouterApplianceInstances.newBuilder() to construct.
-  private LinkedRouterApplianceInstances(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private LinkedRouterApplianceInstances(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LinkedRouterApplianceInstances() {
     instances_ = java.util.Collections.emptyList();
+    vpcNetwork_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LinkedRouterApplianceInstances();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class,
-            com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
+            com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
   }
 
   public static final int INSTANCES_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
-  private java.util.List
-      instances_;
+  private java.util.List instances_;
   /**
-   *
-   *
    * 
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ @java.lang.Override - public java.util.List - getInstancesList() { + public java.util.List getInstancesList() { return instances_; } /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> + public java.util.List getInstancesOrBuilderList() { return instances_; } /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ @java.lang.Override public int getInstancesCount() { return instances_.size(); } /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index) { return instances_.get(index); } /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder - getInstancesOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInstancesOrBuilder( + int index) { return instances_.get(index); } public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 2; private boolean siteToSiteDataTransfer_ = false; /** - * - * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -163,7 +123,6 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstan
    * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -171,8 +130,56 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } - private byte memoizedIsInitialized = -1; + public static final int VPC_NETWORK_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object vpcNetwork_ = ""; + /** + *
+   * Output only. The VPC network where these router appliance instances are
+   * located.
+   * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The vpcNetwork. + */ + @java.lang.Override + public java.lang.String getVpcNetwork() { + java.lang.Object ref = vpcNetwork_; + 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(); + vpcNetwork_ = s; + return s; + } + } + /** + *
+   * Output only. The VPC network where these router appliance instances are
+   * located.
+   * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for vpcNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVpcNetworkBytes() { + java.lang.Object ref = vpcNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vpcNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -184,13 +191,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 { for (int i = 0; i < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } if (siteToSiteDataTransfer_ != false) { output.writeBool(2, siteToSiteDataTransfer_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, vpcNetwork_); + } getUnknownFields().writeTo(output); } @@ -201,10 +212,15 @@ 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 (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, siteToSiteDataTransfer_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vpcNetwork_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -214,16 +230,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.networkconnectivity.v1.LinkedRouterApplianceInstances)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other = - (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) obj; - - if (!getInstancesList().equals(other.getInstancesList())) return false; - if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other = (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) obj; + + if (!getInstancesList() + .equals(other.getInstancesList())) return false; + if (getSiteToSiteDataTransfer() + != other.getSiteToSiteDataTransfer()) return false; + if (!getVpcNetwork() + .equals(other.getVpcNetwork())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,112 +259,106 @@ public int hashCode() { hash = (53 * hash) + getInstancesList().hashCode(); } hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSiteToSiteDataTransfer()); + hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getVpcNetwork().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - 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.networkconnectivity.v1.LinkedRouterApplianceInstances 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.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 collection of router appliance instances. If you configure multiple router
    * appliance instances to receive data from the same set of sites outside of
@@ -355,33 +368,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)
       com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class,
-              com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
+              com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -394,26 +407,24 @@ public Builder clear() {
       }
       bitField0_ = (bitField0_ & ~0x00000001);
       siteToSiteDataTransfer_ = false;
+      vpcNetwork_ = "";
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances
-        getDefaultInstanceForType() {
-      return com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances
-          .getDefaultInstance();
+    public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getDefaultInstanceForType() {
+      return com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances build() {
-      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result =
-          buildPartial();
+      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -422,18 +433,14 @@ public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances bu
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances buildPartial() {
-      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result =
-          new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(this);
+      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result = new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
+    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
       if (instancesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           instances_ = java.util.Collections.unmodifiableList(instances_);
@@ -445,63 +452,60 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
+    private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_;
       }
+      if (((from_bitField0_ & 0x00000004) != 0)) {
+        result.vpcNetwork_ = vpcNetwork_;
+      }
     }
 
     @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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) {
-        return mergeFrom(
-            (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other) {
-      if (other
-          == com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other) {
+      if (other == com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance()) return this;
       if (instancesBuilder_ == null) {
         if (!other.instances_.isEmpty()) {
           if (instances_.isEmpty()) {
@@ -520,10 +524,9 @@ public Builder mergeFrom(
             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_);
           }
@@ -532,6 +535,11 @@ public Builder mergeFrom(
       if (other.getSiteToSiteDataTransfer() != false) {
         setSiteToSiteDataTransfer(other.getSiteToSiteDataTransfer());
       }
+      if (!other.getVpcNetwork().isEmpty()) {
+        vpcNetwork_ = other.vpcNetwork_;
+        bitField0_ |= 0x00000004;
+        onChanged();
+      }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -558,33 +566,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.networkconnectivity.v1.RouterApplianceInstance m =
-                    input.readMessage(
-                        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.parser(),
-                        extensionRegistry);
-                if (instancesBuilder_ == null) {
-                  ensureInstancesIsMutable();
-                  instances_.add(m);
-                } else {
-                  instancesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 16:
-              {
-                siteToSiteDataTransfer_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance m =
+                  input.readMessage(
+                      com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.parser(),
+                      extensionRegistry);
+              if (instancesBuilder_ == null) {
+                ensureInstancesIsMutable();
+                instances_.add(m);
+              } else {
+                instancesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 16: {
+              siteToSiteDataTransfer_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              vpcNetwork_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -594,39 +604,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List
-        instances_ = java.util.Collections.emptyList();
-
+    private java.util.List instances_ =
+      java.util.Collections.emptyList();
     private void ensureInstancesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        instances_ =
-            new java.util.ArrayList<
-                com.google.cloud.networkconnectivity.v1.RouterApplianceInstance>(instances_);
+        instances_ = new java.util.ArrayList(instances_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance,
-            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder,
-            com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>
-        instancesBuilder_;
+        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> instancesBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public java.util.List - getInstancesList() { + public java.util.List getInstancesList() { if (instancesBuilder_ == null) { return java.util.Collections.unmodifiableList(instances_); } else { @@ -634,14 +633,11 @@ private void ensureInstancesIsMutable() { } } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public int getInstancesCount() { if (instancesBuilder_ == null) { @@ -651,14 +647,11 @@ public int getInstancesCount() { } } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index) { if (instancesBuilder_ == null) { @@ -668,14 +661,11 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstan } } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder setInstances( int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { @@ -692,18 +682,14 @@ public Builder setInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder setInstances( - int index, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { + int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.set(index, builderForValue.build()); @@ -714,17 +700,13 @@ public Builder setInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public Builder addInstances( - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { + public Builder addInstances(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -738,14 +720,11 @@ public Builder addInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder addInstances( int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { @@ -762,14 +741,11 @@ public Builder addInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder addInstances( com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { @@ -783,18 +759,14 @@ public Builder addInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder addInstances( - int index, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { + int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(index, builderForValue.build()); @@ -805,22 +777,18 @@ public Builder addInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder addAllInstances( - java.lang.Iterable< - ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstance> - values) { + 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); @@ -828,14 +796,11 @@ public Builder addAllInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder clearInstances() { if (instancesBuilder_ == null) { @@ -848,14 +813,11 @@ public Builder clearInstances() { return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder removeInstances(int index) { if (instancesBuilder_ == null) { @@ -868,50 +830,39 @@ public Builder removeInstances(int index) { return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder - getInstancesBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder getInstancesBuilder( + int index) { return getInstancesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder - getInstancesOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInstancesOrBuilder( + int index) { if (instancesBuilder_ == null) { - return instances_.get(index); - } else { + return instances_.get(index); } else { return instancesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public java.util.List< - ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> - getInstancesOrBuilderList() { + public java.util.List + getInstancesOrBuilderList() { if (instancesBuilder_ != null) { return instancesBuilder_.getMessageOrBuilderList(); } else { @@ -919,74 +870,56 @@ public Builder removeInstances(int index) { } } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder - addInstancesBuilder() { - return getInstancesFieldBuilder() - .addBuilder( - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder addInstancesBuilder() { + return getInstancesFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder - addInstancesBuilder(int index) { - return getInstancesFieldBuilder() - .addBuilder( - index, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder addInstancesBuilder( + int index) { + return getInstancesFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public java.util.List - getInstancesBuilderList() { + public java.util.List + getInstancesBuilderList() { return getInstancesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> getInstancesFieldBuilder() { if (instancesBuilder_ == null) { - instancesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>( - instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>( + instances_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); instances_ = null; } return instancesBuilder_; } - private boolean siteToSiteDataTransfer_; + private boolean siteToSiteDataTransfer_ ; /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -994,7 +927,6 @@ public Builder removeInstances(int index) {
      * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -1002,8 +934,6 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -1011,20 +941,17 @@ public boolean getSiteToSiteDataTransfer() {
      * 
* * bool site_to_site_data_transfer = 2; - * * @param value The siteToSiteDataTransfer to set. * @return This builder for chaining. */ public Builder setSiteToSiteDataTransfer(boolean value) { - + siteToSiteDataTransfer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -1032,7 +959,6 @@ public Builder setSiteToSiteDataTransfer(boolean value) {
      * 
* * bool site_to_site_data_transfer = 2; - * * @return This builder for chaining. */ public Builder clearSiteToSiteDataTransfer() { @@ -1042,8 +968,105 @@ public Builder clearSiteToSiteDataTransfer() { return this; } + private java.lang.Object vpcNetwork_ = ""; + /** + *
+     * Output only. The VPC network where these router appliance instances are
+     * located.
+     * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The vpcNetwork. + */ + public java.lang.String getVpcNetwork() { + java.lang.Object ref = vpcNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vpcNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The VPC network where these router appliance instances are
+     * located.
+     * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for vpcNetwork. + */ + public com.google.protobuf.ByteString + getVpcNetworkBytes() { + java.lang.Object ref = vpcNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vpcNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The VPC network where these router appliance instances are
+     * located.
+     * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @param value The vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetwork( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + vpcNetwork_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Output only. The VPC network where these router appliance instances are
+     * located.
+     * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearVpcNetwork() { + vpcNetwork_ = getDefaultInstance().getVpcNetwork(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Output only. The VPC network where these router appliance instances are
+     * located.
+     * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @param value The bytes for vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + vpcNetwork_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1053,43 +1076,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) - private static final com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkedRouterApplianceInstances parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkedRouterApplianceInstances parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1101,8 +1122,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java similarity index 66% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java index 00638da44cf8..b7516a981b7a 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java @@ -1,90 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LinkedRouterApplianceInstancesOrBuilder - extends +public interface LinkedRouterApplianceInstancesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - java.util.List + java.util.List getInstancesList(); /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index); /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ int getInstancesCount(); /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - java.util.List + java.util.List getInstancesOrBuilderList(); /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInstancesOrBuilder( int index); /** - * - * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -92,8 +59,29 @@ com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInst
    * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ boolean getSiteToSiteDataTransfer(); + + /** + *
+   * Output only. The VPC network where these router appliance instances are
+   * located.
+   * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The vpcNetwork. + */ + java.lang.String getVpcNetwork(); + /** + *
+   * Output only. The VPC network where these router appliance instances are
+   * located.
+   * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for vpcNetwork. + */ + com.google.protobuf.ByteString + getVpcNetworkBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java similarity index 60% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java index cbcdfc6c9acf..9b0d325630ba 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * A collection of Cloud VPN tunnel resources. These resources should be
  * redundant HA VPN tunnels that all advertise the same prefixes to Google
@@ -30,87 +13,77 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedVpnTunnels}
  */
-public final class LinkedVpnTunnels extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LinkedVpnTunnels extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LinkedVpnTunnels)
     LinkedVpnTunnelsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LinkedVpnTunnels.newBuilder() to construct.
   private LinkedVpnTunnels(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LinkedVpnTunnels() {
     uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    vpcNetwork_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LinkedVpnTunnels();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class,
-            com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
+            com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
   }
 
   public static final int URIS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringList uris_;
   /**
-   *
-   *
    * 
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_; } /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -118,26 +91,22 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 2; private boolean siteToSiteDataTransfer_ = false; /** - * - * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -145,7 +114,6 @@ public com.google.protobuf.ByteString getUrisBytes(int index) {
    * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -153,8 +121,54 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } - private byte memoizedIsInitialized = -1; + public static final int VPC_NETWORK_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object vpcNetwork_ = ""; + /** + *
+   * Output only. The VPC network where these VPN tunnels are located.
+   * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The vpcNetwork. + */ + @java.lang.Override + public java.lang.String getVpcNetwork() { + java.lang.Object ref = vpcNetwork_; + 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(); + vpcNetwork_ = s; + return s; + } + } + /** + *
+   * Output only. The VPC network where these VPN tunnels are located.
+   * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for vpcNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVpcNetworkBytes() { + java.lang.Object ref = vpcNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vpcNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,13 +180,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 { for (int i = 0; i < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); } if (siteToSiteDataTransfer_ != false) { output.writeBool(2, siteToSiteDataTransfer_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, vpcNetwork_); + } getUnknownFields().writeTo(output); } @@ -191,7 +209,11 @@ public int getSerializedSize() { size += 1 * getUrisList().size(); } if (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, siteToSiteDataTransfer_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vpcNetwork_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -201,16 +223,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.networkconnectivity.v1.LinkedVpnTunnels)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other = - (com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) obj; + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other = (com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) obj; - if (!getUrisList().equals(other.getUrisList())) return false; - if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; + if (!getUrisList() + .equals(other.getUrisList())) return false; + if (getSiteToSiteDataTransfer() + != other.getSiteToSiteDataTransfer()) return false; + if (!getVpcNetwork() + .equals(other.getVpcNetwork())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,111 +252,106 @@ public int hashCode() { hash = (53 * hash) + getUrisList().hashCode(); } hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSiteToSiteDataTransfer()); + hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getVpcNetwork().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 collection of Cloud VPN tunnel resources. These resources should be
    * redundant HA VPN tunnels that all advertise the same prefixes to Google
@@ -341,32 +361,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedVpnTunnels}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedVpnTunnels)
       com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class,
-              com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
+              com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -374,13 +395,14 @@ public Builder clear() {
       uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
       bitField0_ = (bitField0_ & ~0x00000001);
       siteToSiteDataTransfer_ = false;
+      vpcNetwork_ = "";
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
     }
 
     @java.lang.Override
@@ -399,18 +421,14 @@ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels buildPartial() {
-      com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result =
-          new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(this);
+      com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result = new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result) {
+    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         uris_ = uris_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -423,45 +441,47 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedVpnTunn
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_;
       }
+      if (((from_bitField0_ & 0x00000004) != 0)) {
+        result.vpcNetwork_ = vpcNetwork_;
+      }
     }
 
     @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) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -469,8 +489,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other) {
-      if (other == com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) return this;
       if (!other.uris_.isEmpty()) {
         if (uris_.isEmpty()) {
           uris_ = other.uris_;
@@ -484,6 +503,11 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnel
       if (other.getSiteToSiteDataTransfer() != false) {
         setSiteToSiteDataTransfer(other.getSiteToSiteDataTransfer());
       }
+      if (!other.getVpcNetwork().isEmpty()) {
+        vpcNetwork_ = other.vpcNetwork_;
+        bitField0_ |= 0x00000004;
+        onChanged();
+      }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -510,26 +534,28 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureUrisIsMutable();
-                uris_.add(s);
-                break;
-              } // case 10
-            case 16:
-              {
-                siteToSiteDataTransfer_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureUrisIsMutable();
+              uris_.add(s);
+              break;
+            } // case 10
+            case 16: {
+              siteToSiteDataTransfer_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              vpcNetwork_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -539,55 +565,44 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList uris_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensureUrisIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         uris_ = new com.google.protobuf.LazyStringArrayList(uris_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_.getUnmodifiableView(); } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -595,90 +610,76 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUris( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUris( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris(java.lang.Iterable values) { + public Builder addAllUris( + java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uris_); onChanged(); return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearUris() { @@ -688,21 +689,17 @@ public Builder clearUris() { return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUrisBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); @@ -710,10 +707,8 @@ public Builder addUrisBytes(com.google.protobuf.ByteString value) { return this; } - private boolean siteToSiteDataTransfer_; + private boolean siteToSiteDataTransfer_ ; /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -721,7 +716,6 @@ public Builder addUrisBytes(com.google.protobuf.ByteString value) {
      * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -729,8 +723,6 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -738,20 +730,17 @@ public boolean getSiteToSiteDataTransfer() {
      * 
* * bool site_to_site_data_transfer = 2; - * * @param value The siteToSiteDataTransfer to set. * @return This builder for chaining. */ public Builder setSiteToSiteDataTransfer(boolean value) { - + siteToSiteDataTransfer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -759,7 +748,6 @@ public Builder setSiteToSiteDataTransfer(boolean value) {
      * 
* * bool site_to_site_data_transfer = 2; - * * @return This builder for chaining. */ public Builder clearSiteToSiteDataTransfer() { @@ -769,8 +757,100 @@ public Builder clearSiteToSiteDataTransfer() { return this; } + private java.lang.Object vpcNetwork_ = ""; + /** + *
+     * Output only. The VPC network where these VPN tunnels are located.
+     * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The vpcNetwork. + */ + public java.lang.String getVpcNetwork() { + java.lang.Object ref = vpcNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vpcNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The VPC network where these VPN tunnels are located.
+     * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for vpcNetwork. + */ + public com.google.protobuf.ByteString + getVpcNetworkBytes() { + java.lang.Object ref = vpcNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + vpcNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The VPC network where these VPN tunnels are located.
+     * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @param value The vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetwork( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + vpcNetwork_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Output only. The VPC network where these VPN tunnels are located.
+     * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearVpcNetwork() { + vpcNetwork_ = getDefaultInstance().getVpcNetwork(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Output only. The VPC network where these VPN tunnels are located.
+     * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @param value The bytes for vpcNetwork to set. + * @return This builder for chaining. + */ + public Builder setVpcNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + vpcNetwork_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -780,12 +860,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) private static final com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(); } @@ -794,27 +874,27 @@ public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkedVpnTunnels parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkedVpnTunnels parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -829,4 +909,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java similarity index 68% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java index 83929e450906..03fe8a98bd17 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java @@ -1,82 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LinkedVpnTunnelsOrBuilder - extends +public interface LinkedVpnTunnelsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the uris. */ - java.util.List getUrisList(); + java.util.List + getUrisList(); /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of uris. */ int getUrisCount(); /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString getUrisBytes(int index); + com.google.protobuf.ByteString + getUrisBytes(int index); /** - * - * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -84,8 +56,27 @@ public interface LinkedVpnTunnelsOrBuilder
    * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ boolean getSiteToSiteDataTransfer(); + + /** + *
+   * Output only. The VPC network where these VPN tunnels are located.
+   * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The vpcNetwork. + */ + java.lang.String getVpcNetwork(); + /** + *
+   * Output only. The VPC network where these VPN tunnels are located.
+   * 
+ * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * @return The bytes for vpcNetwork. + */ + com.google.protobuf.ByteString + getVpcNetworkBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java index 474a8f813f72..0675938836a5 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java @@ -1,42 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * Request for [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] method.
+ * Request for
+ * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
+ * method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsRequest} */ -public final class ListHubsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListHubsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListHubsRequest) ListHubsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListHubsRequest.newBuilder() to construct. private ListHubsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListHubsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,45 +30,38 @@ private ListHubsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListHubsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, - com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 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 @@ -93,31 +70,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 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 { @@ -128,14 +103,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -144,18 +116,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -164,29 +132,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The page token.
    * 
* * 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 { @@ -195,18 +163,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -215,29 +179,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; } } /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * 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 { @@ -246,18 +210,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -266,29 +226,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -297,7 +257,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +268,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -338,7 +298,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_); @@ -357,19 +318,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.networkconnectivity.v1.ListHubsRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListHubsRequest other = - (com.google.cloud.networkconnectivity.v1.ListHubsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1.ListHubsRequest other = (com.google.cloud.networkconnectivity.v1.ListHubsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -397,136 +362,131 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.ListHubsRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListHubsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] method.
+   * Request for
+   * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
+   * method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListHubsRequest) com.google.cloud.networkconnectivity.v1.ListHubsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, - com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.ListHubsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -540,9 +500,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; } @java.lang.Override @@ -561,11 +521,8 @@ public com.google.cloud.networkconnectivity.v1.ListHubsRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.ListHubsRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.ListHubsRequest result = - new com.google.cloud.networkconnectivity.v1.ListHubsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.ListHubsRequest result = new com.google.cloud.networkconnectivity.v1.ListHubsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -593,39 +550,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListHubsReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.ListHubsRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsRequest)other); } else { super.mergeFrom(other); return this; @@ -633,8 +589,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListHubsRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.ListHubsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.ListHubsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -684,43 +639,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -730,27 +679,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * string parent = 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; @@ -759,23 +703,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * string parent = 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 { @@ -783,39 +724,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * string 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() { @@ -825,23 +755,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -849,16 +773,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -866,33 +787,27 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -904,20 +819,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The page token.
      * 
* * 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; @@ -926,21 +839,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The page token.
      * 
* * 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 { @@ -948,35 +860,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The page token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -986,21 +891,17 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1010,20 +911,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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; @@ -1032,21 +931,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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 { @@ -1054,35 +952,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1092,21 +983,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1116,20 +1003,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1138,21 +1023,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1160,35 +1044,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1198,30 +1075,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1231,12 +1104,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListHubsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListHubsRequest) private static final com.google.cloud.networkconnectivity.v1.ListHubsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListHubsRequest(); } @@ -1245,27 +1118,27 @@ public static com.google.cloud.networkconnectivity.v1.ListHubsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1280,4 +1153,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListHubsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java similarity index 58% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java index 0a8b42a0fd49..d7553ac570fe 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java @@ -1,142 +1,99 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListHubsRequestOrBuilder - extends +public interface ListHubsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListHubsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java similarity index 71% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java index fdab7c3be551..435684caabee 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java @@ -1,42 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] method.
+ * Response for
+ * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
+ * method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsResponse} */ -public final class ListHubsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListHubsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListHubsResponse) ListHubsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListHubsResponse.newBuilder() to construct. private ListHubsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListHubsResponse() { hubs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,37 +29,33 @@ private ListHubsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListHubsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, - com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class); + com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class); } public static final int HUBS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List hubs_; /** - * - * *
    * The requested hubs.
    * 
@@ -87,8 +67,6 @@ public java.util.List getHubsList() return hubs_; } /** - * - * *
    * The requested hubs.
    * 
@@ -96,13 +74,11 @@ public java.util.List getHubsList() * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getHubsOrBuilderList() { return hubs_; } /** - * - * *
    * The requested hubs.
    * 
@@ -114,8 +90,6 @@ public int getHubsCount() { return hubs_.size(); } /** - * - * *
    * The requested hubs.
    * 
@@ -127,8 +101,6 @@ public com.google.cloud.networkconnectivity.v1.Hub getHubs(int index) { return hubs_.get(index); } /** - * - * *
    * The requested hubs.
    * 
@@ -136,24 +108,21 @@ public com.google.cloud.networkconnectivity.v1.Hub getHubs(int index) { * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( + int index) { return hubs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -162,30 +131,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -194,46 +163,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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. */ @@ -241,23 +201,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; @@ -269,7 +226,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < hubs_.size(); i++) { output.writeMessage(1, hubs_.get(i)); } @@ -289,7 +247,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < hubs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hubs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, hubs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -310,17 +269,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.networkconnectivity.v1.ListHubsResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListHubsResponse other = - (com.google.cloud.networkconnectivity.v1.ListHubsResponse) obj; + com.google.cloud.networkconnectivity.v1.ListHubsResponse other = (com.google.cloud.networkconnectivity.v1.ListHubsResponse) obj; - if (!getHubsList().equals(other.getHubsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getHubsList() + .equals(other.getHubsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,136 +309,131 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.ListHubsResponse prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListHubsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] method.
+   * Response for
+   * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
+   * method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListHubsResponse) com.google.cloud.networkconnectivity.v1.ListHubsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, - com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class); + com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.ListHubsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +452,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; } @java.lang.Override @@ -517,18 +473,14 @@ public com.google.cloud.networkconnectivity.v1.ListHubsResponse build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.ListHubsResponse buildPartial() { - com.google.cloud.networkconnectivity.v1.ListHubsResponse result = - new com.google.cloud.networkconnectivity.v1.ListHubsResponse(this); + com.google.cloud.networkconnectivity.v1.ListHubsResponse result = new com.google.cloud.networkconnectivity.v1.ListHubsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1.ListHubsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.ListHubsResponse result) { if (hubsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { hubs_ = java.util.Collections.unmodifiableList(hubs_); @@ -556,39 +508,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListHubsRespo public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.ListHubsResponse) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsResponse) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsResponse)other); } else { super.mergeFrom(other); return this; @@ -596,8 +547,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListHubsResponse other) { - if (other == com.google.cloud.networkconnectivity.v1.ListHubsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.ListHubsResponse.getDefaultInstance()) return this; if (hubsBuilder_ == null) { if (!other.hubs_.isEmpty()) { if (hubs_.isEmpty()) { @@ -616,10 +566,9 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListHubsRespons hubsBuilder_ = null; hubs_ = other.hubs_; bitField0_ = (bitField0_ & ~0x00000001); - hubsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHubsFieldBuilder() - : null; + hubsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHubsFieldBuilder() : null; } else { hubsBuilder_.addAllMessages(other.hubs_); } @@ -666,39 +615,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.networkconnectivity.v1.Hub m = - input.readMessage( - com.google.cloud.networkconnectivity.v1.Hub.parser(), extensionRegistry); - if (hubsBuilder_ == null) { - ensureHubsIsMutable(); - hubs_.add(m); - } else { - hubsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.networkconnectivity.v1.Hub m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.Hub.parser(), + extensionRegistry); + if (hubsBuilder_ == null) { + ensureHubsIsMutable(); + hubs_.add(m); + } else { + hubsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -708,28 +654,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List hubs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureHubsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { hubs_ = new java.util.ArrayList(hubs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder> - hubsBuilder_; + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> hubsBuilder_; /** - * - * *
      * The requested hubs.
      * 
@@ -744,8 +683,6 @@ public java.util.List getHubsList() } } /** - * - * *
      * The requested hubs.
      * 
@@ -760,8 +697,6 @@ public int getHubsCount() { } } /** - * - * *
      * The requested hubs.
      * 
@@ -776,15 +711,14 @@ public com.google.cloud.networkconnectivity.v1.Hub getHubs(int index) { } } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public Builder setHubs(int index, com.google.cloud.networkconnectivity.v1.Hub value) { + public Builder setHubs( + int index, com.google.cloud.networkconnectivity.v1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -798,8 +732,6 @@ public Builder setHubs(int index, com.google.cloud.networkconnectivity.v1.Hub va return this; } /** - * - * *
      * The requested hubs.
      * 
@@ -818,8 +750,6 @@ public Builder setHubs( return this; } /** - * - * *
      * The requested hubs.
      * 
@@ -840,15 +770,14 @@ public Builder addHubs(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public Builder addHubs(int index, com.google.cloud.networkconnectivity.v1.Hub value) { + public Builder addHubs( + int index, com.google.cloud.networkconnectivity.v1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -862,15 +791,14 @@ public Builder addHubs(int index, com.google.cloud.networkconnectivity.v1.Hub va return this; } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public Builder addHubs(com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { + public Builder addHubs( + com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { if (hubsBuilder_ == null) { ensureHubsIsMutable(); hubs_.add(builderForValue.build()); @@ -881,8 +809,6 @@ public Builder addHubs(com.google.cloud.networkconnectivity.v1.Hub.Builder build return this; } /** - * - * *
      * The requested hubs.
      * 
@@ -901,8 +827,6 @@ public Builder addHubs( return this; } /** - * - * *
      * The requested hubs.
      * 
@@ -913,7 +837,8 @@ public Builder addAllHubs( java.lang.Iterable values) { if (hubsBuilder_ == null) { ensureHubsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hubs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, hubs_); onChanged(); } else { hubsBuilder_.addAllMessages(values); @@ -921,8 +846,6 @@ public Builder addAllHubs( return this; } /** - * - * *
      * The requested hubs.
      * 
@@ -940,8 +863,6 @@ public Builder clearHubs() { return this; } /** - * - * *
      * The requested hubs.
      * 
@@ -959,44 +880,39 @@ public Builder removeHubs(int index) { return this; } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubsBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubsBuilder( + int index) { return getHubsFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( + int index) { if (hubsBuilder_ == null) { - return hubs_.get(index); - } else { + return hubs_.get(index); } else { return hubsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public java.util.List - getHubsOrBuilderList() { + public java.util.List + getHubsOrBuilderList() { if (hubsBuilder_ != null) { return hubsBuilder_.getMessageOrBuilderList(); } else { @@ -1004,8 +920,6 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int } } /** - * - * *
      * The requested hubs.
      * 
@@ -1013,48 +927,42 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder() { - return getHubsFieldBuilder() - .addBuilder(com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); + return getHubsFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder(int index) { - return getHubsFieldBuilder() - .addBuilder(index, com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder( + int index) { + return getHubsFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public java.util.List - getHubsBuilderList() { + public java.util.List + getHubsBuilderList() { return getHubsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> getHubsFieldBuilder() { if (hubsBuilder_ == null) { - hubsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder>( - hubs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + hubsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder>( + hubs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); hubs_ = null; } return hubsBuilder_; @@ -1062,21 +970,19 @@ public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder(int in private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -1085,22 +991,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1108,37 +1013,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1148,22 +1046,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1171,52 +1065,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * 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. */ @@ -1224,90 +1108,76 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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(); - } + 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) { + 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() { @@ -1317,30 +1187,26 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1350,12 +1216,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListHubsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListHubsResponse) private static final com.google.cloud.networkconnectivity.v1.ListHubsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListHubsResponse(); } @@ -1364,27 +1230,27 @@ public static com.google.cloud.networkconnectivity.v1.ListHubsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1399,4 +1265,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListHubsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java similarity index 71% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java index b161d9b83f1a..73449f136a7b 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListHubsResponseOrBuilder - extends +public interface ListHubsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListHubsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested hubs.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - java.util.List getHubsList(); + java.util.List + getHubsList(); /** - * - * *
    * The requested hubs.
    * 
@@ -44,8 +25,6 @@ public interface ListHubsResponseOrBuilder */ com.google.cloud.networkconnectivity.v1.Hub getHubs(int index); /** - * - * *
    * The requested hubs.
    * 
@@ -54,102 +33,84 @@ public interface ListHubsResponseOrBuilder */ int getHubsCount(); /** - * - * *
    * The requested hubs.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - java.util.List + java.util.List getHubsOrBuilderList(); /** - * - * *
    * The requested hubs.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int index); + com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( + int index); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequest.java new file mode 100644 index 000000000000..e4d5c60f2d07 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequest.java @@ -0,0 +1,1154 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/policy_based_routing.proto + +package com.google.cloud.networkconnectivity.v1; + +/** + *
+ * Request for [PolicyBasedRouting.ListPolicyBasedRoutes][] method.
+ * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest} + */ +public final class ListPolicyBasedRoutesRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) + ListPolicyBasedRoutesRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListPolicyBasedRoutesRequest.newBuilder() to construct. + private ListPolicyBasedRoutesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListPolicyBasedRoutesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListPolicyBasedRoutesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.class, com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. The parent resource's name.
+   * 
+ * + * 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 resource's name.
+   * 
+ * + * 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_ = 0; + /** + *
+   * The maximum number of results per page that should be returned.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + *
+   * The page token.
+   * 
+ * + * 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 page token.
+   * 
+ * + * 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; + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + *
+   * A filter expression that filters the results listed in the response.
+   * 
+ * + * 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; + } + } + /** + *
+   * A filter expression that filters the results listed in the response.
+   * 
+ * + * 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; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + *
+   * Sort the results by a certain order.
+   * 
+ * + * string order_by = 5; + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + *
+   * Sort the results by a certain order.
+   * 
+ * + * string order_by = 5; + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().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.networkconnectivity.v1.ListPolicyBasedRoutesRequest)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest other = (com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest 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 [PolicyBasedRouting.ListPolicyBasedRoutes][] method.
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.class, com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest build() { + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest buildPartial() { + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest result = new com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @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.networkconnectivity.v1.ListPolicyBasedRoutesRequest) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest other) { + if (other == com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The parent resource's name.
+     * 
+ * + * 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 resource's name.
+     * 
+ * + * 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 resource's name.
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. The parent resource's name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. The parent resource's name.
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * The maximum number of results per page that should be returned.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * The maximum number of results per page that should be returned.
+     * 
+ * + * int32 page_size = 2; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The maximum number of results per page that should be returned.
+     * 
+ * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * The page token.
+     * 
+ * + * 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 page token.
+     * 
+ * + * 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 page token.
+     * 
+ * + * 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The page token.
+     * 
+ * + * string page_token = 3; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * The page token.
+     * 
+ * + * 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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + *
+     * A filter expression that filters the results listed in the response.
+     * 
+ * + * 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; + } + } + /** + *
+     * A filter expression that filters the results listed in the response.
+     * 
+ * + * 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; + } + } + /** + *
+     * A filter expression that filters the results listed in the response.
+     * 
+ * + * 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * A filter expression that filters the results listed in the response.
+     * 
+ * + * string filter = 4; + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * A filter expression that filters the results listed in the response.
+     * 
+ * + * 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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + *
+     * Sort the results by a certain order.
+     * 
+ * + * string order_by = 5; + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Sort the results by a certain order.
+     * 
+ * + * string order_by = 5; + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString + getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Sort the results by a certain order.
+     * 
+ * + * string order_by = 5; + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Sort the results by a certain order.
+     * 
+ * + * string order_by = 5; + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * Sort the results by a certain order.
+     * 
+ * + * string order_by = 5; + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) + private static final com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest(); + } + + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPolicyBasedRoutesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequestOrBuilder.java new file mode 100644 index 000000000000..b2a270a2d8a6 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequestOrBuilder.java @@ -0,0 +1,99 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/policy_based_routing.proto + +package com.google.cloud.networkconnectivity.v1; + +public interface ListPolicyBasedRoutesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent resource's name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent resource's name.
+   * 
+ * + * 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 results per page that should be returned.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * The page token.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * The page token.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); + + /** + *
+   * A filter expression that filters the results listed in the response.
+   * 
+ * + * string filter = 4; + * @return The filter. + */ + java.lang.String getFilter(); + /** + *
+   * A filter expression that filters the results listed in the response.
+   * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + com.google.protobuf.ByteString + getFilterBytes(); + + /** + *
+   * Sort the results by a certain order.
+   * 
+ * + * string order_by = 5; + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + *
+   * Sort the results by a certain order.
+   * 
+ * + * string order_by = 5; + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString + getOrderByBytes(); +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponse.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponse.java new file mode 100644 index 000000000000..c5bfb680dba5 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponse.java @@ -0,0 +1,1266 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/policy_based_routing.proto + +package com.google.cloud.networkconnectivity.v1; + +/** + *
+ * Response for [PolicyBasedRouting.ListPolicyBasedRoutes][] method.
+ * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse} + */ +public final class ListPolicyBasedRoutesResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) + ListPolicyBasedRoutesResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListPolicyBasedRoutesResponse.newBuilder() to construct. + private ListPolicyBasedRoutesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListPolicyBasedRoutesResponse() { + policyBasedRoutes_ = 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 ListPolicyBasedRoutesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.class, com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.Builder.class); + } + + public static final int POLICY_BASED_ROUTES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List policyBasedRoutes_; + /** + *
+   * Policy based routes to be returned.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + @java.lang.Override + public java.util.List getPolicyBasedRoutesList() { + return policyBasedRoutes_; + } + /** + *
+   * Policy based routes to be returned.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + @java.lang.Override + public java.util.List + getPolicyBasedRoutesOrBuilderList() { + return policyBasedRoutes_; + } + /** + *
+   * Policy based routes to be returned.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + @java.lang.Override + public int getPolicyBasedRoutesCount() { + return policyBasedRoutes_.size(); + } + /** + *
+   * Policy based routes to be returned.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoutes(int index) { + return policyBasedRoutes_.get(index); + } + /** + *
+   * Policy based routes to be returned.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPolicyBasedRoutesOrBuilder( + int index) { + return policyBasedRoutes_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + *
+   * The next pagination token in the List response. It should be used as
+   * page_token for the following request. An empty value means no more result.
+   * 
+ * + * 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; + } + } + /** + *
+   * The next pagination token in the List response. It should be used as
+   * page_token for the following request. An empty value means no more result.
+   * 
+ * + * 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; + @SuppressWarnings("serial") + 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 < policyBasedRoutes_.size(); i++) { + output.writeMessage(1, policyBasedRoutes_.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)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < policyBasedRoutes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, policyBasedRoutes_.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 += getUnknownFields().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.networkconnectivity.v1.ListPolicyBasedRoutesResponse)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse other = (com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) obj; + + if (!getPolicyBasedRoutesList() + .equals(other.getPolicyBasedRoutesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPolicyBasedRoutesCount() > 0) { + hash = (37 * hash) + POLICY_BASED_ROUTES_FIELD_NUMBER; + hash = (53 * hash) + getPolicyBasedRoutesList().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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse 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 for [PolicyBasedRouting.ListPolicyBasedRoutes][] method.
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.class, com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (policyBasedRoutesBuilder_ == null) { + policyBasedRoutes_ = java.util.Collections.emptyList(); + } else { + policyBasedRoutes_ = null; + policyBasedRoutesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse build() { + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse buildPartial() { + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse result = new com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse result) { + if (policyBasedRoutesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + policyBasedRoutes_ = java.util.Collections.unmodifiableList(policyBasedRoutes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.policyBasedRoutes_ = policyBasedRoutes_; + } else { + result.policyBasedRoutes_ = policyBasedRoutesBuilder_.build(); + } + if (((bitField0_ & 0x00000004) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.unreachable_ = unreachable_; + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.networkconnectivity.v1.ListPolicyBasedRoutesResponse) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse other) { + if (other == com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.getDefaultInstance()) return this; + if (policyBasedRoutesBuilder_ == null) { + if (!other.policyBasedRoutes_.isEmpty()) { + if (policyBasedRoutes_.isEmpty()) { + policyBasedRoutes_ = other.policyBasedRoutes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePolicyBasedRoutesIsMutable(); + policyBasedRoutes_.addAll(other.policyBasedRoutes_); + } + onChanged(); + } + } else { + if (!other.policyBasedRoutes_.isEmpty()) { + if (policyBasedRoutesBuilder_.isEmpty()) { + policyBasedRoutesBuilder_.dispose(); + policyBasedRoutesBuilder_ = null; + policyBasedRoutes_ = other.policyBasedRoutes_; + bitField0_ = (bitField0_ & ~0x00000001); + policyBasedRoutesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPolicyBasedRoutesFieldBuilder() : null; + } else { + policyBasedRoutesBuilder_.addAllMessages(other.policyBasedRoutes_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.parser(), + extensionRegistry); + if (policyBasedRoutesBuilder_ == null) { + ensurePolicyBasedRoutesIsMutable(); + policyBasedRoutes_.add(m); + } else { + policyBasedRoutesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List policyBasedRoutes_ = + java.util.Collections.emptyList(); + private void ensurePolicyBasedRoutesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + policyBasedRoutes_ = new java.util.ArrayList(policyBasedRoutes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> policyBasedRoutesBuilder_; + + /** + *
+     * Policy based routes to be returned.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + public java.util.List getPolicyBasedRoutesList() { + if (policyBasedRoutesBuilder_ == null) { + return java.util.Collections.unmodifiableList(policyBasedRoutes_); + } else { + return policyBasedRoutesBuilder_.getMessageList(); + } + } + /** + *
+     * Policy based routes to be returned.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + public int getPolicyBasedRoutesCount() { + if (policyBasedRoutesBuilder_ == null) { + return policyBasedRoutes_.size(); + } else { + return policyBasedRoutesBuilder_.getCount(); + } + } + /** + *
+     * Policy based routes to be returned.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoutes(int index) { + if (policyBasedRoutesBuilder_ == null) { + return policyBasedRoutes_.get(index); + } else { + return policyBasedRoutesBuilder_.getMessage(index); + } + } + /** + *
+     * Policy based routes to be returned.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + public Builder setPolicyBasedRoutes( + int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { + if (policyBasedRoutesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyBasedRoutesIsMutable(); + policyBasedRoutes_.set(index, value); + onChanged(); + } else { + policyBasedRoutesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Policy based routes to be returned.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + public Builder setPolicyBasedRoutes( + int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder builderForValue) { + if (policyBasedRoutesBuilder_ == null) { + ensurePolicyBasedRoutesIsMutable(); + policyBasedRoutes_.set(index, builderForValue.build()); + onChanged(); + } else { + policyBasedRoutesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Policy based routes to be returned.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + public Builder addPolicyBasedRoutes(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { + if (policyBasedRoutesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyBasedRoutesIsMutable(); + policyBasedRoutes_.add(value); + onChanged(); + } else { + policyBasedRoutesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Policy based routes to be returned.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + public Builder addPolicyBasedRoutes( + int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { + if (policyBasedRoutesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyBasedRoutesIsMutable(); + policyBasedRoutes_.add(index, value); + onChanged(); + } else { + policyBasedRoutesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Policy based routes to be returned.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + public Builder addPolicyBasedRoutes( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder builderForValue) { + if (policyBasedRoutesBuilder_ == null) { + ensurePolicyBasedRoutesIsMutable(); + policyBasedRoutes_.add(builderForValue.build()); + onChanged(); + } else { + policyBasedRoutesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Policy based routes to be returned.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + public Builder addPolicyBasedRoutes( + int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder builderForValue) { + if (policyBasedRoutesBuilder_ == null) { + ensurePolicyBasedRoutesIsMutable(); + policyBasedRoutes_.add(index, builderForValue.build()); + onChanged(); + } else { + policyBasedRoutesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Policy based routes to be returned.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + public Builder addAllPolicyBasedRoutes( + java.lang.Iterable values) { + if (policyBasedRoutesBuilder_ == null) { + ensurePolicyBasedRoutesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, policyBasedRoutes_); + onChanged(); + } else { + policyBasedRoutesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Policy based routes to be returned.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + public Builder clearPolicyBasedRoutes() { + if (policyBasedRoutesBuilder_ == null) { + policyBasedRoutes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + policyBasedRoutesBuilder_.clear(); + } + return this; + } + /** + *
+     * Policy based routes to be returned.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + public Builder removePolicyBasedRoutes(int index) { + if (policyBasedRoutesBuilder_ == null) { + ensurePolicyBasedRoutesIsMutable(); + policyBasedRoutes_.remove(index); + onChanged(); + } else { + policyBasedRoutesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Policy based routes to be returned.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder getPolicyBasedRoutesBuilder( + int index) { + return getPolicyBasedRoutesFieldBuilder().getBuilder(index); + } + /** + *
+     * Policy based routes to be returned.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPolicyBasedRoutesOrBuilder( + int index) { + if (policyBasedRoutesBuilder_ == null) { + return policyBasedRoutes_.get(index); } else { + return policyBasedRoutesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Policy based routes to be returned.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + public java.util.List + getPolicyBasedRoutesOrBuilderList() { + if (policyBasedRoutesBuilder_ != null) { + return policyBasedRoutesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(policyBasedRoutes_); + } + } + /** + *
+     * Policy based routes to be returned.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder addPolicyBasedRoutesBuilder() { + return getPolicyBasedRoutesFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance()); + } + /** + *
+     * Policy based routes to be returned.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder addPolicyBasedRoutesBuilder( + int index) { + return getPolicyBasedRoutesFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance()); + } + /** + *
+     * Policy based routes to be returned.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + public java.util.List + getPolicyBasedRoutesBuilderList() { + return getPolicyBasedRoutesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> + getPolicyBasedRoutesFieldBuilder() { + if (policyBasedRoutesBuilder_ == null) { + policyBasedRoutesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder>( + policyBasedRoutes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + policyBasedRoutes_ = null; + } + return policyBasedRoutesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * The next pagination token in the List response. It should be used as
+     * page_token for the following request. An empty value means no more result.
+     * 
+ * + * 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; + } + } + /** + *
+     * The next pagination token in the List response. It should be used as
+     * page_token for the following request. An empty value means no more result.
+     * 
+ * + * 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; + } + } + /** + *
+     * The next pagination token in the List response. It should be used as
+     * page_token for the following request. An empty value means no more result.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The next pagination token in the List response. It should be used as
+     * page_token for the following request. An empty value means no more result.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The next pagination token in the List response. It should be used as
+     * page_token for the following request. An empty value means no more result.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000004; + } + } + /** + *
+     * 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_ & ~0x00000004); + 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) + private static final com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse(); + } + + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPolicyBasedRoutesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponseOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponseOrBuilder.java new file mode 100644 index 000000000000..b8ab149df1bb --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponseOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/policy_based_routing.proto + +package com.google.cloud.networkconnectivity.v1; + +public interface ListPolicyBasedRoutesResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Policy based routes to be returned.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + java.util.List + getPolicyBasedRoutesList(); + /** + *
+   * Policy based routes to be returned.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoutes(int index); + /** + *
+   * Policy based routes to be returned.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + int getPolicyBasedRoutesCount(); + /** + *
+   * Policy based routes to be returned.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + java.util.List + getPolicyBasedRoutesOrBuilderList(); + /** + *
+   * Policy based routes to be returned.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + */ + com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPolicyBasedRoutesOrBuilder( + int index); + + /** + *
+   * The next pagination token in the List response. It should be used as
+   * page_token for the following request. An empty value means no more result.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * The next pagination token in the List response. It should be used as
+   * page_token for the following request. An empty value means no more result.
+   * 
+ * + * 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java index 3823e6eda467..0cb0927c1eb9 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java @@ -1,42 +1,25 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
+ * The request for
+ * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesRequest} */ -public final class ListSpokesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSpokesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListSpokesRequest) ListSpokesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSpokesRequest.newBuilder() to construct. private ListSpokesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSpokesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,45 +29,38 @@ private ListSpokesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSpokesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, - com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 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 @@ -93,31 +69,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 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 { @@ -128,14 +102,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -144,18 +115,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -164,29 +131,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The page token.
    * 
* * 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 { @@ -195,18 +162,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -215,29 +178,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; } } /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * 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 { @@ -246,18 +209,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -266,29 +225,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -297,7 +256,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +267,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -338,7 +297,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_); @@ -357,19 +317,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.networkconnectivity.v1.ListSpokesRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListSpokesRequest other = - (com.google.cloud.networkconnectivity.v1.ListSpokesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1.ListSpokesRequest other = (com.google.cloud.networkconnectivity.v1.ListSpokesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -397,136 +361,130 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListSpokesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
+   * The request for
+   * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListSpokesRequest) com.google.cloud.networkconnectivity.v1.ListSpokesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, - com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.ListSpokesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -540,9 +498,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; } @java.lang.Override @@ -561,11 +519,8 @@ public com.google.cloud.networkconnectivity.v1.ListSpokesRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.ListSpokesRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.ListSpokesRequest result = - new com.google.cloud.networkconnectivity.v1.ListSpokesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.ListSpokesRequest result = new com.google.cloud.networkconnectivity.v1.ListSpokesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -593,39 +548,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListSpokesReq public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.ListSpokesRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesRequest)other); } else { super.mergeFrom(other); return this; @@ -633,8 +587,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListSpokesRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.ListSpokesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.ListSpokesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -684,43 +637,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -730,27 +677,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string parent = 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; @@ -759,23 +701,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string parent = 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 { @@ -783,39 +722,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string 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() { @@ -825,23 +753,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -849,16 +771,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -866,33 +785,27 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -904,20 +817,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The page token.
      * 
* * 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; @@ -926,21 +837,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The page token.
      * 
* * 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 { @@ -948,35 +858,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The page token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -986,21 +889,17 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1010,20 +909,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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; @@ -1032,21 +929,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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 { @@ -1054,35 +950,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1092,21 +981,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1116,20 +1001,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1138,21 +1021,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1160,35 +1042,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1198,30 +1073,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1231,12 +1102,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListSpokesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListSpokesRequest) private static final com.google.cloud.networkconnectivity.v1.ListSpokesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListSpokesRequest(); } @@ -1245,27 +1116,27 @@ public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1280,4 +1151,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListSpokesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java similarity index 58% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java index 6d50170b35ab..46c69c915c82 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java @@ -1,142 +1,99 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListSpokesRequestOrBuilder - extends +public interface ListSpokesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListSpokesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java similarity index 72% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java index d24a998eaca4..d0fdc3b7fbec 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java @@ -1,42 +1,25 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
+ * The response for
+ * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesResponse} */ -public final class ListSpokesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSpokesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListSpokesResponse) ListSpokesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSpokesResponse.newBuilder() to construct. private ListSpokesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSpokesResponse() { spokes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,37 +28,33 @@ private ListSpokesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSpokesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, - com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class); } public static final int SPOKES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List spokes_; /** - * - * *
    * The requested spokes.
    * 
@@ -87,8 +66,6 @@ public java.util.List getSpokesLi return spokes_; } /** - * - * *
    * The requested spokes.
    * 
@@ -96,13 +73,11 @@ public java.util.List getSpokesLi * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSpokesOrBuilderList() { return spokes_; } /** - * - * *
    * The requested spokes.
    * 
@@ -114,8 +89,6 @@ public int getSpokesCount() { return spokes_.size(); } /** - * - * *
    * The requested spokes.
    * 
@@ -127,8 +100,6 @@ public com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index) { return spokes_.get(index); } /** - * - * *
    * The requested spokes.
    * 
@@ -136,24 +107,21 @@ public com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index) { * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder( + int index) { return spokes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -162,30 +130,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -194,46 +162,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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. */ @@ -241,23 +200,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; @@ -269,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 { for (int i = 0; i < spokes_.size(); i++) { output.writeMessage(1, spokes_.get(i)); } @@ -289,7 +246,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < spokes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, spokes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, spokes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -310,17 +268,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.networkconnectivity.v1.ListSpokesResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListSpokesResponse other = - (com.google.cloud.networkconnectivity.v1.ListSpokesResponse) obj; + com.google.cloud.networkconnectivity.v1.ListSpokesResponse other = (com.google.cloud.networkconnectivity.v1.ListSpokesResponse) obj; - if (!getSpokesList().equals(other.getSpokesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getSpokesList() + .equals(other.getSpokesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,136 +308,130 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.ListSpokesResponse prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListSpokesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
+   * The response for
+   * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListSpokesResponse) com.google.cloud.networkconnectivity.v1.ListSpokesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, - com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.ListSpokesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +450,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; } @java.lang.Override @@ -517,18 +471,14 @@ public com.google.cloud.networkconnectivity.v1.ListSpokesResponse build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.ListSpokesResponse buildPartial() { - com.google.cloud.networkconnectivity.v1.ListSpokesResponse result = - new com.google.cloud.networkconnectivity.v1.ListSpokesResponse(this); + com.google.cloud.networkconnectivity.v1.ListSpokesResponse result = new com.google.cloud.networkconnectivity.v1.ListSpokesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1.ListSpokesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.ListSpokesResponse result) { if (spokesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { spokes_ = java.util.Collections.unmodifiableList(spokes_); @@ -556,39 +506,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListSpokesRes public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.ListSpokesResponse) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesResponse) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesResponse)other); } else { super.mergeFrom(other); return this; @@ -596,8 +545,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListSpokesResponse other) { - if (other == com.google.cloud.networkconnectivity.v1.ListSpokesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.ListSpokesResponse.getDefaultInstance()) return this; if (spokesBuilder_ == null) { if (!other.spokes_.isEmpty()) { if (spokes_.isEmpty()) { @@ -616,10 +564,9 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListSpokesRespo spokesBuilder_ = null; spokes_ = other.spokes_; bitField0_ = (bitField0_ & ~0x00000001); - spokesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSpokesFieldBuilder() - : null; + spokesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSpokesFieldBuilder() : null; } else { spokesBuilder_.addAllMessages(other.spokes_); } @@ -666,39 +613,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.networkconnectivity.v1.Spoke m = - input.readMessage( - com.google.cloud.networkconnectivity.v1.Spoke.parser(), extensionRegistry); - if (spokesBuilder_ == null) { - ensureSpokesIsMutable(); - spokes_.add(m); - } else { - spokesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.networkconnectivity.v1.Spoke m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.Spoke.parser(), + extensionRegistry); + if (spokesBuilder_ == null) { + ensureSpokesIsMutable(); + spokes_.add(m); + } else { + spokesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -708,28 +652,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List spokes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSpokesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { spokes_ = new java.util.ArrayList(spokes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> - spokesBuilder_; + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> spokesBuilder_; /** - * - * *
      * The requested spokes.
      * 
@@ -744,8 +681,6 @@ public java.util.List getSpokesLi } } /** - * - * *
      * The requested spokes.
      * 
@@ -760,8 +695,6 @@ public int getSpokesCount() { } } /** - * - * *
      * The requested spokes.
      * 
@@ -776,15 +709,14 @@ public com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index) { } } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public Builder setSpokes(int index, com.google.cloud.networkconnectivity.v1.Spoke value) { + public Builder setSpokes( + int index, com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -798,8 +730,6 @@ public Builder setSpokes(int index, com.google.cloud.networkconnectivity.v1.Spok return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -818,8 +748,6 @@ public Builder setSpokes( return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -840,15 +768,14 @@ public Builder addSpokes(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public Builder addSpokes(int index, com.google.cloud.networkconnectivity.v1.Spoke value) { + public Builder addSpokes( + int index, com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -862,8 +789,6 @@ public Builder addSpokes(int index, com.google.cloud.networkconnectivity.v1.Spok return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -882,8 +807,6 @@ public Builder addSpokes( return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -902,8 +825,6 @@ public Builder addSpokes( return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -914,7 +835,8 @@ public Builder addAllSpokes( java.lang.Iterable values) { if (spokesBuilder_ == null) { ensureSpokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spokes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, spokes_); onChanged(); } else { spokesBuilder_.addAllMessages(values); @@ -922,8 +844,6 @@ public Builder addAllSpokes( return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -941,8 +861,6 @@ public Builder clearSpokes() { return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -960,44 +878,39 @@ public Builder removeSpokes(int index) { return this; } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokesBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokesBuilder( + int index) { return getSpokesFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder( + int index) { if (spokesBuilder_ == null) { - return spokes_.get(index); - } else { + return spokes_.get(index); } else { return spokesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public java.util.List - getSpokesOrBuilderList() { + public java.util.List + getSpokesOrBuilderList() { if (spokesBuilder_ != null) { return spokesBuilder_.getMessageOrBuilderList(); } else { @@ -1005,8 +918,6 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder } } /** - * - * *
      * The requested spokes.
      * 
@@ -1014,48 +925,42 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder() { - return getSpokesFieldBuilder() - .addBuilder(com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); + return getSpokesFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder(int index) { - return getSpokesFieldBuilder() - .addBuilder(index, com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder( + int index) { + return getSpokesFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public java.util.List - getSpokesBuilderList() { + public java.util.List + getSpokesBuilderList() { return getSpokesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> getSpokesFieldBuilder() { if (spokesBuilder_ == null) { - spokesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( - spokes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + spokesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( + spokes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); spokes_ = null; } return spokesBuilder_; @@ -1063,21 +968,19 @@ public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder(in private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -1086,22 +989,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1109,37 +1011,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1149,22 +1044,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1172,52 +1063,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * 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. */ @@ -1225,90 +1106,76 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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(); - } + 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) { + 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() { @@ -1318,30 +1185,26 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1351,12 +1214,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListSpokesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListSpokesResponse) private static final com.google.cloud.networkconnectivity.v1.ListSpokesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListSpokesResponse(); } @@ -1365,27 +1228,27 @@ public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1400,4 +1263,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListSpokesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java similarity index 73% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java index 212e8ce02a58..834b94da7b71 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListSpokesResponseOrBuilder - extends +public interface ListSpokesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListSpokesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested spokes.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - java.util.List getSpokesList(); + java.util.List + getSpokesList(); /** - * - * *
    * The requested spokes.
    * 
@@ -44,8 +25,6 @@ public interface ListSpokesResponseOrBuilder */ com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index); /** - * - * *
    * The requested spokes.
    * 
@@ -54,102 +33,84 @@ public interface ListSpokesResponseOrBuilder */ int getSpokesCount(); /** - * - * *
    * The requested spokes.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - java.util.List + java.util.List getSpokesOrBuilderList(); /** - * - * *
    * The requested spokes.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder(int index); + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder( + int index); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java index 6aa822e09f36..cf212e9b299c 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * Supported features for a location
  * 
* * Protobuf enum {@code google.cloud.networkconnectivity.v1.LocationFeature} */ -public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { +public enum LocationFeature + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * No publicly supported feature in this location
    * 
@@ -39,8 +21,6 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { */ LOCATION_FEATURE_UNSPECIFIED(0), /** - * - * *
    * Site-to-cloud spokes are supported in this location
    * 
@@ -49,8 +29,6 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { */ SITE_TO_CLOUD_SPOKES(1), /** - * - * *
    * Site-to-site spokes are supported in this location
    * 
@@ -62,8 +40,6 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * No publicly supported feature in this location
    * 
@@ -72,8 +48,6 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOCATION_FEATURE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Site-to-cloud spokes are supported in this location
    * 
@@ -82,8 +56,6 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SITE_TO_CLOUD_SPOKES_VALUE = 1; /** - * - * *
    * Site-to-site spokes are supported in this location
    * 
@@ -92,6 +64,7 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SITE_TO_SITE_SPOKES_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,49 +89,49 @@ public static LocationFeature valueOf(int value) { */ public static LocationFeature forNumber(int value) { switch (value) { - case 0: - return LOCATION_FEATURE_UNSPECIFIED; - case 1: - return SITE_TO_CLOUD_SPOKES; - case 2: - return SITE_TO_SITE_SPOKES; - default: - return null; + case 0: return LOCATION_FEATURE_UNSPECIFIED; + case 1: return SITE_TO_CLOUD_SPOKES; + case 2: return SITE_TO_SITE_SPOKES; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LocationFeature findValueByNumber(int number) { - return LocationFeature.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + LocationFeature> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LocationFeature findValueByNumber(int number) { + return LocationFeature.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.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(0); } private static final LocationFeature[] VALUES = values(); - public static LocationFeature valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static LocationFeature valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -174,3 +147,4 @@ private LocationFeature(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.LocationFeature) } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java index b9e4e2f54e66..2f0e5ab71614 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java @@ -1,120 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * Metadata about locations
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.LocationMetadata} */ -public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LocationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LocationMetadata) LocationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LocationMetadata.newBuilder() to construct. private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LocationMetadata() { locationFeatures_ = 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 LocationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.LocationMetadata.class, - com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.LocationMetadata.class, com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); } public static final int LOCATION_FEATURES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List locationFeatures_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature> - locationFeatures_converter_ = + java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature> locationFeatures_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>() { - public com.google.cloud.networkconnectivity.v1.LocationFeature convert( - java.lang.Integer from) { - com.google.cloud.networkconnectivity.v1.LocationFeature result = - com.google.cloud.networkconnectivity.v1.LocationFeature.forNumber(from); - return result == null - ? com.google.cloud.networkconnectivity.v1.LocationFeature.UNRECOGNIZED - : result; + public com.google.cloud.networkconnectivity.v1.LocationFeature convert(java.lang.Integer from) { + com.google.cloud.networkconnectivity.v1.LocationFeature result = com.google.cloud.networkconnectivity.v1.LocationFeature.forNumber(from); + return result == null ? com.google.cloud.networkconnectivity.v1.LocationFeature.UNRECOGNIZED : result; } }; /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return A list containing the locationFeatures. */ @java.lang.Override - public java.util.List - getLocationFeaturesList() { + public java.util.List getLocationFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>( - locationFeatures_, locationFeatures_converter_); + java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>(locationFeatures_, locationFeatures_converter_); } /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return The count of locationFeatures. */ @java.lang.Override @@ -122,15 +86,11 @@ public int getLocationFeaturesCount() { return locationFeatures_.size(); } /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index of the element to return. * @return The locationFeatures at the given index. */ @@ -139,31 +99,24 @@ public com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatur return locationFeatures_converter_.convert(locationFeatures_.get(index)); } /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return A list containing the enum numeric values on the wire for locationFeatures. */ @java.lang.Override - public java.util.List getLocationFeaturesValueList() { + public java.util.List + getLocationFeaturesValueList() { return locationFeatures_; } /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of locationFeatures at the given index. */ @@ -171,11 +124,9 @@ public java.util.List getLocationFeaturesValueList() { public int getLocationFeaturesValue(int index) { return locationFeatures_.get(index); } - private int locationFeaturesMemoizedSerializedSize; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +138,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getLocationFeaturesList().size() > 0) { output.writeUInt32NoTag(10); @@ -208,15 +160,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < locationFeatures_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(locationFeatures_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(locationFeatures_.get(i)); } size += dataSize; - if (!getLocationFeaturesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - locationFeaturesMemoizedSerializedSize = dataSize; + if (!getLocationFeaturesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }locationFeaturesMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -226,13 +177,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.networkconnectivity.v1.LocationMetadata)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LocationMetadata other = - (com.google.cloud.networkconnectivity.v1.LocationMetadata) obj; + com.google.cloud.networkconnectivity.v1.LocationMetadata other = (com.google.cloud.networkconnectivity.v1.LocationMetadata) obj; if (!locationFeatures_.equals(other.locationFeatures_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -256,136 +206,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.LocationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LocationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metadata about locations
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.LocationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LocationMetadata) com.google.cloud.networkconnectivity.v1.LocationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.LocationMetadata.class, - com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.LocationMetadata.class, com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.LocationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -396,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; } @java.lang.Override @@ -417,18 +360,14 @@ public com.google.cloud.networkconnectivity.v1.LocationMetadata build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.LocationMetadata buildPartial() { - com.google.cloud.networkconnectivity.v1.LocationMetadata result = - new com.google.cloud.networkconnectivity.v1.LocationMetadata(this); + com.google.cloud.networkconnectivity.v1.LocationMetadata result = new com.google.cloud.networkconnectivity.v1.LocationMetadata(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1.LocationMetadata result) { + private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LocationMetadata result) { if (((bitField0_ & 0x00000001) != 0)) { locationFeatures_ = java.util.Collections.unmodifiableList(locationFeatures_); bitField0_ = (bitField0_ & ~0x00000001); @@ -444,39 +383,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LocationMetad public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.LocationMetadata) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.LocationMetadata) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.LocationMetadata)other); } else { super.mergeFrom(other); return this; @@ -484,8 +422,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LocationMetadata other) { - if (other == com.google.cloud.networkconnectivity.v1.LocationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.LocationMetadata.getDefaultInstance()) return this; if (!other.locationFeatures_.isEmpty()) { if (locationFeatures_.isEmpty()) { locationFeatures_ = other.locationFeatures_; @@ -522,32 +459,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { + case 8: { + int tmpRaw = input.readEnum(); + ensureLocationFeaturesIsMutable(); + locationFeatures_.add(tmpRaw); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureLocationFeaturesIsMutable(); locationFeatures_.add(tmpRaw); - break; - } // case 8 - case 10: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureLocationFeaturesIsMutable(); - locationFeatures_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,11 +491,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List locationFeatures_ = java.util.Collections.emptyList(); - + private java.util.List locationFeatures_ = + java.util.Collections.emptyList(); private void ensureLocationFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { locationFeatures_ = new java.util.ArrayList(locationFeatures_); @@ -569,48 +502,34 @@ private void ensureLocationFeaturesIsMutable() { } } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return A list containing the locationFeatures. */ - public java.util.List - getLocationFeaturesList() { + public java.util.List getLocationFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>( - locationFeatures_, locationFeatures_converter_); + java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>(locationFeatures_, locationFeatures_converter_); } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return The count of locationFeatures. */ public int getLocationFeaturesCount() { return locationFeatures_.size(); } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index of the element to return. * @return The locationFeatures at the given index. */ @@ -618,15 +537,11 @@ public com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatur return locationFeatures_converter_.convert(locationFeatures_.get(index)); } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index to set the value at. * @param value The locationFeatures to set. * @return This builder for chaining. @@ -642,20 +557,15 @@ public Builder setLocationFeatures( return this; } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param value The locationFeatures to add. * @return This builder for chaining. */ - public Builder addLocationFeatures( - com.google.cloud.networkconnectivity.v1.LocationFeature value) { + public Builder addLocationFeatures(com.google.cloud.networkconnectivity.v1.LocationFeature value) { if (value == null) { throw new NullPointerException(); } @@ -665,21 +575,16 @@ public Builder addLocationFeatures( return this; } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param values The locationFeatures to add. * @return This builder for chaining. */ public Builder addAllLocationFeatures( - java.lang.Iterable - values) { + java.lang.Iterable values) { ensureLocationFeaturesIsMutable(); for (com.google.cloud.networkconnectivity.v1.LocationFeature value : values) { locationFeatures_.add(value.getNumber()); @@ -688,15 +593,11 @@ public Builder addAllLocationFeatures( return this; } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return This builder for chaining. */ public Builder clearLocationFeatures() { @@ -706,30 +607,23 @@ public Builder clearLocationFeatures() { return this; } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return A list containing the enum numeric values on the wire for locationFeatures. */ - public java.util.List getLocationFeaturesValueList() { + public java.util.List + getLocationFeaturesValueList() { return java.util.Collections.unmodifiableList(locationFeatures_); } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of locationFeatures at the given index. */ @@ -737,35 +631,28 @@ public int getLocationFeaturesValue(int index) { return locationFeatures_.get(index); } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index to set the value at. * @param value The enum numeric value on the wire for locationFeatures to set. * @return This builder for chaining. */ - public Builder setLocationFeaturesValue(int index, int value) { + public Builder setLocationFeaturesValue( + int index, int value) { ensureLocationFeaturesIsMutable(); locationFeatures_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param value The enum numeric value on the wire for locationFeatures to add. * @return This builder for chaining. */ @@ -776,19 +663,16 @@ public Builder addLocationFeaturesValue(int value) { return this; } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param values The enum numeric values on the wire for locationFeatures to add. * @return This builder for chaining. */ - public Builder addAllLocationFeaturesValue(java.lang.Iterable values) { + public Builder addAllLocationFeaturesValue( + java.lang.Iterable values) { ensureLocationFeaturesIsMutable(); for (int value : values) { locationFeatures_.add(value); @@ -796,9 +680,9 @@ public Builder addAllLocationFeaturesValue(java.lang.Iterable onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +692,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LocationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LocationMetadata) private static final com.google.cloud.networkconnectivity.v1.LocationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LocationMetadata(); } @@ -822,27 +706,27 @@ public static com.google.cloud.networkconnectivity.v1.LocationMetadata getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,4 +741,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.LocationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java similarity index 62% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java index f42007f563f6..f8b387b0a5a2 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java @@ -1,91 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LocationMetadataOrBuilder - extends +public interface LocationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LocationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return A list containing the locationFeatures. */ java.util.List getLocationFeaturesList(); /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return The count of locationFeatures. */ int getLocationFeaturesCount(); /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index of the element to return. * @return The locationFeatures at the given index. */ com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatures(int index); /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return A list containing the enum numeric values on the wire for locationFeatures. */ - java.util.List getLocationFeaturesValueList(); + java.util.List + getLocationFeaturesValueList(); /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of locationFeatures at the given index. */ diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java index ecb829230dfd..ccff6a11ac7c 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/common.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,42 +28,37 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.OperationMetadata.class, - com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -89,15 +66,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -105,14 +78,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -122,15 +92,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -138,15 +104,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -154,14 +116,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -169,18 +128,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -189,29 +144,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -220,18 +175,14 @@ public com.google.protobuf.ByteString getTargetBytes() { } public static final int VERB_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -240,29 +191,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -271,18 +222,14 @@ public com.google.protobuf.ByteString getVerbBytes() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -291,29 +238,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -324,8 +271,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have been cancelled successfully
@@ -334,7 +279,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -343,18 +287,14 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -363,29 +303,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -394,7 +334,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -406,7 +345,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -438,10 +378,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_); @@ -453,7 +395,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_); @@ -466,27 +409,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.networkconnectivity.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.OperationMetadata other = - (com.google.cloud.networkconnectivity.v1.OperationMetadata) obj; + com.google.cloud.networkconnectivity.v1.OperationMetadata other = (com.google.cloud.networkconnectivity.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -513,7 +462,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) + getUnknownFields().hashCode(); @@ -522,136 +472,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.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.networkconnectivity.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.OperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.OperationMetadata) com.google.cloud.networkconnectivity.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.OperationMetadata.class, - com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.OperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -675,9 +618,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -696,11 +639,8 @@ public com.google.cloud.networkconnectivity.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.OperationMetadata buildPartial() { - com.google.cloud.networkconnectivity.v1.OperationMetadata result = - new com.google.cloud.networkconnectivity.v1.OperationMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.OperationMetadata result = new com.google.cloud.networkconnectivity.v1.OperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -708,10 +648,14 @@ public com.google.cloud.networkconnectivity.v1.OperationMetadata buildPartial() private void buildPartial0(com.google.cloud.networkconnectivity.v1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -734,39 +678,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.OperationMeta public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.OperationMetadata) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -774,8 +717,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.OperationMetadata other) { - if (other == com.google.cloud.networkconnectivity.v1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -831,55 +773,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -889,63 +827,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time 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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -961,17 +879,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -982,21 +897,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1009,15 +920,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1030,15 +937,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -1046,48 +949,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1095,35 +986,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1134,14 +1014,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1157,16 +1034,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1177,20 +1052,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1203,14 +1075,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1223,14 +1092,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1238,44 +1104,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1283,20 +1141,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1305,21 +1161,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1327,35 +1182,28 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1365,21 +1213,17 @@ public Builder clearTarget() { return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1389,20 +1233,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1411,21 +1253,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1433,35 +1274,28 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerb( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1471,21 +1305,17 @@ public Builder clearVerb() { return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1495,20 +1325,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1517,21 +1345,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1539,35 +1366,28 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1577,21 +1397,17 @@ public Builder clearStatusMessage() { return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1599,10 +1415,8 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
@@ -1611,7 +1425,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 @@ -1619,8 +1432,6 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
@@ -1629,20 +1440,17 @@ 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
@@ -1651,7 +1459,6 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1663,20 +1470,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1685,21 +1490,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1707,35 +1511,28 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1745,30 +1542,26 @@ public Builder clearApiVersion() { return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1778,12 +1571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.OperationMetadata) private static final com.google.cloud.networkconnectivity.v1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.OperationMetadata(); } @@ -1792,27 +1585,27 @@ public static com.google.cloud.networkconnectivity.v1.OperationMetadata getDefau 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1827,4 +1620,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java similarity index 75% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java index 217a088b5a3d..f4be0419ee4b 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/common.proto package com.google.cloud.networkconnectivity.v1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have been cancelled successfully
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoute.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoute.java new file mode 100644 index 000000000000..661f165a5003 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoute.java @@ -0,0 +1,7688 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/policy_based_routing.proto + +package com.google.cloud.networkconnectivity.v1; + +/** + *
+ * Policy Based Routes (PBR) are more powerful routes that allows GCP customers
+ * to route their L4 network traffic based on not just destination IP, but also
+ * source IP, protocol and more. A PBR always take precedence when it conflicts
+ * with other types of routes.
+ * Next id: 19
+ * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute} + */ +public final class PolicyBasedRoute extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute) + PolicyBasedRouteOrBuilder { +private static final long serialVersionUID = 0L; + // Use PolicyBasedRoute.newBuilder() to construct. + private PolicyBasedRoute(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PolicyBasedRoute() { + name_ = ""; + description_ = ""; + network_ = ""; + warnings_ = java.util.Collections.emptyList(); + selfLink_ = ""; + kind_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PolicyBasedRoute(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + 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.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder.class); + } + + public interface VirtualMachineOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Optional. A list of VM instance tags to which this policy based route applies to.
+     * VM instances that have ANY of tags specified here will install this
+     * PBR.
+     * 
+ * + * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return A list containing the tags. + */ + java.util.List + getTagsList(); + /** + *
+     * Optional. A list of VM instance tags to which this policy based route applies to.
+     * VM instances that have ANY of tags specified here will install this
+     * PBR.
+     * 
+ * + * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The count of tags. + */ + int getTagsCount(); + /** + *
+     * Optional. A list of VM instance tags to which this policy based route applies to.
+     * VM instances that have ANY of tags specified here will install this
+     * PBR.
+     * 
+ * + * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + java.lang.String getTags(int index); + /** + *
+     * Optional. A list of VM instance tags to which this policy based route applies to.
+     * VM instances that have ANY of tags specified here will install this
+     * PBR.
+     * 
+ * + * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + } + /** + *
+   * VM instances to which this policy based route applies to.
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine} + */ + public static final class VirtualMachine extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) + VirtualMachineOrBuilder { + private static final long serialVersionUID = 0L; + // Use VirtualMachine.newBuilder() to construct. + private VirtualMachine(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VirtualMachine() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VirtualMachine(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder.class); + } + + public static final int TAGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList tags_; + /** + *
+     * Optional. A list of VM instance tags to which this policy based route applies to.
+     * VM instances that have ANY of tags specified here will install this
+     * PBR.
+     * 
+ * + * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + *
+     * Optional. A list of VM instance tags to which this policy based route applies to.
+     * VM instances that have ANY of tags specified here will install this
+     * PBR.
+     * 
+ * + * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+     * Optional. A list of VM instance tags to which this policy based route applies to.
+     * VM instances that have ANY of tags specified here will install this
+     * PBR.
+     * 
+ * + * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+     * Optional. A list of VM instance tags to which this policy based route applies to.
+     * VM instances that have ANY of tags specified here will install this
+     * PBR.
+     * 
+ * + * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.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 < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tags_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + size += getUnknownFields().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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine other = (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) obj; + + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine 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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine 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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine 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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine 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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine 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; + } + /** + *
+     * VM instances to which this policy based route applies to.
+     * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine build() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine buildPartial() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result) { + if (((bitField0_ & 0x00000001) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tags_ = tags_; + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result) { + int from_bitField0_ = bitField0_; + } + + @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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine other) { + if (other == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.getDefaultInstance()) return this; + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Optional. A list of VM instance tags to which this policy based route applies to.
+       * VM instances that have ANY of tags specified here will install this
+       * PBR.
+       * 
+ * + * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + *
+       * Optional. A list of VM instance tags to which this policy based route applies to.
+       * VM instances that have ANY of tags specified here will install this
+       * PBR.
+       * 
+ * + * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+       * Optional. A list of VM instance tags to which this policy based route applies to.
+       * VM instances that have ANY of tags specified here will install this
+       * PBR.
+       * 
+ * + * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+       * Optional. A list of VM instance tags to which this policy based route applies to.
+       * VM instances that have ANY of tags specified here will install this
+       * PBR.
+       * 
+ * + * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + *
+       * Optional. A list of VM instance tags to which this policy based route applies to.
+       * VM instances that have ANY of tags specified here will install this
+       * PBR.
+       * 
+ * + * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param index The index to set the value at. + * @param value The tags to set. + * @return This builder for chaining. + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Optional. A list of VM instance tags to which this policy based route applies to.
+       * VM instances that have ANY of tags specified here will install this
+       * PBR.
+       * 
+ * + * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The tags to add. + * @return This builder for chaining. + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + *
+       * Optional. A list of VM instance tags to which this policy based route applies to.
+       * VM instances that have ANY of tags specified here will install this
+       * PBR.
+       * 
+ * + * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param values The tags to add. + * @return This builder for chaining. + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + *
+       * Optional. A list of VM instance tags to which this policy based route applies to.
+       * VM instances that have ANY of tags specified here will install this
+       * PBR.
+       * 
+ * + * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Optional. A list of VM instance tags to which this policy based route applies to.
+       * VM instances that have ANY of tags specified here will install this
+       * PBR.
+       * 
+ * + * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes of the tags to add. + * @return This builder for chaining. + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) + private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine(); + } + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VirtualMachine parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface InterconnectAttachmentOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Optional. Cloud region to install this policy based route on interconnect
+     * attachment. Use `all` to install it on all interconnect attachments.
+     * 
+ * + * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The region. + */ + java.lang.String getRegion(); + /** + *
+     * Optional. Cloud region to install this policy based route on interconnect
+     * attachment. Use `all` to install it on all interconnect attachments.
+     * 
+ * + * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for region. + */ + com.google.protobuf.ByteString + getRegionBytes(); + } + /** + *
+   * InterconnectAttachment to which this route applies to.
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment} + */ + public static final class InterconnectAttachment extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) + InterconnectAttachmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use InterconnectAttachment.newBuilder() to construct. + private InterconnectAttachment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InterconnectAttachment() { + region_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InterconnectAttachment(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder.class); + } + + public static final int REGION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + /** + *
+     * Optional. Cloud region to install this policy based route on interconnect
+     * attachment. Use `all` to install it on all interconnect attachments.
+     * 
+ * + * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + /** + *
+     * Optional. Cloud region to install this policy based route on interconnect
+     * attachment. Use `all` to install it on all interconnect attachments.
+     * 
+ * + * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = 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(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, region_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, region_); + } + size += getUnknownFields().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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment other = (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) obj; + + if (!getRegion() + .equals(other.getRegion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment 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; + } + /** + *
+     * InterconnectAttachment to which this route applies to.
+     * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + region_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment build() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment buildPartial() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment result = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.region_ = region_; + } + } + + @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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment other) { + if (other == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.getDefaultInstance()) return this; + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object region_ = ""; + /** + *
+       * Optional. Cloud region to install this policy based route on interconnect
+       * attachment. Use `all` to install it on all interconnect attachments.
+       * 
+ * + * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Optional. Cloud region to install this policy based route on interconnect
+       * attachment. Use `all` to install it on all interconnect attachments.
+       * 
+ * + * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for region. + */ + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional. Cloud region to install this policy based route on interconnect
+       * attachment. Use `all` to install it on all interconnect attachments.
+       * 
+ * + * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + region_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Optional. Cloud region to install this policy based route on interconnect
+       * attachment. Use `all` to install it on all interconnect attachments.
+       * 
+ * + * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Optional. Cloud region to install this policy based route on interconnect
+       * attachment. Use `all` to install it on all interconnect attachments.
+       * 
+ * + * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000001; + 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) + private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment(); + } + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InterconnectAttachment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FilterOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Optional. The IP protocol that this policy based route applies to. Valid values are
+     * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
+     * 
+ * + * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The ipProtocol. + */ + java.lang.String getIpProtocol(); + /** + *
+     * Optional. The IP protocol that this policy based route applies to. Valid values are
+     * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
+     * 
+ * + * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for ipProtocol. + */ + com.google.protobuf.ByteString + getIpProtocolBytes(); + + /** + *
+     * Optional. The source IP range of outgoing packets that this policy based route
+     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
+     * 
+ * + * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The srcRange. + */ + java.lang.String getSrcRange(); + /** + *
+     * Optional. The source IP range of outgoing packets that this policy based route
+     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
+     * 
+ * + * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for srcRange. + */ + com.google.protobuf.ByteString + getSrcRangeBytes(); + + /** + *
+     * Optional. The destination IP range of outgoing packets that this policy based route
+     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
+     * 
+ * + * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The destRange. + */ + java.lang.String getDestRange(); + /** + *
+     * Optional. The destination IP range of outgoing packets that this policy based route
+     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
+     * 
+ * + * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for destRange. + */ + com.google.protobuf.ByteString + getDestRangeBytes(); + + /** + *
+     * Required. Internet protocol versions this policy based route applies to. For this
+     * version, only IPV4 is supported.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return The enum numeric value on the wire for protocolVersion. + */ + int getProtocolVersionValue(); + /** + *
+     * Required. Internet protocol versions this policy based route applies to. For this
+     * version, only IPV4 is supported.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return The protocolVersion. + */ + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion getProtocolVersion(); + } + /** + *
+   * Filter matches L4 traffic.
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter} + */ + public static final class Filter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) + FilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Filter.newBuilder() to construct. + private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Filter() { + ipProtocol_ = ""; + srcRange_ = ""; + destRange_ = ""; + protocolVersion_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Filter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder.class); + } + + /** + *
+     * The internet protocol version.
+     * 
+ * + * Protobuf enum {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion} + */ + public enum ProtocolVersion + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Default value.
+       * 
+ * + * PROTOCOL_VERSION_UNSPECIFIED = 0; + */ + PROTOCOL_VERSION_UNSPECIFIED(0), + /** + *
+       * The PBR is for IPv4 internet protocol traffic.
+       * 
+ * + * IPV4 = 1; + */ + IPV4(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Default value.
+       * 
+ * + * PROTOCOL_VERSION_UNSPECIFIED = 0; + */ + public static final int PROTOCOL_VERSION_UNSPECIFIED_VALUE = 0; + /** + *
+       * The PBR is for IPv4 internet protocol traffic.
+       * 
+ * + * IPV4 = 1; + */ + public static final int IPV4_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 ProtocolVersion 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 ProtocolVersion forNumber(int value) { + switch (value) { + case 0: return PROTOCOL_VERSION_UNSPECIFIED; + case 1: return IPV4; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ProtocolVersion> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ProtocolVersion findValueByNumber(int number) { + return ProtocolVersion.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.networkconnectivity.v1.PolicyBasedRoute.Filter.getDescriptor().getEnumTypes().get(0); + } + + private static final ProtocolVersion[] VALUES = values(); + + public static ProtocolVersion 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 ProtocolVersion(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion) + } + + public static final int IP_PROTOCOL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object ipProtocol_ = ""; + /** + *
+     * Optional. The IP protocol that this policy based route applies to. Valid values are
+     * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
+     * 
+ * + * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The ipProtocol. + */ + @java.lang.Override + public java.lang.String getIpProtocol() { + java.lang.Object ref = ipProtocol_; + 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(); + ipProtocol_ = s; + return s; + } + } + /** + *
+     * Optional. The IP protocol that this policy based route applies to. Valid values are
+     * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
+     * 
+ * + * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for ipProtocol. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIpProtocolBytes() { + java.lang.Object ref = ipProtocol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ipProtocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SRC_RANGE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object srcRange_ = ""; + /** + *
+     * Optional. The source IP range of outgoing packets that this policy based route
+     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
+     * 
+ * + * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The srcRange. + */ + @java.lang.Override + public java.lang.String getSrcRange() { + java.lang.Object ref = srcRange_; + 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(); + srcRange_ = s; + return s; + } + } + /** + *
+     * Optional. The source IP range of outgoing packets that this policy based route
+     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
+     * 
+ * + * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for srcRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSrcRangeBytes() { + java.lang.Object ref = srcRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + srcRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEST_RANGE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object destRange_ = ""; + /** + *
+     * Optional. The destination IP range of outgoing packets that this policy based route
+     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
+     * 
+ * + * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The destRange. + */ + @java.lang.Override + public java.lang.String getDestRange() { + java.lang.Object ref = destRange_; + 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(); + destRange_ = s; + return s; + } + } + /** + *
+     * Optional. The destination IP range of outgoing packets that this policy based route
+     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
+     * 
+ * + * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for destRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDestRangeBytes() { + java.lang.Object ref = destRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROTOCOL_VERSION_FIELD_NUMBER = 6; + private int protocolVersion_ = 0; + /** + *
+     * Required. Internet protocol versions this policy based route applies to. For this
+     * version, only IPV4 is supported.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return The enum numeric value on the wire for protocolVersion. + */ + @java.lang.Override public int getProtocolVersionValue() { + return protocolVersion_; + } + /** + *
+     * Required. Internet protocol versions this policy based route applies to. For this
+     * version, only IPV4 is supported.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return The protocolVersion. + */ + @java.lang.Override public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion getProtocolVersion() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion result = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion.forNumber(protocolVersion_); + return result == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion.UNRECOGNIZED : result; + } + + 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(ipProtocol_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipProtocol_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(srcRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, srcRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, destRange_); + } + if (protocolVersion_ != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion.PROTOCOL_VERSION_UNSPECIFIED.getNumber()) { + output.writeEnum(6, protocolVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipProtocol_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ipProtocol_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(srcRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, srcRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, destRange_); + } + if (protocolVersion_ != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion.PROTOCOL_VERSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, protocolVersion_); + } + size += getUnknownFields().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.networkconnectivity.v1.PolicyBasedRoute.Filter)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter other = (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) obj; + + if (!getIpProtocol() + .equals(other.getIpProtocol())) return false; + if (!getSrcRange() + .equals(other.getSrcRange())) return false; + if (!getDestRange() + .equals(other.getDestRange())) return false; + if (protocolVersion_ != other.protocolVersion_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + IP_PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + getIpProtocol().hashCode(); + hash = (37 * hash) + SRC_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getSrcRange().hashCode(); + hash = (37 * hash) + DEST_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getDestRange().hashCode(); + hash = (37 * hash) + PROTOCOL_VERSION_FIELD_NUMBER; + hash = (53 * hash) + protocolVersion_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter 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.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter 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.networkconnectivity.v1.PolicyBasedRoute.Filter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter 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.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter 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.networkconnectivity.v1.PolicyBasedRoute.Filter 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; + } + /** + *
+     * Filter matches L4 traffic.
+     * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ipProtocol_ = ""; + srcRange_ = ""; + destRange_ = ""; + protocolVersion_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter build() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter buildPartial() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter result = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ipProtocol_ = ipProtocol_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.srcRange_ = srcRange_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.destRange_ = destRange_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.protocolVersion_ = protocolVersion_; + } + } + + @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.networkconnectivity.v1.PolicyBasedRoute.Filter) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter other) { + if (other == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance()) return this; + if (!other.getIpProtocol().isEmpty()) { + ipProtocol_ = other.ipProtocol_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSrcRange().isEmpty()) { + srcRange_ = other.srcRange_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDestRange().isEmpty()) { + destRange_ = other.destRange_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.protocolVersion_ != 0) { + setProtocolVersionValue(other.getProtocolVersionValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + ipProtocol_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + srcRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + destRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 48: { + protocolVersion_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object ipProtocol_ = ""; + /** + *
+       * Optional. The IP protocol that this policy based route applies to. Valid values are
+       * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
+       * 
+ * + * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The ipProtocol. + */ + public java.lang.String getIpProtocol() { + java.lang.Object ref = ipProtocol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipProtocol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Optional. The IP protocol that this policy based route applies to. Valid values are
+       * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
+       * 
+ * + * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for ipProtocol. + */ + public com.google.protobuf.ByteString + getIpProtocolBytes() { + java.lang.Object ref = ipProtocol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ipProtocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional. The IP protocol that this policy based route applies to. Valid values are
+       * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
+       * 
+ * + * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The ipProtocol to set. + * @return This builder for chaining. + */ + public Builder setIpProtocol( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ipProtocol_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Optional. The IP protocol that this policy based route applies to. Valid values are
+       * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
+       * 
+ * + * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearIpProtocol() { + ipProtocol_ = getDefaultInstance().getIpProtocol(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Optional. The IP protocol that this policy based route applies to. Valid values are
+       * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
+       * 
+ * + * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for ipProtocol to set. + * @return This builder for chaining. + */ + public Builder setIpProtocolBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ipProtocol_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object srcRange_ = ""; + /** + *
+       * Optional. The source IP range of outgoing packets that this policy based route
+       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
+       * 
+ * + * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The srcRange. + */ + public java.lang.String getSrcRange() { + java.lang.Object ref = srcRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + srcRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Optional. The source IP range of outgoing packets that this policy based route
+       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
+       * 
+ * + * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for srcRange. + */ + public com.google.protobuf.ByteString + getSrcRangeBytes() { + java.lang.Object ref = srcRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + srcRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional. The source IP range of outgoing packets that this policy based route
+       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
+       * 
+ * + * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The srcRange to set. + * @return This builder for chaining. + */ + public Builder setSrcRange( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + srcRange_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Optional. The source IP range of outgoing packets that this policy based route
+       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
+       * 
+ * + * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearSrcRange() { + srcRange_ = getDefaultInstance().getSrcRange(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Optional. The source IP range of outgoing packets that this policy based route
+       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
+       * 
+ * + * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for srcRange to set. + * @return This builder for chaining. + */ + public Builder setSrcRangeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + srcRange_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object destRange_ = ""; + /** + *
+       * Optional. The destination IP range of outgoing packets that this policy based route
+       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
+       * 
+ * + * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The destRange. + */ + public java.lang.String getDestRange() { + java.lang.Object ref = destRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Optional. The destination IP range of outgoing packets that this policy based route
+       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
+       * 
+ * + * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for destRange. + */ + public com.google.protobuf.ByteString + getDestRangeBytes() { + java.lang.Object ref = destRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional. The destination IP range of outgoing packets that this policy based route
+       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
+       * 
+ * + * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The destRange to set. + * @return This builder for chaining. + */ + public Builder setDestRange( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + destRange_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Optional. The destination IP range of outgoing packets that this policy based route
+       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
+       * 
+ * + * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearDestRange() { + destRange_ = getDefaultInstance().getDestRange(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * Optional. The destination IP range of outgoing packets that this policy based route
+       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
+       * 
+ * + * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for destRange to set. + * @return This builder for chaining. + */ + public Builder setDestRangeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + destRange_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int protocolVersion_ = 0; + /** + *
+       * Required. Internet protocol versions this policy based route applies to. For this
+       * version, only IPV4 is supported.
+       * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return The enum numeric value on the wire for protocolVersion. + */ + @java.lang.Override public int getProtocolVersionValue() { + return protocolVersion_; + } + /** + *
+       * Required. Internet protocol versions this policy based route applies to. For this
+       * version, only IPV4 is supported.
+       * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param value The enum numeric value on the wire for protocolVersion to set. + * @return This builder for chaining. + */ + public Builder setProtocolVersionValue(int value) { + protocolVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Required. Internet protocol versions this policy based route applies to. For this
+       * version, only IPV4 is supported.
+       * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return The protocolVersion. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion getProtocolVersion() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion result = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion.forNumber(protocolVersion_); + return result == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion.UNRECOGNIZED : result; + } + /** + *
+       * Required. Internet protocol versions this policy based route applies to. For this
+       * version, only IPV4 is supported.
+       * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param value The protocolVersion to set. + * @return This builder for chaining. + */ + public Builder setProtocolVersion(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + protocolVersion_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Required. Internet protocol versions this policy based route applies to. For this
+       * version, only IPV4 is supported.
+       * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearProtocolVersion() { + bitField0_ = (bitField0_ & ~0x00000008); + protocolVersion_ = 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.networkconnectivity.v1.PolicyBasedRoute.Filter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) + private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter(); + } + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.networkconnectivity.v1.PolicyBasedRoute.Filter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WarningsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Output only. A warning code, if applicable.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + /** + *
+     * Output only. A warning code, if applicable.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The code. + */ + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code getCode(); + + /** + *
+     * Output only. Metadata about this warning in key: value format. The key should provides
+     * more detail on the warning being returned. For example, for warnings
+     * where there are no results in a list request for a particular zone, this
+     * key might be scope and the key value might be the zone name. Other
+     * examples might be a key indicating a deprecated resource and a suggested
+     * replacement.
+     * 
+ * + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + int getDataCount(); + /** + *
+     * Output only. Metadata about this warning in key: value format. The key should provides
+     * more detail on the warning being returned. For example, for warnings
+     * where there are no results in a list request for a particular zone, this
+     * key might be scope and the key value might be the zone name. Other
+     * examples might be a key indicating a deprecated resource and a suggested
+     * replacement.
+     * 
+ * + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + boolean containsData( + java.lang.String key); + /** + * Use {@link #getDataMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getData(); + /** + *
+     * Output only. Metadata about this warning in key: value format. The key should provides
+     * more detail on the warning being returned. For example, for warnings
+     * where there are no results in a list request for a particular zone, this
+     * key might be scope and the key value might be the zone name. Other
+     * examples might be a key indicating a deprecated resource and a suggested
+     * replacement.
+     * 
+ * + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.Map + getDataMap(); + /** + *
+     * Output only. Metadata about this warning in key: value format. The key should provides
+     * more detail on the warning being returned. For example, for warnings
+     * where there are no results in a list request for a particular zone, this
+     * key might be scope and the key value might be the zone name. Other
+     * examples might be a key indicating a deprecated resource and a suggested
+     * replacement.
+     * 
+ * + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + /* nullable */ +java.lang.String getDataOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+     * Output only. Metadata about this warning in key: value format. The key should provides
+     * more detail on the warning being returned. For example, for warnings
+     * where there are no results in a list request for a particular zone, this
+     * key might be scope and the key value might be the zone name. Other
+     * examples might be a key indicating a deprecated resource and a suggested
+     * replacement.
+     * 
+ * + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.lang.String getDataOrThrow( + java.lang.String key); + + /** + *
+     * Output only. A human-readable description of the warning code.
+     * 
+ * + * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The warningMessage. + */ + java.lang.String getWarningMessage(); + /** + *
+     * Output only. A human-readable description of the warning code.
+     * 
+ * + * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for warningMessage. + */ + com.google.protobuf.ByteString + getWarningMessageBytes(); + } + /** + *
+   * Informational warning message.
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings} + */ + public static final class Warnings extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) + WarningsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Warnings.newBuilder() to construct. + private Warnings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Warnings() { + code_ = 0; + warningMessage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Warnings(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetData(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder.class); + } + + /** + *
+     * Warning code for Policy Based Routing. Expect to add values in the
+     * future.
+     * 
+ * + * Protobuf enum {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code} + */ + public enum Code + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Default value.
+       * 
+ * + * WARNING_UNSPECIFIED = 0; + */ + WARNING_UNSPECIFIED(0), + /** + *
+       * The policy based route is not active and functioning. Common causes are
+       * the dependent network was deleted or the resource project was turned
+       * off.
+       * 
+ * + * RESOURCE_NOT_ACTIVE = 1; + */ + RESOURCE_NOT_ACTIVE(1), + /** + *
+       * The policy based route is being modified (e.g. created/deleted) at this
+       * time.
+       * 
+ * + * RESOURCE_BEING_MODIFIED = 2; + */ + RESOURCE_BEING_MODIFIED(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Default value.
+       * 
+ * + * WARNING_UNSPECIFIED = 0; + */ + public static final int WARNING_UNSPECIFIED_VALUE = 0; + /** + *
+       * The policy based route is not active and functioning. Common causes are
+       * the dependent network was deleted or the resource project was turned
+       * off.
+       * 
+ * + * RESOURCE_NOT_ACTIVE = 1; + */ + public static final int RESOURCE_NOT_ACTIVE_VALUE = 1; + /** + *
+       * The policy based route is being modified (e.g. created/deleted) at this
+       * time.
+       * 
+ * + * RESOURCE_BEING_MODIFIED = 2; + */ + public static final int RESOURCE_BEING_MODIFIED_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 Code 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 Code forNumber(int value) { + switch (value) { + case 0: return WARNING_UNSPECIFIED; + case 1: return RESOURCE_NOT_ACTIVE; + case 2: return RESOURCE_BEING_MODIFIED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Code> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.networkconnectivity.v1.PolicyBasedRoute.Warnings.getDescriptor().getEnumTypes().get(0); + } + + private static final Code[] VALUES = values(); + + public static Code valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Code(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code) + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_ = 0; + /** + *
+     * Output only. A warning code, if applicable.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override public int getCodeValue() { + return code_; + } + /** + *
+     * Output only. A warning code, if applicable.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The code. + */ + @java.lang.Override public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code getCode() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code result = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.forNumber(code_); + return result == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.UNRECOGNIZED : result; + } + + public static final int DATA_FIELD_NUMBER = 2; + private static final class DataDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> data_; + private com.google.protobuf.MapField + internalGetData() { + if (data_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DataDefaultEntryHolder.defaultEntry); + } + return data_; + } + public int getDataCount() { + return internalGetData().getMap().size(); + } + /** + *
+     * Output only. Metadata about this warning in key: value format. The key should provides
+     * more detail on the warning being returned. For example, for warnings
+     * where there are no results in a list request for a particular zone, this
+     * key might be scope and the key value might be the zone name. Other
+     * examples might be a key indicating a deprecated resource and a suggested
+     * replacement.
+     * 
+ * + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public boolean containsData( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetData().getMap().containsKey(key); + } + /** + * Use {@link #getDataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getData() { + return getDataMap(); + } + /** + *
+     * Output only. Metadata about this warning in key: value format. The key should provides
+     * more detail on the warning being returned. For example, for warnings
+     * where there are no results in a list request for a particular zone, this
+     * key might be scope and the key value might be the zone name. Other
+     * examples might be a key indicating a deprecated resource and a suggested
+     * replacement.
+     * 
+ * + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.Map getDataMap() { + return internalGetData().getMap(); + } + /** + *
+     * Output only. Metadata about this warning in key: value format. The key should provides
+     * more detail on the warning being returned. For example, for warnings
+     * where there are no results in a list request for a particular zone, this
+     * key might be scope and the key value might be the zone name. Other
+     * examples might be a key indicating a deprecated resource and a suggested
+     * replacement.
+     * 
+ * + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getDataOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetData().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Output only. Metadata about this warning in key: value format. The key should provides
+     * more detail on the warning being returned. For example, for warnings
+     * where there are no results in a list request for a particular zone, this
+     * key might be scope and the key value might be the zone name. Other
+     * examples might be a key indicating a deprecated resource and a suggested
+     * replacement.
+     * 
+ * + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.lang.String getDataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetData().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int WARNING_MESSAGE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object warningMessage_ = ""; + /** + *
+     * Output only. A human-readable description of the warning code.
+     * 
+ * + * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The warningMessage. + */ + @java.lang.Override + public java.lang.String getWarningMessage() { + java.lang.Object ref = warningMessage_; + 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(); + warningMessage_ = s; + return s; + } + } + /** + *
+     * Output only. A human-readable description of the warning code.
+     * 
+ * + * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for warningMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWarningMessageBytes() { + java.lang.Object ref = warningMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + warningMessage_ = 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 (code_ != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.WARNING_UNSPECIFIED.getNumber()) { + output.writeEnum(1, code_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetData(), + DataDefaultEntryHolder.defaultEntry, + 2); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warningMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, warningMessage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.WARNING_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); + } + for (java.util.Map.Entry entry + : internalGetData().getMap().entrySet()) { + com.google.protobuf.MapEntry + data__ = DataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, data__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warningMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, warningMessage_); + } + size += getUnknownFields().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.networkconnectivity.v1.PolicyBasedRoute.Warnings)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings other = (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) obj; + + if (code_ != other.code_) return false; + if (!internalGetData().equals( + other.internalGetData())) return false; + if (!getWarningMessage() + .equals(other.getWarningMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + if (!internalGetData().getMap().isEmpty()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetData().hashCode(); + } + hash = (37 * hash) + WARNING_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getWarningMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings 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.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings 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.networkconnectivity.v1.PolicyBasedRoute.Warnings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings 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.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings 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.networkconnectivity.v1.PolicyBasedRoute.Warnings 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; + } + /** + *
+     * Informational warning message.
+     * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetData(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableData(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + code_ = 0; + internalGetMutableData().clear(); + warningMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings build() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings buildPartial() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings result = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.data_ = internalGetData(); + result.data_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.warningMessage_ = warningMessage_; + } + } + + @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.networkconnectivity.v1.PolicyBasedRoute.Warnings) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings other) { + if (other == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.getDefaultInstance()) return this; + if (other.code_ != 0) { + setCodeValue(other.getCodeValue()); + } + internalGetMutableData().mergeFrom( + other.internalGetData()); + bitField0_ |= 0x00000002; + if (!other.getWarningMessage().isEmpty()) { + warningMessage_ = other.warningMessage_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + code_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + com.google.protobuf.MapEntry + data__ = input.readMessage( + DataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableData().getMutableMap().put( + data__.getKey(), data__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + warningMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int code_ = 0; + /** + *
+       * Output only. A warning code, if applicable.
+       * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for code. + */ + @java.lang.Override public int getCodeValue() { + return code_; + } + /** + *
+       * Output only. A warning code, if applicable.
+       * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The enum numeric value on the wire for code to set. + * @return This builder for chaining. + */ + public Builder setCodeValue(int value) { + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Output only. A warning code, if applicable.
+       * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The code. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code getCode() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code result = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.forNumber(code_); + return result == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.UNRECOGNIZED : result; + } + /** + *
+       * Output only. A warning code, if applicable.
+       * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + code_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Output only. A warning code, if applicable.
+       * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearCode() { + bitField0_ = (bitField0_ & ~0x00000001); + code_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> data_; + private com.google.protobuf.MapField + internalGetData() { + if (data_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DataDefaultEntryHolder.defaultEntry); + } + return data_; + } + private com.google.protobuf.MapField + internalGetMutableData() { + if (data_ == null) { + data_ = com.google.protobuf.MapField.newMapField( + DataDefaultEntryHolder.defaultEntry); + } + if (!data_.isMutable()) { + data_ = data_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + return data_; + } + public int getDataCount() { + return internalGetData().getMap().size(); + } + /** + *
+       * Output only. Metadata about this warning in key: value format. The key should provides
+       * more detail on the warning being returned. For example, for warnings
+       * where there are no results in a list request for a particular zone, this
+       * key might be scope and the key value might be the zone name. Other
+       * examples might be a key indicating a deprecated resource and a suggested
+       * replacement.
+       * 
+ * + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public boolean containsData( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetData().getMap().containsKey(key); + } + /** + * Use {@link #getDataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getData() { + return getDataMap(); + } + /** + *
+       * Output only. Metadata about this warning in key: value format. The key should provides
+       * more detail on the warning being returned. For example, for warnings
+       * where there are no results in a list request for a particular zone, this
+       * key might be scope and the key value might be the zone name. Other
+       * examples might be a key indicating a deprecated resource and a suggested
+       * replacement.
+       * 
+ * + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.Map getDataMap() { + return internalGetData().getMap(); + } + /** + *
+       * Output only. Metadata about this warning in key: value format. The key should provides
+       * more detail on the warning being returned. For example, for warnings
+       * where there are no results in a list request for a particular zone, this
+       * key might be scope and the key value might be the zone name. Other
+       * examples might be a key indicating a deprecated resource and a suggested
+       * replacement.
+       * 
+ * + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getDataOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetData().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Output only. Metadata about this warning in key: value format. The key should provides
+       * more detail on the warning being returned. For example, for warnings
+       * where there are no results in a list request for a particular zone, this
+       * key might be scope and the key value might be the zone name. Other
+       * examples might be a key indicating a deprecated resource and a suggested
+       * replacement.
+       * 
+ * + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.lang.String getDataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetData().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearData() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableData().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Output only. Metadata about this warning in key: value format. The key should provides
+       * more detail on the warning being returned. For example, for warnings
+       * where there are no results in a list request for a particular zone, this
+       * key might be scope and the key value might be the zone name. Other
+       * examples might be a key indicating a deprecated resource and a suggested
+       * replacement.
+       * 
+ * + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder removeData( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableData().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableData() { + bitField0_ |= 0x00000002; + return internalGetMutableData().getMutableMap(); + } + /** + *
+       * Output only. Metadata about this warning in key: value format. The key should provides
+       * more detail on the warning being returned. For example, for warnings
+       * where there are no results in a list request for a particular zone, this
+       * key might be scope and the key value might be the zone name. Other
+       * examples might be a key indicating a deprecated resource and a suggested
+       * replacement.
+       * 
+ * + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder putData( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableData().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Output only. Metadata about this warning in key: value format. The key should provides
+       * more detail on the warning being returned. For example, for warnings
+       * where there are no results in a list request for a particular zone, this
+       * key might be scope and the key value might be the zone name. Other
+       * examples might be a key indicating a deprecated resource and a suggested
+       * replacement.
+       * 
+ * + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder putAllData( + java.util.Map values) { + internalGetMutableData().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + private java.lang.Object warningMessage_ = ""; + /** + *
+       * Output only. A human-readable description of the warning code.
+       * 
+ * + * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The warningMessage. + */ + public java.lang.String getWarningMessage() { + java.lang.Object ref = warningMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + warningMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Output only. A human-readable description of the warning code.
+       * 
+ * + * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for warningMessage. + */ + public com.google.protobuf.ByteString + getWarningMessageBytes() { + java.lang.Object ref = warningMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + warningMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Output only. A human-readable description of the warning code.
+       * 
+ * + * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The warningMessage to set. + * @return This builder for chaining. + */ + public Builder setWarningMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + warningMessage_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Output only. A human-readable description of the warning code.
+       * 
+ * + * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearWarningMessage() { + warningMessage_ = getDefaultInstance().getWarningMessage(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * Output only. A human-readable description of the warning code.
+       * 
+ * + * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for warningMessage to set. + * @return This builder for chaining. + */ + public Builder setWarningMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + warningMessage_ = value; + bitField0_ |= 0x00000004; + 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.networkconnectivity.v1.PolicyBasedRoute.Warnings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) + private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings(); + } + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Warnings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.networkconnectivity.v1.PolicyBasedRoute.Warnings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int targetCase_ = 0; + private java.lang.Object target_; + public enum TargetCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VIRTUAL_MACHINE(18), + INTERCONNECT_ATTACHMENT(9), + TARGET_NOT_SET(0); + private final int value; + private TargetCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 18: return VIRTUAL_MACHINE; + case 9: return INTERCONNECT_ATTACHMENT; + case 0: return TARGET_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + private int nextHopCase_ = 0; + private java.lang.Object nextHop_; + public enum NextHopCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NEXT_HOP_ILB_IP(12), + NEXTHOP_NOT_SET(0); + private final int value; + private NextHopCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NextHopCase valueOf(int value) { + return forNumber(value); + } + + public static NextHopCase forNumber(int value) { + switch (value) { + case 12: return NEXT_HOP_ILB_IP; + case 0: return NEXTHOP_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public NextHopCase + getNextHopCase() { + return NextHopCase.forNumber( + nextHopCase_); + } + + public static final int VIRTUAL_MACHINE_FIELD_NUMBER = 18; + /** + *
+   * Optional. VM instances to which this policy based route applies to.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the virtualMachine field is set. + */ + @java.lang.Override + public boolean hasVirtualMachine() { + return targetCase_ == 18; + } + /** + *
+   * Optional. VM instances to which this policy based route applies to.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return The virtualMachine. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine getVirtualMachine() { + if (targetCase_ == 18) { + return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_; + } + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.getDefaultInstance(); + } + /** + *
+   * Optional. VM instances to which this policy based route applies to.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder getVirtualMachineOrBuilder() { + if (targetCase_ == 18) { + return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_; + } + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.getDefaultInstance(); + } + + public static final int INTERCONNECT_ATTACHMENT_FIELD_NUMBER = 9; + /** + *
+   * Optional. The interconnect attachments to which this route applies to.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the interconnectAttachment field is set. + */ + @java.lang.Override + public boolean hasInterconnectAttachment() { + return targetCase_ == 9; + } + /** + *
+   * Optional. The interconnect attachments to which this route applies to.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return The interconnectAttachment. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment getInterconnectAttachment() { + if (targetCase_ == 9) { + return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) target_; + } + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.getDefaultInstance(); + } + /** + *
+   * Optional. The interconnect attachments to which this route applies to.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder getInterconnectAttachmentOrBuilder() { + if (targetCase_ == 9) { + return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) target_; + } + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.getDefaultInstance(); + } + + public static final int NEXT_HOP_ILB_IP_FIELD_NUMBER = 12; + /** + *
+   * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
+   * handle matching packets. For this version, only next_hop_ilb_ip is
+   * supported.
+   * 
+ * + * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the nextHopIlbIp field is set. + */ + public boolean hasNextHopIlbIp() { + return nextHopCase_ == 12; + } + /** + *
+   * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
+   * handle matching packets. For this version, only next_hop_ilb_ip is
+   * supported.
+   * 
+ * + * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return The nextHopIlbIp. + */ + public java.lang.String getNextHopIlbIp() { + java.lang.Object ref = ""; + if (nextHopCase_ == 12) { + ref = nextHop_; + } + 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(); + if (nextHopCase_ == 12) { + nextHop_ = s; + } + return s; + } + } + /** + *
+   * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
+   * handle matching packets. For this version, only next_hop_ilb_ip is
+   * supported.
+   * 
+ * + * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for nextHopIlbIp. + */ + public com.google.protobuf.ByteString + getNextHopIlbIpBytes() { + java.lang.Object ref = ""; + if (nextHopCase_ == 12) { + ref = nextHop_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (nextHopCase_ == 12) { + nextHop_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Immutable. A unique name of the resource in the form of
+   * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @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; + } + } + /** + *
+   * Immutable. A unique name of the resource in the form of
+   * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @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. Time when the PolicyBasedRoute was created.
+   * 
+ * + * .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. Time when the PolicyBasedRoute was created.
+   * 
+ * + * .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. Time when the PolicyBasedRoute was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + /** + *
+   * Output only. Time when the PolicyBasedRoute was updated.
+   * 
+ * + * .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. Time when the PolicyBasedRoute was updated.
+   * 
+ * + * .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. Time when the PolicyBasedRoute was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + 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(); + } + /** + *
+   * User-defined labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + @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(); + } + /** + *
+   * User-defined labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * User-defined labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +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; + } + /** + *
+   * User-defined labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + @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 DESCRIPTION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + *
+   * Optional. An optional description of this resource. Provide this field when you
+   * create the resource.
+   * 
+ * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + } + } + /** + *
+   * Optional. An optional description of this resource. Provide this field when you
+   * create the resource.
+   * 
+ * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @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 NETWORK_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + /** + *
+   * Required. Fully-qualified URL of the network that this route applies to. e.g.
+   * projects/my-project/global/networks/my-network.
+   * 
+ * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + /** + *
+   * Required. Fully-qualified URL of the network that this route applies to. e.g.
+   * projects/my-project/global/networks/my-network.
+   * 
+ * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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 FILTER_FIELD_NUMBER = 10; + private com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter_; + /** + *
+   * Required. The filter to match L4 traffic.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return filter_ != null; + } + /** + *
+   * Required. The filter to match L4 traffic.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * @return The filter. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter getFilter() { + return filter_ == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() : filter_; + } + /** + *
+   * Required. The filter to match L4 traffic.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder getFilterOrBuilder() { + return filter_ == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() : filter_; + } + + public static final int PRIORITY_FIELD_NUMBER = 11; + private int priority_ = 0; + /** + *
+   * Optional. The priority of this policy based route. Priority is used to break ties in
+   * cases where there are more than one matching policy based routes found. In
+   * cases where multiple policy based routes are matched, the one with the
+   * lowest-numbered priority value wins. The default value is 1000. The
+   * priority value must be from 1 to 65535, inclusive.
+   * 
+ * + * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return The priority. + */ + @java.lang.Override + public int getPriority() { + return priority_; + } + + public static final int WARNINGS_FIELD_NUMBER = 14; + @SuppressWarnings("serial") + private java.util.List warnings_; + /** + *
+   * Output only. If potential misconfigurations are detected for this route,
+   * this field will be populated with warning messages.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List getWarningsList() { + return warnings_; + } + /** + *
+   * Output only. If potential misconfigurations are detected for this route,
+   * this field will be populated with warning messages.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List + getWarningsOrBuilderList() { + return warnings_; + } + /** + *
+   * Output only. If potential misconfigurations are detected for this route,
+   * this field will be populated with warning messages.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public int getWarningsCount() { + return warnings_.size(); + } + /** + *
+   * Output only. If potential misconfigurations are detected for this route,
+   * this field will be populated with warning messages.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings getWarnings(int index) { + return warnings_.get(index); + } + /** + *
+   * Output only. If potential misconfigurations are detected for this route,
+   * this field will be populated with warning messages.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder getWarningsOrBuilder( + int index) { + return warnings_.get(index); + } + + public static final int SELF_LINK_FIELD_NUMBER = 15; + @SuppressWarnings("serial") + private volatile java.lang.Object selfLink_ = ""; + /** + *
+   * Output only. Server-defined fully-qualified URL for this resource.
+   * 
+ * + * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The selfLink. + */ + @java.lang.Override + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + 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(); + selfLink_ = s; + return s; + } + } + /** + *
+   * Output only. Server-defined fully-qualified URL for this resource.
+   * 
+ * + * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for selfLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KIND_FIELD_NUMBER = 16; + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; + /** + *
+   * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
+   * Policy Based Route resources.
+   * 
+ * + * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The kind. + */ + @java.lang.Override + public java.lang.String getKind() { + java.lang.Object ref = kind_; + 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(); + kind_ = s; + return s; + } + } + /** + *
+   * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
+   * Policy Based Route resources.
+   * 
+ * + * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for kind. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kind_ = 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 (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, network_); + } + if (targetCase_ == 9) { + output.writeMessage(9, (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) target_); + } + if (filter_ != null) { + output.writeMessage(10, getFilter()); + } + if (priority_ != 0) { + output.writeInt32(11, priority_); + } + if (nextHopCase_ == 12) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, nextHop_); + } + for (int i = 0; i < warnings_.size(); i++) { + output.writeMessage(14, warnings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, selfLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, kind_); + } + if (targetCase_ == 18) { + output.writeMessage(18, (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_); + } + getUnknownFields().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()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, network_); + } + if (targetCase_ == 9) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) target_); + } + if (filter_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getFilter()); + } + if (priority_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(11, priority_); + } + if (nextHopCase_ == 12) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, nextHop_); + } + for (int i = 0; i < warnings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, warnings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, selfLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, kind_); + } + if (targetCase_ == 18) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_); + } + size += getUnknownFields().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.networkconnectivity.v1.PolicyBasedRoute)) { + return super.equals(obj); + } + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute other = (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute) 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 (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter() + .equals(other.getFilter())) return false; + } + if (getPriority() + != other.getPriority()) return false; + if (!getWarningsList() + .equals(other.getWarningsList())) return false; + if (!getSelfLink() + .equals(other.getSelfLink())) return false; + if (!getKind() + .equals(other.getKind())) return false; + if (!getTargetCase().equals(other.getTargetCase())) return false; + switch (targetCase_) { + case 18: + if (!getVirtualMachine() + .equals(other.getVirtualMachine())) return false; + break; + case 9: + if (!getInterconnectAttachment() + .equals(other.getInterconnectAttachment())) return false; + break; + case 0: + default: + } + if (!getNextHopCase().equals(other.getNextHopCase())) return false; + switch (nextHopCase_) { + case 12: + if (!getNextHopIlbIp() + .equals(other.getNextHopIlbIp())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + hash = (37 * hash) + PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + getPriority(); + if (getWarningsCount() > 0) { + hash = (37 * hash) + WARNINGS_FIELD_NUMBER; + hash = (53 * hash) + getWarningsList().hashCode(); + } + hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSelfLink().hashCode(); + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); + switch (targetCase_) { + case 18: + hash = (37 * hash) + VIRTUAL_MACHINE_FIELD_NUMBER; + hash = (53 * hash) + getVirtualMachine().hashCode(); + break; + case 9: + hash = (37 * hash) + INTERCONNECT_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getInterconnectAttachment().hashCode(); + break; + case 0: + default: + } + switch (nextHopCase_) { + case 12: + hash = (37 * hash) + NEXT_HOP_ILB_IP_FIELD_NUMBER; + hash = (53 * hash) + getNextHopIlbIp().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute 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.networkconnectivity.v1.PolicyBasedRoute parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute 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.networkconnectivity.v1.PolicyBasedRoute parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute 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.networkconnectivity.v1.PolicyBasedRoute parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute 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.networkconnectivity.v1.PolicyBasedRoute 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; + } + /** + *
+   * Policy Based Routes (PBR) are more powerful routes that allows GCP customers
+   * to route their L4 network traffic based on not just destination IP, but also
+   * source IP, protocol and more. A PBR always take precedence when it conflicts
+   * with other types of routes.
+   * Next id: 19
+   * 
+ * + * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute) + com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + 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.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder.class); + } + + // Construct using com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (virtualMachineBuilder_ != null) { + virtualMachineBuilder_.clear(); + } + if (interconnectAttachmentBuilder_ != null) { + interconnectAttachmentBuilder_.clear(); + } + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + description_ = ""; + network_ = ""; + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + priority_ = 0; + if (warningsBuilder_ == null) { + warnings_ = java.util.Collections.emptyList(); + } else { + warnings_ = null; + warningsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + selfLink_ = ""; + kind_ = ""; + targetCase_ = 0; + target_ = null; + nextHopCase_ = 0; + nextHop_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute build() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute buildPartial() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result) { + if (warningsBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0)) { + warnings_ = java.util.Collections.unmodifiableList(warnings_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.warnings_ = warnings_; + } else { + result.warnings_ = warningsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.filter_ = filterBuilder_ == null + ? filter_ + : filterBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.priority_ = priority_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.selfLink_ = selfLink_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.kind_ = kind_; + } + } + + private void buildPartialOneofs(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result) { + result.targetCase_ = targetCase_; + result.target_ = this.target_; + if (targetCase_ == 18 && + virtualMachineBuilder_ != null) { + result.target_ = virtualMachineBuilder_.build(); + } + if (targetCase_ == 9 && + interconnectAttachmentBuilder_ != null) { + result.target_ = interconnectAttachmentBuilder_.build(); + } + result.nextHopCase_ = nextHopCase_; + result.nextHop_ = this.nextHop_; + } + + @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.networkconnectivity.v1.PolicyBasedRoute) { + return mergeFrom((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute other) { + if (other == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + bitField0_ |= 0x00000040; + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + if (other.getPriority() != 0) { + setPriority(other.getPriority()); + } + if (warningsBuilder_ == null) { + if (!other.warnings_.isEmpty()) { + if (warnings_.isEmpty()) { + warnings_ = other.warnings_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureWarningsIsMutable(); + warnings_.addAll(other.warnings_); + } + onChanged(); + } + } else { + if (!other.warnings_.isEmpty()) { + if (warningsBuilder_.isEmpty()) { + warningsBuilder_.dispose(); + warningsBuilder_ = null; + warnings_ = other.warnings_; + bitField0_ = (bitField0_ & ~0x00000800); + warningsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWarningsFieldBuilder() : null; + } else { + warningsBuilder_.addAllMessages(other.warnings_); + } + } + } + if (!other.getSelfLink().isEmpty()) { + selfLink_ = other.selfLink_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (!other.getKind().isEmpty()) { + kind_ = other.kind_; + bitField0_ |= 0x00002000; + onChanged(); + } + switch (other.getTargetCase()) { + case VIRTUAL_MACHINE: { + mergeVirtualMachine(other.getVirtualMachine()); + break; + } + case INTERCONNECT_ATTACHMENT: { + mergeInterconnectAttachment(other.getInterconnectAttachment()); + break; + } + case TARGET_NOT_SET: { + break; + } + } + switch (other.getNextHopCase()) { + case NEXT_HOP_ILB_IP: { + nextHopCase_ = 12; + nextHop_ = other.nextHop_; + onChanged(); + break; + } + case NEXTHOP_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 34 + case 42: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 42 + case 50: { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 50 + case 74: { + input.readMessage( + getInterconnectAttachmentFieldBuilder().getBuilder(), + extensionRegistry); + targetCase_ = 9; + break; + } // case 74 + case 82: { + input.readMessage( + getFilterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 88: { + priority_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + nextHopCase_ = 12; + nextHop_ = s; + break; + } // case 98 + case 114: { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.parser(), + extensionRegistry); + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.add(m); + } else { + warningsBuilder_.addMessage(m); + } + break; + } // case 114 + case 122: { + selfLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 122 + case 130: { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 130 + case 146: { + input.readMessage( + getVirtualMachineFieldBuilder().getBuilder(), + extensionRegistry); + targetCase_ = 18; + break; + } // case 146 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int targetCase_ = 0; + private java.lang.Object target_; + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + private int nextHopCase_ = 0; + private java.lang.Object nextHop_; + public NextHopCase + getNextHopCase() { + return NextHopCase.forNumber( + nextHopCase_); + } + + public Builder clearNextHop() { + nextHopCase_ = 0; + nextHop_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder> virtualMachineBuilder_; + /** + *
+     * Optional. VM instances to which this policy based route applies to.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the virtualMachine field is set. + */ + @java.lang.Override + public boolean hasVirtualMachine() { + return targetCase_ == 18; + } + /** + *
+     * Optional. VM instances to which this policy based route applies to.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return The virtualMachine. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine getVirtualMachine() { + if (virtualMachineBuilder_ == null) { + if (targetCase_ == 18) { + return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_; + } + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.getDefaultInstance(); + } else { + if (targetCase_ == 18) { + return virtualMachineBuilder_.getMessage(); + } + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.getDefaultInstance(); + } + } + /** + *
+     * Optional. VM instances to which this policy based route applies to.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setVirtualMachine(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine value) { + if (virtualMachineBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + virtualMachineBuilder_.setMessage(value); + } + targetCase_ = 18; + return this; + } + /** + *
+     * Optional. VM instances to which this policy based route applies to.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setVirtualMachine( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder builderForValue) { + if (virtualMachineBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + virtualMachineBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 18; + return this; + } + /** + *
+     * Optional. VM instances to which this policy based route applies to.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeVirtualMachine(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine value) { + if (virtualMachineBuilder_ == null) { + if (targetCase_ == 18 && + target_ != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.getDefaultInstance()) { + target_ = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.newBuilder((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 18) { + virtualMachineBuilder_.mergeFrom(value); + } else { + virtualMachineBuilder_.setMessage(value); + } + } + targetCase_ = 18; + return this; + } + /** + *
+     * Optional. VM instances to which this policy based route applies to.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearVirtualMachine() { + if (virtualMachineBuilder_ == null) { + if (targetCase_ == 18) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 18) { + targetCase_ = 0; + target_ = null; + } + virtualMachineBuilder_.clear(); + } + return this; + } + /** + *
+     * Optional. VM instances to which this policy based route applies to.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder getVirtualMachineBuilder() { + return getVirtualMachineFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. VM instances to which this policy based route applies to.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder getVirtualMachineOrBuilder() { + if ((targetCase_ == 18) && (virtualMachineBuilder_ != null)) { + return virtualMachineBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 18) { + return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_; + } + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.getDefaultInstance(); + } + } + /** + *
+     * Optional. VM instances to which this policy based route applies to.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder> + getVirtualMachineFieldBuilder() { + if (virtualMachineBuilder_ == null) { + if (!(targetCase_ == 18)) { + target_ = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.getDefaultInstance(); + } + virtualMachineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder>( + (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 18; + onChanged(); + return virtualMachineBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder> interconnectAttachmentBuilder_; + /** + *
+     * Optional. The interconnect attachments to which this route applies to.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the interconnectAttachment field is set. + */ + @java.lang.Override + public boolean hasInterconnectAttachment() { + return targetCase_ == 9; + } + /** + *
+     * Optional. The interconnect attachments to which this route applies to.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return The interconnectAttachment. + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment getInterconnectAttachment() { + if (interconnectAttachmentBuilder_ == null) { + if (targetCase_ == 9) { + return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) target_; + } + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.getDefaultInstance(); + } else { + if (targetCase_ == 9) { + return interconnectAttachmentBuilder_.getMessage(); + } + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.getDefaultInstance(); + } + } + /** + *
+     * Optional. The interconnect attachments to which this route applies to.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setInterconnectAttachment(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment value) { + if (interconnectAttachmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + interconnectAttachmentBuilder_.setMessage(value); + } + targetCase_ = 9; + return this; + } + /** + *
+     * Optional. The interconnect attachments to which this route applies to.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setInterconnectAttachment( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder builderForValue) { + if (interconnectAttachmentBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + interconnectAttachmentBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 9; + return this; + } + /** + *
+     * Optional. The interconnect attachments to which this route applies to.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeInterconnectAttachment(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment value) { + if (interconnectAttachmentBuilder_ == null) { + if (targetCase_ == 9 && + target_ != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.getDefaultInstance()) { + target_ = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.newBuilder((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 9) { + interconnectAttachmentBuilder_.mergeFrom(value); + } else { + interconnectAttachmentBuilder_.setMessage(value); + } + } + targetCase_ = 9; + return this; + } + /** + *
+     * Optional. The interconnect attachments to which this route applies to.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearInterconnectAttachment() { + if (interconnectAttachmentBuilder_ == null) { + if (targetCase_ == 9) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 9) { + targetCase_ = 0; + target_ = null; + } + interconnectAttachmentBuilder_.clear(); + } + return this; + } + /** + *
+     * Optional. The interconnect attachments to which this route applies to.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder getInterconnectAttachmentBuilder() { + return getInterconnectAttachmentFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. The interconnect attachments to which this route applies to.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder getInterconnectAttachmentOrBuilder() { + if ((targetCase_ == 9) && (interconnectAttachmentBuilder_ != null)) { + return interconnectAttachmentBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 9) { + return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) target_; + } + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.getDefaultInstance(); + } + } + /** + *
+     * Optional. The interconnect attachments to which this route applies to.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder> + getInterconnectAttachmentFieldBuilder() { + if (interconnectAttachmentBuilder_ == null) { + if (!(targetCase_ == 9)) { + target_ = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.getDefaultInstance(); + } + interconnectAttachmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder>( + (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 9; + onChanged(); + return interconnectAttachmentBuilder_; + } + + /** + *
+     * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
+     * handle matching packets. For this version, only next_hop_ilb_ip is
+     * supported.
+     * 
+ * + * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the nextHopIlbIp field is set. + */ + @java.lang.Override + public boolean hasNextHopIlbIp() { + return nextHopCase_ == 12; + } + /** + *
+     * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
+     * handle matching packets. For this version, only next_hop_ilb_ip is
+     * supported.
+     * 
+ * + * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return The nextHopIlbIp. + */ + @java.lang.Override + public java.lang.String getNextHopIlbIp() { + java.lang.Object ref = ""; + if (nextHopCase_ == 12) { + ref = nextHop_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (nextHopCase_ == 12) { + nextHop_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
+     * handle matching packets. For this version, only next_hop_ilb_ip is
+     * supported.
+     * 
+ * + * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for nextHopIlbIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNextHopIlbIpBytes() { + java.lang.Object ref = ""; + if (nextHopCase_ == 12) { + ref = nextHop_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (nextHopCase_ == 12) { + nextHop_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
+     * handle matching packets. For this version, only next_hop_ilb_ip is
+     * supported.
+     * 
+ * + * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The nextHopIlbIp to set. + * @return This builder for chaining. + */ + public Builder setNextHopIlbIp( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + nextHopCase_ = 12; + nextHop_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
+     * handle matching packets. For this version, only next_hop_ilb_ip is
+     * supported.
+     * 
+ * + * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearNextHopIlbIp() { + if (nextHopCase_ == 12) { + nextHopCase_ = 0; + nextHop_ = null; + onChanged(); + } + return this; + } + /** + *
+     * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
+     * handle matching packets. For this version, only next_hop_ilb_ip is
+     * supported.
+     * 
+ * + * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for nextHopIlbIp to set. + * @return This builder for chaining. + */ + public Builder setNextHopIlbIpBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + nextHopCase_ = 12; + nextHop_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Immutable. A unique name of the resource in the form of
+     * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @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; + } + } + /** + *
+     * Immutable. A unique name of the resource in the form of
+     * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @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; + } + } + /** + *
+     * Immutable. A unique name of the resource in the form of
+     * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Immutable. A unique name of the resource in the form of
+     * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Immutable. A unique name of the resource in the form of
+     * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @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; + bitField0_ |= 0x00000008; + 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. Time when the PolicyBasedRoute was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * Output only. Time when the PolicyBasedRoute was created.
+     * 
+ * + * .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. Time when the PolicyBasedRoute was created.
+     * 
+ * + * .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; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when the PolicyBasedRoute was created.
+     * 
+ * + * .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(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when the PolicyBasedRoute was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when the PolicyBasedRoute was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. Time when the PolicyBasedRoute was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Time when the PolicyBasedRoute was created.
+     * 
+ * + * .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. Time when the PolicyBasedRoute was created.
+     * 
+ * + * .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. Time when the PolicyBasedRoute was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * Output only. Time when the PolicyBasedRoute was updated.
+     * 
+ * + * .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. Time when the PolicyBasedRoute was updated.
+     * 
+ * + * .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; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when the PolicyBasedRoute was updated.
+     * 
+ * + * .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(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when the PolicyBasedRoute was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when the PolicyBasedRoute was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. Time when the PolicyBasedRoute was updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Time when the PolicyBasedRoute was updated.
+     * 
+ * + * .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. Time when the PolicyBasedRoute was updated.
+     * 
+ * + * .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 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() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return labels_; + } + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * User-defined labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + @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(); + } + /** + *
+     * User-defined labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * User-defined labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +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; + } + /** + *
+     * User-defined labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + @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() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * User-defined labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + 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() { + bitField0_ |= 0x00000040; + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * User-defined labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + 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); + bitField0_ |= 0x00000040; + return this; + } + /** + *
+     * User-defined labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+     * Optional. An optional description of this resource. Provide this field when you
+     * create the resource.
+     * 
+ * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. An optional description of this resource. Provide this field when you
+     * create the resource.
+     * 
+ * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + } + } + /** + *
+     * Optional. An optional description of this resource. Provide this field when you
+     * create the resource.
+     * 
+ * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Optional. An optional description of this resource. Provide this field when you
+     * create the resource.
+     * 
+ * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + *
+     * Optional. An optional description of this resource. Provide this field when you
+     * create the resource.
+     * 
+ * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + *
+     * Required. Fully-qualified URL of the network that this route applies to. e.g.
+     * projects/my-project/global/networks/my-network.
+     * 
+ * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + /** + *
+     * Required. Fully-qualified URL of the network that this route applies to. e.g.
+     * projects/my-project/global/networks/my-network.
+     * 
+ * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + /** + *
+     * Required. Fully-qualified URL of the network that this route applies to. e.g.
+     * projects/my-project/global/networks/my-network.
+     * 
+ * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Required. Fully-qualified URL of the network that this route applies to. e.g.
+     * projects/my-project/global/networks/my-network.
+     * 
+ * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + *
+     * Required. Fully-qualified URL of the network that this route applies to. e.g.
+     * projects/my-project/global/networks/my-network.
+     * 
+ * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder> filterBuilder_; + /** + *
+     * Required. The filter to match L4 traffic.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+     * Required. The filter to match L4 traffic.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * @return The filter. + */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter getFilter() { + if (filterBuilder_ == null) { + return filter_ == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + *
+     * Required. The filter to match L4 traffic.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setFilter(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + } else { + filterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Required. The filter to match L4 traffic.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setFilter( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Required. The filter to match L4 traffic.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeFilter(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter value) { + if (filterBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) && + filter_ != null && + filter_ != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance()) { + getFilterBuilder().mergeFrom(value); + } else { + filter_ = value; + } + } else { + filterBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Required. The filter to match L4 traffic.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearFilter() { + bitField0_ = (bitField0_ & ~0x00000200); + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. The filter to match L4 traffic.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder getFilterBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The filter to match L4 traffic.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null ? + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() : filter_; + } + } + /** + *
+     * Required. The filter to match L4 traffic.
+     * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder>( + getFilter(), + getParentForChildren(), + isClean()); + filter_ = null; + } + return filterBuilder_; + } + + private int priority_ ; + /** + *
+     * Optional. The priority of this policy based route. Priority is used to break ties in
+     * cases where there are more than one matching policy based routes found. In
+     * cases where multiple policy based routes are matched, the one with the
+     * lowest-numbered priority value wins. The default value is 1000. The
+     * priority value must be from 1 to 65535, inclusive.
+     * 
+ * + * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return The priority. + */ + @java.lang.Override + public int getPriority() { + return priority_; + } + /** + *
+     * Optional. The priority of this policy based route. Priority is used to break ties in
+     * cases where there are more than one matching policy based routes found. In
+     * cases where multiple policy based routes are matched, the one with the
+     * lowest-numbered priority value wins. The default value is 1000. The
+     * priority value must be from 1 to 65535, inclusive.
+     * 
+ * + * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The priority to set. + * @return This builder for chaining. + */ + public Builder setPriority(int value) { + + priority_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Optional. The priority of this policy based route. Priority is used to break ties in
+     * cases where there are more than one matching policy based routes found. In
+     * cases where multiple policy based routes are matched, the one with the
+     * lowest-numbered priority value wins. The default value is 1000. The
+     * priority value must be from 1 to 65535, inclusive.
+     * 
+ * + * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearPriority() { + bitField0_ = (bitField0_ & ~0x00000400); + priority_ = 0; + onChanged(); + return this; + } + + private java.util.List warnings_ = + java.util.Collections.emptyList(); + private void ensureWarningsIsMutable() { + if (!((bitField0_ & 0x00000800) != 0)) { + warnings_ = new java.util.ArrayList(warnings_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder> warningsBuilder_; + + /** + *
+     * Output only. If potential misconfigurations are detected for this route,
+     * this field will be populated with warning messages.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List getWarningsList() { + if (warningsBuilder_ == null) { + return java.util.Collections.unmodifiableList(warnings_); + } else { + return warningsBuilder_.getMessageList(); + } + } + /** + *
+     * Output only. If potential misconfigurations are detected for this route,
+     * this field will be populated with warning messages.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public int getWarningsCount() { + if (warningsBuilder_ == null) { + return warnings_.size(); + } else { + return warningsBuilder_.getCount(); + } + } + /** + *
+     * Output only. If potential misconfigurations are detected for this route,
+     * this field will be populated with warning messages.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings getWarnings(int index) { + if (warningsBuilder_ == null) { + return warnings_.get(index); + } else { + return warningsBuilder_.getMessage(index); + } + } + /** + *
+     * Output only. If potential misconfigurations are detected for this route,
+     * this field will be populated with warning messages.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setWarnings( + int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings value) { + if (warningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.set(index, value); + onChanged(); + } else { + warningsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Output only. If potential misconfigurations are detected for this route,
+     * this field will be populated with warning messages.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setWarnings( + int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder builderForValue) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.set(index, builderForValue.build()); + onChanged(); + } else { + warningsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. If potential misconfigurations are detected for this route,
+     * this field will be populated with warning messages.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addWarnings(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings value) { + if (warningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.add(value); + onChanged(); + } else { + warningsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Output only. If potential misconfigurations are detected for this route,
+     * this field will be populated with warning messages.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addWarnings( + int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings value) { + if (warningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.add(index, value); + onChanged(); + } else { + warningsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Output only. If potential misconfigurations are detected for this route,
+     * this field will be populated with warning messages.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addWarnings( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder builderForValue) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.add(builderForValue.build()); + onChanged(); + } else { + warningsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. If potential misconfigurations are detected for this route,
+     * this field will be populated with warning messages.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addWarnings( + int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder builderForValue) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.add(index, builderForValue.build()); + onChanged(); + } else { + warningsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. If potential misconfigurations are detected for this route,
+     * this field will be populated with warning messages.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addAllWarnings( + java.lang.Iterable values) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, warnings_); + onChanged(); + } else { + warningsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Output only. If potential misconfigurations are detected for this route,
+     * this field will be populated with warning messages.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearWarnings() { + if (warningsBuilder_ == null) { + warnings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + warningsBuilder_.clear(); + } + return this; + } + /** + *
+     * Output only. If potential misconfigurations are detected for this route,
+     * this field will be populated with warning messages.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder removeWarnings(int index) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.remove(index); + onChanged(); + } else { + warningsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Output only. If potential misconfigurations are detected for this route,
+     * this field will be populated with warning messages.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder getWarningsBuilder( + int index) { + return getWarningsFieldBuilder().getBuilder(index); + } + /** + *
+     * Output only. If potential misconfigurations are detected for this route,
+     * this field will be populated with warning messages.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder getWarningsOrBuilder( + int index) { + if (warningsBuilder_ == null) { + return warnings_.get(index); } else { + return warningsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Output only. If potential misconfigurations are detected for this route,
+     * this field will be populated with warning messages.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getWarningsOrBuilderList() { + if (warningsBuilder_ != null) { + return warningsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(warnings_); + } + } + /** + *
+     * Output only. If potential misconfigurations are detected for this route,
+     * this field will be populated with warning messages.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder addWarningsBuilder() { + return getWarningsFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.getDefaultInstance()); + } + /** + *
+     * Output only. If potential misconfigurations are detected for this route,
+     * this field will be populated with warning messages.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder addWarningsBuilder( + int index) { + return getWarningsFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.getDefaultInstance()); + } + /** + *
+     * Output only. If potential misconfigurations are detected for this route,
+     * this field will be populated with warning messages.
+     * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getWarningsBuilderList() { + return getWarningsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder> + getWarningsFieldBuilder() { + if (warningsBuilder_ == null) { + warningsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder>( + warnings_, + ((bitField0_ & 0x00000800) != 0), + getParentForChildren(), + isClean()); + warnings_ = null; + } + return warningsBuilder_; + } + + private java.lang.Object selfLink_ = ""; + /** + *
+     * Output only. Server-defined fully-qualified URL for this resource.
+     * 
+ * + * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The selfLink. + */ + public java.lang.String getSelfLink() { + java.lang.Object ref = selfLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + selfLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Server-defined fully-qualified URL for this resource.
+     * 
+ * + * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for selfLink. + */ + public com.google.protobuf.ByteString + getSelfLinkBytes() { + java.lang.Object ref = selfLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + selfLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Server-defined fully-qualified URL for this resource.
+     * 
+ * + * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLink( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + selfLink_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * Output only. Server-defined fully-qualified URL for this resource.
+     * 
+ * + * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearSelfLink() { + selfLink_ = getDefaultInstance().getSelfLink(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + *
+     * Output only. Server-defined fully-qualified URL for this resource.
+     * 
+ * + * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for selfLink to set. + * @return This builder for chaining. + */ + public Builder setSelfLinkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + selfLink_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private java.lang.Object kind_ = ""; + /** + *
+     * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
+     * Policy Based Route resources.
+     * 
+ * + * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The kind. + */ + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
+     * Policy Based Route resources.
+     * 
+ * + * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for kind. + */ + public com.google.protobuf.ByteString + getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
+     * Policy Based Route resources.
+     * 
+ * + * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The kind to set. + * @return This builder for chaining. + */ + public Builder setKind( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + kind_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
+     * Policy Based Route resources.
+     * 
+ * + * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearKind() { + kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + /** + *
+     * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
+     * Policy Based Route resources.
+     * 
+ * + * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for kind to set. + * @return This builder for chaining. + */ + public Builder setKindBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + kind_ = value; + bitField0_ |= 0x00002000; + 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.networkconnectivity.v1.PolicyBasedRoute) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute) + private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute(); + } + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyBasedRoute parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.networkconnectivity.v1.PolicyBasedRoute getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java new file mode 100644 index 000000000000..653b1a5507d8 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java @@ -0,0 +1,228 @@ +/* + * 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.networkconnectivity.v1; + +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 PolicyBasedRouteName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_POLICY_BASED_ROUTE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/{location}/global/PolicyBasedRoutes/{policy_based_route}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String policyBasedRoute; + + @Deprecated + protected PolicyBasedRouteName() { + project = null; + location = null; + policyBasedRoute = null; + } + + private PolicyBasedRouteName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + policyBasedRoute = Preconditions.checkNotNull(builder.getPolicyBasedRoute()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPolicyBasedRoute() { + return policyBasedRoute; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static PolicyBasedRouteName of(String project, String location, String policyBasedRoute) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPolicyBasedRoute(policyBasedRoute) + .build(); + } + + public static String format(String project, String location, String policyBasedRoute) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPolicyBasedRoute(policyBasedRoute) + .build() + .toString(); + } + + public static PolicyBasedRouteName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_POLICY_BASED_ROUTE.validatedMatch( + formattedString, "PolicyBasedRouteName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("policy_based_route")); + } + + 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 (PolicyBasedRouteName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_POLICY_BASED_ROUTE.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 (policyBasedRoute != null) { + fieldMapBuilder.put("policy_based_route", policyBasedRoute); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_POLICY_BASED_ROUTE.instantiate( + "project", project, "location", location, "policy_based_route", policyBasedRoute); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + PolicyBasedRouteName that = ((PolicyBasedRouteName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.policyBasedRoute, that.policyBasedRoute); + } + 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(policyBasedRoute); + return h; + } + + /** Builder for projects/{project}/{location}/global/PolicyBasedRoutes/{policy_based_route}. */ + public static class Builder { + private String project; + private String location; + private String policyBasedRoute; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPolicyBasedRoute() { + return policyBasedRoute; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setPolicyBasedRoute(String policyBasedRoute) { + this.policyBasedRoute = policyBasedRoute; + return this; + } + + private Builder(PolicyBasedRouteName policyBasedRouteName) { + this.project = policyBasedRouteName.project; + this.location = policyBasedRouteName.location; + this.policyBasedRoute = policyBasedRouteName.policyBasedRoute; + } + + public PolicyBasedRouteName build() { + return new PolicyBasedRouteName(this); + } + } +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteOrBuilder.java new file mode 100644 index 000000000000..2ebdb60575ab --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteOrBuilder.java @@ -0,0 +1,408 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/policy_based_routing.proto + +package com.google.cloud.networkconnectivity.v1; + +public interface PolicyBasedRouteOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Optional. VM instances to which this policy based route applies to.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the virtualMachine field is set. + */ + boolean hasVirtualMachine(); + /** + *
+   * Optional. VM instances to which this policy based route applies to.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return The virtualMachine. + */ + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine getVirtualMachine(); + /** + *
+   * Optional. VM instances to which this policy based route applies to.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder getVirtualMachineOrBuilder(); + + /** + *
+   * Optional. The interconnect attachments to which this route applies to.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the interconnectAttachment field is set. + */ + boolean hasInterconnectAttachment(); + /** + *
+   * Optional. The interconnect attachments to which this route applies to.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return The interconnectAttachment. + */ + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment getInterconnectAttachment(); + /** + *
+   * Optional. The interconnect attachments to which this route applies to.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder getInterconnectAttachmentOrBuilder(); + + /** + *
+   * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
+   * handle matching packets. For this version, only next_hop_ilb_ip is
+   * supported.
+   * 
+ * + * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the nextHopIlbIp field is set. + */ + boolean hasNextHopIlbIp(); + /** + *
+   * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
+   * handle matching packets. For this version, only next_hop_ilb_ip is
+   * supported.
+   * 
+ * + * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return The nextHopIlbIp. + */ + java.lang.String getNextHopIlbIp(); + /** + *
+   * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
+   * handle matching packets. For this version, only next_hop_ilb_ip is
+   * supported.
+   * 
+ * + * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for nextHopIlbIp. + */ + com.google.protobuf.ByteString + getNextHopIlbIpBytes(); + + /** + *
+   * Immutable. A unique name of the resource in the form of
+   * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Immutable. A unique name of the resource in the form of
+   * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Output only. Time when the PolicyBasedRoute was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * Output only. Time when the PolicyBasedRoute was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Output only. Time when the PolicyBasedRoute was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Output only. Time when the PolicyBasedRoute was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + *
+   * Output only. Time when the PolicyBasedRoute was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + *
+   * Output only. Time when the PolicyBasedRoute was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
+   * User-defined labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + int getLabelsCount(); + /** + *
+   * User-defined labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * User-defined labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * User-defined labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * User-defined labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.lang.String getLabelsOrThrow( + java.lang.String key); + + /** + *
+   * Optional. An optional description of this resource. Provide this field when you
+   * create the resource.
+   * 
+ * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+   * Optional. An optional description of this resource. Provide this field when you
+   * create the resource.
+   * 
+ * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+   * Required. Fully-qualified URL of the network that this route applies to. e.g.
+   * projects/my-project/global/networks/my-network.
+   * 
+ * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The network. + */ + java.lang.String getNetwork(); + /** + *
+   * Required. Fully-qualified URL of the network that this route applies to. e.g.
+   * projects/my-project/global/networks/my-network.
+   * 
+ * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for network. + */ + com.google.protobuf.ByteString + getNetworkBytes(); + + /** + *
+   * Required. The filter to match L4 traffic.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the filter field is set. + */ + boolean hasFilter(); + /** + *
+   * Required. The filter to match L4 traffic.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * @return The filter. + */ + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter getFilter(); + /** + *
+   * Required. The filter to match L4 traffic.
+   * 
+ * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder getFilterOrBuilder(); + + /** + *
+   * Optional. The priority of this policy based route. Priority is used to break ties in
+   * cases where there are more than one matching policy based routes found. In
+   * cases where multiple policy based routes are matched, the one with the
+   * lowest-numbered priority value wins. The default value is 1000. The
+   * priority value must be from 1 to 65535, inclusive.
+   * 
+ * + * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return The priority. + */ + int getPriority(); + + /** + *
+   * Output only. If potential misconfigurations are detected for this route,
+   * this field will be populated with warning messages.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getWarningsList(); + /** + *
+   * Output only. If potential misconfigurations are detected for this route,
+   * this field will be populated with warning messages.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings getWarnings(int index); + /** + *
+   * Output only. If potential misconfigurations are detected for this route,
+   * this field will be populated with warning messages.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + int getWarningsCount(); + /** + *
+   * Output only. If potential misconfigurations are detected for this route,
+   * this field will be populated with warning messages.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getWarningsOrBuilderList(); + /** + *
+   * Output only. If potential misconfigurations are detected for this route,
+   * this field will be populated with warning messages.
+   * 
+ * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder getWarningsOrBuilder( + int index); + + /** + *
+   * Output only. Server-defined fully-qualified URL for this resource.
+   * 
+ * + * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The selfLink. + */ + java.lang.String getSelfLink(); + /** + *
+   * Output only. Server-defined fully-qualified URL for this resource.
+   * 
+ * + * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for selfLink. + */ + com.google.protobuf.ByteString + getSelfLinkBytes(); + + /** + *
+   * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
+   * Policy Based Route resources.
+   * 
+ * + * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The kind. + */ + java.lang.String getKind(); + /** + *
+   * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
+   * Policy Based Route resources.
+   * 
+ * + * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for kind. + */ + com.google.protobuf.ByteString + getKindBytes(); + + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.TargetCase getTargetCase(); + + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.NextHopCase getNextHopCase(); +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingProto.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingProto.java new file mode 100644 index 000000000000..aab8e96a93d2 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingProto.java @@ -0,0 +1,296 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/policy_based_routing.proto + +package com.google.cloud.networkconnectivity.v1; + +public final class PolicyBasedRoutingProto { + private PolicyBasedRoutingProto() {} + 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_networkconnectivity_v1_PolicyBasedRoute_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_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/networkconnectivity/v1/po" + + "licy_based_routing.proto\022#google.cloud.n" + + "etworkconnectivity.v1\032\034google/api/annota" + + "tions.proto\032\027google/api/client.proto\032\037go" + + "ogle/api/field_behavior.proto\032\031google/ap" + + "i/resource.proto\032#google/longrunning/ope" + + "rations.proto\032\037google/protobuf/timestamp" + + ".proto\"\247\r\n\020PolicyBasedRoute\022d\n\017virtual_m" + + "achine\030\022 \001(\0132D.google.cloud.networkconne" + + "ctivity.v1.PolicyBasedRoute.VirtualMachi" + + "neB\003\340A\001H\000\022t\n\027interconnect_attachment\030\t \001" + + "(\0132L.google.cloud.networkconnectivity.v1" + + ".PolicyBasedRoute.InterconnectAttachment" + + "B\003\340A\001H\000\022\036\n\017next_hop_ilb_ip\030\014 \001(\tB\003\340A\001H\001\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upda" + + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\022Q\n\006labels\030\004 \003(\0132A.google.cloud.ne" + + "tworkconnectivity.v1.PolicyBasedRoute.La" + + "belsEntry\022\030\n\013description\030\005 \001(\tB\003\340A\001\0227\n\007n" + + "etwork\030\006 \001(\tB&\340A\002\372A \n\036compute.googleapis" + + ".com/Network\022Q\n\006filter\030\n \001(\0132<.google.cl" + + "oud.networkconnectivity.v1.PolicyBasedRo" + + "ute.FilterB\003\340A\002\022\025\n\010priority\030\013 \001(\005B\003\340A\001\022U" + + "\n\010warnings\030\016 \003(\0132>.google.cloud.networkc" + + "onnectivity.v1.PolicyBasedRoute.Warnings" + + "B\003\340A\003\022\026\n\tself_link\030\017 \001(\tB\003\340A\003\022\021\n\004kind\030\020 " + + "\001(\tB\003\340A\003\032#\n\016VirtualMachine\022\021\n\004tags\030\001 \003(\t" + + "B\003\340A\001\032-\n\026InterconnectAttachment\022\023\n\006regio" + + "n\030\001 \001(\tB\003\340A\001\032\377\001\n\006Filter\022\030\n\013ip_protocol\030\001" + + " \001(\tB\003\340A\001\022\026\n\tsrc_range\030\002 \001(\tB\003\340A\001\022\027\n\ndes" + + "t_range\030\003 \001(\tB\003\340A\001\022k\n\020protocol_version\030\006" + + " \001(\0162L.google.cloud.networkconnectivity." + + "v1.PolicyBasedRoute.Filter.ProtocolVersi" + + "onB\003\340A\002\"=\n\017ProtocolVersion\022 \n\034PROTOCOL_V" + + "ERSION_UNSPECIFIED\020\000\022\010\n\004IPV4\020\001\032\341\002\n\010Warni" + + "ngs\022V\n\004code\030\001 \001(\0162C.google.cloud.network" + + "connectivity.v1.PolicyBasedRoute.Warning" + + "s.CodeB\003\340A\003\022[\n\004data\030\002 \003(\0132H.google.cloud" + + ".networkconnectivity.v1.PolicyBasedRoute" + + ".Warnings.DataEntryB\003\340A\003\022\034\n\017warning_mess" + + "age\030\003 \001(\tB\003\340A\003\032+\n\tDataEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\004Code\022\027\n\023WARNING_U" + + "NSPECIFIED\020\000\022\027\n\023RESOURCE_NOT_ACTIVE\020\001\022\033\n" + + "\027RESOURCE_BEING_MODIFIED\020\002\032-\n\013LabelsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\206\001\352A\202\001" + + "\n3networkconnectivity.googleapis.com/Pol" + + "icyBasedRoute\022Kprojects/{project}/{locat" + + "ion}/global/PolicyBasedRoutes/{policy_ba" + + "sed_route}B\010\n\006targetB\n\n\010next_hop\"\242\001\n\034Lis" + + "tPolicyBasedRoutesRequest\0229\n\006parent\030\001 \001(" + + "\tB)\340A\002\372A#\n!locations.googleapis.com/Loca" + + "tion\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\241\001" + + "\n\035ListPolicyBasedRoutesResponse\022R\n\023polic" + + "y_based_routes\030\001 \003(\01325.google.cloud.netw" + + "orkconnectivity.v1.PolicyBasedRoute\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(" + + "\t\"g\n\032GetPolicyBasedRouteRequest\022I\n\004name\030" + + "\001 \001(\tB;\340A\002\372A5\n3networkconnectivity.googl" + + "eapis.com/PolicyBasedRoute\"\357\001\n\035CreatePol" + + "icyBasedRouteRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "\"\n\025policy_based_route_id\030\002 \001(\tB\003\340A\001\022V\n\022p" + + "olicy_based_route\030\003 \001(\01325.google.cloud.n" + + "etworkconnectivity.v1.PolicyBasedRouteB\003" + + "\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\203\001\n\035DeleteP" + + "olicyBasedRouteRequest\022I\n\004name\030\001 \001(\tB;\340A" + + "\002\372A5\n3networkconnectivity.googleapis.com" + + "/PolicyBasedRoute\022\027\n\nrequest_id\030\002 \001(\tB\003\340" + + "A\0012\343\010\n\031PolicyBasedRoutingService\022\353\001\n\025Lis" + + "tPolicyBasedRoutes\022A.google.cloud.networ" + + "kconnectivity.v1.ListPolicyBasedRoutesRe" + + "quest\032B.google.cloud.networkconnectivity" + + ".v1.ListPolicyBasedRoutesResponse\"K\202\323\344\223\002" + + "<\022:/v1/{parent=projects/*/locations/glob" + + "al}/policyBasedRoutes\332A\006parent\022\330\001\n\023GetPo" + + "licyBasedRoute\022?.google.cloud.networkcon" + + "nectivity.v1.GetPolicyBasedRouteRequest\032" + + "5.google.cloud.networkconnectivity.v1.Po" + + "licyBasedRoute\"I\202\323\344\223\002<\022:/v1/{name=projec" + + "ts/*/locations/global/policyBasedRoutes/" + + "*}\332A\004name\022\256\002\n\026CreatePolicyBasedRoute\022B.g" + + "oogle.cloud.networkconnectivity.v1.Creat" + + "ePolicyBasedRouteRequest\032\035.google.longru" + + "nning.Operation\"\260\001\202\323\344\223\002P\":/v1/{parent=pr" + + "ojects/*/locations/global}/policyBasedRo" + + "utes:\022policy_based_route\332A/parent,policy" + + "_based_route,policy_based_route_id\312A%\n\020P" + + "olicyBasedRoute\022\021OperationMetadata\022\363\001\n\026D" + + "eletePolicyBasedRoute\022B.google.cloud.net" + + "workconnectivity.v1.DeletePolicyBasedRou" + + "teRequest\032\035.google.longrunning.Operation" + + "\"v\202\323\344\223\002<*:/v1/{name=projects/*/locations" + + "/global/policyBasedRoutes/*}\332A\004name\312A*\n\025" + + "google.protobuf.Empty\022\021OperationMetadata" + + "\032V\312A\"networkconnectivity.googleapis.com\322" + + "A.https://www.googleapis.com/auth/cloud-" + + "platformB\221\002\n\'com.google.cloud.networkcon" + + "nectivity.v1B\027PolicyBasedRoutingProtoP\001Z" + + "Vgoogle.golang.org/genproto/googleapis/c" + + "loud/networkconnectivity/v1;networkconne" + + "ctivity\252\002#Google.Cloud.NetworkConnectivi" + + "ty.V1\312\002#Google\\Cloud\\NetworkConnectivity" + + "\\V1\352\002&Google::Cloud::NetworkConnectivity" + + "::V1b\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.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor, + new java.lang.String[] { "VirtualMachine", "InterconnectAttachment", "NextHopIlbIp", "Name", "CreateTime", "UpdateTime", "Labels", "Description", "Network", "Filter", "Priority", "Warnings", "SelfLink", "Kind", "Target", "NextHop", }); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor = + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor, + new java.lang.String[] { "Tags", }); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor = + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor, + new java.lang.String[] { "Region", }); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor = + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor, + new java.lang.String[] { "IpProtocol", "SrcRange", "DestRange", "ProtocolVersion", }); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor = + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor, + new java.lang.String[] { "Code", "Data", "WarningMessage", }); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_descriptor = + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_descriptor = + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor, + new java.lang.String[] { "PolicyBasedRoutes", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor, + new java.lang.String[] { "Parent", "PolicyBasedRouteId", "PolicyBasedRoute", "RequestId", }); + internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor, + new java.lang.String[] { "Name", "RequestId", }); + 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.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java similarity index 65% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java index a7f89bd714c6..f5db4526d106 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * A router appliance instance is a Compute Engine virtual machine (VM) instance
  * that acts as a BGP speaker. A router appliance instance is specified by the
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.RouterApplianceInstance}
  */
-public final class RouterApplianceInstance extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RouterApplianceInstance extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.RouterApplianceInstance)
     RouterApplianceInstanceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RouterApplianceInstance.newBuilder() to construct.
   private RouterApplianceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RouterApplianceInstance() {
     virtualMachine_ = "";
     ipAddress_ = "";
@@ -47,43 +29,38 @@ private RouterApplianceInstance() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RouterApplianceInstance();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class,
-            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
+            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
   }
 
   public static final int VIRTUAL_MACHINE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object virtualMachine_ = "";
   /**
-   *
-   *
    * 
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The virtualMachine. */ @java.lang.Override @@ -92,29 +69,29 @@ public java.lang.String getVirtualMachine() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; } } /** - * - * *
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for virtualMachine. */ @java.lang.Override - public com.google.protobuf.ByteString getVirtualMachineBytes() { + public com.google.protobuf.ByteString + getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -123,18 +100,14 @@ public com.google.protobuf.ByteString getVirtualMachineBytes() { } public static final int IP_ADDRESS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object ipAddress_ = ""; /** - * - * *
    * The IP address on the VM to use for peering.
    * 
* * string ip_address = 3; - * * @return The ipAddress. */ @java.lang.Override @@ -143,29 +116,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; } } /** - * - * *
    * The IP address on the VM to use for peering.
    * 
* * 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 { @@ -174,7 +147,6 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,7 +158,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualMachine_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, virtualMachine_); } @@ -216,16 +189,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.networkconnectivity.v1.RouterApplianceInstance)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other = - (com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) obj; + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other = (com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) obj; - if (!getVirtualMachine().equals(other.getVirtualMachine())) return false; - if (!getIpAddress().equals(other.getIpAddress())) return false; + if (!getVirtualMachine() + .equals(other.getVirtualMachine())) return false; + if (!getIpAddress() + .equals(other.getIpAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,104 +221,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 router appliance instance is a Compute Engine virtual machine (VM) instance
    * that acts as a BGP speaker. A router appliance instance is specified by the
@@ -354,32 +320,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.RouterApplianceInstance}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.RouterApplianceInstance)
       com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class,
-              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
+              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -390,14 +357,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance
-        getDefaultInstanceForType() {
+    public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getDefaultInstanceForType() {
       return com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance();
     }
 
@@ -412,17 +378,13 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance buildPartial() {
-      com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result =
-          new com.google.cloud.networkconnectivity.v1.RouterApplianceInstance(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result = new com.google.cloud.networkconnectivity.v1.RouterApplianceInstance(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result) {
+    private void buildPartial0(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.virtualMachine_ = virtualMachine_;
@@ -436,50 +398,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.RouterApplianceInstance)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other) {
-      if (other
-          == com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other) {
+      if (other == com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()) return this;
       if (!other.getVirtualMachine().isEmpty()) {
         virtualMachine_ = other.virtualMachine_;
         bitField0_ |= 0x00000001;
@@ -516,25 +474,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                virtualMachine_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 26:
-              {
-                ipAddress_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              virtualMachine_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 26: {
+              ipAddress_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -544,25 +499,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object virtualMachine_ = "";
     /**
-     *
-     *
      * 
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The virtualMachine. */ public java.lang.String getVirtualMachine() { java.lang.Object ref = virtualMachine_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; @@ -571,21 +523,20 @@ public java.lang.String getVirtualMachine() { } } /** - * - * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for virtualMachine. */ - public com.google.protobuf.ByteString getVirtualMachineBytes() { + public com.google.protobuf.ByteString + getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -593,35 +544,28 @@ public com.google.protobuf.ByteString getVirtualMachineBytes() { } } /** - * - * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @param value The virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachine(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVirtualMachine( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } virtualMachine_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearVirtualMachine() { @@ -631,21 +575,17 @@ public Builder clearVirtualMachine() { return this; } /** - * - * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachineBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVirtualMachineBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); virtualMachine_ = value; bitField0_ |= 0x00000001; @@ -655,20 +595,18 @@ public Builder setVirtualMachineBytes(com.google.protobuf.ByteString value) { private java.lang.Object ipAddress_ = ""; /** - * - * *
      * The IP address on the VM to use for peering.
      * 
* * 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; @@ -677,21 +615,20 @@ public java.lang.String getIpAddress() { } } /** - * - * *
      * The IP address on the VM to use for peering.
      * 
* * 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 { @@ -699,35 +636,28 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } } /** - * - * *
      * The IP address on the VM to use for peering.
      * 
* * 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(); - } + public Builder setIpAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ipAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The IP address on the VM to use for peering.
      * 
* * string ip_address = 3; - * * @return This builder for chaining. */ public Builder clearIpAddress() { @@ -737,30 +667,26 @@ public Builder clearIpAddress() { return this; } /** - * - * *
      * The IP address on the VM to use for peering.
      * 
* * 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(); - } + public Builder setIpAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ipAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -770,43 +696,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.RouterApplianceInstance) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.RouterApplianceInstance) - private static final com.google.cloud.networkconnectivity.v1.RouterApplianceInstance - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1.RouterApplianceInstance DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.RouterApplianceInstance(); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouterApplianceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouterApplianceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -818,8 +742,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java similarity index 57% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java index e9f532da2fd6..1ea6f2cf0b21 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface RouterApplianceInstanceOrBuilder - extends +public interface RouterApplianceInstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.RouterApplianceInstance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The virtualMachine. */ java.lang.String getVirtualMachine(); /** - * - * *
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for virtualMachine. */ - com.google.protobuf.ByteString getVirtualMachineBytes(); + com.google.protobuf.ByteString + getVirtualMachineBytes(); /** - * - * *
    * The IP address on the VM to use for peering.
    * 
* * string ip_address = 3; - * * @return The ipAddress. */ java.lang.String getIpAddress(); /** - * - * *
    * The IP address on the VM to use for peering.
    * 
* * string ip_address = 3; - * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString getIpAddressBytes(); + com.google.protobuf.ByteString + getIpAddressBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java similarity index 63% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java index 24b9634f2eb3..e5def3cec2cd 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java @@ -1,86 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * RoutingVPC contains information about the VPC networks that are associated
- * with a hub's spokes.
+ * RoutingVPC contains information about the VPC networks associated
+ * with the spokes of a Network Connectivity Center hub.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.RoutingVPC} */ -public final class RoutingVPC extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RoutingVPC extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.RoutingVPC) RoutingVPCOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RoutingVPC.newBuilder() to construct. private RoutingVPC(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RoutingVPC() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RoutingVPC(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.RoutingVPC.class, - com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class); + com.google.cloud.networkconnectivity.v1.RoutingVPC.class, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class); } public static final int URI_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** - * - * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return The uri. */ @java.lang.Override @@ -89,29 +66,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -122,20 +99,15 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int REQUIRED_FOR_NEW_SITE_TO_SITE_DATA_TRANSFER_SPOKES_FIELD_NUMBER = 2; private boolean requiredForNewSiteToSiteDataTransferSpokes_ = false; /** - * - * *
-   * Output only. If true, indicates that this VPC network is currently associated with
-   * spokes that use the data transfer feature (spokes where the
+   * Output only. If true, indicates that this VPC network is currently
+   * associated with spokes that use the data transfer feature (spokes where the
    * site_to_site_data_transfer field is set to true). If you create new spokes
    * that use data transfer, they must be associated with this VPC network. At
    * most, one VPC network will have this field set to true.
    * 
* - * - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The requiredForNewSiteToSiteDataTransferSpokes. */ @java.lang.Override @@ -144,7 +116,6 @@ public boolean getRequiredForNewSiteToSiteDataTransferSpokes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -156,7 +127,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -176,9 +148,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (requiredForNewSiteToSiteDataTransferSpokes_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 2, requiredForNewSiteToSiteDataTransferSpokes_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, requiredForNewSiteToSiteDataTransferSpokes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -188,15 +159,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.networkconnectivity.v1.RoutingVPC)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.RoutingVPC other = - (com.google.cloud.networkconnectivity.v1.RoutingVPC) obj; + com.google.cloud.networkconnectivity.v1.RoutingVPC other = (com.google.cloud.networkconnectivity.v1.RoutingVPC) obj; - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (getRequiredForNewSiteToSiteDataTransferSpokes() != other.getRequiredForNewSiteToSiteDataTransferSpokes()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -213,146 +184,138 @@ public int hashCode() { hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + REQUIRED_FOR_NEW_SITE_TO_SITE_DATA_TRANSFER_SPOKES_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean( - getRequiredForNewSiteToSiteDataTransferSpokes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequiredForNewSiteToSiteDataTransferSpokes()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.RoutingVPC prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * RoutingVPC contains information about the VPC networks that are associated
-   * with a hub's spokes.
+   * RoutingVPC contains information about the VPC networks associated
+   * with the spokes of a Network Connectivity Center hub.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.RoutingVPC} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.RoutingVPC) com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.RoutingVPC.class, - com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class); + com.google.cloud.networkconnectivity.v1.RoutingVPC.class, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.RoutingVPC.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -363,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor; } @java.lang.Override @@ -384,11 +347,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.RoutingVPC buildPartial() { - com.google.cloud.networkconnectivity.v1.RoutingVPC result = - new com.google.cloud.networkconnectivity.v1.RoutingVPC(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.RoutingVPC result = new com.google.cloud.networkconnectivity.v1.RoutingVPC(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -399,8 +359,7 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.RoutingVPC re result.uri_ = uri_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.requiredForNewSiteToSiteDataTransferSpokes_ = - requiredForNewSiteToSiteDataTransferSpokes_; + result.requiredForNewSiteToSiteDataTransferSpokes_ = requiredForNewSiteToSiteDataTransferSpokes_; } } @@ -408,39 +367,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.RoutingVPC re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.RoutingVPC) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.RoutingVPC) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.RoutingVPC)other); } else { super.mergeFrom(other); return this; @@ -448,16 +406,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.RoutingVPC other) { - if (other == com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; bitField0_ |= 0x00000001; onChanged(); } if (other.getRequiredForNewSiteToSiteDataTransferSpokes() != false) { - setRequiredForNewSiteToSiteDataTransferSpokes( - other.getRequiredForNewSiteToSiteDataTransferSpokes()); + setRequiredForNewSiteToSiteDataTransferSpokes(other.getRequiredForNewSiteToSiteDataTransferSpokes()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -485,25 +441,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - requiredForNewSiteToSiteDataTransferSpokes_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + requiredForNewSiteToSiteDataTransferSpokes_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -513,25 +466,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object uri_ = ""; /** - * - * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -540,21 +490,20 @@ public java.lang.String getUri() { } } /** - * - * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -562,35 +511,28 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearUri() { @@ -600,21 +542,17 @@ public Builder clearUri() { return this; } /** - * - * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000001; @@ -622,22 +560,17 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { return this; } - private boolean requiredForNewSiteToSiteDataTransferSpokes_; + private boolean requiredForNewSiteToSiteDataTransferSpokes_ ; /** - * - * *
-     * Output only. If true, indicates that this VPC network is currently associated with
-     * spokes that use the data transfer feature (spokes where the
+     * Output only. If true, indicates that this VPC network is currently
+     * associated with spokes that use the data transfer feature (spokes where the
      * site_to_site_data_transfer field is set to true). If you create new spokes
      * that use data transfer, they must be associated with this VPC network. At
      * most, one VPC network will have this field set to true.
      * 
* - * - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The requiredForNewSiteToSiteDataTransferSpokes. */ @java.lang.Override @@ -645,45 +578,35 @@ public boolean getRequiredForNewSiteToSiteDataTransferSpokes() { return requiredForNewSiteToSiteDataTransferSpokes_; } /** - * - * *
-     * Output only. If true, indicates that this VPC network is currently associated with
-     * spokes that use the data transfer feature (spokes where the
+     * Output only. If true, indicates that this VPC network is currently
+     * associated with spokes that use the data transfer feature (spokes where the
      * site_to_site_data_transfer field is set to true). If you create new spokes
      * that use data transfer, they must be associated with this VPC network. At
      * most, one VPC network will have this field set to true.
      * 
* - * - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The requiredForNewSiteToSiteDataTransferSpokes to set. * @return This builder for chaining. */ public Builder setRequiredForNewSiteToSiteDataTransferSpokes(boolean value) { - + requiredForNewSiteToSiteDataTransferSpokes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
-     * Output only. If true, indicates that this VPC network is currently associated with
-     * spokes that use the data transfer feature (spokes where the
+     * Output only. If true, indicates that this VPC network is currently
+     * associated with spokes that use the data transfer feature (spokes where the
      * site_to_site_data_transfer field is set to true). If you create new spokes
      * that use data transfer, they must be associated with this VPC network. At
      * most, one VPC network will have this field set to true.
      * 
* - * - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRequiredForNewSiteToSiteDataTransferSpokes() { @@ -692,9 +615,9 @@ public Builder clearRequiredForNewSiteToSiteDataTransferSpokes() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -704,12 +627,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.RoutingVPC) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.RoutingVPC) private static final com.google.cloud.networkconnectivity.v1.RoutingVPC DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.RoutingVPC(); } @@ -718,27 +641,27 @@ public static com.google.cloud.networkconnectivity.v1.RoutingVPC getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RoutingVPC parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoutingVPC parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -753,4 +676,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.RoutingVPC getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java similarity index 54% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java index 017e8c5e14ab..f14b5b005d03 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java @@ -1,68 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface RoutingVPCOrBuilder - extends +public interface RoutingVPCOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.RoutingVPC) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
-   * Output only. If true, indicates that this VPC network is currently associated with
-   * spokes that use the data transfer feature (spokes where the
+   * Output only. If true, indicates that this VPC network is currently
+   * associated with spokes that use the data transfer feature (spokes where the
    * site_to_site_data_transfer field is set to true). If you create new spokes
    * that use data transfer, they must be associated with this VPC network. At
    * most, one VPC network will have this field set to true.
    * 
* - * - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The requiredForNewSiteToSiteDataTransferSpokes. */ boolean getRequiredForNewSiteToSiteDataTransferSpokes(); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java similarity index 61% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java index 555a80acf7e7..cc0e0a96cb32 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java @@ -1,29 +1,12 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * A spoke represents a connection between your Google Cloud network resources
- * and a non-Google-Cloud network.
+ * A Network Connectivity Center spoke represents a connection between your
+ * Google Cloud network resources and a non-Google-Cloud network.
  * When you create a spoke, you associate it with a hub. You must also identify
  * a value for exactly one of the following fields:
  * * linked_vpn_tunnels
@@ -33,16 +16,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.Spoke}
  */
-public final class Spoke extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Spoke extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.Spoke)
     SpokeOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Spoke.newBuilder() to construct.
   private Spoke(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Spoke() {
     name_ = "";
     description_ = "";
@@ -53,48 +35,45 @@ private Spoke() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Spoke();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.Spoke.class,
-            com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
+            com.google.cloud.networkconnectivity.v1.Spoke.class, com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -102,7 +81,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -111,15 +89,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; } } /** - * - * *
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -127,15 +104,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -146,15 +124,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the spoke was created.
    * 
* - * .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 @@ -162,15 +136,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the spoke was created.
    * 
* - * .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 @@ -178,14 +148,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the spoke was created.
    * 
* - * .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() { @@ -195,15 +162,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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 @@ -211,15 +174,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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 @@ -227,14 +186,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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() { @@ -242,34 +198,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_Spoke_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.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - 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_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -279,21 +233,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 4;
    */
   @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();
   }
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -307,8 +260,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -318,19 +269,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+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;
   }
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -340,11 +289,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @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();
     }
@@ -352,18 +301,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   public static final int DESCRIPTION_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object description_ = "";
   /**
-   *
-   *
    * 
    * An optional description of the spoke.
    * 
* * string description = 5; - * * @return The description. */ @java.lang.Override @@ -372,29 +317,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * An optional description of the spoke.
    * 
* * string description = 5; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -403,20 +348,14 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int HUB_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object hub_ = ""; /** - * - * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The hub. */ @java.lang.Override @@ -425,31 +364,29 @@ public java.lang.String getHub() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; } } /** - * - * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for hub. */ @java.lang.Override - public com.google.protobuf.ByteString getHubBytes() { + public com.google.protobuf.ByteString + getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hub_ = b; return b; } else { @@ -460,14 +397,11 @@ public com.google.protobuf.ByteString getHubBytes() { public static final int LINKED_VPN_TUNNELS_FIELD_NUMBER = 17; private com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linkedVpnTunnels_; /** - * - * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; - * * @return Whether the linkedVpnTunnels field is set. */ @java.lang.Override @@ -475,25 +409,18 @@ public boolean hasLinkedVpnTunnels() { return linkedVpnTunnels_ != null; } /** - * - * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; - * * @return The linkedVpnTunnels. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunnels() { - return linkedVpnTunnels_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() - : linkedVpnTunnels_; + return linkedVpnTunnels_ == null ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; } /** - * - * *
    * VPN tunnels that are associated with the spoke.
    * 
@@ -501,27 +428,18 @@ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunn * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder - getLinkedVpnTunnelsOrBuilder() { - return linkedVpnTunnels_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() - : linkedVpnTunnels_; + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLinkedVpnTunnelsOrBuilder() { + return linkedVpnTunnels_ == null ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; } public static final int LINKED_INTERCONNECT_ATTACHMENTS_FIELD_NUMBER = 18; - private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - linkedInterconnectAttachments_; + private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linkedInterconnectAttachments_; /** - * - * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; * @return Whether the linkedInterconnectAttachments field is set. */ @java.lang.Override @@ -529,58 +447,37 @@ public boolean hasLinkedInterconnectAttachments() { return linkedInterconnectAttachments_ != null; } /** - * - * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; * @return The linkedInterconnectAttachments. */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - getLinkedInterconnectAttachments() { - return linkedInterconnectAttachments_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() - : linkedInterconnectAttachments_; + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getLinkedInterconnectAttachments() { + return linkedInterconnectAttachments_ == null ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; } /** - * - * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder - getLinkedInterconnectAttachmentsOrBuilder() { - return linkedInterconnectAttachments_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() - : linkedInterconnectAttachments_; + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder getLinkedInterconnectAttachmentsOrBuilder() { + return linkedInterconnectAttachments_ == null ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; } public static final int LINKED_ROUTER_APPLIANCE_INSTANCES_FIELD_NUMBER = 19; - private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - linkedRouterApplianceInstances_; + private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linkedRouterApplianceInstances_; /** - * - * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; * @return Whether the linkedRouterApplianceInstances field is set. */ @java.lang.Override @@ -588,61 +485,40 @@ public boolean hasLinkedRouterApplianceInstances() { return linkedRouterApplianceInstances_ != null; } /** - * - * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; * @return The linkedRouterApplianceInstances. */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - getLinkedRouterApplianceInstances() { - return linkedRouterApplianceInstances_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - .getDefaultInstance() - : linkedRouterApplianceInstances_; + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getLinkedRouterApplianceInstances() { + return linkedRouterApplianceInstances_ == null ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; } /** - * - * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder - getLinkedRouterApplianceInstancesOrBuilder() { - return linkedRouterApplianceInstances_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - .getDefaultInstance() - : linkedRouterApplianceInstances_; + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder getLinkedRouterApplianceInstancesOrBuilder() { + return linkedRouterApplianceInstances_ == null ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; } public static final int UNIQUE_ID_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** - * - * *
-   * Output only. The Google-generated UUID for the spoke. This value is unique across all
-   * spoke resources. If a spoke is deleted and another with the same name is
-   * created, the new spoke is assigned a different unique_id.
+   * Output only. The Google-generated UUID for the spoke. This value is unique
+   * across all spoke resources. If a spoke is deleted and another with the same
+   * name is created, the new spoke is assigned a different unique_id.
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ @java.lang.Override @@ -651,31 +527,31 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** - * - * *
-   * Output only. The Google-generated UUID for the spoke. This value is unique across all
-   * spoke resources. If a spoke is deleted and another with the same name is
-   * created, the new spoke is assigned a different unique_id.
+   * Output only. The Google-generated UUID for the spoke. This value is unique
+   * across all spoke resources. If a spoke is deleted and another with the same
+   * name is created, the new spoke is assigned a different unique_id.
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -686,44 +562,30 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** - * - * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = - com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { + com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -735,7 +597,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -745,8 +608,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -781,20 +648,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -806,20 +675,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, uniqueId_); } if (state_ != com.google.cloud.networkconnectivity.v1.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, state_); } if (linkedVpnTunnels_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getLinkedVpnTunnels()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getLinkedVpnTunnels()); } if (linkedInterconnectAttachments_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 18, getLinkedInterconnectAttachments()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getLinkedInterconnectAttachments()); } if (linkedRouterApplianceInstances_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 19, getLinkedRouterApplianceInstances()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getLinkedRouterApplianceInstances()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -829,43 +698,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.networkconnectivity.v1.Spoke)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.Spoke other = - (com.google.cloud.networkconnectivity.v1.Spoke) obj; + com.google.cloud.networkconnectivity.v1.Spoke other = (com.google.cloud.networkconnectivity.v1.Spoke) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getHub().equals(other.getHub())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getHub() + .equals(other.getHub())) return false; if (hasLinkedVpnTunnels() != other.hasLinkedVpnTunnels()) return false; if (hasLinkedVpnTunnels()) { - if (!getLinkedVpnTunnels().equals(other.getLinkedVpnTunnels())) return false; + if (!getLinkedVpnTunnels() + .equals(other.getLinkedVpnTunnels())) return false; } - if (hasLinkedInterconnectAttachments() != other.hasLinkedInterconnectAttachments()) - return false; + if (hasLinkedInterconnectAttachments() != other.hasLinkedInterconnectAttachments()) return false; if (hasLinkedInterconnectAttachments()) { - if (!getLinkedInterconnectAttachments().equals(other.getLinkedInterconnectAttachments())) - return false; + if (!getLinkedInterconnectAttachments() + .equals(other.getLinkedInterconnectAttachments())) return false; } - if (hasLinkedRouterApplianceInstances() != other.hasLinkedRouterApplianceInstances()) - return false; + if (hasLinkedRouterApplianceInstances() != other.hasLinkedRouterApplianceInstances()) return false; if (hasLinkedRouterApplianceInstances()) { - if (!getLinkedRouterApplianceInstances().equals(other.getLinkedRouterApplianceInstances())) - return false; + if (!getLinkedRouterApplianceInstances() + .equals(other.getLinkedRouterApplianceInstances())) return false; } - if (!getUniqueId().equals(other.getUniqueId())) return false; + if (!getUniqueId() + .equals(other.getUniqueId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -917,107 +791,100 @@ public int hashCode() { return hash; } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.Spoke 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.networkconnectivity.v1.Spoke parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.Spoke parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.Spoke parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.Spoke prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 spoke represents a connection between your Google Cloud network resources
-   * and a non-Google-Cloud network.
+   * A Network Connectivity Center spoke represents a connection between your
+   * Google Cloud network resources and a non-Google-Cloud network.
    * When you create a spoke, you associate it with a hub. You must also identify
    * a value for exactly one of the following fields:
    * * linked_vpn_tunnels
@@ -1027,52 +894,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.Spoke}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.Spoke)
       com.google.cloud.networkconnectivity.v1.SpokeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.Spoke.class,
-              com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
+              com.google.cloud.networkconnectivity.v1.Spoke.class, com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.Spoke.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1112,9 +982,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
     }
 
     @java.lang.Override
@@ -1133,11 +1003,8 @@ public com.google.cloud.networkconnectivity.v1.Spoke build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.Spoke buildPartial() {
-      com.google.cloud.networkconnectivity.v1.Spoke result =
-          new com.google.cloud.networkconnectivity.v1.Spoke(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1.Spoke result = new com.google.cloud.networkconnectivity.v1.Spoke(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1148,10 +1015,14 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result)
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -1164,20 +1035,19 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result)
         result.hub_ = hub_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.linkedVpnTunnels_ =
-            linkedVpnTunnelsBuilder_ == null ? linkedVpnTunnels_ : linkedVpnTunnelsBuilder_.build();
+        result.linkedVpnTunnels_ = linkedVpnTunnelsBuilder_ == null
+            ? linkedVpnTunnels_
+            : linkedVpnTunnelsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.linkedInterconnectAttachments_ =
-            linkedInterconnectAttachmentsBuilder_ == null
-                ? linkedInterconnectAttachments_
-                : linkedInterconnectAttachmentsBuilder_.build();
+        result.linkedInterconnectAttachments_ = linkedInterconnectAttachmentsBuilder_ == null
+            ? linkedInterconnectAttachments_
+            : linkedInterconnectAttachmentsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.linkedRouterApplianceInstances_ =
-            linkedRouterApplianceInstancesBuilder_ == null
-                ? linkedRouterApplianceInstances_
-                : linkedRouterApplianceInstancesBuilder_.build();
+        result.linkedRouterApplianceInstances_ = linkedRouterApplianceInstancesBuilder_ == null
+            ? linkedRouterApplianceInstances_
+            : linkedRouterApplianceInstancesBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.uniqueId_ = uniqueId_;
@@ -1191,39 +1061,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result)
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.Spoke) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.Spoke) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.Spoke)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1243,7 +1112,8 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Spoke other) {
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -1298,89 +1168,81 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                hub_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 90:
-              {
-                uniqueId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 90
-            case 120:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 120
-            case 138:
-              {
-                input.readMessage(
-                    getLinkedVpnTunnelsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 138
-            case 146:
-              {
-                input.readMessage(
-                    getLinkedInterconnectAttachmentsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 146
-            case 154:
-              {
-                input.readMessage(
-                    getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 154
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              hub_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 90: {
+              uniqueId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 90
+            case 120: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 120
+            case 138: {
+              input.readMessage(
+                  getLinkedVpnTunnelsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 138
+            case 146: {
+              input.readMessage(
+                  getLinkedInterconnectAttachmentsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 146
+            case 154: {
+              input.readMessage(
+                  getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 154
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1390,13 +1252,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1404,13 +1263,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1419,8 +1278,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1428,14 +1285,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1443,8 +1301,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1452,22 +1308,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1475,7 +1327,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1485,8 +1336,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1494,14 +1343,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1511,58 +1358,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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) { @@ -1578,17 +1406,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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(); } else { @@ -1599,21 +1424,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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 (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1626,15 +1447,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1647,15 +1464,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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() { bitField0_ |= 0x00000002; @@ -1663,48 +1476,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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_; @@ -1712,58 +1513,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .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) { @@ -1779,17 +1561,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .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(); } else { @@ -1800,21 +1579,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .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 (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1827,15 +1602,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1848,15 +1619,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .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() { bitField0_ |= 0x00000004; @@ -1864,66 +1631,56 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1932,13 +1689,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1948,21 +1702,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 4;
      */
     @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();
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1976,8 +1729,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1987,19 +1738,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+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;
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -2009,25 +1758,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @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();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -2036,22 +1783,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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() {
       bitField0_ |= 0x00000008;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -2060,20 +1808,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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);
+    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);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -2082,28 +1827,28 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 4;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.lang.Object description_ = "";
     /**
-     *
-     *
      * 
      * An optional description of the spoke.
      * 
* * string description = 5; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2112,21 +1857,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * An optional description of the spoke.
      * 
* * string description = 5; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2134,35 +1878,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * An optional description of the spoke.
      * 
* * string description = 5; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * An optional description of the spoke.
      * 
* * string description = 5; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2172,21 +1909,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * An optional description of the spoke.
      * 
* * string description = 5; - * * @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(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -2196,22 +1929,18 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object hub_ = ""; /** - * - * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The hub. */ public java.lang.String getHub() { java.lang.Object ref = hub_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; @@ -2220,23 +1949,20 @@ public java.lang.String getHub() { } } /** - * - * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for hub. */ - public com.google.protobuf.ByteString getHubBytes() { + public com.google.protobuf.ByteString + getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hub_ = b; return b; } else { @@ -2244,39 +1970,28 @@ public com.google.protobuf.ByteString getHubBytes() { } } /** - * - * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The hub to set. * @return This builder for chaining. */ - public Builder setHub(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHub( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hub_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearHub() { @@ -2286,23 +2001,17 @@ public Builder clearHub() { return this; } /** - * - * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for hub to set. * @return This builder for chaining. */ - public Builder setHubBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHubBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hub_ = value; bitField0_ |= 0x00000020; @@ -2312,55 +2021,41 @@ public Builder setHubBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linkedVpnTunnels_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> - linkedVpnTunnelsBuilder_; + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> linkedVpnTunnelsBuilder_; /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; - * * @return Whether the linkedVpnTunnels field is set. */ public boolean hasLinkedVpnTunnels() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; - * * @return The linkedVpnTunnels. */ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunnels() { if (linkedVpnTunnelsBuilder_ == null) { - return linkedVpnTunnels_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() - : linkedVpnTunnels_; + return linkedVpnTunnels_ == null ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; } else { return linkedVpnTunnelsBuilder_.getMessage(); } } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public Builder setLinkedVpnTunnels( - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { + public Builder setLinkedVpnTunnels(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { if (linkedVpnTunnelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2374,8 +2069,6 @@ public Builder setLinkedVpnTunnels( return this; } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
@@ -2394,21 +2087,17 @@ public Builder setLinkedVpnTunnels( return this; } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public Builder mergeLinkedVpnTunnels( - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { + public Builder mergeLinkedVpnTunnels(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { if (linkedVpnTunnelsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && linkedVpnTunnels_ != null - && linkedVpnTunnels_ - != com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + linkedVpnTunnels_ != null && + linkedVpnTunnels_ != com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) { getLinkedVpnTunnelsBuilder().mergeFrom(value); } else { linkedVpnTunnels_ = value; @@ -2421,8 +2110,6 @@ public Builder mergeLinkedVpnTunnels( return this; } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
@@ -2440,42 +2127,33 @@ public Builder clearLinkedVpnTunnels() { return this; } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder - getLinkedVpnTunnelsBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder getLinkedVpnTunnelsBuilder() { bitField0_ |= 0x00000040; onChanged(); return getLinkedVpnTunnelsFieldBuilder().getBuilder(); } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder - getLinkedVpnTunnelsOrBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLinkedVpnTunnelsOrBuilder() { if (linkedVpnTunnelsBuilder_ != null) { return linkedVpnTunnelsBuilder_.getMessageOrBuilder(); } else { - return linkedVpnTunnels_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() - : linkedVpnTunnels_; + return linkedVpnTunnels_ == null ? + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; } } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
@@ -2483,82 +2161,56 @@ public Builder clearLinkedVpnTunnels() { * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> getLinkedVpnTunnelsFieldBuilder() { if (linkedVpnTunnelsBuilder_ == null) { - linkedVpnTunnelsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder>( - getLinkedVpnTunnels(), getParentForChildren(), isClean()); + linkedVpnTunnelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder>( + getLinkedVpnTunnels(), + getParentForChildren(), + isClean()); linkedVpnTunnels_ = null; } return linkedVpnTunnelsBuilder_; } - private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - linkedInterconnectAttachments_; + private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linkedInterconnectAttachments_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> - linkedInterconnectAttachmentsBuilder_; + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> linkedInterconnectAttachmentsBuilder_; /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; * @return Whether the linkedInterconnectAttachments field is set. */ public boolean hasLinkedInterconnectAttachments() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; * @return The linkedInterconnectAttachments. */ - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - getLinkedInterconnectAttachments() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getLinkedInterconnectAttachments() { if (linkedInterconnectAttachmentsBuilder_ == null) { - return linkedInterconnectAttachments_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - .getDefaultInstance() - : linkedInterconnectAttachments_; + return linkedInterconnectAttachments_ == null ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; } else { return linkedInterconnectAttachmentsBuilder_.getMessage(); } } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ - public Builder setLinkedInterconnectAttachments( - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { + public Builder setLinkedInterconnectAttachments(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { if (linkedInterconnectAttachmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2572,19 +2224,14 @@ public Builder setLinkedInterconnectAttachments( return this; } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ public Builder setLinkedInterconnectAttachments( - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder - builderForValue) { + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder builderForValue) { if (linkedInterconnectAttachmentsBuilder_ == null) { linkedInterconnectAttachments_ = builderForValue.build(); } else { @@ -2595,24 +2242,17 @@ public Builder setLinkedInterconnectAttachments( return this; } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ - public Builder mergeLinkedInterconnectAttachments( - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { + public Builder mergeLinkedInterconnectAttachments(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { if (linkedInterconnectAttachmentsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && linkedInterconnectAttachments_ != null - && linkedInterconnectAttachments_ - != com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - .getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + linkedInterconnectAttachments_ != null && + linkedInterconnectAttachments_ != com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance()) { getLinkedInterconnectAttachmentsBuilder().mergeFrom(value); } else { linkedInterconnectAttachments_ = value; @@ -2625,15 +2265,11 @@ public Builder mergeLinkedInterconnectAttachments( return this; } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ public Builder clearLinkedInterconnectAttachments() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2646,132 +2282,90 @@ public Builder clearLinkedInterconnectAttachments() { return this; } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder - getLinkedInterconnectAttachmentsBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder getLinkedInterconnectAttachmentsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getLinkedInterconnectAttachmentsFieldBuilder().getBuilder(); } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder - getLinkedInterconnectAttachmentsOrBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder getLinkedInterconnectAttachmentsOrBuilder() { if (linkedInterconnectAttachmentsBuilder_ != null) { return linkedInterconnectAttachmentsBuilder_.getMessageOrBuilder(); } else { - return linkedInterconnectAttachments_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - .getDefaultInstance() - : linkedInterconnectAttachments_; + return linkedInterconnectAttachments_ == null ? + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; } } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> getLinkedInterconnectAttachmentsFieldBuilder() { if (linkedInterconnectAttachmentsBuilder_ == null) { - linkedInterconnectAttachmentsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder>( - getLinkedInterconnectAttachments(), getParentForChildren(), isClean()); + linkedInterconnectAttachmentsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder>( + getLinkedInterconnectAttachments(), + getParentForChildren(), + isClean()); linkedInterconnectAttachments_ = null; } return linkedInterconnectAttachmentsBuilder_; } - private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - linkedRouterApplianceInstances_; + private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linkedRouterApplianceInstances_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> - linkedRouterApplianceInstancesBuilder_; + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> linkedRouterApplianceInstancesBuilder_; /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; * @return Whether the linkedRouterApplianceInstances field is set. */ public boolean hasLinkedRouterApplianceInstances() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; * @return The linkedRouterApplianceInstances. */ - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - getLinkedRouterApplianceInstances() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getLinkedRouterApplianceInstances() { if (linkedRouterApplianceInstancesBuilder_ == null) { - return linkedRouterApplianceInstances_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - .getDefaultInstance() - : linkedRouterApplianceInstances_; + return linkedRouterApplianceInstances_ == null ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; } else { return linkedRouterApplianceInstancesBuilder_.getMessage(); } } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ - public Builder setLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { + public Builder setLinkedRouterApplianceInstances(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { if (linkedRouterApplianceInstancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2785,19 +2379,14 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ public Builder setLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder - builderForValue) { + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { linkedRouterApplianceInstances_ = builderForValue.build(); } else { @@ -2808,24 +2397,17 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ - public Builder mergeLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { + public Builder mergeLinkedRouterApplianceInstances(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { if (linkedRouterApplianceInstancesBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && linkedRouterApplianceInstances_ != null - && linkedRouterApplianceInstances_ - != com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - .getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + linkedRouterApplianceInstances_ != null && + linkedRouterApplianceInstances_ != com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance()) { getLinkedRouterApplianceInstancesBuilder().mergeFrom(value); } else { linkedRouterApplianceInstances_ = value; @@ -2838,15 +2420,11 @@ public Builder mergeLinkedRouterApplianceInstances( return this; } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ public Builder clearLinkedRouterApplianceInstances() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2859,67 +2437,48 @@ public Builder clearLinkedRouterApplianceInstances() { return this; } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder - getLinkedRouterApplianceInstancesBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder getLinkedRouterApplianceInstancesBuilder() { bitField0_ |= 0x00000100; onChanged(); return getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(); } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder - getLinkedRouterApplianceInstancesOrBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder getLinkedRouterApplianceInstancesOrBuilder() { if (linkedRouterApplianceInstancesBuilder_ != null) { return linkedRouterApplianceInstancesBuilder_.getMessageOrBuilder(); } else { - return linkedRouterApplianceInstances_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - .getDefaultInstance() - : linkedRouterApplianceInstances_; + return linkedRouterApplianceInstances_ == null ? + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; } } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> getLinkedRouterApplianceInstancesFieldBuilder() { if (linkedRouterApplianceInstancesBuilder_ == null) { - linkedRouterApplianceInstancesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder>( - getLinkedRouterApplianceInstances(), getParentForChildren(), isClean()); + linkedRouterApplianceInstancesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder>( + getLinkedRouterApplianceInstances(), + getParentForChildren(), + isClean()); linkedRouterApplianceInstances_ = null; } return linkedRouterApplianceInstancesBuilder_; @@ -2927,22 +2486,20 @@ public Builder clearLinkedRouterApplianceInstances() { private java.lang.Object uniqueId_ = ""; /** - * - * *
-     * Output only. The Google-generated UUID for the spoke. This value is unique across all
-     * spoke resources. If a spoke is deleted and another with the same name is
-     * created, the new spoke is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the spoke. This value is unique
+     * across all spoke resources. If a spoke is deleted and another with the same
+     * name is created, the new spoke is assigned a different unique_id.
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -2951,23 +2508,22 @@ public java.lang.String getUniqueId() { } } /** - * - * *
-     * Output only. The Google-generated UUID for the spoke. This value is unique across all
-     * spoke resources. If a spoke is deleted and another with the same name is
-     * created, the new spoke is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the spoke. This value is unique
+     * across all spoke resources. If a spoke is deleted and another with the same
+     * name is created, the new spoke is assigned a different unique_id.
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -2975,39 +2531,32 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { } } /** - * - * *
-     * Output only. The Google-generated UUID for the spoke. This value is unique across all
-     * spoke resources. If a spoke is deleted and another with the same name is
-     * created, the new spoke is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the spoke. This value is unique
+     * across all spoke resources. If a spoke is deleted and another with the same
+     * name is created, the new spoke is assigned a different unique_id.
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uniqueId_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
-     * Output only. The Google-generated UUID for the spoke. This value is unique across all
-     * spoke resources. If a spoke is deleted and another with the same name is
-     * created, the new spoke is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the spoke. This value is unique
+     * across all spoke resources. If a spoke is deleted and another with the same
+     * name is created, the new spoke is assigned a different unique_id.
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -3017,23 +2566,19 @@ public Builder clearUniqueId() { return this; } /** - * - * *
-     * Output only. The Google-generated UUID for the spoke. This value is unique across all
-     * spoke resources. If a spoke is deleted and another with the same name is
-     * created, the new spoke is assigned a different unique_id.
+     * Output only. The Google-generated UUID for the spoke. This value is unique
+     * across all spoke resources. If a spoke is deleted and another with the same
+     * name is created, the new spoke is assigned a different unique_id.
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000200; @@ -3043,33 +2588,22 @@ public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3080,35 +2614,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = - com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3122,16 +2645,11 @@ public Builder setState(com.google.cloud.networkconnectivity.v1.State value) { return this; } /** - * - * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -3140,9 +2658,9 @@ public Builder clearState() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3152,12 +2670,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.Spoke) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.Spoke) private static final com.google.cloud.networkconnectivity.v1.Spoke DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.Spoke(); } @@ -3166,27 +2684,27 @@ public static com.google.cloud.networkconnectivity.v1.Spoke getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Spoke parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Spoke parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3201,4 +2719,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.Spoke getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java similarity index 66% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java index 059386a5a918..bed544f6a0a5 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface SpokeOrBuilder - extends +public interface SpokeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.Spoke) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -33,13 +15,10 @@ public interface SpokeOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -47,90 +26,66 @@ public interface SpokeOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The time the spoke was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the spoke was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the spoke was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the spoke was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time the spoke was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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(); /** - * - * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -141,8 +96,6 @@ public interface SpokeOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -151,13 +104,15 @@ public interface SpokeOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -166,10 +121,9 @@ public interface SpokeOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -179,13 +133,11 @@ public interface SpokeOrBuilder
    * map<string, string> labels = 4;
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -194,89 +146,68 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * An optional description of the spoke.
    * 
* * string description = 5; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * An optional description of the spoke.
    * 
* * string description = 5; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The hub. */ java.lang.String getHub(); /** - * - * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for hub. */ - com.google.protobuf.ByteString getHubBytes(); + com.google.protobuf.ByteString + getHubBytes(); /** - * - * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; - * * @return Whether the linkedVpnTunnels field is set. */ boolean hasLinkedVpnTunnels(); /** - * - * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; - * * @return The linkedVpnTunnels. */ com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunnels(); /** - * - * *
    * VPN tunnels that are associated with the spoke.
    * 
@@ -286,145 +217,98 @@ java.lang.String getLabelsOrDefault( com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLinkedVpnTunnelsOrBuilder(); /** - * - * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; * @return Whether the linkedInterconnectAttachments field is set. */ boolean hasLinkedInterconnectAttachments(); /** - * - * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; * @return The linkedInterconnectAttachments. */ - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - getLinkedInterconnectAttachments(); + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getLinkedInterconnectAttachments(); /** - * - * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder - getLinkedInterconnectAttachmentsOrBuilder(); + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder getLinkedInterconnectAttachmentsOrBuilder(); /** - * - * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; * @return Whether the linkedRouterApplianceInstances field is set. */ boolean hasLinkedRouterApplianceInstances(); /** - * - * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; * @return The linkedRouterApplianceInstances. */ - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - getLinkedRouterApplianceInstances(); + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getLinkedRouterApplianceInstances(); /** - * - * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder - getLinkedRouterApplianceInstancesOrBuilder(); + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder getLinkedRouterApplianceInstancesOrBuilder(); /** - * - * *
-   * Output only. The Google-generated UUID for the spoke. This value is unique across all
-   * spoke resources. If a spoke is deleted and another with the same name is
-   * created, the new spoke is assigned a different unique_id.
+   * Output only. The Google-generated UUID for the spoke. This value is unique
+   * across all spoke resources. If a spoke is deleted and another with the same
+   * name is created, the new spoke is assigned a different unique_id.
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ java.lang.String getUniqueId(); /** - * - * *
-   * Output only. The Google-generated UUID for the spoke. This value is unique across all
-   * spoke resources. If a spoke is deleted and another with the same name is
-   * created, the new spoke is assigned a different unique_id.
+   * Output only. The Google-generated UUID for the spoke. This value is unique
+   * across all spoke resources. If a spoke is deleted and another with the same
+   * name is created, the new spoke is assigned a different unique_id.
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString getUniqueIdBytes(); + com.google.protobuf.ByteString + getUniqueIdBytes(); /** - * - * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.networkconnectivity.v1.State getState(); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java index cb12e01e45b1..ec2fa2252a84 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * The State enum represents the lifecycle stage of a Network Connectivity
  * Center resource.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.networkconnectivity.v1.State}
  */
-public enum State implements com.google.protobuf.ProtocolMessageEnum {
+public enum State
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * No state information available
    * 
@@ -40,8 +22,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
    * The resource's create operation is in progress
    * 
@@ -50,8 +30,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
    * The resource is active
    * 
@@ -60,8 +38,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(2), /** - * - * *
    * The resource's Delete operation is in progress
    * 
@@ -69,12 +45,18 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * DELETING = 3; */ DELETING(3), + /** + *
+   * The resource's Update operation is in progress
+   * 
+ * + * UPDATING = 6; + */ + UPDATING(6), UNRECOGNIZED(-1), ; /** - * - * *
    * No state information available
    * 
@@ -83,8 +65,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The resource's create operation is in progress
    * 
@@ -93,8 +73,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
    * The resource is active
    * 
@@ -103,8 +81,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 2; /** - * - * *
    * The resource's Delete operation is in progress
    * 
@@ -112,6 +88,15 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * DELETING = 3; */ public static final int DELETING_VALUE = 3; + /** + *
+   * The resource's Update operation is in progress
+   * 
+ * + * UPDATING = 6; + */ + public static final int UPDATING_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { @@ -137,51 +122,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 ACTIVE; - case 3: - return DELETING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return ACTIVE; + case 3: return DELETING; + case 6: return UPDATING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap 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< + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.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; @@ -197,3 +182,4 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.State) } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java similarity index 59% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java index e555823046bb..a48962bf885f 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java @@ -1,88 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * Request for [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub] method.
+ * Request for
+ * [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub]
+ * method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateHubRequest} */ -public final class UpdateHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.UpdateHubRequest) UpdateHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateHubRequest.newBuilder() to construct. private UpdateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateHubRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, - com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
-   * Optional. In the case of an update to an existing hub, field mask is used to specify
-   * the fields to be overwritten. The fields specified in the update_mask are
-   * relative to the resource, not the full request. A field is overwritten if
-   * it is in the mask. If the user does not provide a mask, then all fields are
-   * overwritten.
+   * Optional. In the case of an update to an existing hub, field mask is used
+   * to specify the fields to be overwritten. The fields specified in the
+   * update_mask are relative to the resource, not the full request. A field is
+   * overwritten if it is in the mask. If the user does not provide a mask, then
+   * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -90,19 +69,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
-   * Optional. In the case of an update to an existing hub, field mask is used to specify
-   * the fields to be overwritten. The fields specified in the update_mask are
-   * relative to the resource, not the full request. A field is overwritten if
-   * it is in the mask. If the user does not provide a mask, then all fields are
-   * overwritten.
+   * Optional. In the case of an update to an existing hub, field mask is used
+   * to specify the fields to be overwritten. The fields specified in the
+   * update_mask are relative to the resource, not the full request. A field is
+   * overwritten if it is in the mask. If the user does not provide a mask, then
+   * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -110,18 +85,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
-   * Optional. In the case of an update to an existing hub, field mask is used to specify
-   * the fields to be overwritten. The fields specified in the update_mask are
-   * relative to the resource, not the full request. A field is overwritten if
-   * it is in the mask. If the user does not provide a mask, then all fields are
-   * overwritten.
+   * Optional. In the case of an update to an existing hub, field mask is used
+   * to specify the fields to be overwritten. The fields specified in the
+   * update_mask are relative to the resource, not the full request. A field is
+   * overwritten if it is in the mask. If the user does not provide a mask, then
+   * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -131,16 +103,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int HUB_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1.Hub hub_; /** - * - * *
    * Required. The state that the hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ @java.lang.Override @@ -148,16 +115,11 @@ public boolean hasHub() { return hub_ != null; } /** - * - * *
    * Required. The state that the hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ @java.lang.Override @@ -165,15 +127,11 @@ public com.google.cloud.networkconnectivity.v1.Hub getHub() { return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } /** - * - * *
    * Required. The state that the hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { @@ -181,18 +139,15 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { } public static final int REQUEST_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -203,7 +158,6 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -212,21 +166,20 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -237,15 +190,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -254,7 +208,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,7 +219,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -286,10 +240,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHub()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -302,23 +258,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1.UpdateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.UpdateHubRequest other = - (com.google.cloud.networkconnectivity.v1.UpdateHubRequest) obj; + com.google.cloud.networkconnectivity.v1.UpdateHubRequest other = (com.google.cloud.networkconnectivity.v1.UpdateHubRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub().equals(other.getHub())) return false; + if (!getHub() + .equals(other.getHub())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -346,136 +304,131 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.UpdateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub] method.
+   * Request for
+   * [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub]
+   * method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.UpdateHubRequest) com.google.cloud.networkconnectivity.v1.UpdateHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, - com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.UpdateHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -495,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; } @java.lang.Override @@ -516,11 +469,8 @@ public com.google.cloud.networkconnectivity.v1.UpdateHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.UpdateHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.UpdateHubRequest result = - new com.google.cloud.networkconnectivity.v1.UpdateHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.UpdateHubRequest result = new com.google.cloud.networkconnectivity.v1.UpdateHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -528,10 +478,14 @@ public com.google.cloud.networkconnectivity.v1.UpdateHubRequest buildPartial() { private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build(); + result.hub_ = hubBuilder_ == null + ? hub_ + : hubBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -542,39 +496,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateHubRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.UpdateHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateHubRequest)other); } else { super.mergeFrom(other); return this; @@ -582,8 +535,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.UpdateHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.UpdateHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.UpdateHubRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -621,31 +573,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getHubFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -655,72 +607,55 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
-     * Optional. In the case of an update to an existing hub, field mask is used to specify
-     * the fields to be overwritten. The fields specified in the update_mask are
-     * relative to the resource, not the full request. A field is overwritten if
-     * it is in the mask. If the user does not provide a mask, then all fields are
-     * overwritten.
+     * Optional. In the case of an update to an existing hub, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
+     * update_mask are relative to the resource, not the full request. A field is
+     * overwritten if it is in the mask. If the user does not provide a mask, then
+     * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
-     * Optional. In the case of an update to an existing hub, field mask is used to specify
-     * the fields to be overwritten. The fields specified in the update_mask are
-     * relative to the resource, not the full request. A field is overwritten if
-     * it is in the mask. If the user does not provide a mask, then all fields are
-     * overwritten.
+     * Optional. In the case of an update to an existing hub, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
+     * update_mask are relative to the resource, not the full request. A field is
+     * overwritten if it is in the mask. If the user does not provide a mask, then
+     * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
-     * Optional. In the case of an update to an existing hub, field mask is used to specify
-     * the fields to be overwritten. The fields specified in the update_mask are
-     * relative to the resource, not the full request. A field is overwritten if
-     * it is in the mask. If the user does not provide a mask, then all fields are
-     * overwritten.
+     * Optional. In the case of an update to an existing hub, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
+     * update_mask are relative to the resource, not the full request. A field is
+     * overwritten if it is in the mask. If the user does not provide a mask, then
+     * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -736,20 +671,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Optional. In the case of an update to an existing hub, field mask is used to specify
-     * the fields to be overwritten. The fields specified in the update_mask are
-     * relative to the resource, not the full request. A field is overwritten if
-     * it is in the mask. If the user does not provide a mask, then all fields are
-     * overwritten.
+     * Optional. In the case of an update to an existing hub, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
+     * update_mask are relative to the resource, not the full request. A field is
+     * overwritten if it is in the mask. If the user does not provide a mask, then
+     * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -760,24 +693,21 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
-     * Optional. In the case of an update to an existing hub, field mask is used to specify
-     * the fields to be overwritten. The fields specified in the update_mask are
-     * relative to the resource, not the full request. A field is overwritten if
-     * it is in the mask. If the user does not provide a mask, then all fields are
-     * overwritten.
+     * Optional. In the case of an update to an existing hub, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
+     * update_mask are relative to the resource, not the full request. A field is
+     * overwritten if it is in the mask. If the user does not provide a mask, then
+     * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -790,18 +720,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Optional. In the case of an update to an existing hub, field mask is used to specify
-     * the fields to be overwritten. The fields specified in the update_mask are
-     * relative to the resource, not the full request. A field is overwritten if
-     * it is in the mask. If the user does not provide a mask, then all fields are
-     * overwritten.
+     * Optional. In the case of an update to an existing hub, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
+     * update_mask are relative to the resource, not the full request. A field is
+     * overwritten if it is in the mask. If the user does not provide a mask, then
+     * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -814,18 +741,15 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
-     * Optional. In the case of an update to an existing hub, field mask is used to specify
-     * the fields to be overwritten. The fields specified in the update_mask are
-     * relative to the resource, not the full request. A field is overwritten if
-     * it is in the mask. If the user does not provide a mask, then all fields are
-     * overwritten.
+     * Optional. In the case of an update to an existing hub, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
+     * update_mask are relative to the resource, not the full request. A field is
+     * overwritten if it is in the mask. If the user does not provide a mask, then
+     * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -833,54 +757,44 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
-     * Optional. In the case of an update to an existing hub, field mask is used to specify
-     * the fields to be overwritten. The fields specified in the update_mask are
-     * relative to the resource, not the full request. A field is overwritten if
-     * it is in the mask. If the user does not provide a mask, then all fields are
-     * overwritten.
+     * Optional. In the case of an update to an existing hub, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
+     * update_mask are relative to the resource, not the full request. A field is
+     * overwritten if it is in the mask. If the user does not provide a mask, then
+     * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
-     * Optional. In the case of an update to an existing hub, field mask is used to specify
-     * the fields to be overwritten. The fields specified in the update_mask are
-     * relative to the resource, not the full request. A field is overwritten if
-     * it is in the mask. If the user does not provide a mask, then all fields are
-     * overwritten.
+     * Optional. In the case of an update to an existing hub, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
+     * update_mask are relative to the resource, not the full request. A field is
+     * overwritten if it is in the mask. If the user does not provide a mask, then
+     * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -888,58 +802,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder> - hubBuilder_; + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> hubBuilder_; /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ public com.google.cloud.networkconnectivity.v1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } else { return hubBuilder_.getMessage(); } } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { @@ -955,17 +850,14 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { + public Builder setHub( + com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { if (hubBuilder_ == null) { hub_ = builderForValue.build(); } else { @@ -976,21 +868,17 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub.Builder builde return this; } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && hub_ != null - && hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + hub_ != null && + hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -1003,15 +891,11 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1024,15 +908,11 @@ public Builder clearHub() { return this; } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000002; @@ -1040,48 +920,36 @@ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { return getHubFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? + com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder>( - getHub(), getParentForChildren(), isClean()); + hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder>( + getHub(), + getParentForChildren(), + isClean()); hub_ = null; } return hubBuilder_; @@ -1089,14 +957,12 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1107,13 +973,13 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1122,14 +988,12 @@ public java.lang.String getRequestId() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1140,14 +1004,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1155,14 +1020,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1173,28 +1036,24 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1205,7 +1064,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1215,14 +1073,12 @@ public Builder clearRequestId() { return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1233,23 +1089,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1259,12 +1113,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.UpdateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.UpdateHubRequest) private static final com.google.cloud.networkconnectivity.v1.UpdateHubRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.UpdateHubRequest(); } @@ -1273,27 +1127,27 @@ public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1308,4 +1162,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.UpdateHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java similarity index 53% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java index baf3acd19da5..7aefcde1de11 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java @@ -1,128 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface UpdateHubRequestOrBuilder - extends +public interface UpdateHubRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.UpdateHubRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Optional. In the case of an update to an existing hub, field mask is used to specify
-   * the fields to be overwritten. The fields specified in the update_mask are
-   * relative to the resource, not the full request. A field is overwritten if
-   * it is in the mask. If the user does not provide a mask, then all fields are
-   * overwritten.
+   * Optional. In the case of an update to an existing hub, field mask is used
+   * to specify the fields to be overwritten. The fields specified in the
+   * update_mask are relative to the resource, not the full request. A field is
+   * overwritten if it is in the mask. If the user does not provide a mask, then
+   * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
-   * Optional. In the case of an update to an existing hub, field mask is used to specify
-   * the fields to be overwritten. The fields specified in the update_mask are
-   * relative to the resource, not the full request. A field is overwritten if
-   * it is in the mask. If the user does not provide a mask, then all fields are
-   * overwritten.
+   * Optional. In the case of an update to an existing hub, field mask is used
+   * to specify the fields to be overwritten. The fields specified in the
+   * update_mask are relative to the resource, not the full request. A field is
+   * overwritten if it is in the mask. If the user does not provide a mask, then
+   * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
-   * Optional. In the case of an update to an existing hub, field mask is used to specify
-   * the fields to be overwritten. The fields specified in the update_mask are
-   * relative to the resource, not the full request. A field is overwritten if
-   * it is in the mask. If the user does not provide a mask, then all fields are
-   * overwritten.
+   * Optional. In the case of an update to an existing hub, field mask is used
+   * to specify the fields to be overwritten. The fields specified in the
+   * update_mask are relative to the resource, not the full request. A field is
+   * overwritten if it is in the mask. If the user does not provide a mask, then
+   * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The state that the hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ boolean hasHub(); /** - * - * *
    * Required. The state that the hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ com.google.cloud.networkconnectivity.v1.Hub getHub(); /** - * - * *
    * Required. The state that the hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -133,19 +90,16 @@ public interface UpdateHubRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -156,8 +110,8 @@ public interface UpdateHubRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java similarity index 64% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java index 58006e2de3ff..72ba4d317265 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java @@ -1,88 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
- * Request for [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke] method.
+ * Request for
+ * [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke]
+ * method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateSpokeRequest} */ -public final class UpdateSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) UpdateSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSpokeRequest.newBuilder() to construct. private UpdateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSpokeRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
-   * Optional. In the case of an update to an existing spoke, field mask is used to
-   * specify the fields to be overwritten. The fields specified in the
+   * Optional. In the case of an update to an existing spoke, field mask is used
+   * to specify the fields to be overwritten. The fields specified in the
    * update_mask are relative to the resource, not the full request. A field is
    * overwritten if it is in the mask. If the user does not provide a mask, then
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -90,19 +69,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
-   * Optional. In the case of an update to an existing spoke, field mask is used to
-   * specify the fields to be overwritten. The fields specified in the
+   * Optional. In the case of an update to an existing spoke, field mask is used
+   * to specify the fields to be overwritten. The fields specified in the
    * update_mask are relative to the resource, not the full request. A field is
    * overwritten if it is in the mask. If the user does not provide a mask, then
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -110,18 +85,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
-   * Optional. In the case of an update to an existing spoke, field mask is used to
-   * specify the fields to be overwritten. The fields specified in the
+   * Optional. In the case of an update to an existing spoke, field mask is used
+   * to specify the fields to be overwritten. The fields specified in the
    * update_mask are relative to the resource, not the full request. A field is
    * overwritten if it is in the mask. If the user does not provide a mask, then
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -131,16 +103,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int SPOKE_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1.Spoke spoke_; /** - * - * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ @java.lang.Override @@ -148,55 +115,39 @@ public boolean hasSpoke() { return spoke_ != null; } /** - * - * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } /** - * - * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -207,7 +158,6 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -216,21 +166,20 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -241,15 +190,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -258,7 +208,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,7 +219,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -290,10 +240,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpoke()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -306,23 +258,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest other = - (com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest other = (com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke().equals(other.getSpoke())) return false; + if (!getSpoke() + .equals(other.getSpoke())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,136 +304,131 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke] method.
+   * Request for
+   * [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke]
+   * method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) com.google.cloud.networkconnectivity.v1.UpdateSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -499,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; } @java.lang.Override @@ -520,11 +469,8 @@ public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest result = - new com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest result = new com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -532,10 +478,14 @@ public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest buildPartial() private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build(); + result.spoke_ = spokeBuilder_ == null + ? spoke_ + : spokeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -546,39 +496,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateSpokeRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest)other); } else { super.mergeFrom(other); return this; @@ -586,8 +535,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -625,31 +573,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSpokeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,72 +607,55 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
-     * Optional. In the case of an update to an existing spoke, field mask is used to
-     * specify the fields to be overwritten. The fields specified in the
+     * Optional. In the case of an update to an existing spoke, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
      * update_mask are relative to the resource, not the full request. A field is
      * overwritten if it is in the mask. If the user does not provide a mask, then
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
-     * Optional. In the case of an update to an existing spoke, field mask is used to
-     * specify the fields to be overwritten. The fields specified in the
+     * Optional. In the case of an update to an existing spoke, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
      * update_mask are relative to the resource, not the full request. A field is
      * overwritten if it is in the mask. If the user does not provide a mask, then
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
-     * Optional. In the case of an update to an existing spoke, field mask is used to
-     * specify the fields to be overwritten. The fields specified in the
+     * Optional. In the case of an update to an existing spoke, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
      * update_mask are relative to the resource, not the full request. A field is
      * overwritten if it is in the mask. If the user does not provide a mask, then
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -740,20 +671,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Optional. In the case of an update to an existing spoke, field mask is used to
-     * specify the fields to be overwritten. The fields specified in the
+     * Optional. In the case of an update to an existing spoke, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
      * update_mask are relative to the resource, not the full request. A field is
      * overwritten if it is in the mask. If the user does not provide a mask, then
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -764,24 +693,21 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
-     * Optional. In the case of an update to an existing spoke, field mask is used to
-     * specify the fields to be overwritten. The fields specified in the
+     * Optional. In the case of an update to an existing spoke, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
      * update_mask are relative to the resource, not the full request. A field is
      * overwritten if it is in the mask. If the user does not provide a mask, then
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -794,18 +720,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Optional. In the case of an update to an existing spoke, field mask is used to
-     * specify the fields to be overwritten. The fields specified in the
+     * Optional. In the case of an update to an existing spoke, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
      * update_mask are relative to the resource, not the full request. A field is
      * overwritten if it is in the mask. If the user does not provide a mask, then
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -818,18 +741,15 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
-     * Optional. In the case of an update to an existing spoke, field mask is used to
-     * specify the fields to be overwritten. The fields specified in the
+     * Optional. In the case of an update to an existing spoke, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
      * update_mask are relative to the resource, not the full request. A field is
      * overwritten if it is in the mask. If the user does not provide a mask, then
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -837,54 +757,44 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
-     * Optional. In the case of an update to an existing spoke, field mask is used to
-     * specify the fields to be overwritten. The fields specified in the
+     * Optional. In the case of an update to an existing spoke, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
      * update_mask are relative to the resource, not the full request. A field is
      * overwritten if it is in the mask. If the user does not provide a mask, then
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
-     * Optional. In the case of an update to an existing spoke, field mask is used to
-     * specify the fields to be overwritten. The fields specified in the
+     * Optional. In the case of an update to an existing spoke, field mask is used
+     * to specify the fields to be overwritten. The fields specified in the
      * update_mask are relative to the resource, not the full request. A field is
      * overwritten if it is in the mask. If the user does not provide a mask, then
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -892,58 +802,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> - spokeBuilder_; + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> spokeBuilder_; /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } else { return spokeBuilder_.getMessage(); } } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { @@ -959,17 +850,14 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { + public Builder setSpoke( + com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { if (spokeBuilder_ == null) { spoke_ = builderForValue.build(); } else { @@ -980,21 +868,17 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke.Builder bu return this; } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && spoke_ != null - && spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + spoke_ != null && + spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -1007,15 +891,11 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1028,15 +908,11 @@ public Builder clearSpoke() { return this; } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000002; @@ -1044,48 +920,36 @@ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { return getSpokeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? + com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( - getSpoke(), getParentForChildren(), isClean()); + spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( + getSpoke(), + getParentForChildren(), + isClean()); spoke_ = null; } return spokeBuilder_; @@ -1093,14 +957,12 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder( private java.lang.Object requestId_ = ""; /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1111,13 +973,13 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1126,14 +988,12 @@ public java.lang.String getRequestId() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1144,14 +1004,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1159,14 +1020,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1177,28 +1036,24 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1209,7 +1064,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1219,14 +1073,12 @@ public Builder clearRequestId() { return this; } /** - * - * *
-     * Optional. A unique request ID (optional). If you specify this ID, you can use it
-     * in cases when you need to retry your request. When you need to retry, this
-     * ID lets the server know that it can ignore the request if it has already
-     * been completed. The server guarantees that for at least 60 minutes after
-     * the first request.
+     * Optional. A unique request ID (optional). If you specify this ID, you can
+     * use it in cases when you need to retry your request. When you need to
+     * retry, this ID lets the server know that it can ignore the request if it
+     * has already been completed. The server guarantees that for at least 60
+     * minutes after the first request.
      * For example, consider a situation where you make an initial request and
      * the request times out. If you make the request again with the same request
      * ID, the server can check to see whether the original operation
@@ -1237,23 +1089,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1263,12 +1113,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(); } @@ -1277,27 +1127,27 @@ public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1312,4 +1162,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java similarity index 63% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java index c4ce0af5bdf1..ff21e1d7ea89 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java @@ -1,128 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface UpdateSpokeRequestOrBuilder - extends +public interface UpdateSpokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Optional. In the case of an update to an existing spoke, field mask is used to
-   * specify the fields to be overwritten. The fields specified in the
+   * Optional. In the case of an update to an existing spoke, field mask is used
+   * to specify the fields to be overwritten. The fields specified in the
    * update_mask are relative to the resource, not the full request. A field is
    * overwritten if it is in the mask. If the user does not provide a mask, then
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
-   * Optional. In the case of an update to an existing spoke, field mask is used to
-   * specify the fields to be overwritten. The fields specified in the
+   * Optional. In the case of an update to an existing spoke, field mask is used
+   * to specify the fields to be overwritten. The fields specified in the
    * update_mask are relative to the resource, not the full request. A field is
    * overwritten if it is in the mask. If the user does not provide a mask, then
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
-   * Optional. In the case of an update to an existing spoke, field mask is used to
-   * specify the fields to be overwritten. The fields specified in the
+   * Optional. In the case of an update to an existing spoke, field mask is used
+   * to specify the fields to be overwritten. The fields specified in the
    * update_mask are relative to the resource, not the full request. A field is
    * overwritten if it is in the mask. If the user does not provide a mask, then
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ boolean hasSpoke(); /** - * - * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ com.google.cloud.networkconnectivity.v1.Spoke getSpoke(); /** - * - * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -133,19 +90,16 @@ public interface UpdateSpokeRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
-   * Optional. A unique request ID (optional). If you specify this ID, you can use it
-   * in cases when you need to retry your request. When you need to retry, this
-   * ID lets the server know that it can ignore the request if it has already
-   * been completed. The server guarantees that for at least 60 minutes after
-   * the first request.
+   * Optional. A unique request ID (optional). If you specify this ID, you can
+   * use it in cases when you need to retry your request. When you need to
+   * retry, this ID lets the server know that it can ignore the request if it
+   * has already been completed. The server guarantees that for at least 60
+   * minutes after the first request.
    * For example, consider a situation where you make an initial request and
    * the request times out. If you make the request again with the same request
    * ID, the server can check to see whether the original operation
@@ -156,8 +110,8 @@ public interface UpdateSpokeRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto similarity index 86% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto index 21999d592d01..282cf34758e7 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.networkconnectivity.v1; import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.NetworkConnectivity.V1"; @@ -26,6 +27,14 @@ option java_outer_classname = "CommonProto"; option java_package = "com.google.cloud.networkconnectivity.v1"; option php_namespace = "Google\\Cloud\\NetworkConnectivity\\V1"; option ruby_package = "Google::Cloud::NetworkConnectivity::V1"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/InterconnectAttachment" + pattern: "projects/{project}/regions/{region}/interconnectAttachments/{resource_id}" +}; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/Network" + pattern: "projects/{project}/global/networks/{resource_id}" +}; // Represents the metadata of the long-running operation. message OperationMetadata { diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto similarity index 74% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto index c28ca9a07702..44cf09ae0a64 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto @@ -35,27 +35,20 @@ option (google.api.resource_definition) = { type: "compute.googleapis.com/VpnTunnel" pattern: "projects/{project}/regions/{region}/vpnTunnels/{resource_id}" }; -option (google.api.resource_definition) = { - type: "compute.googleapis.com/InterconnectAttachment" - pattern: "projects/{project}/regions/{region}/interconnectAttachments/{resource_id}" -}; option (google.api.resource_definition) = { type: "compute.googleapis.com/Instance" pattern: "projects/{project}/zones/{zone}/instances/{instance}" }; -option (google.api.resource_definition) = { - type: "compute.googleapis.com/Network" - pattern: "projects/{project}/global/networks/{resource_id}" -}; // Network Connectivity Center is a hub-and-spoke abstraction for network // connectivity management in Google Cloud. It reduces operational complexity // through a simple, centralized connectivity management model. service HubService { option (google.api.default_host) = "networkconnectivity.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; - // Lists hubs in a given project. + // Lists the Network Connectivity Center hubs associated with a given project. rpc ListHubs(ListHubsRequest) returns (ListHubsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/global}/hubs" @@ -63,7 +56,7 @@ service HubService { option (google.api.method_signature) = "parent"; } - // Gets details about the specified hub. + // Gets details about a Network Connectivity Center hub. rpc GetHub(GetHubRequest) returns (Hub) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/global/hubs/*}" @@ -71,7 +64,7 @@ service HubService { option (google.api.method_signature) = "name"; } - // Creates a new hub in the specified project. + // Creates a new Network Connectivity Center hub in the specified project. rpc CreateHub(CreateHubRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/global}/hubs" @@ -84,7 +77,8 @@ service HubService { }; } - // Updates the description and/or labels of the specified hub. + // Updates the description and/or labels of a Network Connectivity Center + // hub. rpc UpdateHub(UpdateHubRequest) returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{hub.name=projects/*/locations/global/hubs/*}" @@ -97,7 +91,7 @@ service HubService { }; } - // Deletes the specified hub. + // Deletes a Network Connectivity Center hub. rpc DeleteHub(DeleteHubRequest) returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/global/hubs/*}" @@ -109,7 +103,8 @@ service HubService { }; } - // Lists the spokes in the specified project and location. + // Lists the Network Connectivity Center spokes in a specified project and + // location. rpc ListSpokes(ListSpokesRequest) returns (ListSpokesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/spokes" @@ -117,7 +112,7 @@ service HubService { option (google.api.method_signature) = "parent"; } - // Gets details about the specified spoke. + // Gets details about a Network Connectivity Center spoke. rpc GetSpoke(GetSpokeRequest) returns (Spoke) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/spokes/*}" @@ -125,7 +120,7 @@ service HubService { option (google.api.method_signature) = "name"; } - // Creates a spoke in the specified project and location. + // Creates a Network Connectivity Center spoke. rpc CreateSpoke(CreateSpokeRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/spokes" @@ -138,7 +133,7 @@ service HubService { }; } - // Updates the parameters of the specified spoke. + // Updates the parameters of a Network Connectivity Center spoke. rpc UpdateSpoke(UpdateSpokeRequest) returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{spoke.name=projects/*/locations/*/spokes/*}" @@ -151,7 +146,7 @@ service HubService { }; } - // Deletes the specified spoke. + // Deletes a Network Connectivity Center spoke. rpc DeleteSpoke(DeleteSpokeRequest) returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/spokes/*}" @@ -164,6 +159,18 @@ service HubService { } } +// Supported features for a location +enum LocationFeature { + // No publicly supported feature in this location + LOCATION_FEATURE_UNSPECIFIED = 0; + + // Site-to-cloud spokes are supported in this location + SITE_TO_CLOUD_SPOKES = 1; + + // Site-to-site spokes are supported in this location + SITE_TO_SITE_SPOKES = 2; +} + // The State enum represents the lifecycle stage of a Network Connectivity // Center resource. enum State { @@ -178,25 +185,16 @@ enum State { // The resource's Delete operation is in progress DELETING = 3; -} -// Supported features for a location -enum LocationFeature { - // No publicly supported feature in this location - LOCATION_FEATURE_UNSPECIFIED = 0; - - // Site-to-cloud spokes are supported in this location - SITE_TO_CLOUD_SPOKES = 1; - - // Site-to-site spokes are supported in this location - SITE_TO_SITE_SPOKES = 2; + // The resource's Update operation is in progress + UPDATING = 6; } -// A hub is a collection of spokes. A single hub can contain spokes from -// multiple regions. However, if any of a hub's spokes use the data transfer -// feature, the resources associated with those spokes must all reside in the -// same VPC network. Spokes that do not use data transfer can be associated -// with any VPC network in your project. +// A Network Connectivity Center hub is a collection of spokes. A single hub +// can contain spokes from multiple regions. However, if any of a hub's spokes +// use the data transfer feature, the resources associated with those spokes +// must all reside in the same VPC network. Spokes that do not use data +// transfer can be associated with any VPC network in your project. message Hub { option (google.api.resource) = { type: "networkconnectivity.googleapis.com/Hub" @@ -209,10 +207,12 @@ message Hub { string name = 1 [(google.api.field_behavior) = IMMUTABLE]; // Output only. The time the hub was created. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the hub was last updated. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional labels in key:value format. For more information about labels, see // [Requirements for @@ -222,9 +222,9 @@ message Hub { // An optional description of the hub. string description = 5; - // Output only. The Google-generated UUID for the hub. This value is unique across all hub - // resources. If a hub is deleted and another with the same name is created, - // the new hub is assigned a different unique_id. + // Output only. The Google-generated UUID for the hub. This value is unique + // across all hub resources. If a hub is deleted and another with the same + // name is created, the new hub is assigned a different unique_id. string unique_id = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The current lifecycle state of this hub. @@ -237,24 +237,25 @@ message Hub { repeated RoutingVPC routing_vpcs = 10; } -// RoutingVPC contains information about the VPC networks that are associated -// with a hub's spokes. +// RoutingVPC contains information about the VPC networks associated +// with the spokes of a Network Connectivity Center hub. message RoutingVPC { // The URI of the VPC network. - string uri = 1 [(google.api.resource_reference) = { - type: "compute.googleapis.com/Network" - }]; + string uri = 1 [ + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; - // Output only. If true, indicates that this VPC network is currently associated with - // spokes that use the data transfer feature (spokes where the + // Output only. If true, indicates that this VPC network is currently + // associated with spokes that use the data transfer feature (spokes where the // site_to_site_data_transfer field is set to true). If you create new spokes // that use data transfer, they must be associated with this VPC network. At // most, one VPC network will have this field set to true. - bool required_for_new_site_to_site_data_transfer_spokes = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + bool required_for_new_site_to_site_data_transfer_spokes = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } -// A spoke represents a connection between your Google Cloud network resources -// and a non-Google-Cloud network. +// A Network Connectivity Center spoke represents a connection between your +// Google Cloud network resources and a non-Google-Cloud network. // // When you create a spoke, you associate it with a hub. You must also identify // a value for exactly one of the following fields: @@ -274,10 +275,12 @@ message Spoke { string name = 1 [(google.api.field_behavior) = IMMUTABLE]; // Output only. The time the spoke was created. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the spoke was last updated. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional labels in key:value format. For more information about labels, see // [Requirements for @@ -304,16 +307,18 @@ message Spoke { // Router appliance instances that are associated with the spoke. LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - // Output only. The Google-generated UUID for the spoke. This value is unique across all - // spoke resources. If a spoke is deleted and another with the same name is - // created, the new spoke is assigned a different unique_id. + // Output only. The Google-generated UUID for the spoke. This value is unique + // across all spoke resources. If a spoke is deleted and another with the same + // name is created, the new spoke is assigned a different unique_id. string unique_id = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The current lifecycle state of this spoke. State state = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// Request for [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] method. +// Request for +// [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] +// method. message ListHubsRequest { // Required. The parent resource's name. string parent = 1 [ @@ -336,7 +341,9 @@ message ListHubsRequest { string order_by = 5; } -// Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] method. +// Response for +// [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs] +// method. message ListHubsResponse { // The requested hubs. repeated Hub hubs = 1; @@ -349,7 +356,9 @@ message ListHubsResponse { repeated string unreachable = 3; } -// Request for [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub] method. +// Request for +// [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub] +// method. message GetHubRequest { // Required. The name of the hub resource to get. string name = 1 [ @@ -360,7 +369,9 @@ message GetHubRequest { ]; } -// Request for [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub] method. +// Request for +// [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub] +// method. message CreateHubRequest { // Required. The parent resource. string parent = 1 [ @@ -376,11 +387,11 @@ message CreateHubRequest { // Required. The initial values for a new hub. Hub hub = 3 [(google.api.field_behavior) = REQUIRED]; - // Optional. A unique request ID (optional). If you specify this ID, you can use it - // in cases when you need to retry your request. When you need to retry, this - // ID lets the server know that it can ignore the request if it has already - // been completed. The server guarantees that for at least 60 minutes after - // the first request. + // Optional. A unique request ID (optional). If you specify this ID, you can + // use it in cases when you need to retry your request. When you need to + // retry, this ID lets the server know that it can ignore the request if it + // has already been completed. The server guarantees that for at least 60 + // minutes after the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request @@ -393,23 +404,26 @@ message CreateHubRequest { string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; } -// Request for [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub] method. +// Request for +// [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub] +// method. message UpdateHubRequest { - // Optional. In the case of an update to an existing hub, field mask is used to specify - // the fields to be overwritten. The fields specified in the update_mask are - // relative to the resource, not the full request. A field is overwritten if - // it is in the mask. If the user does not provide a mask, then all fields are - // overwritten. - google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = OPTIONAL]; + // Optional. In the case of an update to an existing hub, field mask is used + // to specify the fields to be overwritten. The fields specified in the + // update_mask are relative to the resource, not the full request. A field is + // overwritten if it is in the mask. If the user does not provide a mask, then + // all fields are overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; // Required. The state that the hub should be in after the update. Hub hub = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. A unique request ID (optional). If you specify this ID, you can use it - // in cases when you need to retry your request. When you need to retry, this - // ID lets the server know that it can ignore the request if it has already - // been completed. The server guarantees that for at least 60 minutes after - // the first request. + // Optional. A unique request ID (optional). If you specify this ID, you can + // use it in cases when you need to retry your request. When you need to + // retry, this ID lets the server know that it can ignore the request if it + // has already been completed. The server guarantees that for at least 60 + // minutes after the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request @@ -422,7 +436,8 @@ message UpdateHubRequest { string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; } -// The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub]. +// The request for +// [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub]. message DeleteHubRequest { // Required. The name of the hub to delete. string name = 1 [ @@ -432,11 +447,11 @@ message DeleteHubRequest { } ]; - // Optional. A unique request ID (optional). If you specify this ID, you can use it - // in cases when you need to retry your request. When you need to retry, this - // ID lets the server know that it can ignore the request if it has already - // been completed. The server guarantees that for at least 60 minutes after - // the first request. + // Optional. A unique request ID (optional). If you specify this ID, you can + // use it in cases when you need to retry your request. When you need to + // retry, this ID lets the server know that it can ignore the request if it + // has already been completed. The server guarantees that for at least 60 + // minutes after the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request @@ -449,7 +464,8 @@ message DeleteHubRequest { string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; } -// The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes]. +// The request for +// [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes]. message ListSpokesRequest { // Required. The parent resource. string parent = 1 [ @@ -472,7 +488,8 @@ message ListSpokesRequest { string order_by = 5; } -// The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes]. +// The response for +// [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes]. message ListSpokesResponse { // The requested spokes. repeated Spoke spokes = 1; @@ -485,7 +502,8 @@ message ListSpokesResponse { repeated string unreachable = 3; } -// The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke]. +// The request for +// [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke]. message GetSpokeRequest { // Required. The name of the spoke resource. string name = 1 [ @@ -496,7 +514,8 @@ message GetSpokeRequest { ]; } -// The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke]. +// The request for +// [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke]. message CreateSpokeRequest { // Required. The parent resource. string parent = 1 [ @@ -512,11 +531,11 @@ message CreateSpokeRequest { // Required. The initial values for a new spoke. Spoke spoke = 3 [(google.api.field_behavior) = REQUIRED]; - // Optional. A unique request ID (optional). If you specify this ID, you can use it - // in cases when you need to retry your request. When you need to retry, this - // ID lets the server know that it can ignore the request if it has already - // been completed. The server guarantees that for at least 60 minutes after - // the first request. + // Optional. A unique request ID (optional). If you specify this ID, you can + // use it in cases when you need to retry your request. When you need to + // retry, this ID lets the server know that it can ignore the request if it + // has already been completed. The server guarantees that for at least 60 + // minutes after the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request @@ -529,23 +548,26 @@ message CreateSpokeRequest { string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; } -// Request for [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke] method. +// Request for +// [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke] +// method. message UpdateSpokeRequest { - // Optional. In the case of an update to an existing spoke, field mask is used to - // specify the fields to be overwritten. The fields specified in the + // Optional. In the case of an update to an existing spoke, field mask is used + // to specify the fields to be overwritten. The fields specified in the // update_mask are relative to the resource, not the full request. A field is // overwritten if it is in the mask. If the user does not provide a mask, then // all fields are overwritten. - google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; // Required. The state that the spoke should be in after the update. Spoke spoke = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. A unique request ID (optional). If you specify this ID, you can use it - // in cases when you need to retry your request. When you need to retry, this - // ID lets the server know that it can ignore the request if it has already - // been completed. The server guarantees that for at least 60 minutes after - // the first request. + // Optional. A unique request ID (optional). If you specify this ID, you can + // use it in cases when you need to retry your request. When you need to + // retry, this ID lets the server know that it can ignore the request if it + // has already been completed. The server guarantees that for at least 60 + // minutes after the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request @@ -558,7 +580,8 @@ message UpdateSpokeRequest { string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; } -// The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke]. +// The request for +// [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke]. message DeleteSpokeRequest { // Required. The name of the spoke to delete. string name = 1 [ @@ -568,11 +591,11 @@ message DeleteSpokeRequest { } ]; - // Optional. A unique request ID (optional). If you specify this ID, you can use it - // in cases when you need to retry your request. When you need to retry, this - // ID lets the server know that it can ignore the request if it has already - // been completed. The server guarantees that for at least 60 minutes after - // the first request. + // Optional. A unique request ID (optional). If you specify this ID, you can + // use it in cases when you need to retry your request. When you need to + // retry, this ID lets the server know that it can ignore the request if it + // has already been completed. The server guarantees that for at least 60 + // minutes after the first request. // // For example, consider a situation where you make an initial request and // the request times out. If you make the request again with the same request @@ -592,13 +615,19 @@ message DeleteSpokeRequest { message LinkedVpnTunnels { // The URIs of linked VPN tunnel resources. repeated string uris = 1 [(google.api.resource_reference) = { - type: "compute.googleapis.com/VpnTunnel" - }]; + type: "compute.googleapis.com/VpnTunnel" + }]; // A value that controls whether site-to-site data transfer is enabled for // these resources. Data transfer is available only in [supported // locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). bool site_to_site_data_transfer = 2; + + // Output only. The VPC network where these VPN tunnels are located. + string vpc_network = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; } // A collection of VLAN attachment resources. These resources should @@ -608,13 +637,19 @@ message LinkedVpnTunnels { message LinkedInterconnectAttachments { // The URIs of linked interconnect attachment resources repeated string uris = 1 [(google.api.resource_reference) = { - type: "compute.googleapis.com/InterconnectAttachment" - }]; + type: "compute.googleapis.com/InterconnectAttachment" + }]; // A value that controls whether site-to-site data transfer is enabled for // these resources. Data transfer is available only in [supported // locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). bool site_to_site_data_transfer = 2; + + // Output only. The VPC network where these VLAN attachments are located. + string vpc_network = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; } // A collection of router appliance instances. If you configure multiple router @@ -629,6 +664,13 @@ message LinkedRouterApplianceInstances { // these resources. Data transfer is available only in [supported // locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). bool site_to_site_data_transfer = 2; + + // Output only. The VPC network where these router appliance instances are + // located. + string vpc_network = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; } // A router appliance instance is a Compute Engine virtual machine (VM) instance @@ -638,8 +680,8 @@ message LinkedRouterApplianceInstances { message RouterApplianceInstance { // The URI of the VM. string virtual_machine = 1 [(google.api.resource_reference) = { - type: "compute.googleapis.com/Instance" - }]; + type: "compute.googleapis.com/Instance" + }]; // The IP address on the VM to use for peering. string ip_address = 3; diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/policy_based_routing.proto b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/policy_based_routing.proto new file mode 100644 index 000000000000..74c24bd39710 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/policy_based_routing.proto @@ -0,0 +1,338 @@ +// 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.networkconnectivity.v1; + +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/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.NetworkConnectivity.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1;networkconnectivity"; +option java_multiple_files = true; +option java_outer_classname = "PolicyBasedRoutingProto"; +option java_package = "com.google.cloud.networkconnectivity.v1"; +option php_namespace = "Google\\Cloud\\NetworkConnectivity\\V1"; +option ruby_package = "Google::Cloud::NetworkConnectivity::V1"; + +// Policy-Based Routing allows GCP customers to specify flexibile routing +// policies for Layer 4 traffic traversing through the connected service. +service PolicyBasedRoutingService { + option (google.api.default_host) = "networkconnectivity.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Lists PolicyBasedRoutes in a given project and location. + rpc ListPolicyBasedRoutes(ListPolicyBasedRoutesRequest) returns (ListPolicyBasedRoutesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/global}/policyBasedRoutes" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single PolicyBasedRoute. + rpc GetPolicyBasedRoute(GetPolicyBasedRouteRequest) returns (PolicyBasedRoute) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/global/policyBasedRoutes/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new PolicyBasedRoute in a given project and location. + rpc CreatePolicyBasedRoute(CreatePolicyBasedRouteRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/global}/policyBasedRoutes" + body: "policy_based_route" + }; + option (google.api.method_signature) = "parent,policy_based_route,policy_based_route_id"; + option (google.longrunning.operation_info) = { + response_type: "PolicyBasedRoute" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single PolicyBasedRoute. + rpc DeletePolicyBasedRoute(DeletePolicyBasedRouteRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/global/policyBasedRoutes/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } +} + +// Policy Based Routes (PBR) are more powerful routes that allows GCP customers +// to route their L4 network traffic based on not just destination IP, but also +// source IP, protocol and more. A PBR always take precedence when it conflicts +// with other types of routes. +// Next id: 19 +message PolicyBasedRoute { + option (google.api.resource) = { + type: "networkconnectivity.googleapis.com/PolicyBasedRoute" + pattern: "projects/{project}/{location}/global/PolicyBasedRoutes/{policy_based_route}" + }; + + // VM instances to which this policy based route applies to. + message VirtualMachine { + // Optional. A list of VM instance tags to which this policy based route applies to. + // VM instances that have ANY of tags specified here will install this + // PBR. + repeated string tags = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // InterconnectAttachment to which this route applies to. + message InterconnectAttachment { + // Optional. Cloud region to install this policy based route on interconnect + // attachment. Use `all` to install it on all interconnect attachments. + string region = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Filter matches L4 traffic. + message Filter { + // The internet protocol version. + enum ProtocolVersion { + // Default value. + PROTOCOL_VERSION_UNSPECIFIED = 0; + + // The PBR is for IPv4 internet protocol traffic. + IPV4 = 1; + } + + // Optional. The IP protocol that this policy based route applies to. Valid values are + // 'TCP', 'UDP', and 'ALL'. Default is 'ALL'. + string ip_protocol = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The source IP range of outgoing packets that this policy based route + // applies to. Default is "0.0.0.0/0" if protocol version is IPv4. + string src_range = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The destination IP range of outgoing packets that this policy based route + // applies to. Default is "0.0.0.0/0" if protocol version is IPv4. + string dest_range = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Internet protocol versions this policy based route applies to. For this + // version, only IPV4 is supported. + ProtocolVersion protocol_version = 6 [(google.api.field_behavior) = REQUIRED]; + } + + // Informational warning message. + message Warnings { + // Warning code for Policy Based Routing. Expect to add values in the + // future. + enum Code { + // Default value. + WARNING_UNSPECIFIED = 0; + + // The policy based route is not active and functioning. Common causes are + // the dependent network was deleted or the resource project was turned + // off. + RESOURCE_NOT_ACTIVE = 1; + + // The policy based route is being modified (e.g. created/deleted) at this + // time. + RESOURCE_BEING_MODIFIED = 2; + } + + // Output only. A warning code, if applicable. + Code code = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Metadata about this warning in key: value format. The key should provides + // more detail on the warning being returned. For example, for warnings + // where there are no results in a list request for a particular zone, this + // key might be scope and the key value might be the zone name. Other + // examples might be a key indicating a deprecated resource and a suggested + // replacement. + map data = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A human-readable description of the warning code. + string warning_message = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Target specifies network endpoints to which this policy based route applies + // to. If none of the target is specified, the PBR will be installed on all + // network endpoints (e.g. VMs, VPNs, and Interconnects) in the VPC. + oneof target { + // Optional. VM instances to which this policy based route applies to. + VirtualMachine virtual_machine = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The interconnect attachments to which this route applies to. + InterconnectAttachment interconnect_attachment = 9 [(google.api.field_behavior) = OPTIONAL]; + } + + oneof next_hop { + // Optional. The IP of a global access enabled L4 ILB that should be the next hop to + // handle matching packets. For this version, only next_hop_ilb_ip is + // supported. + string next_hop_ilb_ip = 12 [(google.api.field_behavior) = OPTIONAL]; + } + + // Immutable. A unique name of the resource in the form of + // `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}` + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Time when the PolicyBasedRoute was created. + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the PolicyBasedRoute was updated. + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User-defined labels. + map labels = 4; + + // Optional. An optional description of this resource. Provide this field when you + // create the resource. + string description = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Fully-qualified URL of the network that this route applies to. e.g. + // projects/my-project/global/networks/my-network. + string network = 6 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "compute.googleapis.com/Network" + } + ]; + + // Required. The filter to match L4 traffic. + Filter filter = 10 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The priority of this policy based route. Priority is used to break ties in + // cases where there are more than one matching policy based routes found. In + // cases where multiple policy based routes are matched, the one with the + // lowest-numbered priority value wins. The default value is 1000. The + // priority value must be from 1 to 65535, inclusive. + int32 priority = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. If potential misconfigurations are detected for this route, + // this field will be populated with warning messages. + repeated Warnings warnings = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined fully-qualified URL for this resource. + string self_link = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for + // Policy Based Route resources. + string kind = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request for [PolicyBasedRouting.ListPolicyBasedRoutes][] method. +message ListPolicyBasedRoutesRequest { + // Required. The parent resource's name. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The maximum number of results per page that should be returned. + int32 page_size = 2; + + // The page token. + string page_token = 3; + + // A filter expression that filters the results listed in the response. + string filter = 4; + + // Sort the results by a certain order. + string order_by = 5; +} + +// Response for [PolicyBasedRouting.ListPolicyBasedRoutes][] method. +message ListPolicyBasedRoutesResponse { + // Policy based routes to be returned. + repeated PolicyBasedRoute policy_based_routes = 1; + + // The next pagination token in the List response. It should be used as + // page_token for the following request. An empty value means no more result. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request for [PolicyBasedRouting.GetPolicyBasedRoute][] method. +message GetPolicyBasedRouteRequest { + // Required. Name of the PolicyBasedRoute resource to get. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/PolicyBasedRoute" + } + ]; +} + +// Request for [PolicyBasedRouting.CreatePolicyBasedRoute][] method. +message CreatePolicyBasedRouteRequest { + // Required. The parent resource's name of the PolicyBasedRoute. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. Unique id for the Policy Based Route to create. + string policy_based_route_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Initial values for a new Policy Based Route. + PolicyBasedRoute policy_based_route = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request for [PolicyBasedRouting.DeletePolicyBasedRoute][] method. +message DeletePolicyBasedRouteRequest { + // Required. Name of the PolicyBasedRoute resource to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/PolicyBasedRoute" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..0e18ff84d24e --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetCredentialsProvider.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceSettings; +import com.google.cloud.networkconnectivity.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PolicyBasedRoutingServiceSettings policyBasedRoutingServiceSettings = + PolicyBasedRoutingServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create(policyBasedRoutingServiceSettings); + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_Create_SetCredentialsProvider_sync] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..c25cc40b7c86 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetEndpoint.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_Create_SetEndpoint_sync] +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceSettings; +import com.google.cloud.networkconnectivity.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PolicyBasedRoutingServiceSettings policyBasedRoutingServiceSettings = + PolicyBasedRoutingServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create(policyBasedRoutingServiceSettings); + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_Create_SetEndpoint_sync] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRoute.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRoute.java new file mode 100644 index 000000000000..2e9ac23874ff --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRoute.java @@ -0,0 +1,55 @@ +/* + * 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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCreatePolicyBasedRoute { + + public static void main(String[] args) throws Exception { + asyncCreatePolicyBasedRoute(); + } + + public static void asyncCreatePolicyBasedRoute() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create()) { + CreatePolicyBasedRouteRequest request = + CreatePolicyBasedRouteRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPolicyBasedRouteId("policyBasedRouteId-18034589") + .setPolicyBasedRoute(PolicyBasedRoute.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + policyBasedRoutingServiceClient.createPolicyBasedRouteCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_async] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRouteLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRouteLRO.java new file mode 100644 index 000000000000..cd0c58c53a5b --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRouteLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.OperationMetadata; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; + +public class AsyncCreatePolicyBasedRouteLRO { + + public static void main(String[] args) throws Exception { + asyncCreatePolicyBasedRouteLRO(); + } + + public static void asyncCreatePolicyBasedRouteLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create()) { + CreatePolicyBasedRouteRequest request = + CreatePolicyBasedRouteRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPolicyBasedRouteId("policyBasedRouteId-18034589") + .setPolicyBasedRoute(PolicyBasedRoute.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + policyBasedRoutingServiceClient + .createPolicyBasedRouteOperationCallable() + .futureCall(request); + // Do something. + PolicyBasedRoute response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_LRO_async] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRoute.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRoute.java new file mode 100644 index 000000000000..c38346f59456 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRoute.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_sync] +import com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; + +public class SyncCreatePolicyBasedRoute { + + public static void main(String[] args) throws Exception { + syncCreatePolicyBasedRoute(); + } + + public static void syncCreatePolicyBasedRoute() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create()) { + CreatePolicyBasedRouteRequest request = + CreatePolicyBasedRouteRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPolicyBasedRouteId("policyBasedRouteId-18034589") + .setPolicyBasedRoute(PolicyBasedRoute.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + PolicyBasedRoute response = + policyBasedRoutingServiceClient.createPolicyBasedRouteAsync(request).get(); + } + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_sync] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString.java new file mode 100644 index 000000000000..a6c175209bab --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_LocationnamePolicybasedrouteString_sync] +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; + +public class SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString { + + public static void main(String[] args) throws Exception { + syncCreatePolicyBasedRouteLocationnamePolicybasedrouteString(); + } + + public static void syncCreatePolicyBasedRouteLocationnamePolicybasedrouteString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build(); + String policyBasedRouteId = "policyBasedRouteId-18034589"; + PolicyBasedRoute response = + policyBasedRoutingServiceClient + .createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId) + .get(); + } + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_LocationnamePolicybasedrouteString_sync] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteStringPolicybasedrouteString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteStringPolicybasedrouteString.java new file mode 100644 index 000000000000..4b9e769b8ff3 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteStringPolicybasedrouteString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_StringPolicybasedrouteString_sync] +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; + +public class SyncCreatePolicyBasedRouteStringPolicybasedrouteString { + + public static void main(String[] args) throws Exception { + syncCreatePolicyBasedRouteStringPolicybasedrouteString(); + } + + public static void syncCreatePolicyBasedRouteStringPolicybasedrouteString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build(); + String policyBasedRouteId = "policyBasedRouteId-18034589"; + PolicyBasedRoute response = + policyBasedRoutingServiceClient + .createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId) + .get(); + } + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_StringPolicybasedrouteString_sync] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRoute.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRoute.java new file mode 100644 index 000000000000..0bff00a01f98 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRoute.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeletePolicyBasedRoute { + + public static void main(String[] args) throws Exception { + asyncDeletePolicyBasedRoute(); + } + + public static void asyncDeletePolicyBasedRoute() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create()) { + DeletePolicyBasedRouteRequest request = + DeletePolicyBasedRouteRequest.newBuilder() + .setName( + PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + policyBasedRoutingServiceClient.deletePolicyBasedRouteCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_async] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRouteLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRouteLRO.java new file mode 100644 index 000000000000..0f2ed3f57753 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRouteLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest; +import com.google.cloud.networkconnectivity.v1.OperationMetadata; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeletePolicyBasedRouteLRO { + + public static void main(String[] args) throws Exception { + asyncDeletePolicyBasedRouteLRO(); + } + + public static void asyncDeletePolicyBasedRouteLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create()) { + DeletePolicyBasedRouteRequest request = + DeletePolicyBasedRouteRequest.newBuilder() + .setName( + PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + policyBasedRoutingServiceClient + .deletePolicyBasedRouteOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_LRO_async] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoute.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoute.java new file mode 100644 index 000000000000..e827f253b362 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoute.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_sync] +import com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeletePolicyBasedRoute { + + public static void main(String[] args) throws Exception { + syncDeletePolicyBasedRoute(); + } + + public static void syncDeletePolicyBasedRoute() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create()) { + DeletePolicyBasedRouteRequest request = + DeletePolicyBasedRouteRequest.newBuilder() + .setName( + PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") + .toString()) + .setRequestId("requestId693933066") + .build(); + policyBasedRoutingServiceClient.deletePolicyBasedRouteAsync(request).get(); + } + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_sync] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoutePolicybasedroutename.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoutePolicybasedroutename.java new file mode 100644 index 000000000000..d319ba4559c5 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoutePolicybasedroutename.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_Policybasedroutename_sync] +import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeletePolicyBasedRoutePolicybasedroutename { + + public static void main(String[] args) throws Exception { + syncDeletePolicyBasedRoutePolicybasedroutename(); + } + + public static void syncDeletePolicyBasedRoutePolicybasedroutename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create()) { + PolicyBasedRouteName name = + PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]"); + policyBasedRoutingServiceClient.deletePolicyBasedRouteAsync(name).get(); + } + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_Policybasedroutename_sync] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRouteString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRouteString.java new file mode 100644 index 000000000000..f11380a6868b --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRouteString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_String_sync] +import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeletePolicyBasedRouteString { + + public static void main(String[] args) throws Exception { + syncDeletePolicyBasedRouteString(); + } + + public static void syncDeletePolicyBasedRouteString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create()) { + String name = + PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]").toString(); + policyBasedRoutingServiceClient.deletePolicyBasedRouteAsync(name).get(); + } + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_String_sync] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/AsyncGetPolicyBasedRoute.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/AsyncGetPolicyBasedRoute.java new file mode 100644 index 000000000000..d635942640e1 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/AsyncGetPolicyBasedRoute.java @@ -0,0 +1,53 @@ +/* + * 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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; + +public class AsyncGetPolicyBasedRoute { + + public static void main(String[] args) throws Exception { + asyncGetPolicyBasedRoute(); + } + + public static void asyncGetPolicyBasedRoute() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create()) { + GetPolicyBasedRouteRequest request = + GetPolicyBasedRouteRequest.newBuilder() + .setName( + PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") + .toString()) + .build(); + ApiFuture future = + policyBasedRoutingServiceClient.getPolicyBasedRouteCallable().futureCall(request); + // Do something. + PolicyBasedRoute response = future.get(); + } + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_async] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoute.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoute.java new file mode 100644 index 000000000000..16c3941ea7c8 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoute.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_sync] +import com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; + +public class SyncGetPolicyBasedRoute { + + public static void main(String[] args) throws Exception { + syncGetPolicyBasedRoute(); + } + + public static void syncGetPolicyBasedRoute() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create()) { + GetPolicyBasedRouteRequest request = + GetPolicyBasedRouteRequest.newBuilder() + .setName( + PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") + .toString()) + .build(); + PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(request); + } + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_sync] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoutePolicybasedroutename.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoutePolicybasedroutename.java new file mode 100644 index 000000000000..dc7b9b61a3ef --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoutePolicybasedroutename.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_Policybasedroutename_sync] +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; + +public class SyncGetPolicyBasedRoutePolicybasedroutename { + + public static void main(String[] args) throws Exception { + syncGetPolicyBasedRoutePolicybasedroutename(); + } + + public static void syncGetPolicyBasedRoutePolicybasedroutename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create()) { + PolicyBasedRouteName name = + PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]"); + PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(name); + } + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_Policybasedroutename_sync] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRouteString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRouteString.java new file mode 100644 index 000000000000..46bdd59470d5 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRouteString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_String_sync] +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; + +public class SyncGetPolicyBasedRouteString { + + public static void main(String[] args) throws Exception { + syncGetPolicyBasedRouteString(); + } + + public static void syncGetPolicyBasedRouteString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create()) { + String name = + PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]").toString(); + PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(name); + } + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_String_sync] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutes.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutes.java new file mode 100644 index 000000000000..eb8cc1abef51 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutes.java @@ -0,0 +1,57 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; + +public class AsyncListPolicyBasedRoutes { + + public static void main(String[] args) throws Exception { + asyncListPolicyBasedRoutes(); + } + + public static void asyncListPolicyBasedRoutes() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create()) { + ListPolicyBasedRoutesRequest request = + ListPolicyBasedRoutesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + policyBasedRoutingServiceClient.listPolicyBasedRoutesPagedCallable().futureCall(request); + // Do something. + for (PolicyBasedRoute element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_async] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutesPaged.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutesPaged.java new file mode 100644 index 000000000000..a0c7ac9eb18b --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutesPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_Paged_async] +import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest; +import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; +import com.google.common.base.Strings; + +public class AsyncListPolicyBasedRoutesPaged { + + public static void main(String[] args) throws Exception { + asyncListPolicyBasedRoutesPaged(); + } + + public static void asyncListPolicyBasedRoutesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create()) { + ListPolicyBasedRoutesRequest request = + ListPolicyBasedRoutesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListPolicyBasedRoutesResponse response = + policyBasedRoutingServiceClient.listPolicyBasedRoutesCallable().call(request); + for (PolicyBasedRoute element : response.getPolicyBasedRoutesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_Paged_async] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutes.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutes.java new file mode 100644 index 000000000000..3b39b2b51744 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutes.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_sync] +import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest; +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; + +public class SyncListPolicyBasedRoutes { + + public static void main(String[] args) throws Exception { + syncListPolicyBasedRoutes(); + } + + public static void syncListPolicyBasedRoutes() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create()) { + ListPolicyBasedRoutesRequest request = + ListPolicyBasedRoutesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (PolicyBasedRoute element : + policyBasedRoutingServiceClient.listPolicyBasedRoutes(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_sync] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesLocationname.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesLocationname.java new file mode 100644 index 000000000000..24af9caa5beb --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesLocationname.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_Locationname_sync] +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; + +public class SyncListPolicyBasedRoutesLocationname { + + public static void main(String[] args) throws Exception { + syncListPolicyBasedRoutesLocationname(); + } + + public static void syncListPolicyBasedRoutesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (PolicyBasedRoute element : + policyBasedRoutingServiceClient.listPolicyBasedRoutes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_Locationname_sync] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesString.java new file mode 100644 index 000000000000..ee527aedb77a --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesString.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_String_sync] +import com.google.cloud.networkconnectivity.v1.LocationName; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; + +public class SyncListPolicyBasedRoutesString { + + public static void main(String[] args) throws Exception { + syncListPolicyBasedRoutesString(); + } + + public static void syncListPolicyBasedRoutesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = + PolicyBasedRoutingServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (PolicyBasedRoute element : + policyBasedRoutingServiceClient.listPolicyBasedRoutes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_String_sync] diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservicesettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservicesettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java new file mode 100644 index 000000000000..d48c4e1b12c2 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservicesettings/getpolicybasedroute/SyncGetPolicyBasedRoute.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.networkconnectivity.v1.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingServiceSettings_GetPolicyBasedRoute_sync] +import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceSettings; +import java.time.Duration; + +public class SyncGetPolicyBasedRoute { + + public static void main(String[] args) throws Exception { + syncGetPolicyBasedRoute(); + } + + public static void syncGetPolicyBasedRoute() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PolicyBasedRoutingServiceSettings.Builder policyBasedRoutingServiceSettingsBuilder = + PolicyBasedRoutingServiceSettings.newBuilder(); + policyBasedRoutingServiceSettingsBuilder + .getPolicyBasedRouteSettings() + .setRetrySettings( + policyBasedRoutingServiceSettingsBuilder + .getPolicyBasedRouteSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + PolicyBasedRoutingServiceSettings policyBasedRoutingServiceSettings = + policyBasedRoutingServiceSettingsBuilder.build(); + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingServiceSettings_GetPolicyBasedRoute_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/policybasedroutingservicestubsettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/policybasedroutingservicestubsettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java new file mode 100644 index 000000000000..7a68c4310f48 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/policybasedroutingservicestubsettings/getpolicybasedroute/SyncGetPolicyBasedRoute.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.networkconnectivity.v1.stub.samples; + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingServiceStubSettings_GetPolicyBasedRoute_sync] +import com.google.cloud.networkconnectivity.v1.stub.PolicyBasedRoutingServiceStubSettings; +import java.time.Duration; + +public class SyncGetPolicyBasedRoute { + + public static void main(String[] args) throws Exception { + syncGetPolicyBasedRoute(); + } + + public static void syncGetPolicyBasedRoute() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + PolicyBasedRoutingServiceStubSettings.Builder policyBasedRoutingServiceSettingsBuilder = + PolicyBasedRoutingServiceStubSettings.newBuilder(); + policyBasedRoutingServiceSettingsBuilder + .getPolicyBasedRouteSettings() + .setRetrySettings( + policyBasedRoutingServiceSettingsBuilder + .getPolicyBasedRouteSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + PolicyBasedRoutingServiceStubSettings policyBasedRoutingServiceSettings = + policyBasedRoutingServiceSettingsBuilder.build(); + } +} +// [END networkconnectivity_v1_generated_PolicyBasedRoutingServiceStubSettings_GetPolicyBasedRoute_sync] diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java similarity index 99% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java index 89775db66f05..b824a3ceabcd 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.networkconnectivity.v1alpha1.stub.HubServiceStubSettings; diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java similarity index 99% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java index 8298968354e6..fffc277454e3 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java @@ -49,6 +49,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/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java new file mode 100644 index 000000000000..013a0c0da196 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java @@ -0,0 +1,1092 @@ +package com.google.cloud.networkconnectivity.v1alpha1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Network Connectivity Center is a hub-and-spoke abstraction for
+ * network connectivity management in Google Cloud. It reduces
+ * operational complexity through a simple, centralized connectivity management
+ * model.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networkconnectivity/v1alpha1/hub.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class HubServiceGrpc { + + private HubServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1alpha1.HubService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListHubsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListHubs", + requestType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListHubsMethod() { + io.grpc.MethodDescriptor getListHubsMethod; + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + HubServiceGrpc.getListHubsMethod = getListHubsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) + .build(); + } + } + } + return getListHubsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.Hub.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetHubMethod() { + io.grpc.MethodDescriptor getGetHubMethod; + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + HubServiceGrpc.getGetHubMethod = getGetHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) + .build(); + } + } + } + return getGetHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateHubMethod() { + io.grpc.MethodDescriptor getCreateHubMethod; + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + HubServiceGrpc.getCreateHubMethod = getCreateHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) + .build(); + } + } + } + return getCreateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateHubMethod() { + io.grpc.MethodDescriptor getUpdateHubMethod; + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + HubServiceGrpc.getUpdateHubMethod = getUpdateHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) + .build(); + } + } + } + return getUpdateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteHubMethod() { + io.grpc.MethodDescriptor getDeleteHubMethod; + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + HubServiceGrpc.getDeleteHubMethod = getDeleteHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) + .build(); + } + } + } + return getDeleteHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSpokesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSpokes", + requestType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSpokesMethod() { + io.grpc.MethodDescriptor getListSpokesMethod; + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + HubServiceGrpc.getListSpokesMethod = getListSpokesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) + .build(); + } + } + } + return getListSpokesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSpokeMethod() { + io.grpc.MethodDescriptor getGetSpokeMethod; + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + HubServiceGrpc.getGetSpokeMethod = getGetSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) + .build(); + } + } + } + return getGetSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSpokeMethod() { + io.grpc.MethodDescriptor getCreateSpokeMethod; + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + HubServiceGrpc.getCreateSpokeMethod = getCreateSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) + .build(); + } + } + } + return getCreateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSpokeMethod() { + io.grpc.MethodDescriptor getUpdateSpokeMethod; + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + HubServiceGrpc.getUpdateSpokeMethod = getUpdateSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) + .build(); + } + } + } + return getUpdateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSpokeMethod() { + io.grpc.MethodDescriptor getDeleteSpokeMethod; + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + HubServiceGrpc.getDeleteSpokeMethod = getDeleteSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) + .build(); + } + } + } + return getDeleteSpokeMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static HubServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + }; + return HubServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static HubServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + }; + return HubServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static HubServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + }; + return HubServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static abstract class HubServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public void listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single Hub.
+     * 
+ */ + public void getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); + } + + /** + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public void createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); + } + + /** + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public void updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); + } + + /** + *
+     * Deletes a single Hub.
+     * 
+ */ + public void deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); + } + + /** + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public void listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public void getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); + } + + /** + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public void createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSpokeMethod(), responseObserver); + } + + /** + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public void updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSpokeMethod(), responseObserver); + } + + /** + *
+     * Deletes a single Spoke.
+     * 
+ */ + public void deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSpokeMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListHubsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>( + this, METHODID_LIST_HUBS))) + .addMethod( + getGetHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, + com.google.cloud.networkconnectivity.v1alpha1.Hub>( + this, METHODID_GET_HUB))) + .addMethod( + getCreateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_HUB))) + .addMethod( + getUpdateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_HUB))) + .addMethod( + getDeleteHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_HUB))) + .addMethod( + getListSpokesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>( + this, METHODID_LIST_SPOKES))) + .addMethod( + getGetSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1alpha1.Spoke>( + this, METHODID_GET_SPOKE))) + .addMethod( + getCreateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_SPOKE))) + .addMethod( + getUpdateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_SPOKE))) + .addMethod( + getDeleteSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_SPOKE))) + .build(); + } + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { + private HubServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + + /** + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public void listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single Hub.
+     * 
+ */ + public void getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public void createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public void updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single Hub.
+     * 
+ */ + public void deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public void listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public void getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public void createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public void updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single Spoke.
+     * 
+ */ + public void deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static final class HubServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private HubServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListHubsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single Hub.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public com.google.longrunning.Operation updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single Hub.
+     * 
+ */ + public com.google.longrunning.Operation deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSpokesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSpokeMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSpokeMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public com.google.longrunning.Operation updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single Spoke.
+     * 
+ */ + public com.google.longrunning.Operation deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static final class HubServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private HubServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listHubs( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single Hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getHub( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createHub( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateHub( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single Hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteHub( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSpokes( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSpoke( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSpoke( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSpoke( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single Spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSpoke( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_HUBS = 0; + private static final int METHODID_GET_HUB = 1; + private static final int METHODID_CREATE_HUB = 2; + private static final int METHODID_UPDATE_HUB = 3; + private static final int METHODID_DELETE_HUB = 4; + private static final int METHODID_LIST_SPOKES = 5; + private static final int METHODID_GET_SPOKE = 6; + private static final int METHODID_CREATE_SPOKE = 7; + private static final int METHODID_UPDATE_SPOKE = 8; + private static final int METHODID_DELETE_SPOKE = 9; + + 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 HubServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(HubServiceImplBase 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_HUBS: + serviceImpl.listHubs((com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_HUB: + serviceImpl.getHub((com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_HUB: + serviceImpl.createHub((com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_HUB: + serviceImpl.updateHub((com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_HUB: + serviceImpl.deleteHub((com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SPOKES: + serviceImpl.listSpokes((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SPOKE: + serviceImpl.getSpoke((com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SPOKE: + serviceImpl.createSpoke((com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SPOKE: + serviceImpl.updateSpoke((com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SPOKE: + serviceImpl.deleteSpoke((com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + HubServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("HubService"); + } + } + + private static final class HubServiceFileDescriptorSupplier + extends HubServiceBaseDescriptorSupplier { + HubServiceFileDescriptorSupplier() {} + } + + private static final class HubServiceMethodDescriptorSupplier + extends HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) + .addMethod(getListHubsMethod()) + .addMethod(getGetHubMethod()) + .addMethod(getCreateHubMethod()) + .addMethod(getUpdateHubMethod()) + .addMethod(getDeleteHubMethod()) + .addMethod(getListSpokesMethod()) + .addMethod(getGetSpokeMethod()) + .addMethod(getCreateSpokeMethod()) + .addMethod(getUpdateSpokeMethod()) + .addMethod(getDeleteSpokeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java new file mode 100644 index 000000000000..4bee516017a0 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1alpha1/common.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public final class CommonProto { + private CommonProto() {} + 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_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/networkconnectivity/v1alp" + + "ha1/common.proto\022)google.cloud.networkco" + + "nnectivity.v1alpha1\032\037google/api/field_be" + + "havior.proto\032\037google/protobuf/timestamp." + + "proto\"\200\002\n\021OperationMetadata\0224\n\013create_ti" + + "me\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004ver" + + "b\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\003B\243\002\n-com.google." + + "cloud.networkconnectivity.v1alpha1B\013Comm" + + "onProtoP\001Z\\google.golang.org/genproto/go" + + "ogleapis/cloud/networkconnectivity/v1alp" + + "ha1;networkconnectivity\252\002)Google.Cloud.N" + + "etworkConnectivity.V1Alpha1\312\002)Google\\Clo" + + "ud\\NetworkConnectivity\\V1alpha1\352\002,Google" + + "::Cloud::NetworkConnectivity::V1alpha1b\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java index ff4aaf180be5..b77dc1fda61b 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Request for [HubService.CreateHub][google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateHubRequest} */ -public final class CreateHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) CreateHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateHubRequest.newBuilder() to construct. private CreateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateHubRequest() { parent_ = ""; hubId_ = ""; @@ -45,45 +27,38 @@ private CreateHubRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource's name of the Hub.
    * 
* - * - * string parent = 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 @@ -92,31 +67,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource's name of the Hub.
    * 
* - * - * string parent = 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 { @@ -125,18 +98,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int HUB_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object hubId_ = ""; /** - * - * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hubId. */ @java.lang.Override @@ -145,29 +114,29 @@ public java.lang.String getHubId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; } } /** - * - * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for hubId. */ @java.lang.Override - public com.google.protobuf.ByteString getHubIdBytes() { + public com.google.protobuf.ByteString + getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hubId_ = b; return b; } else { @@ -178,16 +147,11 @@ public com.google.protobuf.ByteString getHubIdBytes() { public static final int HUB_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ @java.lang.Override @@ -195,49 +159,33 @@ public boolean hasHub() { return hub_ != null; } /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -253,7 +201,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -262,15 +209,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -286,15 +232,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -303,7 +250,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -344,7 +291,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hubId_); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHub()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -357,21 +305,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.networkconnectivity.v1alpha1.CreateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getHubId().equals(other.getHubId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getHubId() + .equals(other.getHubId())) return false; if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub().equals(other.getHub())) return false; + if (!getHub() + .equals(other.getHub())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -399,136 +350,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.CreateHub][google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -545,14 +489,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance(); } @@ -567,17 +510,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -586,7 +525,9 @@ private void buildPartial0( result.hubId_ = hubId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build(); + result.hub_ = hubBuilder_ == null + ? hub_ + : hubBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -597,39 +538,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest)other); } else { super.mergeFrom(other); return this; @@ -637,9 +577,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -684,37 +622,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - hubId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + hubId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getHubFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -724,27 +659,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource's name of the Hub.
      * 
* - * - * string parent = 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; @@ -753,23 +683,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource's name of the Hub.
      * 
* - * - * string parent = 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 { @@ -777,39 +704,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource's name of the Hub.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource's name of the Hub.
      * 
* - * - * string 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() { @@ -819,23 +735,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource's name of the Hub.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -845,20 +755,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object hubId_ = ""; /** - * - * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hubId. */ public java.lang.String getHubId() { java.lang.Object ref = hubId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; @@ -867,21 +775,20 @@ public java.lang.String getHubId() { } } /** - * - * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for hubId. */ - public com.google.protobuf.ByteString getHubIdBytes() { + public com.google.protobuf.ByteString + getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hubId_ = b; return b; } else { @@ -889,35 +796,28 @@ public com.google.protobuf.ByteString getHubIdBytes() { } } /** - * - * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The hubId to set. * @return This builder for chaining. */ - public Builder setHubId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHubId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hubId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearHubId() { @@ -927,21 +827,17 @@ public Builder clearHubId() { return this; } /** - * - * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for hubId to set. * @return This builder for chaining. */ - public Builder setHubIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHubIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hubId_ = value; bitField0_ |= 0x00000002; @@ -951,58 +847,39 @@ public Builder setHubIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> - hubBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> hubBuilder_; /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } else { return hubBuilder_.getMessage(); } } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { @@ -1018,15 +895,11 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHub( com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder builderForValue) { @@ -1040,21 +913,17 @@ public Builder setHub( return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && hub_ != null - && hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + hub_ != null && + hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -1067,15 +936,11 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1088,15 +953,11 @@ public Builder clearHub() { return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000004; @@ -1104,48 +965,36 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() return getHubFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? + com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( - getHub(), getParentForChildren(), isClean()); + hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( + getHub(), + getParentForChildren(), + isClean()); hub_ = null; } return hubBuilder_; @@ -1153,8 +1002,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1170,13 +1017,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1185,8 +1032,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1202,14 +1047,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1217,8 +1063,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1234,22 +1078,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1265,7 +1105,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1275,8 +1114,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1292,23 +1129,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1318,43 +1153,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1366,8 +1199,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java similarity index 68% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java index fecd3ded33d5..7ada53d7d300 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java @@ -1,126 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface CreateHubRequestOrBuilder - extends +public interface CreateHubRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource's name of the Hub.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource's name of the Hub.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hubId. */ java.lang.String getHubId(); /** - * - * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for hubId. */ - com.google.protobuf.ByteString getHubIdBytes(); + com.google.protobuf.ByteString + getHubIdBytes(); /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ boolean hasHub(); /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ com.google.cloud.networkconnectivity.v1alpha1.Hub getHub(); /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -136,13 +90,10 @@ public interface CreateHubRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -158,8 +109,8 @@ public interface CreateHubRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java index 6f8e9420cec0..da2748dcd13b 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest} */ -public final class CreateSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) CreateSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSpokeRequest.newBuilder() to construct. private CreateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSpokeRequest() { parent_ = ""; spokeId_ = ""; @@ -45,45 +27,38 @@ private CreateSpokeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * - * string parent = 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 @@ -92,31 +67,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * - * string parent = 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 { @@ -125,18 +98,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SPOKE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object spokeId_ = ""; /** - * - * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The spokeId. */ @java.lang.Override @@ -145,29 +114,29 @@ public java.lang.String getSpokeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; } } /** - * - * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for spokeId. */ @java.lang.Override - public com.google.protobuf.ByteString getSpokeIdBytes() { + public com.google.protobuf.ByteString + getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); spokeId_ = b; return b; } else { @@ -178,16 +147,11 @@ public com.google.protobuf.ByteString getSpokeIdBytes() { public static final int SPOKE_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ @java.lang.Override @@ -195,49 +159,33 @@ public boolean hasSpoke() { return spoke_ != null; } /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -253,7 +201,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -262,15 +209,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -286,15 +232,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -303,7 +250,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -344,7 +291,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, spokeId_); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSpoke()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -357,21 +305,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.networkconnectivity.v1alpha1.CreateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getSpokeId().equals(other.getSpokeId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getSpokeId() + .equals(other.getSpokeId())) return false; if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke().equals(other.getSpoke())) return false; + if (!getSpoke() + .equals(other.getSpoke())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -399,136 +350,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -545,14 +489,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance(); } @@ -567,17 +510,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -586,7 +525,9 @@ private void buildPartial0( result.spokeId_ = spokeId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build(); + result.spoke_ = spokeBuilder_ == null + ? spoke_ + : spokeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -597,50 +538,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other) { + if (other == com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -685,37 +622,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - spokeId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + spokeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getSpokeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -725,27 +659,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * - * string parent = 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; @@ -754,23 +683,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * - * string parent = 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 { @@ -778,39 +704,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * - * string 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() { @@ -820,23 +735,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -846,20 +755,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object spokeId_ = ""; /** - * - * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The spokeId. */ public java.lang.String getSpokeId() { java.lang.Object ref = spokeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; @@ -868,21 +775,20 @@ public java.lang.String getSpokeId() { } } /** - * - * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for spokeId. */ - public com.google.protobuf.ByteString getSpokeIdBytes() { + public com.google.protobuf.ByteString + getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); spokeId_ = b; return b; } else { @@ -890,35 +796,28 @@ public com.google.protobuf.ByteString getSpokeIdBytes() { } } /** - * - * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpokeId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } spokeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSpokeId() { @@ -928,21 +827,17 @@ public Builder clearSpokeId() { return this; } /** - * - * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpokeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); spokeId_ = value; bitField0_ |= 0x00000002; @@ -952,58 +847,39 @@ public Builder setSpokeIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> - spokeBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> spokeBuilder_; /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } else { return spokeBuilder_.getMessage(); } } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { @@ -1019,15 +895,11 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke valu return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSpoke( com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder builderForValue) { @@ -1041,21 +913,17 @@ public Builder setSpoke( return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && spoke_ != null - && spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + spoke_ != null && + spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -1068,15 +936,11 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke va return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1089,15 +953,11 @@ public Builder clearSpoke() { return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000004; @@ -1105,48 +965,36 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuild return getSpokeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? + com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( - getSpoke(), getParentForChildren(), isClean()); + spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( + getSpoke(), + getParentForChildren(), + isClean()); spoke_ = null; } return spokeBuilder_; @@ -1154,8 +1002,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1171,13 +1017,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1186,8 +1032,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1203,14 +1047,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1218,8 +1063,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1235,22 +1078,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1266,7 +1105,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1276,8 +1114,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1293,23 +1129,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1319,43 +1153,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1367,8 +1199,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java similarity index 68% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java index 0acea62a3476..7cdd693f7086 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java @@ -1,126 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface CreateSpokeRequestOrBuilder - extends +public interface CreateSpokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The spokeId. */ java.lang.String getSpokeId(); /** - * - * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for spokeId. */ - com.google.protobuf.ByteString getSpokeIdBytes(); + com.google.protobuf.ByteString + getSpokeIdBytes(); /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ boolean hasSpoke(); /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke(); /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -136,13 +90,10 @@ public interface CreateSpokeRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -158,8 +109,8 @@ public interface CreateSpokeRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java similarity index 69% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java index b12bad9a3b29..64ea69b076e4 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest} */ -public final class DeleteHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) DeleteHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteHubRequest.newBuilder() to construct. private DeleteHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteHubRequest() { name_ = ""; requestId_ = ""; @@ -44,45 +26,38 @@ private DeleteHubRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the Hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -91,31 +66,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the Hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,12 +97,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -145,7 +115,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -154,15 +123,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -178,15 +146,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -195,7 +164,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +175,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -237,16 +206,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.networkconnectivity.v1alpha1.DeleteHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,136 +238,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -408,14 +371,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance(); } @@ -430,17 +392,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -454,39 +412,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest)other); } else { super.mergeFrom(other); return this; @@ -494,9 +451,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -533,25 +488,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -561,27 +513,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the Hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -590,23 +537,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the Hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -614,39 +558,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the Hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the Hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -656,23 +589,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the Hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -682,8 +609,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -699,13 +624,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -714,8 +639,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -731,14 +654,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -746,8 +670,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -763,22 +685,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -794,7 +712,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -804,8 +721,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -821,23 +736,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -847,43 +760,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -895,8 +806,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java index 033fd24fc4b8..861358b8374d 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface DeleteHubRequestOrBuilder - extends +public interface DeleteHubRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the Hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the Hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -70,13 +43,10 @@ public interface DeleteHubRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,8 +62,8 @@ public interface DeleteHubRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java similarity index 69% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java index 1569d811fb22..5e99a2274873 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest} */ -public final class DeleteSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) DeleteSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteSpokeRequest.newBuilder() to construct. private DeleteSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteSpokeRequest() { name_ = ""; requestId_ = ""; @@ -44,45 +26,38 @@ private DeleteSpokeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the Spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -91,31 +66,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the Spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,12 +97,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -145,7 +115,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -154,15 +123,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -178,15 +146,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -195,7 +164,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +175,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -237,16 +206,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.networkconnectivity.v1alpha1.DeleteSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,136 +238,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -408,14 +371,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance(); } @@ -430,17 +392,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -454,50 +412,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other) { + if (other == com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -534,25 +488,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -562,27 +513,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the Spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -591,23 +537,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the Spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -615,39 +558,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the Spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the Spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -657,23 +589,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the Spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -683,8 +609,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -700,13 +624,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -715,8 +639,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -732,14 +654,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -747,8 +670,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -764,22 +685,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -795,7 +712,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -805,8 +721,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -822,23 +736,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -848,43 +760,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,8 +806,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java index a1bef18bbd22..1be7096a8498 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface DeleteSpokeRequestOrBuilder - extends +public interface DeleteSpokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the Spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the Spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -70,13 +43,10 @@ public interface DeleteSpokeRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,8 +62,8 @@ public interface DeleteSpokeRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java similarity index 63% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java index f9b4ab4e5e6c..5ba1a3a7791d 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java @@ -1,87 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Request for [HubService.GetHub][google.cloud.networkconnectivity.v1alpha1.HubService.GetHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetHubRequest} */ -public final class GetHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) GetHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetHubRequest.newBuilder() to construct. private GetHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetHubRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the Hub resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,31 +65,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 Hub resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -159,15 +132,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.networkconnectivity.v1alpha1.GetHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +160,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.GetHub][google.cloud.networkconnectivity.v1alpha1.HubService.GetHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) com.google.cloud.networkconnectivity.v1alpha1.GetHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; } @java.lang.Override @@ -347,11 +313,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -367,39 +330,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.GetHubR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest)other); } else { super.mergeFrom(other); return this; @@ -407,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the Hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -491,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the Hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -515,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the Hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the Hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -557,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the Hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) private static final com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest(); } @@ -606,27 +540,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java new file mode 100644 index 000000000000..c6b8ae7dba4a --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1alpha1/hub.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public interface GetHubRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the Hub resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the Hub resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java similarity index 61% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java index cf7d7735d223..6241282b9908 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java @@ -1,87 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest} */ -public final class GetSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) GetSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSpokeRequest.newBuilder() to construct. private GetSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSpokeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of Spoke resource.
    * 
* - * - * string name = 1 [(.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 @@ -90,31 +65,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of Spoke resource.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -159,15 +132,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.networkconnectivity.v1alpha1.GetSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +160,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,14 +292,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance(); } @@ -348,17 +313,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -369,39 +330,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest)other); } else { super.mergeFrom(other); return this; @@ -409,9 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -443,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -465,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of Spoke resource.
      * 
* - * - * string name = 1 [(.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; @@ -494,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of Spoke resource.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -518,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of Spoke resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of Spoke resource.
      * 
* - * - * string 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() { @@ -560,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of Spoke resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -595,13 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest(); } @@ -610,27 +540,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -645,4 +575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java new file mode 100644 index 000000000000..a34464f02bd3 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1alpha1/hub.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public interface GetSpokeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of Spoke resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of Spoke 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java similarity index 66% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java index 4f6053f779e0..0785f0c3b51e 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Network Connectivity Center is a hub-and-spoke abstraction for
  * network connectivity management in Google Cloud. It reduces
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Hub}
  */
-public final class Hub extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Hub extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.Hub)
     HubOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Hub.newBuilder() to construct.
   private Hub(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Hub() {
     name_ = "";
     description_ = "";
@@ -50,54 +32,50 @@ private Hub() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Hub();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1alpha1.Hub.class,
-            com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
+            com.google.cloud.networkconnectivity.v1alpha1.Hub.class, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -106,29 +84,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; } } /** - * - * *
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -139,14 +117,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -154,14 +129,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return The createTime. */ @java.lang.Override @@ -169,8 +141,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Time when the Hub was created.
    * 
@@ -185,14 +155,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -200,14 +167,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ @java.lang.Override @@ -215,8 +179,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Time when the Hub was updated.
    * 
@@ -229,34 +191,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_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.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - 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_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * User-defined labels.
    * 
@@ -264,21 +224,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** - * - * *
    * User-defined labels.
    * 
@@ -290,8 +249,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * User-defined labels.
    * 
@@ -299,19 +256,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +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; } /** - * - * *
    * User-defined labels.
    * 
@@ -319,11 +274,11 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @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(); } @@ -331,18 +286,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int DESCRIPTION_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Short description of the hub resource.
    * 
* * string description = 5; - * * @return The description. */ @java.lang.Override @@ -351,29 +302,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Short description of the hub resource.
    * 
* * string description = 5; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -382,52 +333,37 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int SPOKES_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList spokes_; /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return A list containing the spokes. */ - public com.google.protobuf.ProtocolStringList getSpokesList() { + public com.google.protobuf.ProtocolStringList + getSpokesList() { return spokes_; } /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The count of spokes. */ public int getSpokesCount() { return spokes_.size(); } /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The spokes at the given index. */ @@ -435,30 +371,23 @@ public java.lang.String getSpokes(int index) { return spokes_.get(index); } /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the spokes at the given index. */ - public com.google.protobuf.ByteString getSpokesBytes(int index) { + public com.google.protobuf.ByteString + getSpokesBytes(int index) { return spokes_.getByteString(index); } public static final int UNIQUE_ID_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -466,7 +395,6 @@ public com.google.protobuf.ByteString getSpokesBytes(int index) {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ @java.lang.Override @@ -475,15 +403,14 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -491,15 +418,16 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -510,46 +438,30 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = - com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null - ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { + com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -561,7 +473,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -571,8 +484,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -582,8 +499,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, uniqueId_); } - if (state_ - != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(9, state_); } getUnknownFields().writeTo(output); @@ -599,20 +515,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -628,9 +546,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, uniqueId_); } - if (state_ - != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); + if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -640,27 +558,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.networkconnectivity.v1alpha1.Hub)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.Hub other = - (com.google.cloud.networkconnectivity.v1alpha1.Hub) obj; + com.google.cloud.networkconnectivity.v1alpha1.Hub other = (com.google.cloud.networkconnectivity.v1alpha1.Hub) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getSpokesList().equals(other.getSpokesList())) return false; - if (!getUniqueId().equals(other.getUniqueId())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getSpokesList() + .equals(other.getSpokesList())) return false; + if (!getUniqueId() + .equals(other.getUniqueId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -703,103 +627,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.Hub prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Connectivity Center is a hub-and-spoke abstraction for
    * network connectivity management in Google Cloud. It reduces
@@ -809,52 +726,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Hub}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.Hub)
       com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1alpha1.Hub.class,
-              com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
+              com.google.cloud.networkconnectivity.v1alpha1.Hub.class, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1alpha1.Hub.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -880,9 +800,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
     }
 
     @java.lang.Override
@@ -901,18 +821,14 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1alpha1.Hub buildPartial() {
-      com.google.cloud.networkconnectivity.v1alpha1.Hub result =
-          new com.google.cloud.networkconnectivity.v1alpha1.Hub(this);
+      com.google.cloud.networkconnectivity.v1alpha1.Hub result = new com.google.cloud.networkconnectivity.v1alpha1.Hub(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.networkconnectivity.v1alpha1.Hub result) {
+    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.Hub result) {
       if (((bitField0_ & 0x00000020) != 0)) {
         spokes_ = spokes_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000020);
@@ -926,10 +842,14 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Hub res
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -950,39 +870,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Hub res
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.Hub) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Hub) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Hub)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -990,8 +909,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Hub other) {
-      if (other == com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1003,7 +921,8 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Hub other
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -1054,68 +973,61 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureSpokesIsMutable();
-                spokes_.add(s);
-                break;
-              } // case 50
-            case 66:
-              {
-                uniqueId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 66
-            case 72:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 72
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureSpokesIsMutable();
+              spokes_.add(s);
+              break;
+            } // case 50
+            case 66: {
+              uniqueId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 66
+            case 72: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 72
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1125,25 +1037,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1152,21 +1061,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1174,35 +1082,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1212,21 +1113,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1236,47 +1133,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Time when the Hub was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Time when the Hub was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; - * * @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(); } } /** - * - * *
      * Time when the Hub was created.
      * 
@@ -1297,15 +1181,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the Hub was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1316,8 +1199,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the Hub was created.
      * 
@@ -1326,9 +1207,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1341,8 +1222,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the Hub was created.
      * 
@@ -1360,8 +1239,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Time when the Hub was created.
      * 
@@ -1374,8 +1251,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the Hub was created.
      * 
@@ -1386,14 +1261,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Time when the Hub was created.
      * 
@@ -1401,17 +1273,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -1419,47 +1288,34 @@ 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_; /** - * - * *
      * Time when the Hub was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Time when the Hub was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @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(); } } /** - * - * *
      * Time when the Hub was updated.
      * 
@@ -1480,15 +1336,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the Hub was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1499,8 +1354,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the Hub was updated.
      * 
@@ -1509,9 +1362,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1524,8 +1377,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the Hub was updated.
      * 
@@ -1543,8 +1394,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Time when the Hub was updated.
      * 
@@ -1557,8 +1406,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the Hub was updated.
      * 
@@ -1569,14 +1416,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Time when the Hub was updated.
      * 
@@ -1584,35 +1428,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1621,13 +1464,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * User-defined labels.
      * 
@@ -1635,21 +1475,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** - * - * *
      * User-defined labels.
      * 
@@ -1661,8 +1500,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * User-defined labels.
      * 
@@ -1670,19 +1507,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +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; } /** - * - * *
      * User-defined labels.
      * 
@@ -1690,95 +1525,91 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @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(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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); + 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); bitField0_ |= 0x00000008; return this; } /** - * - * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object description_ = ""; /** - * - * *
      * Short description of the hub resource.
      * 
* * string description = 5; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1787,21 +1618,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Short description of the hub resource.
      * 
* * string description = 5; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1809,35 +1639,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Short description of the hub resource.
      * 
* * string description = 5; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Short description of the hub resource.
      * 
* * string description = 5; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1847,21 +1670,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Short description of the hub resource.
      * 
* * string description = 5; - * * @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(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -1869,58 +1688,42 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList spokes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList spokes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSpokesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { spokes_ = new com.google.protobuf.LazyStringArrayList(spokes_); bitField0_ |= 0x00000020; - } + } } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return A list containing the spokes. */ - public com.google.protobuf.ProtocolStringList getSpokesList() { + public com.google.protobuf.ProtocolStringList + getSpokesList() { return spokes_.getUnmodifiableView(); } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The count of spokes. */ public int getSpokesCount() { return spokes_.size(); } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The spokes at the given index. */ @@ -1928,100 +1731,76 @@ public java.lang.String getSpokes(int index) { return spokes_.get(index); } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the spokes at the given index. */ - public com.google.protobuf.ByteString getSpokesBytes(int index) { + public com.google.protobuf.ByteString + getSpokesBytes(int index) { return spokes_.getByteString(index); } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The spokes to set. * @return This builder for chaining. */ - public Builder setSpokes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpokes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSpokesIsMutable(); spokes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The spokes to add. * @return This builder for chaining. */ - public Builder addSpokes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSpokes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSpokesIsMutable(); spokes_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param values The spokes to add. * @return This builder for chaining. */ - public Builder addAllSpokes(java.lang.Iterable values) { + public Builder addAllSpokes( + java.lang.Iterable values) { ensureSpokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spokes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, spokes_); onChanged(); return this; } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSpokes() { @@ -2031,23 +1810,17 @@ public Builder clearSpokes() { return this; } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes of the spokes to add. * @return This builder for chaining. */ - public Builder addSpokesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSpokesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSpokesIsMutable(); spokes_.add(value); @@ -2057,8 +1830,6 @@ public Builder addSpokesBytes(com.google.protobuf.ByteString value) { private java.lang.Object uniqueId_ = ""; /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -2066,13 +1837,13 @@ public Builder addSpokesBytes(com.google.protobuf.ByteString value) {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -2081,8 +1852,6 @@ public java.lang.String getUniqueId() { } } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -2090,14 +1859,15 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -2105,8 +1875,6 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { } } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -2114,22 +1882,18 @@ public com.google.protobuf.ByteString getUniqueIdBytes() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uniqueId_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -2137,7 +1901,6 @@ public Builder setUniqueId(java.lang.String value) {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -2147,8 +1910,6 @@ public Builder clearUniqueId() { return this; } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -2156,14 +1917,12 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000040; @@ -2173,33 +1932,22 @@ public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2210,37 +1958,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = - com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null - ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED - : result; + com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2254,16 +1989,11 @@ public Builder setState(com.google.cloud.networkconnectivity.v1alpha1.State valu return this; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -2272,9 +2002,9 @@ public Builder clearState() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2284,12 +2014,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.Hub) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.Hub) private static final com.google.cloud.networkconnectivity.v1alpha1.Hub DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.Hub(); } @@ -2298,27 +2028,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.Hub getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Hub parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Hub parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2333,4 +2063,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.Hub getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java index 598c124b3db5..710e35232205 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java @@ -1,80 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface HubOrBuilder - extends +public interface HubOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.Hub) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Time when the Hub was created.
    * 
@@ -84,32 +55,24 @@ public interface HubOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Time when the Hub was updated.
    * 
@@ -119,8 +82,6 @@ public interface HubOrBuilder com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * User-defined labels.
    * 
@@ -129,31 +90,30 @@ public interface HubOrBuilder */ int getLabelsCount(); /** - * - * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * User-defined labels.
    * 
@@ -161,108 +121,82 @@ public interface HubOrBuilder * map<string, string> labels = 4; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Short description of the hub resource.
    * 
* * string description = 5; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Short description of the hub resource.
    * 
* * string description = 5; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return A list containing the spokes. */ - java.util.List getSpokesList(); + java.util.List + getSpokesList(); /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The count of spokes. */ int getSpokesCount(); /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The spokes at the given index. */ java.lang.String getSpokes(int index); /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the spokes at the given index. */ - com.google.protobuf.ByteString getSpokesBytes(int index); + com.google.protobuf.ByteString + getSpokesBytes(int index); /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -270,13 +204,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ java.lang.String getUniqueId(); /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -284,36 +215,26 @@ java.lang.String getLabelsOrDefault(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString getUniqueIdBytes(); + com.google.protobuf.ByteString + getUniqueIdBytes(); /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.networkconnectivity.v1alpha1.State getState(); diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java new file mode 100644 index 000000000000..3156d40d4846 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java @@ -0,0 +1,408 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1alpha1/hub.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public final class HubProto { + private HubProto() {} + 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_networkconnectivity_v1alpha1_Hub_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/networkconnectivity/v1alp" + + "ha1/hub.proto\022)google.cloud.networkconne" + + "ctivity.v1alpha1\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\032\037google/" + + "api/field_behavior.proto\032\031google/api/res" + + "ource.proto\032#google/longrunning/operatio" + + "ns.proto\032 google/protobuf/field_mask.pro" + + "to\032\037google/protobuf/timestamp.proto\"\207\004\n\003" + + "Hub\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_time\030\002 " + + "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat" + + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "\022J\n\006labels\030\004 \003(\0132:.google.cloud.networkc" + + "onnectivity.v1alpha1.Hub.LabelsEntry\022\023\n\013" + + "description\030\005 \001(\t\022@\n\006spokes\030\006 \003(\tB0\340A\003\372A" + + "*\n(networkconnectivity.googleapis.com/Sp" + + "oke\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022D\n\005state\030\t \001" + + "(\01620.google.cloud.networkconnectivity.v1" + + "alpha1.StateB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:[\352AX\n&networkco" + + "nnectivity.googleapis.com/Hub\022.projects/" + + "{project}/locations/global/hubs/{hub}\"\234\006" + + "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_tim" + + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022/\n\013u" + + "pdate_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tamp\022L\n\006labels\030\004 \003(\0132<.google.cloud.netw" + + "orkconnectivity.v1alpha1.Spoke.LabelsEnt" + + "ry\022\023\n\013description\030\005 \001(\t\0228\n\003hub\030\006 \001(\tB+\372A" + + "(\n&networkconnectivity.googleapis.com/Hu" + + "b\022A\n\022linked_vpn_tunnels\030\014 \003(\tB%\372A\"\n comp" + + "ute.googleapis.com/VpnTunnel\022[\n\037linked_i" + + "nterconnect_attachments\030\r \003(\tB2\372A/\n-comp" + + "ute.googleapis.com/InterconnectAttachmen" + + "t\022m\n!linked_router_appliance_instances\030\016" + + " \003(\0132B.google.cloud.networkconnectivity." + + "v1alpha1.RouterApplianceInstance\022\026\n\tuniq" + + "ue_id\030\013 \001(\tB\003\340A\003\022D\n\005state\030\017 \001(\01620.google" + + ".cloud.networkconnectivity.v1alpha1.Stat" + + "eB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001:e\352Ab\n(networkconnectivity." + + "googleapis.com/Spoke\0226projects/{project}" + + "/locations/{location}/spokes/{spoke}\"\225\001\n" + + "\017ListHubsRequest\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\022\016\n\006fi" + + "lter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\020ListHubs" + + "Response\022<\n\004hubs\030\001 \003(\0132..google.cloud.ne" + + "tworkconnectivity.v1alpha1.Hub\022\027\n\017next_p" + + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\r" + + "GetHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" + + "workconnectivity.googleapis.com/Hub\"\275\001\n\020" + + "CreateHubRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\n!locations.googleapis.com/Location\022\023\n\006h" + + "ub_id\030\002 \001(\tB\003\340A\001\022@\n\003hub\030\003 \001(\0132..google.c" + + "loud.networkconnectivity.v1alpha1.HubB\003\340" + + "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\020UpdateHu" + + "bRequest\0224\n\013update_mask\030\001 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\003\340A\001\022@\n\003hub\030\002 \001(\0132..go" + + "ogle.cloud.networkconnectivity.v1alpha1." + + "HubB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"i\n\020Del" + + "eteHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" + + "workconnectivity.googleapis.com/Hub\022\027\n\nr" + + "equest_id\030\002 \001(\tB\003\340A\001\"\227\001\n\021ListSpokesReque" + + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + + "ogleapis.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\022\020\n\010" + + "order_by\030\005 \001(\t\"\204\001\n\022ListSpokesResponse\022@\n" + + "\006spokes\030\001 \003(\01320.google.cloud.networkconn" + + "ectivity.v1alpha1.Spoke\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\017GetSpok" + + "eRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(networkc" + + "onnectivity.googleapis.com/Spoke\"\305\001\n\022Cre" + + "ateSpokeRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\025\n\010sp" + + "oke_id\030\002 \001(\tB\003\340A\001\022D\n\005spoke\030\003 \001(\01320.googl" + + "e.cloud.networkconnectivity.v1alpha1.Spo" + + "keB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\251\001\n\022Upd" + + "ateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\003\340A\001\022D\n\005spoke\030\002" + + " \001(\01320.google.cloud.networkconnectivity." + + "v1alpha1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB" + + "\003\340A\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\t" + + "B0\340A\002\372A*\n(networkconnectivity.googleapis" + + ".com/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\213\001\n\027" + + "RouterApplianceInstance\022=\n\017virtual_machi" + + "ne\030\001 \001(\tB$\372A!\n\037compute.googleapis.com/In" + + "stance\022\022\n\nip_address\030\003 \001(\t\022\035\n\021network_in" + + "terface\030\002 \001(\tB\002\030\001*F\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010D" + + "ELETING\020\0032\255\021\n\nHubService\022\311\001\n\010ListHubs\022:." + + "google.cloud.networkconnectivity.v1alpha" + + "1.ListHubsRequest\032;.google.cloud.network" + + "connectivity.v1alpha1.ListHubsResponse\"D" + + "\202\323\344\223\0025\0223/v1alpha1/{parent=projects/*/loc" + + "ations/global}/hubs\332A\006parent\022\266\001\n\006GetHub\022" + + "8.google.cloud.networkconnectivity.v1alp" + + "ha1.GetHubRequest\032..google.cloud.network" + + "connectivity.v1alpha1.Hub\"B\202\323\344\223\0025\0223/v1al" + + "pha1/{name=projects/*/locations/global/h" + + "ubs/*}\332A\004name\022\330\001\n\tCreateHub\022;.google.clo" + + "ud.networkconnectivity.v1alpha1.CreateHu" + + "bRequest\032\035.google.longrunning.Operation\"" + + "o\202\323\344\223\002:\"3/v1alpha1/{parent=projects/*/lo" + + "cations/global}/hubs:\003hub\332A\021parent,hub,h" + + "ub_id\312A\030\n\003Hub\022\021OperationMetadata\022\332\001\n\tUpd" + + "ateHub\022;.google.cloud.networkconnectivit" + + "y.v1alpha1.UpdateHubRequest\032\035.google.lon" + + "grunning.Operation\"q\202\323\344\223\002>27/v1alpha1/{h" + + "ub.name=projects/*/locations/global/hubs" + + "/*}:\003hub\332A\017hub,update_mask\312A\030\n\003Hub\022\021Oper" + + "ationMetadata\022\330\001\n\tDeleteHub\022;.google.clo" + + "ud.networkconnectivity.v1alpha1.DeleteHu" + + "bRequest\032\035.google.longrunning.Operation\"" + + "o\202\323\344\223\0025*3/v1alpha1/{name=projects/*/loca" + + "tions/global/hubs/*}\332A\004name\312A*\n\025google.p" + + "rotobuf.Empty\022\021OperationMetadata\022\314\001\n\nLis" + + "tSpokes\022<.google.cloud.networkconnectivi" + + "ty.v1alpha1.ListSpokesRequest\032=.google.c" + + "loud.networkconnectivity.v1alpha1.ListSp" + + "okesResponse\"A\202\323\344\223\0022\0220/v1alpha1/{parent=" + + "projects/*/locations/*}/spokes\332A\006parent\022" + + "\271\001\n\010GetSpoke\022:.google.cloud.networkconne" + + "ctivity.v1alpha1.GetSpokeRequest\0320.googl" + + "e.cloud.networkconnectivity.v1alpha1.Spo" + + "ke\"?\202\323\344\223\0022\0220/v1alpha1/{name=projects/*/l" + + "ocations/*/spokes/*}\332A\004name\022\341\001\n\013CreateSp" + + "oke\022=.google.cloud.networkconnectivity.v" + + "1alpha1.CreateSpokeRequest\032\035.google.long" + + "running.Operation\"t\202\323\344\223\0029\"0/v1alpha1/{pa" + + "rent=projects/*/locations/*}/spokes:\005spo" + + "ke\332A\025parent,spoke,spoke_id\312A\032\n\005Spoke\022\021Op" + + "erationMetadata\022\343\001\n\013UpdateSpoke\022=.google" + + ".cloud.networkconnectivity.v1alpha1.Upda" + + "teSpokeRequest\032\035.google.longrunning.Oper" + + "ation\"v\202\323\344\223\002?26/v1alpha1/{spoke.name=pro" + + "jects/*/locations/*/spokes/*}:\005spoke\332A\021s" + + "poke,update_mask\312A\032\n\005Spoke\022\021OperationMet" + + "adata\022\331\001\n\013DeleteSpoke\022=.google.cloud.net" + + "workconnectivity.v1alpha1.DeleteSpokeReq" + + "uest\032\035.google.longrunning.Operation\"l\202\323\344" + + "\223\0022*0/v1alpha1/{name=projects/*/location" + + "s/*/spokes/*}\332A\004name\312A*\n\025google.protobuf" + + ".Empty\022\021OperationMetadata\032V\312A\"networkcon" + + "nectivity.googleapis.com\322A.https://www.g" + + "oogleapis.com/auth/cloud-platformB\332\004\n-co" + + "m.google.cloud.networkconnectivity.v1alp" + + "ha1B\010HubProtoP\001Z\\google.golang.org/genpr" + + "oto/googleapis/cloud/networkconnectivity" + + "/v1alpha1;networkconnectivity\252\002)Google.C" + + "loud.NetworkConnectivity.V1Alpha1\312\002)Goog" + + "le\\Cloud\\NetworkConnectivity\\V1alpha1\352\002," + + "Google::Cloud::NetworkConnectivity::V1al" + + "pha1\352A`\n compute.googleapis.com/VpnTunne" + + "l\022 * Request for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method. *
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsRequest} */ -public final class ListHubsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListHubsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) ListHubsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListHubsRequest.newBuilder() to construct. private ListHubsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListHubsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,45 +28,38 @@ private ListHubsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListHubsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 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 @@ -93,31 +68,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 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 { @@ -128,14 +101,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -144,18 +114,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -164,29 +130,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The page token.
    * 
* * 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 { @@ -195,18 +161,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -215,29 +177,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; } } /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * 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 { @@ -246,18 +208,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -266,29 +224,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -297,7 +255,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +266,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -338,7 +296,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_); @@ -357,19 +316,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.networkconnectivity.v1alpha1.ListHubsRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest other = (com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -397,136 +360,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -540,14 +496,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance(); } @@ -562,17 +517,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -595,39 +546,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest)other); } else { super.mergeFrom(other); return this; @@ -635,9 +585,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -687,43 +635,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -733,27 +675,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * string parent = 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; @@ -762,23 +699,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * string parent = 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 { @@ -786,39 +720,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * string 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() { @@ -828,23 +751,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -852,16 +769,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -869,33 +783,27 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -907,20 +815,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The page token.
      * 
* * 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; @@ -929,21 +835,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The page token.
      * 
* * 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 { @@ -951,35 +856,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The page token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -989,21 +887,17 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1013,20 +907,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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; @@ -1035,21 +927,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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 { @@ -1057,35 +948,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1095,21 +979,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1119,20 +999,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1141,21 +1019,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1163,35 +1040,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1201,30 +1071,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1234,13 +1100,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest(); } @@ -1249,27 +1114,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1284,4 +1149,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java similarity index 59% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java index d04315d22cc4..18dcea236671 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java @@ -1,142 +1,99 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListHubsRequestOrBuilder - extends +public interface ListHubsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java similarity index 71% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java index f9b82a08d489..38bda54f7ae1 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsResponse} */ -public final class ListHubsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListHubsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) ListHubsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListHubsResponse.newBuilder() to construct. private ListHubsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListHubsResponse() { hubs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,37 +27,33 @@ private ListHubsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListHubsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); } public static final int HUBS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List hubs_; /** - * - * *
    * Hubs to be returned.
    * 
@@ -87,8 +65,6 @@ public java.util.List getHubs return hubs_; } /** - * - * *
    * Hubs to be returned.
    * 
@@ -96,13 +72,11 @@ public java.util.List getHubs * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getHubsOrBuilderList() { return hubs_; } /** - * - * *
    * Hubs to be returned.
    * 
@@ -114,8 +88,6 @@ public int getHubsCount() { return hubs_.size(); } /** - * - * *
    * Hubs to be returned.
    * 
@@ -127,8 +99,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index) { return hubs_.get(index); } /** - * - * *
    * Hubs to be returned.
    * 
@@ -136,24 +106,21 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index) { * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder( + int index) { return hubs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -162,30 +129,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -194,46 +161,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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. */ @@ -241,23 +199,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; @@ -269,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < hubs_.size(); i++) { output.writeMessage(1, hubs_.get(i)); } @@ -289,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < hubs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hubs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, hubs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -310,17 +267,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.networkconnectivity.v1alpha1.ListHubsResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse other = - (com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) obj; + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse other = (com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) obj; - if (!getHubsList().equals(other.getHubsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getHubsList() + .equals(other.getHubsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,136 +307,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -496,14 +448,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance(); } @@ -518,18 +469,14 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result = - new com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse(this); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { if (hubsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { hubs_ = java.util.Collections.unmodifiableList(hubs_); @@ -546,8 +493,7 @@ private void buildPartialRepeatedFields( result.unreachable_ = unreachable_; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -558,39 +504,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse)other); } else { super.mergeFrom(other); return this; @@ -598,9 +543,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance()) return this; if (hubsBuilder_ == null) { if (!other.hubs_.isEmpty()) { if (hubs_.isEmpty()) { @@ -619,10 +562,9 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListHubsR hubsBuilder_ = null; hubs_ = other.hubs_; bitField0_ = (bitField0_ & ~0x00000001); - hubsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHubsFieldBuilder() - : null; + hubsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHubsFieldBuilder() : null; } else { hubsBuilder_.addAllMessages(other.hubs_); } @@ -669,40 +611,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.networkconnectivity.v1alpha1.Hub m = - input.readMessage( - com.google.cloud.networkconnectivity.v1alpha1.Hub.parser(), - extensionRegistry); - if (hubsBuilder_ == null) { - ensureHubsIsMutable(); - hubs_.add(m); - } else { - hubsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.networkconnectivity.v1alpha1.Hub m = + input.readMessage( + com.google.cloud.networkconnectivity.v1alpha1.Hub.parser(), + extensionRegistry); + if (hubsBuilder_ == null) { + ensureHubsIsMutable(); + hubs_.add(m); + } else { + hubsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -712,28 +650,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List hubs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureHubsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { hubs_ = new java.util.ArrayList(hubs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> - hubsBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> hubsBuilder_; /** - * - * *
      * Hubs to be returned.
      * 
@@ -748,8 +679,6 @@ public java.util.List getHubs } } /** - * - * *
      * Hubs to be returned.
      * 
@@ -764,8 +693,6 @@ public int getHubsCount() { } } /** - * - * *
      * Hubs to be returned.
      * 
@@ -780,15 +707,14 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index) { } } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public Builder setHubs(int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { + public Builder setHubs( + int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -802,8 +728,6 @@ public Builder setHubs(int index, com.google.cloud.networkconnectivity.v1alpha1. return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -822,8 +746,6 @@ public Builder setHubs( return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -844,15 +766,14 @@ public Builder addHubs(com.google.cloud.networkconnectivity.v1alpha1.Hub value) return this; } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public Builder addHubs(int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { + public Builder addHubs( + int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -866,8 +787,6 @@ public Builder addHubs(int index, com.google.cloud.networkconnectivity.v1alpha1. return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -886,8 +805,6 @@ public Builder addHubs( return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -906,8 +823,6 @@ public Builder addHubs( return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -918,7 +833,8 @@ public Builder addAllHubs( java.lang.Iterable values) { if (hubsBuilder_ == null) { ensureHubsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hubs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, hubs_); onChanged(); } else { hubsBuilder_.addAllMessages(values); @@ -926,8 +842,6 @@ public Builder addAllHubs( return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -945,8 +859,6 @@ public Builder clearHubs() { return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -964,44 +876,39 @@ public Builder removeHubs(int index) { return this; } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubsBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubsBuilder( + int index) { return getHubsFieldBuilder().getBuilder(index); } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder( + int index) { if (hubsBuilder_ == null) { - return hubs_.get(index); - } else { + return hubs_.get(index); } else { return hubsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public java.util.List - getHubsOrBuilderList() { + public java.util.List + getHubsOrBuilderList() { if (hubsBuilder_ != null) { return hubsBuilder_.getMessageOrBuilderList(); } else { @@ -1009,8 +916,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuild } } /** - * - * *
      * Hubs to be returned.
      * 
@@ -1018,49 +923,42 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuild * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder() { - return getHubsFieldBuilder() - .addBuilder(com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); + return getHubsFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder(int index) { - return getHubsFieldBuilder() - .addBuilder( - index, com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder( + int index) { + return getHubsFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public java.util.List - getHubsBuilderList() { + public java.util.List + getHubsBuilderList() { return getHubsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> getHubsFieldBuilder() { if (hubsBuilder_ == null) { - hubsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( - hubs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + hubsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( + hubs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); hubs_ = null; } return hubsBuilder_; @@ -1068,21 +966,19 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder( private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -1091,22 +987,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1114,37 +1009,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1154,22 +1042,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1177,52 +1061,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * 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. */ @@ -1230,90 +1104,76 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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(); - } + 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) { + 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() { @@ -1323,30 +1183,26 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1356,43 +1212,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse(); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1404,8 +1258,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java similarity index 73% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java index 0e7c350ae916..04585dd17478 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListHubsResponseOrBuilder - extends +public interface ListHubsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Hubs to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - java.util.List getHubsList(); + java.util.List + getHubsList(); /** - * - * *
    * Hubs to be returned.
    * 
@@ -44,8 +25,6 @@ public interface ListHubsResponseOrBuilder */ com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index); /** - * - * *
    * Hubs to be returned.
    * 
@@ -54,102 +33,84 @@ public interface ListHubsResponseOrBuilder */ int getHubsCount(); /** - * - * *
    * Hubs to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - java.util.List + java.util.List getHubsOrBuilderList(); /** - * - * *
    * Hubs to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder(int index); + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder( + int index); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java similarity index 66% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java index 16ad2870ba59..d02e80f4ce44 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest} */ -public final class ListSpokesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSpokesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) ListSpokesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSpokesRequest.newBuilder() to construct. private ListSpokesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSpokesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,45 +28,38 @@ private ListSpokesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSpokesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent's resource name.
    * 
* - * - * string parent = 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 @@ -93,31 +68,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent's resource name.
    * 
* - * - * string parent = 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 { @@ -128,14 +101,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -144,18 +114,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -164,29 +130,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The page token.
    * 
* * 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 { @@ -195,18 +161,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -215,29 +177,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; } } /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * 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 { @@ -246,18 +208,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -266,29 +224,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -297,7 +255,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +266,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -338,7 +296,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_); @@ -357,19 +316,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.networkconnectivity.v1alpha1.ListSpokesRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other = (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -397,136 +360,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -540,14 +496,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance(); } @@ -562,17 +517,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -595,50 +546,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other) { + if (other == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -688,43 +635,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -734,27 +675,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent's resource name.
      * 
* - * - * string parent = 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; @@ -763,23 +699,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent's resource name.
      * 
* - * - * string parent = 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 { @@ -787,39 +720,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent's resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent's resource name.
      * 
* - * - * string 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() { @@ -829,23 +751,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent's resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -853,16 +769,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -870,33 +783,27 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -908,20 +815,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The page token.
      * 
* * 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; @@ -930,21 +835,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The page token.
      * 
* * 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 { @@ -952,35 +856,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The page token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -990,21 +887,17 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1014,20 +907,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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; @@ -1036,21 +927,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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 { @@ -1058,35 +948,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1096,21 +979,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1120,20 +999,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1142,21 +1019,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1164,35 +1040,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1202,30 +1071,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1235,43 +1100,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1283,8 +1146,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java similarity index 59% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java index 444a3f40fd43..ec02d876fd99 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java @@ -1,142 +1,99 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListSpokesRequestOrBuilder - extends +public interface ListSpokesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent's resource name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent's resource name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java similarity index 71% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java index df099e099d9c..9193ff955e1f 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse} */ -public final class ListSpokesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSpokesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) ListSpokesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSpokesResponse.newBuilder() to construct. private ListSpokesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSpokesResponse() { spokes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,37 +27,33 @@ private ListSpokesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSpokesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); } public static final int SPOKES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List spokes_; /** - * - * *
    * Spokes to be returned.
    * 
@@ -87,8 +65,6 @@ public java.util.List getSp return spokes_; } /** - * - * *
    * Spokes to be returned.
    * 
@@ -96,13 +72,11 @@ public java.util.List getSp * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSpokesOrBuilderList() { return spokes_; } /** - * - * *
    * Spokes to be returned.
    * 
@@ -114,8 +88,6 @@ public int getSpokesCount() { return spokes_.size(); } /** - * - * *
    * Spokes to be returned.
    * 
@@ -127,8 +99,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpokes(int index) return spokes_.get(index); } /** - * - * *
    * Spokes to be returned.
    * 
@@ -142,19 +112,15 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrB } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -163,30 +129,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -195,46 +161,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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. */ @@ -242,23 +199,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; @@ -270,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 { for (int i = 0; i < spokes_.size(); i++) { output.writeMessage(1, spokes_.get(i)); } @@ -290,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < spokes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, spokes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, spokes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -311,17 +267,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.networkconnectivity.v1alpha1.ListSpokesResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other = - (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) obj; + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other = (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) obj; - if (!getSpokesList().equals(other.getSpokesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getSpokesList() + .equals(other.getSpokesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -349,136 +307,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -497,14 +448,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance(); } @@ -519,18 +469,14 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result = - new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse(this); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { if (spokesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { spokes_ = java.util.Collections.unmodifiableList(spokes_); @@ -547,8 +493,7 @@ private void buildPartialRepeatedFields( result.unreachable_ = unreachable_; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -559,50 +504,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other) { + if (other == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance()) return this; if (spokesBuilder_ == null) { if (!other.spokes_.isEmpty()) { if (spokes_.isEmpty()) { @@ -621,10 +562,9 @@ public Builder mergeFrom( spokesBuilder_ = null; spokes_ = other.spokes_; bitField0_ = (bitField0_ & ~0x00000001); - spokesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSpokesFieldBuilder() - : null; + spokesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSpokesFieldBuilder() : null; } else { spokesBuilder_.addAllMessages(other.spokes_); } @@ -671,40 +611,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.networkconnectivity.v1alpha1.Spoke m = - input.readMessage( - com.google.cloud.networkconnectivity.v1alpha1.Spoke.parser(), - extensionRegistry); - if (spokesBuilder_ == null) { - ensureSpokesIsMutable(); - spokes_.add(m); - } else { - spokesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.networkconnectivity.v1alpha1.Spoke m = + input.readMessage( + com.google.cloud.networkconnectivity.v1alpha1.Spoke.parser(), + extensionRegistry); + if (spokesBuilder_ == null) { + ensureSpokesIsMutable(); + spokes_.add(m); + } else { + spokesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -714,29 +650,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List spokes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSpokesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - spokes_ = - new java.util.ArrayList(spokes_); + spokes_ = new java.util.ArrayList(spokes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> - spokesBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> spokesBuilder_; /** - * - * *
      * Spokes to be returned.
      * 
@@ -751,8 +679,6 @@ public java.util.List getSp } } /** - * - * *
      * Spokes to be returned.
      * 
@@ -767,8 +693,6 @@ public int getSpokesCount() { } } /** - * - * *
      * Spokes to be returned.
      * 
@@ -783,15 +707,14 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpokes(int index) } } /** - * - * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public Builder setSpokes(int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { + public Builder setSpokes( + int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -805,8 +728,6 @@ public Builder setSpokes(int index, com.google.cloud.networkconnectivity.v1alpha return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -825,8 +746,6 @@ public Builder setSpokes( return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -847,15 +766,14 @@ public Builder addSpokes(com.google.cloud.networkconnectivity.v1alpha1.Spoke val return this; } /** - * - * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public Builder addSpokes(int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { + public Builder addSpokes( + int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -869,8 +787,6 @@ public Builder addSpokes(int index, com.google.cloud.networkconnectivity.v1alpha return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -889,8 +805,6 @@ public Builder addSpokes( return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -909,8 +823,6 @@ public Builder addSpokes( return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -921,7 +833,8 @@ public Builder addAllSpokes( java.lang.Iterable values) { if (spokesBuilder_ == null) { ensureSpokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spokes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, spokes_); onChanged(); } else { spokesBuilder_.addAllMessages(values); @@ -929,8 +842,6 @@ public Builder addAllSpokes( return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -948,8 +859,6 @@ public Builder clearSpokes() { return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -967,20 +876,17 @@ public Builder removeSpokes(int index) { return this; } /** - * - * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokesBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokesBuilder( + int index) { return getSpokesFieldBuilder().getBuilder(index); } /** - * - * *
      * Spokes to be returned.
      * 
@@ -990,22 +896,19 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokesBuil public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrBuilder( int index) { if (spokesBuilder_ == null) { - return spokes_.get(index); - } else { + return spokes_.get(index); } else { return spokesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public java.util.List - getSpokesOrBuilderList() { + public java.util.List + getSpokesOrBuilderList() { if (spokesBuilder_ != null) { return spokesBuilder_.getMessageOrBuilderList(); } else { @@ -1013,8 +916,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrB } } /** - * - * *
      * Spokes to be returned.
      * 
@@ -1022,49 +923,42 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrB * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuilder() { - return getSpokesFieldBuilder() - .addBuilder(com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); + return getSpokesFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); } /** - * - * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuilder(int index) { - return getSpokesFieldBuilder() - .addBuilder( - index, com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuilder( + int index) { + return getSpokesFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); } /** - * - * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public java.util.List - getSpokesBuilderList() { + public java.util.List + getSpokesBuilderList() { return getSpokesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> getSpokesFieldBuilder() { if (spokesBuilder_ == null) { - spokesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( - spokes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + spokesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( + spokes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); spokes_ = null; } return spokesBuilder_; @@ -1072,21 +966,19 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuil private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -1095,22 +987,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1118,37 +1009,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1158,22 +1042,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1181,52 +1061,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * 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. */ @@ -1234,90 +1104,76 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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(); - } + 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) { + 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() { @@ -1327,30 +1183,26 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1360,43 +1212,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse(); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1408,8 +1258,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java similarity index 73% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java index f961b406b6ac..cd1aaeb8ddaf 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListSpokesResponseOrBuilder - extends +public interface ListSpokesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Spokes to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - java.util.List getSpokesList(); + java.util.List + getSpokesList(); /** - * - * *
    * Spokes to be returned.
    * 
@@ -44,8 +25,6 @@ public interface ListSpokesResponseOrBuilder */ com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpokes(int index); /** - * - * *
    * Spokes to be returned.
    * 
@@ -54,102 +33,84 @@ public interface ListSpokesResponseOrBuilder */ int getSpokesCount(); /** - * - * *
    * Spokes to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - java.util.List + java.util.List getSpokesOrBuilderList(); /** - * - * *
    * Spokes to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrBuilder(int index); + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrBuilder( + int index); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java index e602957e7330..adc9f5345b26 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/common.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,42 +28,37 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -89,15 +66,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -105,14 +78,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -122,15 +92,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -138,15 +104,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -154,14 +116,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -169,18 +128,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -189,29 +144,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -220,18 +175,14 @@ public com.google.protobuf.ByteString getTargetBytes() { } public static final int VERB_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -240,29 +191,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -271,18 +222,14 @@ public com.google.protobuf.ByteString getVerbBytes() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -291,29 +238,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -324,8 +271,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -334,7 +279,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -343,18 +287,14 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -363,29 +303,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -394,7 +334,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -406,7 +345,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -438,10 +378,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_); @@ -453,7 +395,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_); @@ -466,27 +409,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.networkconnectivity.v1alpha1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other = - (com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) obj; + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other = (com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -513,7 +462,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) + getUnknownFields().hashCode(); @@ -522,136 +472,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) com.google.cloud.networkconnectivity.v1alpha1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -675,14 +618,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.getDefaultInstance(); } @@ -697,23 +639,23 @@ public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result = - new com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result = new com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -736,50 +678,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other) { + if (other == com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -835,55 +773,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -893,63 +827,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time 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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -965,17 +879,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -986,21 +897,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1013,15 +920,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1034,15 +937,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -1050,48 +949,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1099,35 +986,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1138,14 +1014,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1161,16 +1034,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1181,20 +1052,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1207,14 +1075,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1227,14 +1092,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1242,44 +1104,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1287,20 +1141,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1309,21 +1161,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1331,35 +1182,28 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1369,21 +1213,17 @@ public Builder clearTarget() { return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1393,20 +1233,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1415,21 +1253,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1437,35 +1274,28 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerb( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1475,21 +1305,17 @@ public Builder clearVerb() { return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1499,20 +1325,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1521,21 +1345,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1543,35 +1366,28 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1581,21 +1397,17 @@ public Builder clearStatusMessage() { return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1603,10 +1415,8 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1615,7 +1425,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 @@ -1623,8 +1432,6 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1633,20 +1440,17 @@ 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1655,7 +1459,6 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1667,20 +1470,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1689,21 +1490,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1711,35 +1511,28 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1749,30 +1542,26 @@ public Builder clearApiVersion() { return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1782,43 +1571,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) - private static final com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata(); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1830,8 +1617,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java similarity index 75% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java index 984bdadf0f01..9df65555334e 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/common.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java similarity index 63% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java index 0b6f52d0e51d..a16aa2f28465 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * RouterAppliance represents a Router appliance which is specified by a VM URI
  * and a NIC address.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance}
  */
-public final class RouterApplianceInstance extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RouterApplianceInstance extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance)
     RouterApplianceInstanceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RouterApplianceInstance.newBuilder() to construct.
   private RouterApplianceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RouterApplianceInstance() {
     virtualMachine_ = "";
     ipAddress_ = "";
@@ -46,43 +28,38 @@ private RouterApplianceInstance() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RouterApplianceInstance();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class,
-            com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
+            com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
   }
 
   public static final int VIRTUAL_MACHINE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object virtualMachine_ = "";
   /**
-   *
-   *
    * 
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The virtualMachine. */ @java.lang.Override @@ -91,29 +68,29 @@ public java.lang.String getVirtualMachine() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; } } /** - * - * *
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for virtualMachine. */ @java.lang.Override - public com.google.protobuf.ByteString getVirtualMachineBytes() { + public com.google.protobuf.ByteString + getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -122,18 +99,14 @@ public com.google.protobuf.ByteString getVirtualMachineBytes() { } public static final int IP_ADDRESS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object ipAddress_ = ""; /** - * - * *
    * The IP address of the network interface to use for peering.
    * 
* * string ip_address = 3; - * * @return The ipAddress. */ @java.lang.Override @@ -142,29 +115,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; } } /** - * - * *
    * The IP address of the network interface to use for peering.
    * 
* * 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 { @@ -173,24 +146,22 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } public static final int NETWORK_INTERFACE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object networkInterface_ = ""; /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface - * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The networkInterface. */ @java.lang.Override - @java.lang.Deprecated - public java.lang.String getNetworkInterface() { + @java.lang.Deprecated public java.lang.String getNetworkInterface() { java.lang.Object ref = networkInterface_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkInterface_ = s; return s; @@ -198,18 +169,18 @@ public java.lang.String getNetworkInterface() { } /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface - * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The bytes for networkInterface. */ @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getNetworkInterfaceBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getNetworkInterfaceBytes() { java.lang.Object ref = networkInterface_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); networkInterface_ = b; return b; } else { @@ -218,7 +189,6 @@ public com.google.protobuf.ByteString getNetworkInterfaceBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualMachine_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, virtualMachine_); } @@ -266,17 +237,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.networkconnectivity.v1alpha1.RouterApplianceInstance)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other = - (com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) obj; + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other = (com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) obj; - if (!getVirtualMachine().equals(other.getVirtualMachine())) return false; - if (!getIpAddress().equals(other.getIpAddress())) return false; - if (!getNetworkInterface().equals(other.getNetworkInterface())) return false; + if (!getVirtualMachine() + .equals(other.getVirtualMachine())) return false; + if (!getIpAddress() + .equals(other.getIpAddress())) return false; + if (!getNetworkInterface() + .equals(other.getNetworkInterface())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,105 +273,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - 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.networkconnectivity.v1alpha1.RouterApplianceInstance 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.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * RouterAppliance represents a Router appliance which is specified by a VM URI
    * and a NIC address.
@@ -406,33 +370,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance)
       com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class,
-              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
+              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,16 +408,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
-        getDefaultInstanceForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
-          .getDefaultInstance();
+    public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getDefaultInstanceForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -467,17 +429,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance bui
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance buildPartial() {
-      com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result =
-          new com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result = new com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result) {
+    private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.virtualMachine_ = virtualMachine_;
@@ -494,51 +452,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) {
-        return mergeFrom(
-            (com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other) {
-      if (other
-          == com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other) {
+      if (other == com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance()) return this;
       if (!other.getVirtualMachine().isEmpty()) {
         virtualMachine_ = other.virtualMachine_;
         bitField0_ |= 0x00000001;
@@ -580,31 +533,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                virtualMachine_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                networkInterface_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 18
-            case 26:
-              {
-                ipAddress_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              virtualMachine_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              networkInterface_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 18
+            case 26: {
+              ipAddress_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -614,25 +563,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object virtualMachine_ = "";
     /**
-     *
-     *
      * 
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The virtualMachine. */ public java.lang.String getVirtualMachine() { java.lang.Object ref = virtualMachine_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; @@ -641,21 +587,20 @@ public java.lang.String getVirtualMachine() { } } /** - * - * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for virtualMachine. */ - public com.google.protobuf.ByteString getVirtualMachineBytes() { + public com.google.protobuf.ByteString + getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -663,35 +608,28 @@ public com.google.protobuf.ByteString getVirtualMachineBytes() { } } /** - * - * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @param value The virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachine(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVirtualMachine( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } virtualMachine_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearVirtualMachine() { @@ -701,21 +639,17 @@ public Builder clearVirtualMachine() { return this; } /** - * - * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachineBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVirtualMachineBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); virtualMachine_ = value; bitField0_ |= 0x00000001; @@ -725,20 +659,18 @@ public Builder setVirtualMachineBytes(com.google.protobuf.ByteString value) { private java.lang.Object ipAddress_ = ""; /** - * - * *
      * The IP address of the network interface to use for peering.
      * 
* * 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; @@ -747,21 +679,20 @@ public java.lang.String getIpAddress() { } } /** - * - * *
      * The IP address of the network interface to use for peering.
      * 
* * 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 { @@ -769,35 +700,28 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } } /** - * - * *
      * The IP address of the network interface to use for peering.
      * 
* * 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(); - } + public Builder setIpAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ipAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The IP address of the network interface to use for peering.
      * 
* * string ip_address = 3; - * * @return This builder for chaining. */ public Builder clearIpAddress() { @@ -807,21 +731,17 @@ public Builder clearIpAddress() { return this; } /** - * - * *
      * The IP address of the network interface to use for peering.
      * 
* * 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(); - } + public Builder setIpAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ipAddress_ = value; bitField0_ |= 0x00000002; @@ -832,17 +752,15 @@ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { private java.lang.Object networkInterface_ = ""; /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is - * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The networkInterface. */ - @java.lang.Deprecated - public java.lang.String getNetworkInterface() { + @java.lang.Deprecated public java.lang.String getNetworkInterface() { java.lang.Object ref = networkInterface_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkInterface_ = s; return s; @@ -852,18 +770,17 @@ public java.lang.String getNetworkInterface() { } /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is - * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The bytes for networkInterface. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getNetworkInterfaceBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getNetworkInterfaceBytes() { java.lang.Object ref = networkInterface_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); networkInterface_ = b; return b; } else { @@ -872,18 +789,14 @@ public com.google.protobuf.ByteString getNetworkInterfaceBytes() { } /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is - * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @param value The networkInterface to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setNetworkInterface(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + @java.lang.Deprecated public Builder setNetworkInterface( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } networkInterface_ = value; bitField0_ |= 0x00000004; onChanged(); @@ -891,14 +804,11 @@ public Builder setNetworkInterface(java.lang.String value) { } /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is - * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearNetworkInterface() { + @java.lang.Deprecated public Builder clearNetworkInterface() { networkInterface_ = getDefaultInstance().getNetworkInterface(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); @@ -906,27 +816,23 @@ public Builder clearNetworkInterface() { } /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is - * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @param value The bytes for networkInterface to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setNetworkInterfaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + @java.lang.Deprecated public Builder setNetworkInterfaceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); networkInterface_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -936,43 +842,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) - private static final com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance(); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouterApplianceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouterApplianceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -984,8 +888,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java similarity index 55% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java index 9d10c38aef90..09034b583365 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java @@ -1,94 +1,65 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface RouterApplianceInstanceOrBuilder - extends +public interface RouterApplianceInstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The virtualMachine. */ java.lang.String getVirtualMachine(); /** - * - * *
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for virtualMachine. */ - com.google.protobuf.ByteString getVirtualMachineBytes(); + com.google.protobuf.ByteString + getVirtualMachineBytes(); /** - * - * *
    * The IP address of the network interface to use for peering.
    * 
* * string ip_address = 3; - * * @return The ipAddress. */ java.lang.String getIpAddress(); /** - * - * *
    * The IP address of the network interface to use for peering.
    * 
* * string ip_address = 3; - * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString getIpAddressBytes(); + com.google.protobuf.ByteString + getIpAddressBytes(); /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface - * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The networkInterface. */ - @java.lang.Deprecated - java.lang.String getNetworkInterface(); + @java.lang.Deprecated java.lang.String getNetworkInterface(); /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface - * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The bytes for networkInterface. */ - @java.lang.Deprecated - com.google.protobuf.ByteString getNetworkInterfaceBytes(); + @java.lang.Deprecated com.google.protobuf.ByteString + getNetworkInterfaceBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java similarity index 66% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java index 482de452ad94..b425a46ccf5c 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * A Spoke is an  abstraction of a network attachment being attached
  * to a Hub. A Spoke can be underlying a VPN tunnel, a
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Spoke}
  */
-public final class Spoke extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Spoke extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.Spoke)
     SpokeOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Spoke.newBuilder() to construct.
   private Spoke(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Spoke() {
     name_ = "";
     description_ = "";
@@ -52,54 +34,50 @@ private Spoke() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Spoke();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1alpha1.Spoke.class,
-            com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
+            com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -108,29 +86,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; } } /** - * - * *
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -141,14 +119,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -156,14 +131,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return The createTime. */ @java.lang.Override @@ -171,8 +143,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time when the Spoke was created.
    * 
@@ -187,14 +157,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -202,14 +169,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ @java.lang.Override @@ -217,8 +181,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The time when the Spoke was updated.
    * 
@@ -231,34 +193,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_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.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - 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_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * User-defined labels.
    * 
@@ -266,21 +226,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** - * - * *
    * User-defined labels.
    * 
@@ -292,8 +251,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * User-defined labels.
    * 
@@ -301,19 +258,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +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; } /** - * - * *
    * User-defined labels.
    * 
@@ -321,11 +276,11 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @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(); } @@ -333,18 +288,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int DESCRIPTION_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Short description of the spoke resource
    * 
* * string description = 5; - * * @return The description. */ @java.lang.Override @@ -353,29 +304,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Short description of the spoke resource
    * 
* * string description = 5; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -384,18 +335,14 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int HUB_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object hub_ = ""; /** - * - * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return The hub. */ @java.lang.Override @@ -404,29 +351,29 @@ public java.lang.String getHub() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; } } /** - * - * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for hub. */ @java.lang.Override - public com.google.protobuf.ByteString getHubBytes() { + public com.google.protobuf.ByteString + getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hub_ = b; return b; } else { @@ -435,49 +382,37 @@ public com.google.protobuf.ByteString getHubBytes() { } public static final int LINKED_VPN_TUNNELS_FIELD_NUMBER = 12; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList linkedVpnTunnels_; /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return A list containing the linkedVpnTunnels. */ - public com.google.protobuf.ProtocolStringList getLinkedVpnTunnelsList() { + public com.google.protobuf.ProtocolStringList + getLinkedVpnTunnelsList() { return linkedVpnTunnels_; } /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return The count of linkedVpnTunnels. */ public int getLinkedVpnTunnelsCount() { return linkedVpnTunnels_.size(); } /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The linkedVpnTunnels at the given index. */ @@ -485,69 +420,51 @@ public java.lang.String getLinkedVpnTunnels(int index) { return linkedVpnTunnels_.get(index); } /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the linkedVpnTunnels at the given index. */ - public com.google.protobuf.ByteString getLinkedVpnTunnelsBytes(int index) { + public com.google.protobuf.ByteString + getLinkedVpnTunnelsBytes(int index) { return linkedVpnTunnels_.getByteString(index); } public static final int LINKED_INTERCONNECT_ATTACHMENTS_FIELD_NUMBER = 13; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList linkedInterconnectAttachments_; /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return A list containing the linkedInterconnectAttachments. */ - public com.google.protobuf.ProtocolStringList getLinkedInterconnectAttachmentsList() { + public com.google.protobuf.ProtocolStringList + getLinkedInterconnectAttachmentsList() { return linkedInterconnectAttachments_; } /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return The count of linkedInterconnectAttachments. */ public int getLinkedInterconnectAttachmentsCount() { return linkedInterconnectAttachments_.size(); } /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The linkedInterconnectAttachments at the given index. */ @@ -555,116 +472,84 @@ public java.lang.String getLinkedInterconnectAttachments(int index) { return linkedInterconnectAttachments_.get(index); } /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the linkedInterconnectAttachments at the given index. */ - public com.google.protobuf.ByteString getLinkedInterconnectAttachmentsBytes(int index) { + public com.google.protobuf.ByteString + getLinkedInterconnectAttachmentsBytes(int index) { return linkedInterconnectAttachments_.getByteString(index); } public static final int LINKED_ROUTER_APPLIANCE_INSTANCES_FIELD_NUMBER = 14; - @SuppressWarnings("serial") - private java.util.List - linkedRouterApplianceInstances_; + private java.util.List linkedRouterApplianceInstances_; /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ @java.lang.Override - public java.util.List - getLinkedRouterApplianceInstancesList() { + public java.util.List getLinkedRouterApplianceInstancesList() { return linkedRouterApplianceInstances_; } /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> + public java.util.List getLinkedRouterApplianceInstancesOrBuilderList() { return linkedRouterApplianceInstances_; } /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ @java.lang.Override public int getLinkedRouterApplianceInstancesCount() { return linkedRouterApplianceInstances_.size(); } /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - getLinkedRouterApplianceInstances(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getLinkedRouterApplianceInstances(int index) { return linkedRouterApplianceInstances_.get(index); } /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder - getLinkedRouterApplianceInstancesOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder getLinkedRouterApplianceInstancesOrBuilder( + int index) { return linkedRouterApplianceInstances_.get(index); } public static final int UNIQUE_ID_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -672,7 +557,6 @@ public int getLinkedRouterApplianceInstancesCount() {
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ @java.lang.Override @@ -681,15 +565,14 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -697,15 +580,16 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -716,46 +600,30 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = - com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null - ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { + com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -767,7 +635,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -777,8 +646,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -792,14 +665,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 12, linkedVpnTunnels_.getRaw(i)); } for (int i = 0; i < linkedInterconnectAttachments_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 13, linkedInterconnectAttachments_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, linkedInterconnectAttachments_.getRaw(i)); } for (int i = 0; i < linkedRouterApplianceInstances_.size(); i++) { output.writeMessage(14, linkedRouterApplianceInstances_.get(i)); } - if (state_ - != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(15, state_); } getUnknownFields().writeTo(output); @@ -815,20 +686,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -856,13 +729,12 @@ public int getSerializedSize() { size += 1 * getLinkedInterconnectAttachmentsList().size(); } for (int i = 0; i < linkedRouterApplianceInstances_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 14, linkedRouterApplianceInstances_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, linkedRouterApplianceInstances_.get(i)); } - if (state_ - != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); + if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -872,32 +744,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1alpha1.Spoke)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.Spoke other = - (com.google.cloud.networkconnectivity.v1alpha1.Spoke) obj; + com.google.cloud.networkconnectivity.v1alpha1.Spoke other = (com.google.cloud.networkconnectivity.v1alpha1.Spoke) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getHub().equals(other.getHub())) return false; - if (!getLinkedVpnTunnelsList().equals(other.getLinkedVpnTunnelsList())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getHub() + .equals(other.getHub())) return false; + if (!getLinkedVpnTunnelsList() + .equals(other.getLinkedVpnTunnelsList())) return false; if (!getLinkedInterconnectAttachmentsList() .equals(other.getLinkedInterconnectAttachmentsList())) return false; if (!getLinkedRouterApplianceInstancesList() .equals(other.getLinkedRouterApplianceInstancesList())) return false; - if (!getUniqueId().equals(other.getUniqueId())) return false; + if (!getUniqueId() + .equals(other.getUniqueId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -950,103 +829,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.Spoke prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Spoke is an  abstraction of a network attachment being attached
    * to a Hub. A Spoke can be underlying a VPN tunnel, a
@@ -1055,52 +927,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Spoke}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.Spoke)
       com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1alpha1.Spoke.class,
-              com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
+              com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1alpha1.Spoke.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1136,9 +1011,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
     }
 
     @java.lang.Override
@@ -1157,18 +1032,14 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1alpha1.Spoke buildPartial() {
-      com.google.cloud.networkconnectivity.v1alpha1.Spoke result =
-          new com.google.cloud.networkconnectivity.v1alpha1.Spoke(this);
+      com.google.cloud.networkconnectivity.v1alpha1.Spoke result = new com.google.cloud.networkconnectivity.v1alpha1.Spoke(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.networkconnectivity.v1alpha1.Spoke result) {
+    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.Spoke result) {
       if (((bitField0_ & 0x00000040) != 0)) {
         linkedVpnTunnels_ = linkedVpnTunnels_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000040);
@@ -1181,8 +1052,7 @@ private void buildPartialRepeatedFields(
       result.linkedInterconnectAttachments_ = linkedInterconnectAttachments_;
       if (linkedRouterApplianceInstancesBuilder_ == null) {
         if (((bitField0_ & 0x00000100) != 0)) {
-          linkedRouterApplianceInstances_ =
-              java.util.Collections.unmodifiableList(linkedRouterApplianceInstances_);
+          linkedRouterApplianceInstances_ = java.util.Collections.unmodifiableList(linkedRouterApplianceInstances_);
           bitField0_ = (bitField0_ & ~0x00000100);
         }
         result.linkedRouterApplianceInstances_ = linkedRouterApplianceInstances_;
@@ -1197,10 +1067,14 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Spoke r
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -1224,39 +1098,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Spoke r
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.Spoke) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Spoke) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Spoke)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1264,8 +1137,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Spoke other) {
-      if (other == com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1277,7 +1149,8 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Spoke oth
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -1327,13 +1200,11 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Spoke oth
             linkedRouterApplianceInstancesBuilder_ = null;
             linkedRouterApplianceInstances_ = other.linkedRouterApplianceInstances_;
             bitField0_ = (bitField0_ & ~0x00000100);
-            linkedRouterApplianceInstancesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getLinkedRouterApplianceInstancesFieldBuilder()
-                    : null;
+            linkedRouterApplianceInstancesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getLinkedRouterApplianceInstancesFieldBuilder() : null;
           } else {
-            linkedRouterApplianceInstancesBuilder_.addAllMessages(
-                other.linkedRouterApplianceInstances_);
+            linkedRouterApplianceInstancesBuilder_.addAllMessages(other.linkedRouterApplianceInstances_);
           }
         }
       }
@@ -1371,96 +1242,85 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                hub_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 90:
-              {
-                uniqueId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 90
-            case 98:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureLinkedVpnTunnelsIsMutable();
-                linkedVpnTunnels_.add(s);
-                break;
-              } // case 98
-            case 106:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureLinkedInterconnectAttachmentsIsMutable();
-                linkedInterconnectAttachments_.add(s);
-                break;
-              } // case 106
-            case 114:
-              {
-                com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance m =
-                    input.readMessage(
-                        com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
-                            .parser(),
-                        extensionRegistry);
-                if (linkedRouterApplianceInstancesBuilder_ == null) {
-                  ensureLinkedRouterApplianceInstancesIsMutable();
-                  linkedRouterApplianceInstances_.add(m);
-                } else {
-                  linkedRouterApplianceInstancesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 114
-            case 120:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 120
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              hub_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 90: {
+              uniqueId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 90
+            case 98: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureLinkedVpnTunnelsIsMutable();
+              linkedVpnTunnels_.add(s);
+              break;
+            } // case 98
+            case 106: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureLinkedInterconnectAttachmentsIsMutable();
+              linkedInterconnectAttachments_.add(s);
+              break;
+            } // case 106
+            case 114: {
+              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance m =
+                  input.readMessage(
+                      com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.parser(),
+                      extensionRegistry);
+              if (linkedRouterApplianceInstancesBuilder_ == null) {
+                ensureLinkedRouterApplianceInstancesIsMutable();
+                linkedRouterApplianceInstances_.add(m);
+              } else {
+                linkedRouterApplianceInstancesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 114
+            case 120: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 120
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1470,25 +1330,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1497,21 +1354,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1519,35 +1375,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1557,21 +1406,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1581,47 +1426,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * The time when the Spoke was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The time when the Spoke was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; - * * @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 when the Spoke was created.
      * 
@@ -1642,15 +1474,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the Spoke was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1661,8 +1492,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the Spoke was created.
      * 
@@ -1671,9 +1500,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1686,8 +1515,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the Spoke was created.
      * 
@@ -1705,8 +1532,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time when the Spoke was created.
      * 
@@ -1719,8 +1544,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the Spoke was created.
      * 
@@ -1731,14 +1554,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time when the Spoke was created.
      * 
@@ -1746,17 +1566,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -1764,47 +1581,34 @@ 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_; /** - * - * *
      * The time when the Spoke was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The time when the Spoke was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @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(); } } /** - * - * *
      * The time when the Spoke was updated.
      * 
@@ -1825,15 +1629,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the Spoke was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1844,8 +1647,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the Spoke was updated.
      * 
@@ -1854,9 +1655,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1869,8 +1670,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the Spoke was updated.
      * 
@@ -1888,8 +1687,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The time when the Spoke was updated.
      * 
@@ -1902,8 +1699,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the Spoke was updated.
      * 
@@ -1914,14 +1709,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * The time when the Spoke was updated.
      * 
@@ -1929,35 +1721,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1966,13 +1757,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * User-defined labels.
      * 
@@ -1980,21 +1768,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** - * - * *
      * User-defined labels.
      * 
@@ -2006,8 +1793,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * User-defined labels.
      * 
@@ -2015,19 +1800,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +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; } /** - * - * *
      * User-defined labels.
      * 
@@ -2035,95 +1818,91 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @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(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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); + 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); bitField0_ |= 0x00000008; return this; } /** - * - * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object description_ = ""; /** - * - * *
      * Short description of the spoke resource
      * 
* * string description = 5; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2132,21 +1911,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Short description of the spoke resource
      * 
* * string description = 5; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2154,35 +1932,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Short description of the spoke resource
      * 
* * string description = 5; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Short description of the spoke resource
      * 
* * string description = 5; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2192,21 +1963,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Short description of the spoke resource
      * 
* * string description = 5; - * * @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(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -2216,20 +1983,18 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object hub_ = ""; /** - * - * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return The hub. */ public java.lang.String getHub() { java.lang.Object ref = hub_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; @@ -2238,21 +2003,20 @@ public java.lang.String getHub() { } } /** - * - * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for hub. */ - public com.google.protobuf.ByteString getHubBytes() { + public com.google.protobuf.ByteString + getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hub_ = b; return b; } else { @@ -2260,35 +2024,28 @@ public com.google.protobuf.ByteString getHubBytes() { } } /** - * - * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @param value The hub to set. * @return This builder for chaining. */ - public Builder setHub(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHub( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hub_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearHub() { @@ -2298,21 +2055,17 @@ public Builder clearHub() { return this; } /** - * - * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for hub to set. * @return This builder for chaining. */ - public Builder setHubBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHubBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hub_ = value; bitField0_ |= 0x00000020; @@ -2320,55 +2073,42 @@ public Builder setHubBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList linkedVpnTunnels_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList linkedVpnTunnels_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLinkedVpnTunnelsIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { linkedVpnTunnels_ = new com.google.protobuf.LazyStringArrayList(linkedVpnTunnels_); bitField0_ |= 0x00000040; - } + } } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return A list containing the linkedVpnTunnels. */ - public com.google.protobuf.ProtocolStringList getLinkedVpnTunnelsList() { + public com.google.protobuf.ProtocolStringList + getLinkedVpnTunnelsList() { return linkedVpnTunnels_.getUnmodifiableView(); } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return The count of linkedVpnTunnels. */ public int getLinkedVpnTunnelsCount() { return linkedVpnTunnels_.size(); } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The linkedVpnTunnels at the given index. */ @@ -2376,95 +2116,76 @@ public java.lang.String getLinkedVpnTunnels(int index) { return linkedVpnTunnels_.get(index); } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the linkedVpnTunnels at the given index. */ - public com.google.protobuf.ByteString getLinkedVpnTunnelsBytes(int index) { + public com.google.protobuf.ByteString + getLinkedVpnTunnelsBytes(int index) { return linkedVpnTunnels_.getByteString(index); } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The linkedVpnTunnels to set. * @return This builder for chaining. */ - public Builder setLinkedVpnTunnels(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLinkedVpnTunnels( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLinkedVpnTunnelsIsMutable(); linkedVpnTunnels_.set(index, value); onChanged(); return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param value The linkedVpnTunnels to add. * @return This builder for chaining. */ - public Builder addLinkedVpnTunnels(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLinkedVpnTunnels( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLinkedVpnTunnelsIsMutable(); linkedVpnTunnels_.add(value); onChanged(); return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param values The linkedVpnTunnels to add. * @return This builder for chaining. */ - public Builder addAllLinkedVpnTunnels(java.lang.Iterable values) { + public Builder addAllLinkedVpnTunnels( + java.lang.Iterable values) { ensureLinkedVpnTunnelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, linkedVpnTunnels_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, linkedVpnTunnels_); onChanged(); return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearLinkedVpnTunnels() { @@ -2474,22 +2195,17 @@ public Builder clearLinkedVpnTunnels() { return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param value The bytes of the linkedVpnTunnels to add. * @return This builder for chaining. */ - public Builder addLinkedVpnTunnelsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLinkedVpnTunnelsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLinkedVpnTunnelsIsMutable(); linkedVpnTunnels_.add(value); @@ -2497,59 +2213,42 @@ public Builder addLinkedVpnTunnelsBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList linkedInterconnectAttachments_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList linkedInterconnectAttachments_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLinkedInterconnectAttachmentsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - linkedInterconnectAttachments_ = - new com.google.protobuf.LazyStringArrayList(linkedInterconnectAttachments_); + linkedInterconnectAttachments_ = new com.google.protobuf.LazyStringArrayList(linkedInterconnectAttachments_); bitField0_ |= 0x00000080; - } + } } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return A list containing the linkedInterconnectAttachments. */ - public com.google.protobuf.ProtocolStringList getLinkedInterconnectAttachmentsList() { + public com.google.protobuf.ProtocolStringList + getLinkedInterconnectAttachmentsList() { return linkedInterconnectAttachments_.getUnmodifiableView(); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return The count of linkedInterconnectAttachments. */ public int getLinkedInterconnectAttachmentsCount() { return linkedInterconnectAttachments_.size(); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The linkedInterconnectAttachments at the given index. */ @@ -2557,80 +2256,59 @@ public java.lang.String getLinkedInterconnectAttachments(int index) { return linkedInterconnectAttachments_.get(index); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the linkedInterconnectAttachments at the given index. */ - public com.google.protobuf.ByteString getLinkedInterconnectAttachmentsBytes(int index) { + public com.google.protobuf.ByteString + getLinkedInterconnectAttachmentsBytes(int index) { return linkedInterconnectAttachments_.getByteString(index); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The linkedInterconnectAttachments to set. * @return This builder for chaining. */ - public Builder setLinkedInterconnectAttachments(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLinkedInterconnectAttachments( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLinkedInterconnectAttachmentsIsMutable(); linkedInterconnectAttachments_.set(index, value); onChanged(); return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param value The linkedInterconnectAttachments to add. * @return This builder for chaining. */ - public Builder addLinkedInterconnectAttachments(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLinkedInterconnectAttachments( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLinkedInterconnectAttachmentsIsMutable(); linkedInterconnectAttachments_.add(value); onChanged(); return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param values The linkedInterconnectAttachments to add. * @return This builder for chaining. */ @@ -2643,16 +2321,11 @@ public Builder addAllLinkedInterconnectAttachments( return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearLinkedInterconnectAttachments() { @@ -2662,23 +2335,17 @@ public Builder clearLinkedInterconnectAttachments() { return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param value The bytes of the linkedInterconnectAttachments to add. * @return This builder for chaining. */ - public Builder addLinkedInterconnectAttachmentsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLinkedInterconnectAttachmentsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLinkedInterconnectAttachmentsIsMutable(); linkedInterconnectAttachments_.add(value); @@ -2686,38 +2353,26 @@ public Builder addLinkedInterconnectAttachmentsBytes(com.google.protobuf.ByteStr return this; } - private java.util.List - linkedRouterApplianceInstances_ = java.util.Collections.emptyList(); - + private java.util.List linkedRouterApplianceInstances_ = + java.util.Collections.emptyList(); private void ensureLinkedRouterApplianceInstancesIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { - linkedRouterApplianceInstances_ = - new java.util.ArrayList< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance>( - linkedRouterApplianceInstances_); + linkedRouterApplianceInstances_ = new java.util.ArrayList(linkedRouterApplianceInstances_); bitField0_ |= 0x00000100; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> - linkedRouterApplianceInstancesBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> linkedRouterApplianceInstancesBuilder_; /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public java.util.List - getLinkedRouterApplianceInstancesList() { + public java.util.List getLinkedRouterApplianceInstancesList() { if (linkedRouterApplianceInstancesBuilder_ == null) { return java.util.Collections.unmodifiableList(linkedRouterApplianceInstances_); } else { @@ -2725,15 +2380,11 @@ private void ensureLinkedRouterApplianceInstancesIsMutable() { } } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public int getLinkedRouterApplianceInstancesCount() { if (linkedRouterApplianceInstancesBuilder_ == null) { @@ -2743,18 +2394,13 @@ public int getLinkedRouterApplianceInstancesCount() { } } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - getLinkedRouterApplianceInstances(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getLinkedRouterApplianceInstances(int index) { if (linkedRouterApplianceInstancesBuilder_ == null) { return linkedRouterApplianceInstances_.get(index); } else { @@ -2762,15 +2408,11 @@ public int getLinkedRouterApplianceInstancesCount() { } } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder setLinkedRouterApplianceInstances( int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { @@ -2787,20 +2429,14 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder setLinkedRouterApplianceInstances( - int index, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder - builderForValue) { + int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); linkedRouterApplianceInstances_.set(index, builderForValue.build()); @@ -2811,18 +2447,13 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public Builder addLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { + public Builder addLinkedRouterApplianceInstances(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { if (linkedRouterApplianceInstancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2836,15 +2467,11 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder addLinkedRouterApplianceInstances( int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { @@ -2861,19 +2488,14 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder addLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder - builderForValue) { + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); linkedRouterApplianceInstances_.add(builderForValue.build()); @@ -2884,20 +2506,14 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder addLinkedRouterApplianceInstances( - int index, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder - builderForValue) { + int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); linkedRouterApplianceInstances_.add(index, builderForValue.build()); @@ -2908,20 +2524,14 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder addAllLinkedRouterApplianceInstances( - java.lang.Iterable< - ? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance> - values) { + java.lang.Iterable values) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -2933,15 +2543,11 @@ public Builder addAllLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder clearLinkedRouterApplianceInstances() { if (linkedRouterApplianceInstancesBuilder_ == null) { @@ -2954,15 +2560,11 @@ public Builder clearLinkedRouterApplianceInstances() { return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder removeLinkedRouterApplianceInstances(int index) { if (linkedRouterApplianceInstancesBuilder_ == null) { @@ -2975,54 +2577,39 @@ public Builder removeLinkedRouterApplianceInstances(int index) { return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder - getLinkedRouterApplianceInstancesBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder getLinkedRouterApplianceInstancesBuilder( + int index) { return getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(index); } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder - getLinkedRouterApplianceInstancesOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder getLinkedRouterApplianceInstancesOrBuilder( + int index) { if (linkedRouterApplianceInstancesBuilder_ == null) { - return linkedRouterApplianceInstances_.get(index); - } else { + return linkedRouterApplianceInstances_.get(index); } else { return linkedRouterApplianceInstancesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public java.util.List< - ? extends - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> - getLinkedRouterApplianceInstancesOrBuilderList() { + public java.util.List + getLinkedRouterApplianceInstancesOrBuilderList() { if (linkedRouterApplianceInstancesBuilder_ != null) { return linkedRouterApplianceInstancesBuilder_.getMessageOrBuilderList(); } else { @@ -3030,70 +2617,45 @@ public Builder removeLinkedRouterApplianceInstances(int index) { } } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder - addLinkedRouterApplianceInstancesBuilder() { - return getLinkedRouterApplianceInstancesFieldBuilder() - .addBuilder( - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - .getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder addLinkedRouterApplianceInstancesBuilder() { + return getLinkedRouterApplianceInstancesFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance()); } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder - addLinkedRouterApplianceInstancesBuilder(int index) { - return getLinkedRouterApplianceInstancesFieldBuilder() - .addBuilder( - index, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - .getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder addLinkedRouterApplianceInstancesBuilder( + int index) { + return getLinkedRouterApplianceInstancesFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance()); } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public java.util.List< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder> - getLinkedRouterApplianceInstancesBuilderList() { + public java.util.List + getLinkedRouterApplianceInstancesBuilderList() { return getLinkedRouterApplianceInstancesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> getLinkedRouterApplianceInstancesFieldBuilder() { if (linkedRouterApplianceInstancesBuilder_ == null) { - linkedRouterApplianceInstancesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder>( + linkedRouterApplianceInstancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder>( linkedRouterApplianceInstances_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), @@ -3105,8 +2667,6 @@ public Builder removeLinkedRouterApplianceInstances(int index) { private java.lang.Object uniqueId_ = ""; /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -3114,13 +2674,13 @@ public Builder removeLinkedRouterApplianceInstances(int index) {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -3129,8 +2689,6 @@ public java.lang.String getUniqueId() { } } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -3138,14 +2696,15 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -3153,8 +2712,6 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { } } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -3162,22 +2719,18 @@ public com.google.protobuf.ByteString getUniqueIdBytes() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uniqueId_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -3185,7 +2738,6 @@ public Builder setUniqueId(java.lang.String value) {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -3195,8 +2747,6 @@ public Builder clearUniqueId() { return this; } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -3204,14 +2754,12 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000200; @@ -3221,33 +2769,22 @@ public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3258,37 +2795,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = - com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null - ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED - : result; + com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3302,16 +2826,11 @@ public Builder setState(com.google.cloud.networkconnectivity.v1alpha1.State valu return this; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -3320,9 +2839,9 @@ public Builder clearState() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3332,12 +2851,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.Spoke) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.Spoke) private static final com.google.cloud.networkconnectivity.v1alpha1.Spoke DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.Spoke(); } @@ -3346,27 +2865,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.Spoke getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Spoke parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Spoke parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3381,4 +2900,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.Spoke getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java similarity index 65% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java index 2d619ff4a0d6..eab4db8a11c2 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java @@ -1,80 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface SpokeOrBuilder - extends +public interface SpokeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.Spoke) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time when the Spoke was created.
    * 
@@ -84,32 +55,24 @@ public interface SpokeOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The time when the Spoke was updated.
    * 
@@ -119,8 +82,6 @@ public interface SpokeOrBuilder com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * User-defined labels.
    * 
@@ -129,31 +90,30 @@ public interface SpokeOrBuilder */ int getLabelsCount(); /** - * - * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * User-defined labels.
    * 
@@ -161,254 +121,187 @@ public interface SpokeOrBuilder * map<string, string> labels = 4; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Short description of the spoke resource
    * 
* * string description = 5; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Short description of the spoke resource
    * 
* * string description = 5; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return The hub. */ java.lang.String getHub(); /** - * - * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for hub. */ - com.google.protobuf.ByteString getHubBytes(); + com.google.protobuf.ByteString + getHubBytes(); /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return A list containing the linkedVpnTunnels. */ - java.util.List getLinkedVpnTunnelsList(); + java.util.List + getLinkedVpnTunnelsList(); /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return The count of linkedVpnTunnels. */ int getLinkedVpnTunnelsCount(); /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The linkedVpnTunnels at the given index. */ java.lang.String getLinkedVpnTunnels(int index); /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the linkedVpnTunnels at the given index. */ - com.google.protobuf.ByteString getLinkedVpnTunnelsBytes(int index); + com.google.protobuf.ByteString + getLinkedVpnTunnelsBytes(int index); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return A list containing the linkedInterconnectAttachments. */ - java.util.List getLinkedInterconnectAttachmentsList(); + java.util.List + getLinkedInterconnectAttachmentsList(); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return The count of linkedInterconnectAttachments. */ int getLinkedInterconnectAttachmentsCount(); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The linkedInterconnectAttachments at the given index. */ java.lang.String getLinkedInterconnectAttachments(int index); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the linkedInterconnectAttachments at the given index. */ - com.google.protobuf.ByteString getLinkedInterconnectAttachmentsBytes(int index); + com.google.protobuf.ByteString + getLinkedInterconnectAttachmentsBytes(int index); /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - java.util.List + java.util.List getLinkedRouterApplianceInstancesList(); /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - getLinkedRouterApplianceInstances(int index); + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getLinkedRouterApplianceInstances(int index); /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ int getLinkedRouterApplianceInstancesCount(); /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - java.util.List< - ? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> + java.util.List getLinkedRouterApplianceInstancesOrBuilderList(); /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder - getLinkedRouterApplianceInstancesOrBuilder(int index); + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder getLinkedRouterApplianceInstancesOrBuilder( + int index); /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -416,13 +309,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ java.lang.String getUniqueId(); /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -430,36 +320,26 @@ java.lang.String getLabelsOrDefault(
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString getUniqueIdBytes(); + com.google.protobuf.ByteString + getUniqueIdBytes(); /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.networkconnectivity.v1alpha1.State getState(); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java similarity index 66% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java index 3b3ebc865572..20edd63148a4 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The State enum represents the lifecycle of a Network Connectivity Center
  * resource.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.networkconnectivity.v1alpha1.State}
  */
-public enum State implements com.google.protobuf.ProtocolMessageEnum {
+public enum State
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * No state information available
    * 
@@ -40,8 +22,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
    * The resource's create operation is in progress
    * 
@@ -50,8 +30,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
    * The resource is active
    * 
@@ -60,8 +38,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(2), /** - * - * *
    * The resource's Delete operation is in progress
    * 
@@ -73,8 +49,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * No state information available
    * 
@@ -83,8 +57,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The resource's create operation is in progress
    * 
@@ -93,8 +65,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
    * The resource is active
    * 
@@ -103,8 +73,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 2; /** - * - * *
    * The resource's Delete operation is in progress
    * 
@@ -113,6 +81,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( @@ -137,53 +106,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 ACTIVE; - case 3: - return DELETING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return ACTIVE; + 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 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< + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.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; @@ -199,3 +165,4 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1alpha1.State) } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java index 6f3ae26bff5b..af8c18df237a 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java @@ -1,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Request for [HubService.UpdateHub][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest} */ -public final class UpdateHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) UpdateHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateHubRequest.newBuilder() to construct. private UpdateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateHubRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -80,9 +59,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -90,8 +67,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -100,9 +75,7 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -110,8 +83,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -120,8 +91,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -131,16 +101,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int HUB_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; /** - * - * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ @java.lang.Override @@ -148,49 +113,33 @@ public boolean hasHub() { return hub_ != null; } /** - * - * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } /** - * - * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -206,7 +155,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -215,15 +163,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -239,15 +186,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -256,7 +204,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +215,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -288,10 +236,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHub()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -304,23 +254,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub().equals(other.getHub())) return false; + if (!getHub() + .equals(other.getHub())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,136 +300,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.UpdateHub][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -497,14 +442,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance(); } @@ -519,23 +463,23 @@ public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build(); + result.hub_ = hubBuilder_ == null + ? hub_ + : hubBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -546,39 +490,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest)other); } else { super.mergeFrom(other); return this; @@ -586,9 +529,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -626,31 +567,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getHubFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -660,18 +601,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -680,17 +615,13 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -699,23 +630,17 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -724,8 +649,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -741,8 +665,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -751,10 +673,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -765,8 +687,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -775,14 +695,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -795,8 +714,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -805,8 +722,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -819,8 +735,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -829,8 +743,7 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -838,8 +751,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -848,21 +759,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -871,21 +778,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -893,58 +796,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> - hubBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> hubBuilder_; /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } else { return hubBuilder_.getMessage(); } } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { @@ -960,15 +844,11 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { return this; } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHub( com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder builderForValue) { @@ -982,21 +862,17 @@ public Builder setHub( return this; } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && hub_ != null - && hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + hub_ != null && + hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -1009,15 +885,11 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) return this; } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1030,15 +902,11 @@ public Builder clearHub() { return this; } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000002; @@ -1046,48 +914,36 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() return getHubFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? + com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( - getHub(), getParentForChildren(), isClean()); + hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( + getHub(), + getParentForChildren(), + isClean()); hub_ = null; } return hubBuilder_; @@ -1095,8 +951,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1112,13 +966,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1127,8 +981,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1144,14 +996,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1159,8 +1012,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1176,22 +1027,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1207,7 +1054,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1217,8 +1063,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1234,23 +1078,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1260,43 +1102,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1308,8 +1148,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java similarity index 76% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java index 1a2cf0c696b7..0646b5914e40 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface UpdateHubRequestOrBuilder - extends +public interface UpdateHubRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -34,15 +16,11 @@ public interface UpdateHubRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -51,15 +29,11 @@ public interface UpdateHubRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -68,55 +42,38 @@ public interface UpdateHubRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ boolean hasHub(); /** - * - * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ com.google.cloud.networkconnectivity.v1alpha1.Hub getHub(); /** - * - * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -132,13 +89,10 @@ public interface UpdateHubRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -154,8 +108,8 @@ public interface UpdateHubRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java index 649d740386b8..9cf86439b9e7 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java @@ -1,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Request for [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest} */ -public final class UpdateSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) UpdateSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSpokeRequest.newBuilder() to construct. private UpdateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSpokeRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -80,9 +59,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -90,8 +67,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -100,9 +75,7 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -110,8 +83,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -120,8 +91,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -131,16 +101,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int SPOKE_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; /** - * - * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ @java.lang.Override @@ -148,49 +113,33 @@ public boolean hasSpoke() { return spoke_ != null; } /** - * - * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } /** - * - * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -206,7 +155,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -215,15 +163,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -239,15 +186,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -256,7 +204,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +215,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -288,10 +236,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpoke()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -304,23 +254,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke().equals(other.getSpoke())) return false; + if (!getSpoke() + .equals(other.getSpoke())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,136 +300,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -497,14 +442,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance(); } @@ -519,23 +463,23 @@ public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build(); + result.spoke_ = spokeBuilder_ == null + ? spoke_ + : spokeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -546,50 +490,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other) { + if (other == com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -627,31 +567,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSpokeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -661,18 +601,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -681,17 +615,13 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -700,23 +630,17 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -725,8 +649,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -742,8 +665,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -752,10 +673,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -766,8 +687,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -776,14 +695,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -796,8 +714,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -806,8 +722,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -820,8 +735,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -830,8 +743,7 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -839,8 +751,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -849,21 +759,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -872,21 +778,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -894,58 +796,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> - spokeBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> spokeBuilder_; /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } else { return spokeBuilder_.getMessage(); } } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { @@ -961,15 +844,11 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke valu return this; } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSpoke( com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder builderForValue) { @@ -983,21 +862,17 @@ public Builder setSpoke( return this; } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && spoke_ != null - && spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + spoke_ != null && + spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -1010,15 +885,11 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke va return this; } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1031,15 +902,11 @@ public Builder clearSpoke() { return this; } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000002; @@ -1047,48 +914,36 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuild return getSpokeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? + com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( - getSpoke(), getParentForChildren(), isClean()); + spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( + getSpoke(), + getParentForChildren(), + isClean()); spoke_ = null; } return spokeBuilder_; @@ -1096,8 +951,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1113,13 +966,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1128,8 +981,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1145,14 +996,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1160,8 +1012,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1177,22 +1027,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1208,7 +1054,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1218,8 +1063,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1235,23 +1078,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1261,43 +1102,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1309,8 +1148,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java similarity index 76% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java index 122c9f806e3f..1d98b15275f3 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface UpdateSpokeRequestOrBuilder - extends +public interface UpdateSpokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -34,15 +16,11 @@ public interface UpdateSpokeRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -51,15 +29,11 @@ public interface UpdateSpokeRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -68,55 +42,38 @@ public interface UpdateSpokeRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ boolean hasSpoke(); /** - * - * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke(); /** - * - * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -132,13 +89,10 @@ public interface UpdateSpokeRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -154,8 +108,8 @@ public interface UpdateSpokeRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java From 8227b22573a4cabad0c0042d11e667b254bb0673 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 26 Jan 2023 03:15:57 +0000 Subject: [PATCH 4/6] =?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 --- .../v1/HubServiceClient.java | 0 .../v1/HubServiceSettings.java | 1 - .../v1/PolicyBasedRoutingServiceClient.java | 0 .../v1/PolicyBasedRoutingServiceSettings.java | 1 - .../v1/gapic_metadata.json | 0 .../networkconnectivity/v1/package-info.java | 0 .../stub/GrpcHubServiceCallableFactory.java | 0 .../v1/stub/GrpcHubServiceStub.java | 1 - ...icyBasedRoutingServiceCallableFactory.java | 0 .../GrpcPolicyBasedRoutingServiceStub.java | 1 - .../v1/stub/HubServiceStub.java | 0 .../v1/stub/HubServiceStubSettings.java | 0 .../stub/PolicyBasedRoutingServiceStub.java | 0 ...PolicyBasedRoutingServiceStubSettings.java | 0 .../v1alpha1/HubServiceClient.java | 0 .../v1alpha1/HubServiceSettings.java | 1 - .../v1alpha1/gapic_metadata.json | 0 .../v1alpha1/package-info.java | 0 .../stub/GrpcHubServiceCallableFactory.java | 0 .../v1alpha1/stub/GrpcHubServiceStub.java | 1 - .../v1alpha1/stub/HubServiceStub.java | 0 .../v1alpha1/stub/HubServiceStubSettings.java | 0 .../v1/HubServiceClientTest.java | 0 .../v1/MockHubService.java | 0 .../v1/MockHubServiceImpl.java | 0 .../v1/MockPolicyBasedRoutingService.java | 0 .../v1/MockPolicyBasedRoutingServiceImpl.java | 0 .../PolicyBasedRoutingServiceClientTest.java | 0 .../v1alpha1/HubServiceClientTest.java | 0 .../v1alpha1/MockHubService.java | 0 .../v1alpha1/MockHubServiceImpl.java | 0 .../v1/HubServiceGrpc.java | 1396 +++++ .../v1/PolicyBasedRoutingServiceGrpc.java | 757 +++ .../v1alpha1/HubServiceGrpc.java | 1400 +++++ .../networkconnectivity/v1/CommonProto.java | 102 + .../v1/CreateHubRequest.java | 637 ++- .../v1/CreateHubRequestOrBuilder.java | 73 +- .../v1/CreatePolicyBasedRouteRequest.java | 695 ++- ...reatePolicyBasedRouteRequestOrBuilder.java | 73 +- .../v1/CreateSpokeRequest.java | 645 ++- .../v1/CreateSpokeRequestOrBuilder.java | 73 +- .../v1/DeleteHubRequest.java | 428 +- .../v1/DeleteHubRequestOrBuilder.java | 44 +- .../v1/DeletePolicyBasedRouteRequest.java | 463 +- ...eletePolicyBasedRouteRequestOrBuilder.java | 44 +- .../v1/DeleteSpokeRequest.java | 428 +- .../v1/DeleteSpokeRequestOrBuilder.java | 44 +- .../networkconnectivity/v1/GetHubRequest.java | 356 +- .../v1/GetHubRequestOrBuilder.java | 54 + .../v1/GetPolicyBasedRouteRequest.java | 391 +- .../GetPolicyBasedRouteRequestOrBuilder.java | 54 + .../v1/GetSpokeRequest.java | 356 +- .../v1/GetSpokeRequestOrBuilder.java | 54 + .../cloud/networkconnectivity/v1/Hub.java | 1204 +++-- .../cloud/networkconnectivity/v1/HubName.java | 0 .../networkconnectivity/v1/HubOrBuilder.java | 141 +- .../networkconnectivity/v1/HubProto.java | 532 ++ .../v1/LinkedInterconnectAttachments.java | 531 +- ...inkedInterconnectAttachmentsOrBuilder.java | 56 +- .../v1/LinkedRouterApplianceInstances.java | 697 ++- ...nkedRouterApplianceInstancesOrBuilder.java | 67 +- .../v1/LinkedVpnTunnels.java | 496 +- .../v1/LinkedVpnTunnelsOrBuilder.java | 56 +- .../v1/ListHubsRequest.java | 607 ++- .../v1/ListHubsRequestOrBuilder.java | 65 +- .../v1/ListHubsResponse.java | 590 ++- .../v1/ListHubsResponseOrBuilder.java | 63 +- .../v1/ListPolicyBasedRoutesRequest.java | 642 ++- ...ListPolicyBasedRoutesRequestOrBuilder.java | 65 +- .../v1/ListPolicyBasedRoutesResponse.java | 722 ++- ...istPolicyBasedRoutesResponseOrBuilder.java | 74 +- .../v1/ListSpokesRequest.java | 607 ++- .../v1/ListSpokesRequestOrBuilder.java | 65 +- .../v1/ListSpokesResponse.java | 587 ++- .../v1/ListSpokesResponseOrBuilder.java | 63 +- .../v1/LocationFeature.java | 82 +- .../v1/LocationMetadata.java | 454 +- .../v1/LocationMetadataOrBuilder.java | 51 +- .../networkconnectivity/v1/LocationName.java | 0 .../v1/OperationMetadata.java | 835 +-- .../v1/OperationMetadataOrBuilder.java | 91 +- .../v1/PolicyBasedRoute.java | 4593 +++++++++++------ .../v1/PolicyBasedRouteName.java | 0 .../v1/PolicyBasedRouteOrBuilder.java | 254 +- .../v1/PolicyBasedRoutingProto.java | 349 ++ .../v1/RouterApplianceInstance.java | 423 +- .../v1/RouterApplianceInstanceOrBuilder.java | 36 +- .../networkconnectivity/v1/RoutingVPC.java | 385 +- .../v1/RoutingVPCOrBuilder.java | 34 +- .../cloud/networkconnectivity/v1/Spoke.java | 1648 +++--- .../networkconnectivity/v1/SpokeName.java | 0 .../v1/SpokeOrBuilder.java | 200 +- .../cloud/networkconnectivity/v1/State.java | 96 +- .../v1/UpdateHubRequest.java | 590 ++- .../v1/UpdateHubRequestOrBuilder.java | 64 +- .../v1/UpdateSpokeRequest.java | 598 ++- .../v1/UpdateSpokeRequestOrBuilder.java | 64 +- .../cloud/networkconnectivity/v1/common.proto | 0 .../cloud/networkconnectivity/v1/hub.proto | 0 .../v1/policy_based_routing.proto | 0 .../v1alpha1/CommonProto.java | 94 + .../v1alpha1/CreateHubRequest.java | 662 ++- .../v1alpha1/CreateHubRequestOrBuilder.java | 73 +- .../v1alpha1/CreateSpokeRequest.java | 665 ++- .../v1alpha1/CreateSpokeRequestOrBuilder.java | 73 +- .../v1alpha1/DeleteHubRequest.java | 448 +- .../v1alpha1/DeleteHubRequestOrBuilder.java | 44 +- .../v1alpha1/DeleteSpokeRequest.java | 451 +- .../v1alpha1/DeleteSpokeRequestOrBuilder.java | 44 +- .../v1alpha1/GetHubRequest.java | 356 +- .../v1alpha1/GetHubRequestOrBuilder.java | 54 + .../v1alpha1/GetSpokeRequest.java | 366 +- .../v1alpha1/GetSpokeRequestOrBuilder.java | 54 + .../networkconnectivity/v1alpha1/Hub.java | 1148 ++-- .../networkconnectivity/v1alpha1/HubName.java | 0 .../v1alpha1/HubOrBuilder.java | 139 +- .../v1alpha1/HubProto.java | 460 ++ .../v1alpha1/ListHubsRequest.java | 617 ++- .../v1alpha1/ListHubsRequestOrBuilder.java | 65 +- .../v1alpha1/ListHubsResponse.java | 609 ++- .../v1alpha1/ListHubsResponseOrBuilder.java | 63 +- .../v1alpha1/ListSpokesRequest.java | 630 ++- .../v1alpha1/ListSpokesRequestOrBuilder.java | 65 +- .../v1alpha1/ListSpokesResponse.java | 609 ++- .../v1alpha1/ListSpokesResponseOrBuilder.java | 63 +- .../v1alpha1/LocationName.java | 0 .../v1alpha1/OperationMetadata.java | 858 +-- .../v1alpha1/OperationMetadataOrBuilder.java | 91 +- .../v1alpha1/RouterApplianceInstance.java | 539 +- .../RouterApplianceInstanceOrBuilder.java | 53 +- .../networkconnectivity/v1alpha1/Spoke.java | 1653 +++--- .../v1alpha1/SpokeName.java | 0 .../v1alpha1/SpokeOrBuilder.java | 220 +- .../networkconnectivity/v1alpha1/State.java | 93 +- .../v1alpha1/UpdateHubRequest.java | 615 ++- .../v1alpha1/UpdateHubRequestOrBuilder.java | 64 +- .../v1alpha1/UpdateSpokeRequest.java | 618 ++- .../v1alpha1/UpdateSpokeRequestOrBuilder.java | 64 +- .../networkconnectivity/v1alpha1/common.proto | 0 .../networkconnectivity/v1alpha1/hub.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../hubservice/createhub/AsyncCreateHub.java | 0 .../createhub/AsyncCreateHubLRO.java | 0 .../hubservice/createhub/SyncCreateHub.java | 0 .../SyncCreateHubLocationnameHubString.java | 0 .../SyncCreateHubStringHubString.java | 0 .../createspoke/AsyncCreateSpoke.java | 0 .../createspoke/AsyncCreateSpokeLRO.java | 0 .../createspoke/SyncCreateSpoke.java | 0 ...yncCreateSpokeLocationnameSpokeString.java | 0 .../SyncCreateSpokeStringSpokeString.java | 0 .../hubservice/deletehub/AsyncDeleteHub.java | 0 .../deletehub/AsyncDeleteHubLRO.java | 0 .../hubservice/deletehub/SyncDeleteHub.java | 0 .../deletehub/SyncDeleteHubHubname.java | 0 .../deletehub/SyncDeleteHubString.java | 0 .../deletespoke/AsyncDeleteSpoke.java | 0 .../deletespoke/AsyncDeleteSpokeLRO.java | 0 .../deletespoke/SyncDeleteSpoke.java | 0 .../deletespoke/SyncDeleteSpokeSpokename.java | 0 .../deletespoke/SyncDeleteSpokeString.java | 0 .../v1/hubservice/gethub/AsyncGetHub.java | 0 .../v1/hubservice/gethub/SyncGetHub.java | 0 .../hubservice/gethub/SyncGetHubHubname.java | 0 .../hubservice/gethub/SyncGetHubString.java | 0 .../v1/hubservice/getspoke/AsyncGetSpoke.java | 0 .../v1/hubservice/getspoke/SyncGetSpoke.java | 0 .../getspoke/SyncGetSpokeSpokename.java | 0 .../getspoke/SyncGetSpokeString.java | 0 .../v1/hubservice/listhubs/AsyncListHubs.java | 0 .../listhubs/AsyncListHubsPaged.java | 0 .../v1/hubservice/listhubs/SyncListHubs.java | 0 .../listhubs/SyncListHubsLocationname.java | 0 .../listhubs/SyncListHubsString.java | 0 .../listspokes/AsyncListSpokes.java | 0 .../listspokes/AsyncListSpokesPaged.java | 0 .../hubservice/listspokes/SyncListSpokes.java | 0 .../SyncListSpokesLocationname.java | 0 .../listspokes/SyncListSpokesString.java | 0 .../hubservice/updatehub/AsyncUpdateHub.java | 0 .../updatehub/AsyncUpdateHubLRO.java | 0 .../hubservice/updatehub/SyncUpdateHub.java | 0 .../updatehub/SyncUpdateHubHubFieldmask.java | 0 .../updatespoke/AsyncUpdateSpoke.java | 0 .../updatespoke/AsyncUpdateSpokeLRO.java | 0 .../updatespoke/SyncUpdateSpoke.java | 0 .../SyncUpdateSpokeSpokeFieldmask.java | 0 .../hubservicesettings/gethub/SyncGetHub.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreatePolicyBasedRoute.java | 0 .../AsyncCreatePolicyBasedRouteLRO.java | 0 .../SyncCreatePolicyBasedRoute.java | 0 ...uteLocationnamePolicybasedrouteString.java | 0 ...asedRouteStringPolicybasedrouteString.java | 0 .../AsyncDeletePolicyBasedRoute.java | 0 .../AsyncDeletePolicyBasedRouteLRO.java | 0 .../SyncDeletePolicyBasedRoute.java | 0 ...ePolicyBasedRoutePolicybasedroutename.java | 0 .../SyncDeletePolicyBasedRouteString.java | 0 .../AsyncGetPolicyBasedRoute.java | 0 .../SyncGetPolicyBasedRoute.java | 0 ...tPolicyBasedRoutePolicybasedroutename.java | 0 .../SyncGetPolicyBasedRouteString.java | 0 .../AsyncListPolicyBasedRoutes.java | 0 .../AsyncListPolicyBasedRoutesPaged.java | 0 .../SyncListPolicyBasedRoutes.java | 0 ...SyncListPolicyBasedRoutesLocationname.java | 0 .../SyncListPolicyBasedRoutesString.java | 0 .../SyncGetPolicyBasedRoute.java | 0 .../gethub/SyncGetHub.java | 0 .../SyncGetPolicyBasedRoute.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../hubservice/createhub/AsyncCreateHub.java | 0 .../createhub/AsyncCreateHubLRO.java | 0 .../hubservice/createhub/SyncCreateHub.java | 0 .../SyncCreateHubLocationnameHubString.java | 0 .../SyncCreateHubStringHubString.java | 0 .../createspoke/AsyncCreateSpoke.java | 0 .../createspoke/AsyncCreateSpokeLRO.java | 0 .../createspoke/SyncCreateSpoke.java | 0 ...yncCreateSpokeLocationnameSpokeString.java | 0 .../SyncCreateSpokeStringSpokeString.java | 0 .../hubservice/deletehub/AsyncDeleteHub.java | 0 .../deletehub/AsyncDeleteHubLRO.java | 0 .../hubservice/deletehub/SyncDeleteHub.java | 0 .../deletehub/SyncDeleteHubHubname.java | 0 .../deletehub/SyncDeleteHubString.java | 0 .../deletespoke/AsyncDeleteSpoke.java | 0 .../deletespoke/AsyncDeleteSpokeLRO.java | 0 .../deletespoke/SyncDeleteSpoke.java | 0 .../deletespoke/SyncDeleteSpokeSpokename.java | 0 .../deletespoke/SyncDeleteSpokeString.java | 0 .../hubservice/gethub/AsyncGetHub.java | 0 .../hubservice/gethub/SyncGetHub.java | 0 .../hubservice/gethub/SyncGetHubHubname.java | 0 .../hubservice/gethub/SyncGetHubString.java | 0 .../hubservice/getspoke/AsyncGetSpoke.java | 0 .../hubservice/getspoke/SyncGetSpoke.java | 0 .../getspoke/SyncGetSpokeSpokename.java | 0 .../getspoke/SyncGetSpokeString.java | 0 .../hubservice/listhubs/AsyncListHubs.java | 0 .../listhubs/AsyncListHubsPaged.java | 0 .../hubservice/listhubs/SyncListHubs.java | 0 .../listhubs/SyncListHubsLocationname.java | 0 .../listhubs/SyncListHubsString.java | 0 .../listspokes/AsyncListSpokes.java | 0 .../listspokes/AsyncListSpokesPaged.java | 0 .../hubservice/listspokes/SyncListSpokes.java | 0 .../SyncListSpokesLocationname.java | 0 .../listspokes/SyncListSpokesString.java | 0 .../hubservice/updatehub/AsyncUpdateHub.java | 0 .../updatehub/AsyncUpdateHubLRO.java | 0 .../hubservice/updatehub/SyncUpdateHub.java | 0 .../updatehub/SyncUpdateHubHubFieldmask.java | 0 .../updatespoke/AsyncUpdateSpoke.java | 0 .../updatespoke/AsyncUpdateSpokeLRO.java | 0 .../updatespoke/SyncUpdateSpoke.java | 0 .../SyncUpdateSpokeSpokeFieldmask.java | 0 .../hubservicesettings/gethub/SyncGetHub.java | 0 .../gethub/SyncGetHub.java | 0 .../v1/HubServiceGrpc.java | 1095 ---- .../v1/PolicyBasedRoutingServiceGrpc.java | 566 -- .../networkconnectivity/v1/CommonProto.java | 81 - .../v1/GetHubRequestOrBuilder.java | 29 - .../GetPolicyBasedRouteRequestOrBuilder.java | 29 - .../v1/GetSpokeRequestOrBuilder.java | 29 - .../networkconnectivity/v1/HubProto.java | 477 -- .../v1/PolicyBasedRoutingProto.java | 296 -- .../v1alpha1/HubServiceGrpc.java | 1092 ---- .../v1alpha1/CommonProto.java | 73 - .../v1alpha1/GetHubRequestOrBuilder.java | 29 - .../v1alpha1/GetSpokeRequestOrBuilder.java | 29 - .../v1alpha1/HubProto.java | 408 -- 276 files changed, 27471 insertions(+), 16832 deletions(-) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java (99%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java (99%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java (99%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceCallableFactory.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceStub.java (99%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java (99%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java (99%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingService.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingServiceImpl.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClientTest.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java (100%) create mode 100644 java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java create mode 100644 java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java create mode 100644 java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java (69%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java (69%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequest.java (66%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequestOrBuilder.java (69%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java (68%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java (69%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequest.java (68%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequestOrBuilder.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java (61%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequest.java (59%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.java rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java (61%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java (78%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachments.java (65%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java (64%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java (64%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java (62%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java (68%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java (63%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java (58%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java (72%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequest.java (66%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequestOrBuilder.java (59%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponse.java (68%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponseOrBuilder.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java (58%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java (72%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java (73%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java (62%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java (75%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoute.java (65%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteOrBuilder.java (66%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingProto.java rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java (65%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java (57%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java (66%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java (58%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java (63%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java (69%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java (68%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java (72%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java (77%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java (77%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/policy_based_routing.proto (100%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java (68%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java (68%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java (69%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java (69%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java (63%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java (61%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java (66%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java (67%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequest.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java (59%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java (73%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java (66%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java (59%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java (73%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java (75%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java (63%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java (55%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java (66%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java (65%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java (66%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java (76%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java (76%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRoute.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRouteLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRoute.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteStringPolicybasedrouteString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRoute.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRouteLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoute.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoutePolicybasedroutename.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRouteString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/AsyncGetPolicyBasedRoute.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoute.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoutePolicybasedroutename.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRouteString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutes.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutesPaged.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutes.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesLocationname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservicesettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/policybasedroutingservicestubsettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java (100%) delete mode 100644 owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingProto.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java similarity index 99% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java index 0f54d6e73b8d..8602b8d3a73f 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.networkconnectivity.v1.stub.HubServiceStubSettings; diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java similarity index 99% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java index 6c4da7e49e0d..b88372c68322 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java @@ -28,7 +28,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.networkconnectivity.v1.stub.PolicyBasedRoutingServiceStubSettings; diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java similarity index 99% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java index a4c973ff1360..91b811c5fc87 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java @@ -48,7 +48,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceCallableFactory.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceCallableFactory.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceCallableFactory.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceStub.java similarity index 99% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceStub.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceStub.java index 287e63c97335..db36eab6cc86 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceStub.java @@ -39,7 +39,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/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java similarity index 99% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java index b824a3ceabcd..89775db66f05 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.networkconnectivity.v1alpha1.stub.HubServiceStubSettings; diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java similarity index 99% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java index fffc277454e3..8298968354e6 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java @@ -49,7 +49,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/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingService.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingService.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingService.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingService.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingServiceImpl.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingServiceImpl.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingServiceImpl.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingServiceImpl.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClientTest.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClientTest.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClientTest.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java new file mode 100644 index 000000000000..2c1620fb084e --- /dev/null +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java @@ -0,0 +1,1396 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networkconnectivity.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Network Connectivity Center is a hub-and-spoke abstraction for network
+ * connectivity management in Google Cloud. It reduces operational complexity
+ * through a simple, centralized connectivity management model.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networkconnectivity/v1/hub.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class HubServiceGrpc { + + private HubServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1.HubService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1.ListHubsResponse> + getListHubsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListHubs", + requestType = com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1.ListHubsResponse> + getListHubsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1.ListHubsResponse> + getListHubsMethod; + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + HubServiceGrpc.getListHubsMethod = + getListHubsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListHubsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListHubsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) + .build(); + } + } + } + return getListHubsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetHubRequest, + com.google.cloud.networkconnectivity.v1.Hub> + getGetHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetHub", + requestType = com.google.cloud.networkconnectivity.v1.GetHubRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.Hub.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetHubRequest, + com.google.cloud.networkconnectivity.v1.Hub> + getGetHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetHubRequest, + com.google.cloud.networkconnectivity.v1.Hub> + getGetHubMethod; + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + HubServiceGrpc.getGetHubMethod = + getGetHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.GetHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) + .build(); + } + } + } + return getGetHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateHubRequest, + com.google.longrunning.Operation> + getCreateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateHub", + requestType = com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateHubRequest, + com.google.longrunning.Operation> + getCreateHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateHubRequest, + com.google.longrunning.Operation> + getCreateHubMethod; + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + HubServiceGrpc.getCreateHubMethod = + getCreateHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.CreateHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) + .build(); + } + } + } + return getCreateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateHubRequest, + com.google.longrunning.Operation> + getUpdateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateHub", + requestType = com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateHubRequest, + com.google.longrunning.Operation> + getUpdateHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateHubRequest, + com.google.longrunning.Operation> + getUpdateHubMethod; + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + HubServiceGrpc.getUpdateHubMethod = + getUpdateHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) + .build(); + } + } + } + return getUpdateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteHubRequest, + com.google.longrunning.Operation> + getDeleteHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteHub", + requestType = com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteHubRequest, + com.google.longrunning.Operation> + getDeleteHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteHubRequest, + com.google.longrunning.Operation> + getDeleteHubMethod; + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + HubServiceGrpc.getDeleteHubMethod = + getDeleteHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) + .build(); + } + } + } + return getDeleteHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1.ListSpokesResponse> + getListSpokesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSpokes", + requestType = com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1.ListSpokesResponse> + getListSpokesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1.ListSpokesResponse> + getListSpokesMethod; + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + HubServiceGrpc.getListSpokesMethod = + getListSpokesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListSpokesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) + .build(); + } + } + } + return getListSpokesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1.Spoke> + getGetSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSpoke", + requestType = com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.Spoke.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1.Spoke> + getGetSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1.Spoke> + getGetSpokeMethod; + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + HubServiceGrpc.getGetSpokeMethod = + getGetSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) + .build(); + } + } + } + return getGetSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, + com.google.longrunning.Operation> + getCreateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", + requestType = com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, + com.google.longrunning.Operation> + getCreateSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, + com.google.longrunning.Operation> + getCreateSpokeMethod; + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + HubServiceGrpc.getCreateSpokeMethod = + getCreateSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) + .build(); + } + } + } + return getCreateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, + com.google.longrunning.Operation> + getUpdateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", + requestType = com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, + com.google.longrunning.Operation> + getUpdateSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, + com.google.longrunning.Operation> + getUpdateSpokeMethod; + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + HubServiceGrpc.getUpdateSpokeMethod = + getUpdateSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) + .build(); + } + } + } + return getUpdateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, + com.google.longrunning.Operation> + getDeleteSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", + requestType = com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, + com.google.longrunning.Operation> + getDeleteSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, + com.google.longrunning.Operation> + getDeleteSpokeMethod; + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + HubServiceGrpc.getDeleteSpokeMethod = + getDeleteSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) + .build(); + } + } + } + return getDeleteSpokeMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static HubServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + }; + return HubServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static HubServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + }; + return HubServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static HubServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + }; + return HubServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public abstract static class HubServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists the Network Connectivity Center hubs associated with a given project.
+     * 
+ */ + public void listHubs( + com.google.cloud.networkconnectivity.v1.ListHubsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details about a Network Connectivity Center hub.
+     * 
+ */ + public void getHub( + com.google.cloud.networkconnectivity.v1.GetHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Network Connectivity Center hub in the specified project.
+     * 
+ */ + public void createHub( + com.google.cloud.networkconnectivity.v1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the description and/or labels of a Network Connectivity Center
+     * hub.
+     * 
+ */ + public void updateHub( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a Network Connectivity Center hub.
+     * 
+ */ + public void deleteHub( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the Network Connectivity Center spokes in a specified project and
+     * location.
+     * 
+ */ + public void listSpokes( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details about a Network Connectivity Center spoke.
+     * 
+ */ + public void getSpoke( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a Network Connectivity Center spoke.
+     * 
+ */ + public void createSpoke( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSpokeMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a Network Connectivity Center spoke.
+     * 
+ */ + public void updateSpoke( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSpokeMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a Network Connectivity Center spoke.
+     * 
+ */ + public void deleteSpoke( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSpokeMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListHubsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1.ListHubsResponse>( + this, METHODID_LIST_HUBS))) + .addMethod( + getGetHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.GetHubRequest, + com.google.cloud.networkconnectivity.v1.Hub>(this, METHODID_GET_HUB))) + .addMethod( + getCreateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.CreateHubRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_HUB))) + .addMethod( + getUpdateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.UpdateHubRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_HUB))) + .addMethod( + getDeleteHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.DeleteHubRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_HUB))) + .addMethod( + getListSpokesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1.ListSpokesResponse>( + this, METHODID_LIST_SPOKES))) + .addMethod( + getGetSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1.Spoke>(this, METHODID_GET_SPOKE))) + .addMethod( + getCreateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_SPOKE))) + .addMethod( + getUpdateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_SPOKE))) + .addMethod( + getDeleteSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_SPOKE))) + .build(); + } + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { + private HubServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists the Network Connectivity Center hubs associated with a given project.
+     * 
+ */ + public void listHubs( + com.google.cloud.networkconnectivity.v1.ListHubsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets details about a Network Connectivity Center hub.
+     * 
+ */ + public void getHub( + com.google.cloud.networkconnectivity.v1.GetHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new Network Connectivity Center hub in the specified project.
+     * 
+ */ + public void createHub( + com.google.cloud.networkconnectivity.v1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates the description and/or labels of a Network Connectivity Center
+     * hub.
+     * 
+ */ + public void updateHub( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes a Network Connectivity Center hub.
+     * 
+ */ + public void deleteHub( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists the Network Connectivity Center spokes in a specified project and
+     * location.
+     * 
+ */ + public void listSpokes( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets details about a Network Connectivity Center spoke.
+     * 
+ */ + public void getSpoke( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a Network Connectivity Center spoke.
+     * 
+ */ + public void createSpoke( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a Network Connectivity Center spoke.
+     * 
+ */ + public void updateSpoke( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a Network Connectivity Center spoke.
+     * 
+ */ + public void deleteSpoke( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static final class HubServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private HubServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists the Network Connectivity Center hubs associated with a given project.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.ListHubsResponse listHubs( + com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListHubsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about a Network Connectivity Center hub.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.Hub getHub( + com.google.cloud.networkconnectivity.v1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Network Connectivity Center hub in the specified project.
+     * 
+ */ + public com.google.longrunning.Operation createHub( + com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the description and/or labels of a Network Connectivity Center
+     * hub.
+     * 
+ */ + public com.google.longrunning.Operation updateHub( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a Network Connectivity Center hub.
+     * 
+ */ + public com.google.longrunning.Operation deleteHub( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the Network Connectivity Center spokes in a specified project and
+     * location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.ListSpokesResponse listSpokes( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSpokesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.Spoke getSpoke( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSpokeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.longrunning.Operation createSpoke( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSpokeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.longrunning.Operation updateSpoke( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.longrunning.Operation deleteSpoke( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static final class HubServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private HubServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists the Network Connectivity Center hubs associated with a given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.ListHubsResponse> + listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details about a Network Connectivity Center hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.Hub> + getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Network Connectivity Center hub in the specified project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the description and/or labels of a Network Connectivity Center
+     * hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a Network Connectivity Center hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the Network Connectivity Center spokes in a specified project and
+     * location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.ListSpokesResponse> + listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details about a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.Spoke> + getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_HUBS = 0; + private static final int METHODID_GET_HUB = 1; + private static final int METHODID_CREATE_HUB = 2; + private static final int METHODID_UPDATE_HUB = 3; + private static final int METHODID_DELETE_HUB = 4; + private static final int METHODID_LIST_SPOKES = 5; + private static final int METHODID_GET_SPOKE = 6; + private static final int METHODID_CREATE_SPOKE = 7; + private static final int METHODID_UPDATE_SPOKE = 8; + private static final int METHODID_DELETE_SPOKE = 9; + + 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 HubServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(HubServiceImplBase 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_HUBS: + serviceImpl.listHubs( + (com.google.cloud.networkconnectivity.v1.ListHubsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.ListHubsResponse>) + responseObserver); + break; + case METHODID_GET_HUB: + serviceImpl.getHub( + (com.google.cloud.networkconnectivity.v1.GetHubRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_HUB: + serviceImpl.createHub( + (com.google.cloud.networkconnectivity.v1.CreateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_HUB: + serviceImpl.updateHub( + (com.google.cloud.networkconnectivity.v1.UpdateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_HUB: + serviceImpl.deleteHub( + (com.google.cloud.networkconnectivity.v1.DeleteHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SPOKES: + serviceImpl.listSpokes( + (com.google.cloud.networkconnectivity.v1.ListSpokesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.ListSpokesResponse>) + responseObserver); + break; + case METHODID_GET_SPOKE: + serviceImpl.getSpoke( + (com.google.cloud.networkconnectivity.v1.GetSpokeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_SPOKE: + serviceImpl.createSpoke( + (com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SPOKE: + serviceImpl.updateSpoke( + (com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SPOKE: + serviceImpl.deleteSpoke( + (com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + HubServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("HubService"); + } + } + + private static final class HubServiceFileDescriptorSupplier + extends HubServiceBaseDescriptorSupplier { + HubServiceFileDescriptorSupplier() {} + } + + private static final class HubServiceMethodDescriptorSupplier + extends HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) + .addMethod(getListHubsMethod()) + .addMethod(getGetHubMethod()) + .addMethod(getCreateHubMethod()) + .addMethod(getUpdateHubMethod()) + .addMethod(getDeleteHubMethod()) + .addMethod(getListSpokesMethod()) + .addMethod(getGetSpokeMethod()) + .addMethod(getCreateSpokeMethod()) + .addMethod(getUpdateSpokeMethod()) + .addMethod(getDeleteSpokeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java new file mode 100644 index 000000000000..40eca2fa82af --- /dev/null +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java @@ -0,0 +1,757 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networkconnectivity.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Policy-Based Routing allows GCP customers to specify flexibile routing
+ * policies for Layer 4 traffic traversing through the connected service.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networkconnectivity/v1/policy_based_routing.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class PolicyBasedRoutingServiceGrpc { + + private PolicyBasedRoutingServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest, + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> + getListPolicyBasedRoutesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPolicyBasedRoutes", + requestType = com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest, + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> + getListPolicyBasedRoutesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest, + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> + getListPolicyBasedRoutesMethod; + if ((getListPolicyBasedRoutesMethod = + PolicyBasedRoutingServiceGrpc.getListPolicyBasedRoutesMethod) + == null) { + synchronized (PolicyBasedRoutingServiceGrpc.class) { + if ((getListPolicyBasedRoutesMethod = + PolicyBasedRoutingServiceGrpc.getListPolicyBasedRoutesMethod) + == null) { + PolicyBasedRoutingServiceGrpc.getListPolicyBasedRoutesMethod = + getListPolicyBasedRoutesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListPolicyBasedRoutes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new PolicyBasedRoutingServiceMethodDescriptorSupplier( + "ListPolicyBasedRoutes")) + .build(); + } + } + } + return getListPolicyBasedRoutesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute> + getGetPolicyBasedRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPolicyBasedRoute", + requestType = com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute> + getGetPolicyBasedRouteMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute> + getGetPolicyBasedRouteMethod; + if ((getGetPolicyBasedRouteMethod = PolicyBasedRoutingServiceGrpc.getGetPolicyBasedRouteMethod) + == null) { + synchronized (PolicyBasedRoutingServiceGrpc.class) { + if ((getGetPolicyBasedRouteMethod = + PolicyBasedRoutingServiceGrpc.getGetPolicyBasedRouteMethod) + == null) { + PolicyBasedRoutingServiceGrpc.getGetPolicyBasedRouteMethod = + getGetPolicyBasedRouteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetPolicyBasedRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute + .getDefaultInstance())) + .setSchemaDescriptor( + new PolicyBasedRoutingServiceMethodDescriptorSupplier( + "GetPolicyBasedRoute")) + .build(); + } + } + } + return getGetPolicyBasedRouteMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest, + com.google.longrunning.Operation> + getCreatePolicyBasedRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePolicyBasedRoute", + requestType = com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest, + com.google.longrunning.Operation> + getCreatePolicyBasedRouteMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest, + com.google.longrunning.Operation> + getCreatePolicyBasedRouteMethod; + if ((getCreatePolicyBasedRouteMethod = + PolicyBasedRoutingServiceGrpc.getCreatePolicyBasedRouteMethod) + == null) { + synchronized (PolicyBasedRoutingServiceGrpc.class) { + if ((getCreatePolicyBasedRouteMethod = + PolicyBasedRoutingServiceGrpc.getCreatePolicyBasedRouteMethod) + == null) { + PolicyBasedRoutingServiceGrpc.getCreatePolicyBasedRouteMethod = + getCreatePolicyBasedRouteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreatePolicyBasedRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new PolicyBasedRoutingServiceMethodDescriptorSupplier( + "CreatePolicyBasedRoute")) + .build(); + } + } + } + return getCreatePolicyBasedRouteMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest, + com.google.longrunning.Operation> + getDeletePolicyBasedRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePolicyBasedRoute", + requestType = com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest, + com.google.longrunning.Operation> + getDeletePolicyBasedRouteMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest, + com.google.longrunning.Operation> + getDeletePolicyBasedRouteMethod; + if ((getDeletePolicyBasedRouteMethod = + PolicyBasedRoutingServiceGrpc.getDeletePolicyBasedRouteMethod) + == null) { + synchronized (PolicyBasedRoutingServiceGrpc.class) { + if ((getDeletePolicyBasedRouteMethod = + PolicyBasedRoutingServiceGrpc.getDeletePolicyBasedRouteMethod) + == null) { + PolicyBasedRoutingServiceGrpc.getDeletePolicyBasedRouteMethod = + getDeletePolicyBasedRouteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeletePolicyBasedRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new PolicyBasedRoutingServiceMethodDescriptorSupplier( + "DeletePolicyBasedRoute")) + .build(); + } + } + } + return getDeletePolicyBasedRouteMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static PolicyBasedRoutingServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PolicyBasedRoutingServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PolicyBasedRoutingServiceStub(channel, callOptions); + } + }; + return PolicyBasedRoutingServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static PolicyBasedRoutingServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PolicyBasedRoutingServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PolicyBasedRoutingServiceBlockingStub(channel, callOptions); + } + }; + return PolicyBasedRoutingServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static PolicyBasedRoutingServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PolicyBasedRoutingServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PolicyBasedRoutingServiceFutureStub(channel, callOptions); + } + }; + return PolicyBasedRoutingServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Policy-Based Routing allows GCP customers to specify flexibile routing
+   * policies for Layer 4 traffic traversing through the connected service.
+   * 
+ */ + public abstract static class PolicyBasedRoutingServiceImplBase + implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists PolicyBasedRoutes in a given project and location.
+     * 
+ */ + public void listPolicyBasedRoutes( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPolicyBasedRoutesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single PolicyBasedRoute.
+     * 
+ */ + public void getPolicyBasedRoute( + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPolicyBasedRouteMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new PolicyBasedRoute in a given project and location.
+     * 
+ */ + public void createPolicyBasedRoute( + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePolicyBasedRouteMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single PolicyBasedRoute.
+     * 
+ */ + public void deletePolicyBasedRoute( + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePolicyBasedRouteMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListPolicyBasedRoutesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest, + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse>( + this, METHODID_LIST_POLICY_BASED_ROUTES))) + .addMethod( + getGetPolicyBasedRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute>( + this, METHODID_GET_POLICY_BASED_ROUTE))) + .addMethod( + getCreatePolicyBasedRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_POLICY_BASED_ROUTE))) + .addMethod( + getDeletePolicyBasedRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_POLICY_BASED_ROUTE))) + .build(); + } + } + + /** + * + * + *
+   * Policy-Based Routing allows GCP customers to specify flexibile routing
+   * policies for Layer 4 traffic traversing through the connected service.
+   * 
+ */ + public static final class PolicyBasedRoutingServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private PolicyBasedRoutingServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PolicyBasedRoutingServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PolicyBasedRoutingServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists PolicyBasedRoutes in a given project and location.
+     * 
+ */ + public void listPolicyBasedRoutes( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPolicyBasedRoutesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single PolicyBasedRoute.
+     * 
+ */ + public void getPolicyBasedRoute( + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPolicyBasedRouteMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new PolicyBasedRoute in a given project and location.
+     * 
+ */ + public void createPolicyBasedRoute( + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePolicyBasedRouteMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single PolicyBasedRoute.
+     * 
+ */ + public void deletePolicyBasedRoute( + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePolicyBasedRouteMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Policy-Based Routing allows GCP customers to specify flexibile routing
+   * policies for Layer 4 traffic traversing through the connected service.
+   * 
+ */ + public static final class PolicyBasedRoutingServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private PolicyBasedRoutingServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PolicyBasedRoutingServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PolicyBasedRoutingServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists PolicyBasedRoutes in a given project and location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse + listPolicyBasedRoutes( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPolicyBasedRoutesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single PolicyBasedRoute.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoute( + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPolicyBasedRouteMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new PolicyBasedRoute in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createPolicyBasedRoute( + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePolicyBasedRouteMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single PolicyBasedRoute.
+     * 
+ */ + public com.google.longrunning.Operation deletePolicyBasedRoute( + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePolicyBasedRouteMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Policy-Based Routing allows GCP customers to specify flexibile routing
+   * policies for Layer 4 traffic traversing through the connected service.
+   * 
+ */ + public static final class PolicyBasedRoutingServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private PolicyBasedRoutingServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PolicyBasedRoutingServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PolicyBasedRoutingServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists PolicyBasedRoutes in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> + listPolicyBasedRoutes( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPolicyBasedRoutesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single PolicyBasedRoute.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute> + getPolicyBasedRoute( + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPolicyBasedRouteMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new PolicyBasedRoute in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createPolicyBasedRoute( + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePolicyBasedRouteMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single PolicyBasedRoute.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deletePolicyBasedRoute( + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePolicyBasedRouteMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_POLICY_BASED_ROUTES = 0; + private static final int METHODID_GET_POLICY_BASED_ROUTE = 1; + private static final int METHODID_CREATE_POLICY_BASED_ROUTE = 2; + private static final int METHODID_DELETE_POLICY_BASED_ROUTE = 3; + + 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 PolicyBasedRoutingServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(PolicyBasedRoutingServiceImplBase 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_POLICY_BASED_ROUTES: + serviceImpl.listPolicyBasedRoutes( + (com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse>) + responseObserver); + break; + case METHODID_GET_POLICY_BASED_ROUTE: + serviceImpl.getPolicyBasedRoute( + (com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute>) + responseObserver); + break; + case METHODID_CREATE_POLICY_BASED_ROUTE: + serviceImpl.createPolicyBasedRoute( + (com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_POLICY_BASED_ROUTE: + serviceImpl.deletePolicyBasedRoute( + (com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) 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 PolicyBasedRoutingServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + PolicyBasedRoutingServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("PolicyBasedRoutingService"); + } + } + + private static final class PolicyBasedRoutingServiceFileDescriptorSupplier + extends PolicyBasedRoutingServiceBaseDescriptorSupplier { + PolicyBasedRoutingServiceFileDescriptorSupplier() {} + } + + private static final class PolicyBasedRoutingServiceMethodDescriptorSupplier + extends PolicyBasedRoutingServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + PolicyBasedRoutingServiceMethodDescriptorSupplier(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 (PolicyBasedRoutingServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PolicyBasedRoutingServiceFileDescriptorSupplier()) + .addMethod(getListPolicyBasedRoutesMethod()) + .addMethod(getGetPolicyBasedRouteMethod()) + .addMethod(getCreatePolicyBasedRouteMethod()) + .addMethod(getDeletePolicyBasedRouteMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java new file mode 100644 index 000000000000..aae81be9d5c9 --- /dev/null +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java @@ -0,0 +1,1400 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networkconnectivity.v1alpha1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Network Connectivity Center is a hub-and-spoke abstraction for
+ * network connectivity management in Google Cloud. It reduces
+ * operational complexity through a simple, centralized connectivity management
+ * model.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networkconnectivity/v1alpha1/hub.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class HubServiceGrpc { + + private HubServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1alpha1.HubService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> + getListHubsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListHubs", + requestType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> + getListHubsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> + getListHubsMethod; + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + HubServiceGrpc.getListHubsMethod = + getListHubsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) + .build(); + } + } + } + return getListHubsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, + com.google.cloud.networkconnectivity.v1alpha1.Hub> + getGetHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.Hub.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, + com.google.cloud.networkconnectivity.v1alpha1.Hub> + getGetHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, + com.google.cloud.networkconnectivity.v1alpha1.Hub> + getGetHubMethod; + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + HubServiceGrpc.getGetHubMethod = + getGetHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.Hub + .getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) + .build(); + } + } + } + return getGetHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, + com.google.longrunning.Operation> + getCreateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, + com.google.longrunning.Operation> + getCreateHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, + com.google.longrunning.Operation> + getCreateHubMethod; + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + HubServiceGrpc.getCreateHubMethod = + getCreateHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) + .build(); + } + } + } + return getCreateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, + com.google.longrunning.Operation> + getUpdateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, + com.google.longrunning.Operation> + getUpdateHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, + com.google.longrunning.Operation> + getUpdateHubMethod; + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + HubServiceGrpc.getUpdateHubMethod = + getUpdateHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) + .build(); + } + } + } + return getUpdateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, + com.google.longrunning.Operation> + getDeleteHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, + com.google.longrunning.Operation> + getDeleteHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, + com.google.longrunning.Operation> + getDeleteHubMethod; + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + HubServiceGrpc.getDeleteHubMethod = + getDeleteHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) + .build(); + } + } + } + return getDeleteHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> + getListSpokesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSpokes", + requestType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> + getListSpokesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> + getListSpokesMethod; + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + HubServiceGrpc.getListSpokesMethod = + getListSpokesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) + .build(); + } + } + } + return getListSpokesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1alpha1.Spoke> + getGetSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1alpha1.Spoke> + getGetSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1alpha1.Spoke> + getGetSpokeMethod; + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + HubServiceGrpc.getGetSpokeMethod = + getGetSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.Spoke + .getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) + .build(); + } + } + } + return getGetSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, + com.google.longrunning.Operation> + getCreateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, + com.google.longrunning.Operation> + getCreateSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, + com.google.longrunning.Operation> + getCreateSpokeMethod; + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + HubServiceGrpc.getCreateSpokeMethod = + getCreateSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) + .build(); + } + } + } + return getCreateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, + com.google.longrunning.Operation> + getUpdateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, + com.google.longrunning.Operation> + getUpdateSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, + com.google.longrunning.Operation> + getUpdateSpokeMethod; + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + HubServiceGrpc.getUpdateSpokeMethod = + getUpdateSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) + .build(); + } + } + } + return getUpdateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, + com.google.longrunning.Operation> + getDeleteSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, + com.google.longrunning.Operation> + getDeleteSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, + com.google.longrunning.Operation> + getDeleteSpokeMethod; + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + HubServiceGrpc.getDeleteSpokeMethod = + getDeleteSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) + .build(); + } + } + } + return getDeleteSpokeMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static HubServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + }; + return HubServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static HubServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + }; + return HubServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static HubServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + }; + return HubServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public abstract static class HubServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public void listHubs( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Hub.
+     * 
+ */ + public void getHub( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public void createHub( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public void updateHub( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Hub.
+     * 
+ */ + public void deleteHub( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public void listSpokes( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public void getSpoke( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public void createSpoke( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSpokeMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public void updateSpoke( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSpokeMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Spoke.
+     * 
+ */ + public void deleteSpoke( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSpokeMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListHubsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>( + this, METHODID_LIST_HUBS))) + .addMethod( + getGetHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, + com.google.cloud.networkconnectivity.v1alpha1.Hub>(this, METHODID_GET_HUB))) + .addMethod( + getCreateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_HUB))) + .addMethod( + getUpdateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_HUB))) + .addMethod( + getDeleteHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_HUB))) + .addMethod( + getListSpokesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>( + this, METHODID_LIST_SPOKES))) + .addMethod( + getGetSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1alpha1.Spoke>( + this, METHODID_GET_SPOKE))) + .addMethod( + getCreateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_SPOKE))) + .addMethod( + getUpdateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_SPOKE))) + .addMethod( + getDeleteSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_SPOKE))) + .build(); + } + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { + private HubServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public void listHubs( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Hub.
+     * 
+ */ + public void getHub( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public void createHub( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public void updateHub( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes a single Hub.
+     * 
+ */ + public void deleteHub( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public void listSpokes( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public void getSpoke( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public void createSpoke( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public void updateSpoke( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Spoke.
+     * 
+ */ + public void deleteSpoke( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static final class HubServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private HubServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse listHubs( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListHubsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Hub.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createHub( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public com.google.longrunning.Operation updateHub( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Hub.
+     * 
+ */ + public com.google.longrunning.Operation deleteHub( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse listSpokes( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSpokesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSpokeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createSpoke( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSpokeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public com.google.longrunning.Operation updateSpoke( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Spoke.
+     * 
+ */ + public com.google.longrunning.Operation deleteSpoke( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static final class HubServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private HubServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> + listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1alpha1.Hub> + getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> + listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1alpha1.Spoke> + getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_HUBS = 0; + private static final int METHODID_GET_HUB = 1; + private static final int METHODID_CREATE_HUB = 2; + private static final int METHODID_UPDATE_HUB = 3; + private static final int METHODID_DELETE_HUB = 4; + private static final int METHODID_LIST_SPOKES = 5; + private static final int METHODID_GET_SPOKE = 6; + private static final int METHODID_CREATE_SPOKE = 7; + private static final int METHODID_UPDATE_SPOKE = 8; + private static final int METHODID_DELETE_SPOKE = 9; + + 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 HubServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(HubServiceImplBase 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_HUBS: + serviceImpl.listHubs( + (com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>) + responseObserver); + break; + case METHODID_GET_HUB: + serviceImpl.getHub( + (com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_HUB: + serviceImpl.createHub( + (com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_HUB: + serviceImpl.updateHub( + (com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_HUB: + serviceImpl.deleteHub( + (com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SPOKES: + serviceImpl.listSpokes( + (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>) + responseObserver); + break; + case METHODID_GET_SPOKE: + serviceImpl.getSpoke( + (com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_SPOKE: + serviceImpl.createSpoke( + (com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SPOKE: + serviceImpl.updateSpoke( + (com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SPOKE: + serviceImpl.deleteSpoke( + (com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + HubServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("HubService"); + } + } + + private static final class HubServiceFileDescriptorSupplier + extends HubServiceBaseDescriptorSupplier { + HubServiceFileDescriptorSupplier() {} + } + + private static final class HubServiceMethodDescriptorSupplier + extends HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) + .addMethod(getListHubsMethod()) + .addMethod(getGetHubMethod()) + .addMethod(getCreateHubMethod()) + .addMethod(getUpdateHubMethod()) + .addMethod(getDeleteHubMethod()) + .addMethod(getListSpokesMethod()) + .addMethod(getGetSpokeMethod()) + .addMethod(getCreateSpokeMethod()) + .addMethod(getUpdateSpokeMethod()) + .addMethod(getDeleteSpokeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java new file mode 100644 index 000000000000..721a7326cff4 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java @@ -0,0 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/common.proto + +package com.google.cloud.networkconnectivity.v1; + +public final class CommonProto { + private CommonProto() {} + + 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_networkconnectivity_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/networkconnectivity/v1/co" + + "mmon.proto\022#google.cloud.networkconnecti" + + "vity.v1\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\032\037google/prot" + + "obuf/timestamp.proto\"\200\002\n\021OperationMetada" + + "ta\0224\n\013create_time\030\001 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.goo" + + "gle.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_me" + + "ssage\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellati" + + "on\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003B" + + "\327\003\n\'com.google.cloud.networkconnectivity" + + ".v1B\013CommonProtoP\001ZVgoogle.golang.org/ge" + + "nproto/googleapis/cloud/networkconnectiv" + + "ity/v1;networkconnectivity\252\002#Google.Clou" + + "d.NetworkConnectivity.V1\312\002#Google\\Cloud\\" + + "NetworkConnectivity\\V1\352\002&Google::Cloud::" + + "NetworkConnectivity::V1\352Az\n-compute.goog" + + "leapis.com/InterconnectAttachment\022Iproje" + + "cts/{project}/regions/{region}/interconn" + + "ectAttachments/{resource_id}\352AR\n\036compute" + + ".googleapis.com/Network\0220projects/{proje" + + "ct}/global/networks/{resource_id}b\006proto" + + "3" + }; + 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.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceDefinition); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java similarity index 69% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java index 0cc58883b141..4ed8eff83002 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Request for
  * [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateHubRequest}
  */
-public final class CreateHubRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateHubRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.CreateHubRequest)
     CreateHubRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateHubRequest.newBuilder() to construct.
   private CreateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateHubRequest() {
     parent_ = "";
     hubId_ = "";
@@ -29,38 +47,45 @@ private CreateHubRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateHubRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.CreateHubRequest.class,
+            com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. The parent resource.
    * 
* - * string parent = 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 @@ -69,29 +94,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 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 { @@ -100,14 +127,18 @@ public java.lang.String getParent() { } public static final int HUB_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object hubId_ = ""; /** + * + * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hubId. */ @java.lang.Override @@ -116,29 +147,29 @@ public java.lang.String getHubId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; } } /** + * + * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hubId. */ @java.lang.Override - public com.google.protobuf.ByteString - getHubIdBytes() { + public com.google.protobuf.ByteString getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hubId_ = b; return b; } else { @@ -149,11 +180,16 @@ public java.lang.String getHubId() { public static final int HUB_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1.Hub hub_; /** + * + * *
    * Required. The initial values for a new hub.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ @java.lang.Override @@ -161,11 +197,16 @@ public boolean hasHub() { return hub_ != null; } /** + * + * *
    * Required. The initial values for a new hub.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ @java.lang.Override @@ -173,11 +214,15 @@ public com.google.cloud.networkconnectivity.v1.Hub getHub() { return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } /** + * + * *
    * Required. The initial values for a new hub.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { @@ -185,9 +230,12 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -204,6 +252,7 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -212,14 +261,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -236,16 +286,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -254,6 +303,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +315,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -295,8 +344,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hubId_); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHub()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -309,24 +357,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.networkconnectivity.v1.CreateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.CreateHubRequest other = (com.google.cloud.networkconnectivity.v1.CreateHubRequest) obj; + com.google.cloud.networkconnectivity.v1.CreateHubRequest other = + (com.google.cloud.networkconnectivity.v1.CreateHubRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getHubId() - .equals(other.getHubId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getHubId().equals(other.getHubId())) return false; if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub() - .equals(other.getHub())) return false; + if (!getHub().equals(other.getHub())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -354,96 +399,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.CreateHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.CreateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub]
@@ -452,33 +505,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateHubRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.CreateHubRequest)
       com.google.cloud.networkconnectivity.v1.CreateHubRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.CreateHubRequest.class,
+              com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.CreateHubRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -495,9 +547,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
     }
 
     @java.lang.Override
@@ -516,8 +568,11 @@ public com.google.cloud.networkconnectivity.v1.CreateHubRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.CreateHubRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.CreateHubRequest result = new com.google.cloud.networkconnectivity.v1.CreateHubRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.CreateHubRequest result =
+          new com.google.cloud.networkconnectivity.v1.CreateHubRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -531,9 +586,7 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateHubRequ
         result.hubId_ = hubId_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.hub_ = hubBuilder_ == null
-            ? hub_
-            : hubBuilder_.build();
+        result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.requestId_ = requestId_;
@@ -544,38 +597,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateHubRequ
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.CreateHubRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateHubRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateHubRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -583,7 +637,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.CreateHubRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.CreateHubRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.CreateHubRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -628,34 +683,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              hubId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getHubFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              requestId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                hubId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                requestId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -665,22 +723,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The parent resource.
      * 
* - * string parent = 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; @@ -689,20 +752,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource.
      * 
* - * string parent = 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 { @@ -710,28 +776,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource.
      * 
* - * string 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() { @@ -741,17 +818,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -761,18 +844,20 @@ public Builder setParentBytes( private java.lang.Object hubId_ = ""; /** + * + * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hubId. */ public java.lang.String getHubId() { java.lang.Object ref = hubId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; @@ -781,20 +866,21 @@ public java.lang.String getHubId() { } } /** + * + * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hubId. */ - public com.google.protobuf.ByteString - getHubIdBytes() { + public com.google.protobuf.ByteString getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hubId_ = b; return b; } else { @@ -802,28 +888,35 @@ public java.lang.String getHubId() { } } /** + * + * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The hubId to set. * @return This builder for chaining. */ - public Builder setHubId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHubId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hubId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearHubId() { @@ -833,17 +926,21 @@ public Builder clearHubId() { return this; } /** + * + * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for hubId to set. * @return This builder for chaining. */ - public Builder setHubIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHubIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hubId_ = value; bitField0_ |= 0x00000002; @@ -853,39 +950,58 @@ public Builder setHubIdBytes( private com.google.cloud.networkconnectivity.v1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> hubBuilder_; + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder> + hubBuilder_; /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ public com.google.cloud.networkconnectivity.v1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() + : hub_; } else { return hubBuilder_.getMessage(); } } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { @@ -901,14 +1017,17 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setHub( - com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { + public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { if (hubBuilder_ == null) { hub_ = builderForValue.build(); } else { @@ -919,17 +1038,21 @@ public Builder setHub( return this; } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - hub_ != null && - hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && hub_ != null + && hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -942,11 +1065,15 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000004); @@ -959,11 +1086,15 @@ public Builder clearHub() { return this; } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000004; @@ -971,36 +1102,48 @@ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { return getHubFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null ? - com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() + : hub_; } } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder>( - getHub(), - getParentForChildren(), - isClean()); + hubBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder>( + getHub(), getParentForChildren(), isClean()); hub_ = null; } return hubBuilder_; @@ -1008,6 +1151,8 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1024,13 +1169,13 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1039,6 +1184,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1055,15 +1202,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1071,6 +1217,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1087,18 +1235,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1115,6 +1267,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1124,6 +1277,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1140,21 +1295,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1164,12 +1321,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.CreateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.CreateHubRequest) private static final com.google.cloud.networkconnectivity.v1.CreateHubRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.CreateHubRequest(); } @@ -1178,27 +1335,27 @@ public static com.google.cloud.networkconnectivity.v1.CreateHubRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1213,6 +1370,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.CreateHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java index a186543f7ef5..1147de9a80e2 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface CreateHubRequestOrBuilder extends +public interface CreateHubRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.CreateHubRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hubId. */ java.lang.String getHubId(); /** + * + * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hubId. */ - com.google.protobuf.ByteString - getHubIdBytes(); + com.google.protobuf.ByteString getHubIdBytes(); /** + * + * *
    * Required. The initial values for a new hub.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ boolean hasHub(); /** + * + * *
    * Required. The initial values for a new hub.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ com.google.cloud.networkconnectivity.v1.Hub getHub(); /** + * + * *
    * Required. The initial values for a new hub.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -91,10 +137,13 @@ public interface CreateHubRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -111,8 +160,8 @@ public interface CreateHubRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequest.java similarity index 66% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequest.java index f88d016231c3..655d49d58a4d 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequest.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/networkconnectivity/v1/policy_based_routing.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Request for [PolicyBasedRouting.CreatePolicyBasedRoute][] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest} */ -public final class CreatePolicyBasedRouteRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreatePolicyBasedRouteRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) CreatePolicyBasedRouteRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreatePolicyBasedRouteRequest.newBuilder() to construct. private CreatePolicyBasedRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreatePolicyBasedRouteRequest() { parent_ = ""; policyBasedRouteId_ = ""; @@ -27,38 +45,45 @@ private CreatePolicyBasedRouteRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreatePolicyBasedRouteRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.class, com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.class, + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource's name of the PolicyBasedRoute.
    * 
* - * string parent = 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 @@ -67,29 +92,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource's name of the PolicyBasedRoute.
    * 
* - * string parent = 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 { @@ -98,14 +125,18 @@ public java.lang.String getParent() { } public static final int POLICY_BASED_ROUTE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object policyBasedRouteId_ = ""; /** + * + * *
    * Optional. Unique id for the Policy Based Route to create.
    * 
* * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The policyBasedRouteId. */ @java.lang.Override @@ -114,29 +145,29 @@ public java.lang.String getPolicyBasedRouteId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyBasedRouteId_ = s; return s; } } /** + * + * *
    * Optional. Unique id for the Policy Based Route to create.
    * 
* * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for policyBasedRouteId. */ @java.lang.Override - public com.google.protobuf.ByteString - getPolicyBasedRouteIdBytes() { + public com.google.protobuf.ByteString getPolicyBasedRouteIdBytes() { java.lang.Object ref = policyBasedRouteId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyBasedRouteId_ = b; return b; } else { @@ -147,11 +178,16 @@ public java.lang.String getPolicyBasedRouteId() { public static final int POLICY_BASED_ROUTE_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1.PolicyBasedRoute policyBasedRoute_; /** + * + * *
    * Required. Initial values for a new Policy Based Route.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the policyBasedRoute field is set. */ @java.lang.Override @@ -159,33 +195,50 @@ public boolean hasPolicyBasedRoute() { return policyBasedRoute_ != null; } /** + * + * *
    * Required. Initial values for a new Policy Based Route.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The policyBasedRoute. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoute() { - return policyBasedRoute_ == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() : policyBasedRoute_; + return policyBasedRoute_ == null + ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() + : policyBasedRoute_; } /** + * + * *
    * Required. Initial values for a new Policy Based Route.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPolicyBasedRouteOrBuilder() { - return policyBasedRoute_ == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() : policyBasedRoute_; + public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder + getPolicyBasedRouteOrBuilder() { + return policyBasedRoute_ == null + ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() + : policyBasedRoute_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -201,6 +254,7 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPoli
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -209,14 +263,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -232,16 +287,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -250,6 +304,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +316,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,8 +345,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, policyBasedRouteId_); } if (policyBasedRoute_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPolicyBasedRoute()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPolicyBasedRoute()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -305,24 +358,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.networkconnectivity.v1.CreatePolicyBasedRouteRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest other = (com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) obj; + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest other = + (com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPolicyBasedRouteId() - .equals(other.getPolicyBasedRouteId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPolicyBasedRouteId().equals(other.getPolicyBasedRouteId())) return false; if (hasPolicyBasedRoute() != other.hasPolicyBasedRoute()) return false; if (hasPolicyBasedRoute()) { - if (!getPolicyBasedRoute() - .equals(other.getPolicyBasedRoute())) return false; + if (!getPolicyBasedRoute().equals(other.getPolicyBasedRoute())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,129 +400,138 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest + 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [PolicyBasedRouting.CreatePolicyBasedRoute][] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.class, com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.class, + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.Builder.class); } - // Construct using com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -489,14 +548,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.getDefaultInstance(); + public com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest + .getDefaultInstance(); } @java.lang.Override @@ -510,13 +571,17 @@ public com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest bui @java.lang.Override public com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest result = new com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest result = + new com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -525,9 +590,8 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreatePolicyB result.policyBasedRouteId_ = policyBasedRouteId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.policyBasedRoute_ = policyBasedRouteBuilder_ == null - ? policyBasedRoute_ - : policyBasedRouteBuilder_.build(); + result.policyBasedRoute_ = + policyBasedRouteBuilder_ == null ? policyBasedRoute_ : policyBasedRouteBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -538,46 +602,51 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreatePolicyB public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest)other); + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -622,34 +691,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - policyBasedRouteId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getPolicyBasedRouteFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + policyBasedRouteId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getPolicyBasedRouteFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,22 +732,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource's name of the PolicyBasedRoute.
      * 
* - * string parent = 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; @@ -683,20 +761,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name of the PolicyBasedRoute.
      * 
* - * string parent = 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 { @@ -704,28 +785,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name of the PolicyBasedRoute.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource's name of the PolicyBasedRoute.
      * 
* - * string 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() { @@ -735,17 +827,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource's name of the PolicyBasedRoute.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -755,18 +853,20 @@ public Builder setParentBytes( private java.lang.Object policyBasedRouteId_ = ""; /** + * + * *
      * Optional. Unique id for the Policy Based Route to create.
      * 
* * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The policyBasedRouteId. */ public java.lang.String getPolicyBasedRouteId() { java.lang.Object ref = policyBasedRouteId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyBasedRouteId_ = s; return s; @@ -775,20 +875,21 @@ public java.lang.String getPolicyBasedRouteId() { } } /** + * + * *
      * Optional. Unique id for the Policy Based Route to create.
      * 
* * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for policyBasedRouteId. */ - public com.google.protobuf.ByteString - getPolicyBasedRouteIdBytes() { + public com.google.protobuf.ByteString getPolicyBasedRouteIdBytes() { java.lang.Object ref = policyBasedRouteId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyBasedRouteId_ = b; return b; } else { @@ -796,28 +897,35 @@ public java.lang.String getPolicyBasedRouteId() { } } /** + * + * *
      * Optional. Unique id for the Policy Based Route to create.
      * 
* * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The policyBasedRouteId to set. * @return This builder for chaining. */ - public Builder setPolicyBasedRouteId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPolicyBasedRouteId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } policyBasedRouteId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Unique id for the Policy Based Route to create.
      * 
* * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPolicyBasedRouteId() { @@ -827,17 +935,21 @@ public Builder clearPolicyBasedRouteId() { return this; } /** + * + * *
      * Optional. Unique id for the Policy Based Route to create.
      * 
* * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for policyBasedRouteId to set. * @return This builder for chaining. */ - public Builder setPolicyBasedRouteIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPolicyBasedRouteIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); policyBasedRouteId_ = value; bitField0_ |= 0x00000002; @@ -847,41 +959,61 @@ public Builder setPolicyBasedRouteIdBytes( private com.google.cloud.networkconnectivity.v1.PolicyBasedRoute policyBasedRoute_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> policyBasedRouteBuilder_; + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, + com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> + policyBasedRouteBuilder_; /** + * + * *
      * Required. Initial values for a new Policy Based Route.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the policyBasedRoute field is set. */ public boolean hasPolicyBasedRoute() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Initial values for a new Policy Based Route.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The policyBasedRoute. */ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoute() { if (policyBasedRouteBuilder_ == null) { - return policyBasedRoute_ == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() : policyBasedRoute_; + return policyBasedRoute_ == null + ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() + : policyBasedRoute_; } else { return policyBasedRouteBuilder_.getMessage(); } } /** + * + * *
      * Required. Initial values for a new Policy Based Route.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setPolicyBasedRoute(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { + public Builder setPolicyBasedRoute( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { if (policyBasedRouteBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -895,11 +1027,15 @@ public Builder setPolicyBasedRoute(com.google.cloud.networkconnectivity.v1.Polic return this; } /** + * + * *
      * Required. Initial values for a new Policy Based Route.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPolicyBasedRoute( com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder builderForValue) { @@ -913,17 +1049,23 @@ public Builder setPolicyBasedRoute( return this; } /** + * + * *
      * Required. Initial values for a new Policy Based Route.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergePolicyBasedRoute(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { + public Builder mergePolicyBasedRoute( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { if (policyBasedRouteBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - policyBasedRoute_ != null && - policyBasedRoute_ != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && policyBasedRoute_ != null + && policyBasedRoute_ + != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance()) { getPolicyBasedRouteBuilder().mergeFrom(value); } else { policyBasedRoute_ = value; @@ -936,11 +1078,15 @@ public Builder mergePolicyBasedRoute(com.google.cloud.networkconnectivity.v1.Pol return this; } /** + * + * *
      * Required. Initial values for a new Policy Based Route.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPolicyBasedRoute() { bitField0_ = (bitField0_ & ~0x00000004); @@ -953,48 +1099,66 @@ public Builder clearPolicyBasedRoute() { return this; } /** + * + * *
      * Required. Initial values for a new Policy Based Route.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder getPolicyBasedRouteBuilder() { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder + getPolicyBasedRouteBuilder() { bitField0_ |= 0x00000004; onChanged(); return getPolicyBasedRouteFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Initial values for a new Policy Based Route.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPolicyBasedRouteOrBuilder() { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder + getPolicyBasedRouteOrBuilder() { if (policyBasedRouteBuilder_ != null) { return policyBasedRouteBuilder_.getMessageOrBuilder(); } else { - return policyBasedRoute_ == null ? - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() : policyBasedRoute_; + return policyBasedRoute_ == null + ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() + : policyBasedRoute_; } } /** + * + * *
      * Required. Initial values for a new Policy Based Route.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, + com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> getPolicyBasedRouteFieldBuilder() { if (policyBasedRouteBuilder_ == null) { - policyBasedRouteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder>( - getPolicyBasedRoute(), - getParentForChildren(), - isClean()); + policyBasedRouteBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, + com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder>( + getPolicyBasedRoute(), getParentForChildren(), isClean()); policyBasedRoute_ = null; } return policyBasedRouteBuilder_; @@ -1002,6 +1166,8 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPoli private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1017,13 +1183,13 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPoli
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1032,6 +1198,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1047,15 +1215,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1063,6 +1230,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1078,18 +1247,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1105,6 +1278,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1114,6 +1288,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1129,21 +1305,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1153,41 +1331,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) - private static final com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest(); } - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePolicyBasedRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePolicyBasedRouteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1199,9 +1379,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequestOrBuilder.java index 57445d1c2212..f67bf3a1716d 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/policy_based_routing.proto package com.google.cloud.networkconnectivity.v1; -public interface CreatePolicyBasedRouteRequestOrBuilder extends +public interface CreatePolicyBasedRouteRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource's name of the PolicyBasedRoute.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource's name of the PolicyBasedRoute.
    * 
* - * string parent = 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(); /** + * + * *
    * Optional. Unique id for the Policy Based Route to create.
    * 
* * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The policyBasedRouteId. */ java.lang.String getPolicyBasedRouteId(); /** + * + * *
    * Optional. Unique id for the Policy Based Route to create.
    * 
* * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for policyBasedRouteId. */ - com.google.protobuf.ByteString - getPolicyBasedRouteIdBytes(); + com.google.protobuf.ByteString getPolicyBasedRouteIdBytes(); /** + * + * *
    * Required. Initial values for a new Policy Based Route.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the policyBasedRoute field is set. */ boolean hasPolicyBasedRoute(); /** + * + * *
    * Required. Initial values for a new Policy Based Route.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The policyBasedRoute. */ com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoute(); /** + * + * *
    * Required. Initial values for a new Policy Based Route.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPolicyBasedRouteOrBuilder(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -90,10 +136,13 @@ public interface CreatePolicyBasedRouteRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -109,8 +158,8 @@ public interface CreatePolicyBasedRouteRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java similarity index 68% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java index 60ed284ffeda..873790ebef0c 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The request for
  * [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateSpokeRequest}
  */
-public final class CreateSpokeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateSpokeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.CreateSpokeRequest)
     CreateSpokeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateSpokeRequest.newBuilder() to construct.
   private CreateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateSpokeRequest() {
     parent_ = "";
     spokeId_ = "";
@@ -28,38 +46,45 @@ private CreateSpokeRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateSpokeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class,
+            com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. The parent resource.
    * 
* - * string parent = 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 @@ -68,29 +93,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 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 { @@ -99,14 +126,18 @@ public java.lang.String getParent() { } public static final int SPOKE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object spokeId_ = ""; /** + * + * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The spokeId. */ @java.lang.Override @@ -115,29 +146,29 @@ public java.lang.String getSpokeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; } } /** + * + * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for spokeId. */ @java.lang.Override - public com.google.protobuf.ByteString - getSpokeIdBytes() { + public com.google.protobuf.ByteString getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); spokeId_ = b; return b; } else { @@ -148,11 +179,16 @@ public java.lang.String getSpokeId() { public static final int SPOKE_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1.Spoke spoke_; /** + * + * *
    * Required. The initial values for a new spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ @java.lang.Override @@ -160,33 +196,49 @@ public boolean hasSpoke() { return spoke_ != null; } /** + * + * *
    * Required. The initial values for a new spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } /** + * + * *
    * Required. The initial values for a new spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -203,6 +255,7 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -211,14 +264,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -235,16 +289,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -253,6 +306,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,8 +318,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -294,8 +347,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, spokeId_); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSpoke()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -308,24 +360,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.networkconnectivity.v1.CreateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest other = (com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest other = + (com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getSpokeId() - .equals(other.getSpokeId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getSpokeId().equals(other.getSpokeId())) return false; if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke() - .equals(other.getSpoke())) return false; + if (!getSpoke().equals(other.getSpoke())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -353,96 +402,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for
    * [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke].
@@ -450,33 +507,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateSpokeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.CreateSpokeRequest)
       com.google.cloud.networkconnectivity.v1.CreateSpokeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class,
+              com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -493,9 +549,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -514,8 +570,11 @@ public com.google.cloud.networkconnectivity.v1.CreateSpokeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.CreateSpokeRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.CreateSpokeRequest result = new com.google.cloud.networkconnectivity.v1.CreateSpokeRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.CreateSpokeRequest result =
+          new com.google.cloud.networkconnectivity.v1.CreateSpokeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -529,9 +588,7 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateSpokeRe
         result.spokeId_ = spokeId_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.spoke_ = spokeBuilder_ == null
-            ? spoke_
-            : spokeBuilder_.build();
+        result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.requestId_ = requestId_;
@@ -542,38 +599,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateSpokeRe
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateSpokeRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -581,7 +639,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -626,34 +685,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              spokeId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getSpokeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              requestId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                spokeId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                requestId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -663,22 +725,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The parent resource.
      * 
* - * string parent = 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; @@ -687,20 +754,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource.
      * 
* - * string parent = 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 { @@ -708,28 +778,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource.
      * 
* - * string 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() { @@ -739,17 +820,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -759,18 +846,20 @@ public Builder setParentBytes( private java.lang.Object spokeId_ = ""; /** + * + * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The spokeId. */ public java.lang.String getSpokeId() { java.lang.Object ref = spokeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; @@ -779,20 +868,21 @@ public java.lang.String getSpokeId() { } } /** + * + * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for spokeId. */ - public com.google.protobuf.ByteString - getSpokeIdBytes() { + public com.google.protobuf.ByteString getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); spokeId_ = b; return b; } else { @@ -800,28 +890,35 @@ public java.lang.String getSpokeId() { } } /** + * + * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpokeId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } spokeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSpokeId() { @@ -831,17 +928,21 @@ public Builder clearSpokeId() { return this; } /** + * + * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpokeIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); spokeId_ = value; bitField0_ |= 0x00000002; @@ -851,39 +952,58 @@ public Builder setSpokeIdBytes( private com.google.cloud.networkconnectivity.v1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> spokeBuilder_; + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + spokeBuilder_; /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } else { return spokeBuilder_.getMessage(); } } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { @@ -899,14 +1019,17 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSpoke( - com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { + public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { if (spokeBuilder_ == null) { spoke_ = builderForValue.build(); } else { @@ -917,17 +1040,21 @@ public Builder setSpoke( return this; } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - spoke_ != null && - spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && spoke_ != null + && spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -940,11 +1067,15 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000004); @@ -957,11 +1088,15 @@ public Builder clearSpoke() { return this; } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000004; @@ -969,36 +1104,48 @@ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { return getSpokeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null ? - com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( - getSpoke(), - getParentForChildren(), - isClean()); + spokeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( + getSpoke(), getParentForChildren(), isClean()); spoke_ = null; } return spokeBuilder_; @@ -1006,6 +1153,8 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1022,13 +1171,13 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1037,6 +1186,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1053,15 +1204,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1069,6 +1219,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1085,18 +1237,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1113,6 +1269,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1122,6 +1279,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1138,21 +1297,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1162,12 +1323,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.CreateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.CreateSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.CreateSpokeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.CreateSpokeRequest(); } @@ -1176,27 +1337,27 @@ public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1211,6 +1372,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.CreateSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java index 3a19585101aa..338f9447116a 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface CreateSpokeRequestOrBuilder extends +public interface CreateSpokeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.CreateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The spokeId. */ java.lang.String getSpokeId(); /** + * + * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for spokeId. */ - com.google.protobuf.ByteString - getSpokeIdBytes(); + com.google.protobuf.ByteString getSpokeIdBytes(); /** + * + * *
    * Required. The initial values for a new spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ boolean hasSpoke(); /** + * + * *
    * Required. The initial values for a new spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ com.google.cloud.networkconnectivity.v1.Spoke getSpoke(); /** + * + * *
    * Required. The initial values for a new spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -91,10 +137,13 @@ public interface CreateSpokeRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -111,8 +160,8 @@ public interface CreateSpokeRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java index 7cf1f77cac25..a28e0d689c24 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The request for
  * [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteHubRequest}
  */
-public final class DeleteHubRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteHubRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.DeleteHubRequest)
     DeleteHubRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteHubRequest.newBuilder() to construct.
   private DeleteHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteHubRequest() {
     name_ = "";
     requestId_ = "";
@@ -27,38 +45,45 @@ private DeleteHubRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteHubRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class,
+            com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -67,29 +92,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,9 +125,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -117,6 +147,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -125,14 +156,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -149,16 +181,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -167,6 +198,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,8 +210,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -209,17 +240,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.networkconnectivity.v1.DeleteHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.DeleteHubRequest other = (com.google.cloud.networkconnectivity.v1.DeleteHubRequest) obj; + com.google.cloud.networkconnectivity.v1.DeleteHubRequest other = + (com.google.cloud.networkconnectivity.v1.DeleteHubRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,96 +271,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.DeleteHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for
    * [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub].
@@ -338,33 +376,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteHubRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.DeleteHubRequest)
       com.google.cloud.networkconnectivity.v1.DeleteHubRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class,
+              com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.DeleteHubRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -375,9 +412,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
     }
 
     @java.lang.Override
@@ -396,8 +433,11 @@ public com.google.cloud.networkconnectivity.v1.DeleteHubRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.DeleteHubRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.DeleteHubRequest result = new com.google.cloud.networkconnectivity.v1.DeleteHubRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.DeleteHubRequest result =
+          new com.google.cloud.networkconnectivity.v1.DeleteHubRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -416,38 +456,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.DeleteHubRequ
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.DeleteHubRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteHubRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteHubRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -455,7 +496,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.DeleteHubRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.DeleteHubRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.DeleteHubRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -492,22 +534,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              requestId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                requestId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -517,22 +562,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -541,20 +591,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -562,28 +615,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -593,17 +657,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -613,6 +683,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -629,13 +701,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -644,6 +716,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -660,15 +734,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -676,6 +749,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -692,18 +767,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -720,6 +799,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -729,6 +809,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -745,21 +827,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -769,12 +853,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.DeleteHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.DeleteHubRequest) private static final com.google.cloud.networkconnectivity.v1.DeleteHubRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.DeleteHubRequest(); } @@ -783,27 +867,27 @@ public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -818,6 +902,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.DeleteHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java index 926e1844c73f..3a53452ec2c6 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface DeleteHubRequestOrBuilder extends +public interface DeleteHubRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.DeleteHubRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -44,10 +71,13 @@ public interface DeleteHubRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -64,8 +94,8 @@ public interface DeleteHubRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequest.java similarity index 68% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequest.java index ac6d6258ede5..02c6a215f7ff 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequest.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/networkconnectivity/v1/policy_based_routing.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Request for [PolicyBasedRouting.DeletePolicyBasedRoute][] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest} */ -public final class DeletePolicyBasedRouteRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeletePolicyBasedRouteRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) DeletePolicyBasedRouteRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeletePolicyBasedRouteRequest.newBuilder() to construct. private DeletePolicyBasedRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeletePolicyBasedRouteRequest() { name_ = ""; requestId_ = ""; @@ -26,38 +44,45 @@ private DeletePolicyBasedRouteRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeletePolicyBasedRouteRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.class, com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.class, + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the PolicyBasedRoute resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,29 +91,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 PolicyBasedRoute resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,9 +124,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -115,6 +145,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -123,14 +154,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -146,16 +178,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -164,6 +195,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -206,17 +237,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.networkconnectivity.v1.DeletePolicyBasedRouteRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest other = (com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) obj; + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest other = + (com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,129 +268,138 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest + 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [PolicyBasedRouting.DeletePolicyBasedRoute][] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.class, com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.class, + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.Builder.class); } - // Construct using com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -371,14 +410,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.getDefaultInstance(); + public com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest + .getDefaultInstance(); } @java.lang.Override @@ -392,13 +433,17 @@ public com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest bui @java.lang.Override public com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest result = new com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest result = + new com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -412,46 +457,51 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.DeletePolicyB public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest)other); + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -488,22 +538,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -513,22 +566,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the PolicyBasedRoute resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -537,20 +595,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the PolicyBasedRoute resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -558,28 +619,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the PolicyBasedRoute resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the PolicyBasedRoute resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -589,17 +661,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the PolicyBasedRoute resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -609,6 +687,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -624,13 +704,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -639,6 +719,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -654,15 +736,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -670,6 +751,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -685,18 +768,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -712,6 +799,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -721,6 +809,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -736,21 +826,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -760,41 +852,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) - private static final com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest(); } - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePolicyBasedRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePolicyBasedRouteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -806,9 +900,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequestOrBuilder.java index f2e7d2aba376..829c45f69a4b 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/policy_based_routing.proto package com.google.cloud.networkconnectivity.v1; -public interface DeletePolicyBasedRouteRequestOrBuilder extends +public interface DeletePolicyBasedRouteRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the PolicyBasedRoute resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Name of the PolicyBasedRoute resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -43,10 +70,13 @@ public interface DeletePolicyBasedRouteRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -62,8 +92,8 @@ public interface DeletePolicyBasedRouteRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java index bde74b026fa3..d78f1befbd1a 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The request for
  * [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteSpokeRequest}
  */
-public final class DeleteSpokeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteSpokeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.DeleteSpokeRequest)
     DeleteSpokeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteSpokeRequest.newBuilder() to construct.
   private DeleteSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteSpokeRequest() {
     name_ = "";
     requestId_ = "";
@@ -27,38 +45,45 @@ private DeleteSpokeRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteSpokeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class,
+            com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -67,29 +92,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,9 +125,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -117,6 +147,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -125,14 +156,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -149,16 +181,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -167,6 +198,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,8 +210,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -209,17 +240,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.networkconnectivity.v1.DeleteSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest other = (com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest other = + (com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,96 +271,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for
    * [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke].
@@ -338,33 +376,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteSpokeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.DeleteSpokeRequest)
       com.google.cloud.networkconnectivity.v1.DeleteSpokeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class,
+              com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -375,9 +412,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -396,8 +433,11 @@ public com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest result = new com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest result =
+          new com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -416,38 +456,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.DeleteSpokeRe
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -455,7 +496,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -492,22 +534,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              requestId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                requestId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -517,22 +562,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -541,20 +591,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -562,28 +615,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -593,17 +657,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -613,6 +683,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -629,13 +701,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -644,6 +716,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -660,15 +734,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -676,6 +749,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -692,18 +767,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -720,6 +799,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -729,6 +809,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -745,21 +827,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -769,12 +853,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(); } @@ -783,27 +867,27 @@ public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -818,6 +902,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java index 7e5685f9491b..60ff849c2aea 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface DeleteSpokeRequestOrBuilder extends +public interface DeleteSpokeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -44,10 +71,13 @@ public interface DeleteSpokeRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -64,8 +94,8 @@ public interface DeleteSpokeRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java similarity index 61% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java index 09dd53c08e9c..ca2d6281af30 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Request for
  * [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub]
@@ -12,53 +29,61 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.GetHubRequest}
  */
-public final class GetHubRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetHubRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetHubRequest)
     GetHubRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetHubRequest.newBuilder() to construct.
   private GetHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetHubRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetHubRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.GetHubRequest.class,
+            com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the hub resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -67,29 +92,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the hub resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +137,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -134,15 +161,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.networkconnectivity.v1.GetHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.GetHubRequest other = (com.google.cloud.networkconnectivity.v1.GetHubRequest) obj; + com.google.cloud.networkconnectivity.v1.GetHubRequest other = + (com.google.cloud.networkconnectivity.v1.GetHubRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,96 +189,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.GetHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.GetHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub]
@@ -260,33 +295,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.GetHubRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetHubRequest)
       com.google.cloud.networkconnectivity.v1.GetHubRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.GetHubRequest.class,
+              com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.GetHubRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -296,9 +330,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
     }
 
     @java.lang.Override
@@ -317,8 +351,11 @@ public com.google.cloud.networkconnectivity.v1.GetHubRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.GetHubRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.GetHubRequest result = new com.google.cloud.networkconnectivity.v1.GetHubRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.GetHubRequest result =
+          new com.google.cloud.networkconnectivity.v1.GetHubRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -334,38 +371,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.GetHubRequest
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.GetHubRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.GetHubRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.GetHubRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -373,7 +411,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.GetHubRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.GetHubRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.GetHubRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -405,17 +444,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -425,22 +466,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -449,20 +495,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -470,28 +519,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -501,26 +561,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -530,12 +596,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.GetHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetHubRequest) private static final com.google.cloud.networkconnectivity.v1.GetHubRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.GetHubRequest(); } @@ -544,27 +610,27 @@ public static com.google.cloud.networkconnectivity.v1.GetHubRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,6 +645,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.GetHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java new file mode 100644 index 000000000000..8ab3d81a3f94 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.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/networkconnectivity/v1/hub.proto + +package com.google.cloud.networkconnectivity.v1; + +public interface GetHubRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetHubRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the hub resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the hub resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequest.java similarity index 59% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequest.java index 4266da7cecc6..845b618e3a6f 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequest.java @@ -1,62 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/policy_based_routing.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Request for [PolicyBasedRouting.GetPolicyBasedRoute][] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest} */ -public final class GetPolicyBasedRouteRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetPolicyBasedRouteRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) GetPolicyBasedRouteRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetPolicyBasedRouteRequest.newBuilder() to construct. private GetPolicyBasedRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetPolicyBasedRouteRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetPolicyBasedRouteRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.class, com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.class, + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the PolicyBasedRoute resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +90,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 PolicyBasedRoute resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -132,15 +159,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.networkconnectivity.v1.GetPolicyBasedRouteRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest other = (com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) obj; + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest other = + (com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,129 +187,138 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest 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.networkconnectivity.v1.GetPolicyBasedRouteRequest + 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.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [PolicyBasedRouting.GetPolicyBasedRoute][] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.class, com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.class, + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.Builder.class); } - // Construct using com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,14 +328,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.getDefaultInstance(); + public com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest + .getDefaultInstance(); } @java.lang.Override @@ -313,13 +351,17 @@ public com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest build( @java.lang.Override public com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest result = new com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest result = + new com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -330,46 +372,51 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.GetPolicyBase public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest)other); + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +448,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +470,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the PolicyBasedRoute resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,20 +499,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the PolicyBasedRoute resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -466,28 +523,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the PolicyBasedRoute resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the PolicyBasedRoute resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -497,26 +565,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the PolicyBasedRoute resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,41 +600,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) - private static final com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest(); } - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPolicyBasedRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPolicyBasedRouteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,9 +648,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.java new file mode 100644 index 000000000000..6622d3957f44 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.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/networkconnectivity/v1/policy_based_routing.proto + +package com.google.cloud.networkconnectivity.v1; + +public interface GetPolicyBasedRouteRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the PolicyBasedRoute resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the PolicyBasedRoute resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java similarity index 61% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java index 10f760e5129d..7fc42f029d5d 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The request for
  * [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke].
@@ -11,53 +28,61 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.GetSpokeRequest}
  */
-public final class GetSpokeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetSpokeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetSpokeRequest)
     GetSpokeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetSpokeRequest.newBuilder() to construct.
   private GetSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetSpokeRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetSpokeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class,
+            com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the spoke resource.
    * 
* - * string name = 1 [(.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 @@ -66,29 +91,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the spoke resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -97,6 +124,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +136,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -133,15 +160,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.networkconnectivity.v1.GetSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.GetSpokeRequest other = (com.google.cloud.networkconnectivity.v1.GetSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.GetSpokeRequest other = + (com.google.cloud.networkconnectivity.v1.GetSpokeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,96 +188,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.GetSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for
    * [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke].
@@ -258,33 +293,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.GetSpokeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetSpokeRequest)
       com.google.cloud.networkconnectivity.v1.GetSpokeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class,
+              com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.GetSpokeRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -294,9 +328,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -315,8 +349,11 @@ public com.google.cloud.networkconnectivity.v1.GetSpokeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.GetSpokeRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.GetSpokeRequest result = new com.google.cloud.networkconnectivity.v1.GetSpokeRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.GetSpokeRequest result =
+          new com.google.cloud.networkconnectivity.v1.GetSpokeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -332,38 +369,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.GetSpokeReque
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.GetSpokeRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.GetSpokeRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.GetSpokeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -371,7 +409,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.GetSpokeRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.GetSpokeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.GetSpokeRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -403,17 +442,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -423,22 +464,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the spoke resource.
      * 
* - * string name = 1 [(.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; @@ -447,20 +493,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the spoke resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -468,28 +517,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the spoke resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the spoke resource.
      * 
* - * string 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() { @@ -499,26 +559,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the spoke resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -528,12 +594,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.GetSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.GetSpokeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.GetSpokeRequest(); } @@ -542,27 +608,27 @@ public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -577,6 +643,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.GetSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java new file mode 100644 index 000000000000..dda46174d3d7 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.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/networkconnectivity/v1/hub.proto + +package com.google.cloud.networkconnectivity.v1; + +public interface GetSpokeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetSpokeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the spoke resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the spoke 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/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java index d6abae1373af..846ccda2f133 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * A Network Connectivity Center hub is a collection of spokes. A single hub
  * can contain spokes from multiple regions. However, if any of a hub's spokes
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.Hub}
  */
-public final class Hub extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Hub extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.Hub)
     HubOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Hub.newBuilder() to construct.
   private Hub(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Hub() {
     name_ = "";
     description_ = "";
@@ -33,45 +51,48 @@ private Hub() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Hub();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.Hub.class, com.google.cloud.networkconnectivity.v1.Hub.Builder.class);
+            com.google.cloud.networkconnectivity.v1.Hub.class,
+            com.google.cloud.networkconnectivity.v1.Hub.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -79,6 +100,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -87,14 +109,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; } } /** + * + * *
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -102,16 +125,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -122,11 +144,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the hub was created.
    * 
* - * .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 @@ -134,11 +160,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the hub was created.
    * 
* - * .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 @@ -146,11 +176,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the hub was created.
    * 
* - * .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() { @@ -160,11 +193,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time the hub was last updated.
    * 
* - * .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 @@ -172,11 +209,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time the hub was last updated.
    * 
* - * .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 @@ -184,11 +225,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time the hub was last updated.
    * 
* - * .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() { @@ -196,32 +240,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_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.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - 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_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -231,20 +277,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 4;
    */
   @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();
   }
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -258,6 +305,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -267,17 +316,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      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;
   }
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -287,11 +338,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new 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();
     }
@@ -299,14 +350,18 @@ public java.lang.String getLabelsOrThrow(
   }
 
   public static final int DESCRIPTION_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object description_ = "";
   /**
+   *
+   *
    * 
    * An optional description of the hub.
    * 
* * string description = 5; + * * @return The description. */ @java.lang.Override @@ -315,29 +370,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * An optional description of the hub.
    * 
* * string description = 5; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -346,9 +401,12 @@ public java.lang.String getDescription() { } public static final int UNIQUE_ID_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** + * + * *
    * Output only. The Google-generated UUID for the hub. This value is unique
    * across all hub resources. If a hub is deleted and another with the same
@@ -356,6 +414,7 @@ public java.lang.String getDescription() {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ @java.lang.Override @@ -364,14 +423,15 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** + * + * *
    * Output only. The Google-generated UUID for the hub. This value is unique
    * across all hub resources. If a hub is deleted and another with the same
@@ -379,16 +439,15 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -399,33 +458,49 @@ public java.lang.String getUniqueId() { public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; /** + * + * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.State getState() { + com.google.cloud.networkconnectivity.v1.State result = + com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } public static final int ROUTING_VPCS_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private java.util.List routingVpcs_; /** + * + * *
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -439,6 +514,8 @@ public java.util.List getRou
     return routingVpcs_;
   }
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -448,11 +525,13 @@ public java.util.List getRou
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getRoutingVpcsOrBuilderList() {
     return routingVpcs_;
   }
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -466,6 +545,8 @@ public int getRoutingVpcsCount() {
     return routingVpcs_.size();
   }
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -479,6 +560,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int ind
     return routingVpcs_.get(index);
   }
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -494,6 +577,7 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -505,8 +589,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.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_);
     }
@@ -516,12 +599,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (updateTime_ != null) {
       output.writeMessage(3, getUpdateTime());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        4);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_);
     }
@@ -547,22 +626,20 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getUpdateTime());
-    }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(4, labels__);
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime());
+    }
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_);
@@ -571,12 +648,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, uniqueId_);
     }
     if (state_ != com.google.cloud.networkconnectivity.v1.State.STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(9, state_);
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_);
     }
     for (int i = 0; i < routingVpcs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(10, routingVpcs_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, routingVpcs_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -586,34 +661,28 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.networkconnectivity.v1.Hub)) {
       return super.equals(obj);
     }
-    com.google.cloud.networkconnectivity.v1.Hub other = (com.google.cloud.networkconnectivity.v1.Hub) obj;
+    com.google.cloud.networkconnectivity.v1.Hub other =
+        (com.google.cloud.networkconnectivity.v1.Hub) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime()
-          .equals(other.getCreateTime())) return false;
+      if (!getCreateTime().equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime()
-          .equals(other.getUpdateTime())) return false;
-    }
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
-    if (!getDescription()
-        .equals(other.getDescription())) return false;
-    if (!getUniqueId()
-        .equals(other.getUniqueId())) return false;
+      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+    }
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!getDescription().equals(other.getDescription())) return false;
+    if (!getUniqueId().equals(other.getUniqueId())) return false;
     if (state_ != other.state_) return false;
-    if (!getRoutingVpcsList()
-        .equals(other.getRoutingVpcsList())) return false;
+    if (!getRoutingVpcsList().equals(other.getRoutingVpcsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -654,97 +723,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub 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.networkconnectivity.v1.Hub parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.networkconnectivity.v1.Hub parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.networkconnectivity.v1.Hub parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.Hub prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 Connectivity Center hub is a collection of spokes. A single hub
    * can contain spokes from multiple regions. However, if any of a hub's spokes
@@ -755,55 +831,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.Hub}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.Hub)
       com.google.cloud.networkconnectivity.v1.HubOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.Hub.class, com.google.cloud.networkconnectivity.v1.Hub.Builder.class);
+              com.google.cloud.networkconnectivity.v1.Hub.class,
+              com.google.cloud.networkconnectivity.v1.Hub.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.Hub.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -834,9 +907,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
     }
 
     @java.lang.Override
@@ -855,9 +928,12 @@ public com.google.cloud.networkconnectivity.v1.Hub build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.Hub buildPartial() {
-      com.google.cloud.networkconnectivity.v1.Hub result = new com.google.cloud.networkconnectivity.v1.Hub(this);
+      com.google.cloud.networkconnectivity.v1.Hub result =
+          new com.google.cloud.networkconnectivity.v1.Hub(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -880,14 +956,10 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Hub result) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -908,38 +980,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Hub result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.Hub) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.Hub)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.Hub) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -959,8 +1032,7 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Hub other) {
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -993,9 +1065,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Hub other) {
             routingVpcsBuilder_ = null;
             routingVpcs_ = other.routingVpcs_;
             bitField0_ = (bitField0_ & ~0x00000080);
-            routingVpcsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getRoutingVpcsFieldBuilder() : null;
+            routingVpcsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getRoutingVpcsFieldBuilder()
+                    : null;
           } else {
             routingVpcsBuilder_.addAllMessages(other.routingVpcs_);
           }
@@ -1027,68 +1100,75 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 66: {
-              uniqueId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 66
-            case 72: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 72
-            case 82: {
-              com.google.cloud.networkconnectivity.v1.RoutingVPC m =
-                  input.readMessage(
-                      com.google.cloud.networkconnectivity.v1.RoutingVPC.parser(),
-                      extensionRegistry);
-              if (routingVpcsBuilder_ == null) {
-                ensureRoutingVpcsIsMutable();
-                routingVpcs_.add(m);
-              } else {
-                routingVpcsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 82
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 66:
+              {
+                uniqueId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 66
+            case 72:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 72
+            case 82:
+              {
+                com.google.cloud.networkconnectivity.v1.RoutingVPC m =
+                    input.readMessage(
+                        com.google.cloud.networkconnectivity.v1.RoutingVPC.parser(),
+                        extensionRegistry);
+                if (routingVpcsBuilder_ == null) {
+                  ensureRoutingVpcsIsMutable();
+                  routingVpcs_.add(m);
+                } else {
+                  routingVpcsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 82
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1098,10 +1178,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1109,13 +1192,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -1124,6 +1207,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1131,15 +1216,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -1147,6 +1231,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1154,18 +1240,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1173,6 +1263,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1182,6 +1273,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1189,12 +1282,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1204,39 +1299,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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) { @@ -1252,14 +1366,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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(); } else { @@ -1270,17 +1387,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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 (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1293,11 +1414,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1310,11 +1435,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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() { bitField0_ |= 0x00000002; @@ -1322,36 +1451,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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_; @@ -1359,39 +1500,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .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) { @@ -1407,14 +1567,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .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(); } else { @@ -1425,17 +1588,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .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 (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1448,11 +1615,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1465,11 +1636,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .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() { bitField0_ |= 0x00000004; @@ -1477,56 +1652,66 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1535,10 +1720,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1548,20 +1736,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 4;
      */
     @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();
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1575,6 +1764,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1584,17 +1775,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        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;
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1604,23 +1797,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new 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();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1629,23 +1824,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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() {
       bitField0_ |= 0x00000008;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1654,17 +1848,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4;
      */
-    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);
+    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);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1673,28 +1870,28 @@ public Builder putLabels(
      *
      * map<string, string> labels = 4;
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.lang.Object description_ = "";
     /**
+     *
+     *
      * 
      * An optional description of the hub.
      * 
* * string description = 5; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1703,20 +1900,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * An optional description of the hub.
      * 
* * string description = 5; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1724,28 +1922,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * An optional description of the hub.
      * 
* * string description = 5; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * An optional description of the hub.
      * 
* * string description = 5; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1755,17 +1960,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * An optional description of the hub.
      * 
* * string description = 5; + * * @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(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -1775,6 +1984,8 @@ public Builder setDescriptionBytes( private java.lang.Object uniqueId_ = ""; /** + * + * *
      * Output only. The Google-generated UUID for the hub. This value is unique
      * across all hub resources. If a hub is deleted and another with the same
@@ -1782,13 +1993,13 @@ public Builder setDescriptionBytes(
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -1797,6 +2008,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. The Google-generated UUID for the hub. This value is unique
      * across all hub resources. If a hub is deleted and another with the same
@@ -1804,15 +2017,14 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -1820,6 +2032,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. The Google-generated UUID for the hub. This value is unique
      * across all hub resources. If a hub is deleted and another with the same
@@ -1827,18 +2041,22 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uniqueId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Output only. The Google-generated UUID for the hub. This value is unique
      * across all hub resources. If a hub is deleted and another with the same
@@ -1846,6 +2064,7 @@ public Builder setUniqueId(
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -1855,6 +2074,8 @@ public Builder clearUniqueId() { return this; } /** + * + * *
      * Output only. The Google-generated UUID for the hub. This value is unique
      * across all hub resources. If a hub is deleted and another with the same
@@ -1862,12 +2083,14 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000020; @@ -1877,22 +2100,33 @@ public Builder setUniqueIdBytes( private int state_ = 0; /** + * + * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1903,24 +2137,35 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + com.google.cloud.networkconnectivity.v1.State result = + com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1934,11 +2179,16 @@ public Builder setState(com.google.cloud.networkconnectivity.v1.State value) { return this; } /** + * + * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -1949,18 +2199,26 @@ public Builder clearState() { } private java.util.List routingVpcs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRoutingVpcsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - routingVpcs_ = new java.util.ArrayList(routingVpcs_); + routingVpcs_ = + new java.util.ArrayList( + routingVpcs_); bitField0_ |= 0x00000080; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.RoutingVPC, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder> routingVpcsBuilder_; + com.google.cloud.networkconnectivity.v1.RoutingVPC, + com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, + com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder> + routingVpcsBuilder_; /** + * + * *
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -1977,6 +2235,8 @@ public java.util.List getRou
       }
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -1993,6 +2253,8 @@ public int getRoutingVpcsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2009,6 +2271,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int ind
       }
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2032,6 +2296,8 @@ public Builder setRoutingVpcs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2052,6 +2318,8 @@ public Builder setRoutingVpcs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2074,6 +2342,8 @@ public Builder addRoutingVpcs(com.google.cloud.networkconnectivity.v1.RoutingVPC
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2097,6 +2367,8 @@ public Builder addRoutingVpcs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2117,6 +2389,8 @@ public Builder addRoutingVpcs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2137,6 +2411,8 @@ public Builder addRoutingVpcs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2149,8 +2425,7 @@ public Builder addAllRoutingVpcs(
         java.lang.Iterable values) {
       if (routingVpcsBuilder_ == null) {
         ensureRoutingVpcsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, routingVpcs_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, routingVpcs_);
         onChanged();
       } else {
         routingVpcsBuilder_.addAllMessages(values);
@@ -2158,6 +2433,8 @@ public Builder addAllRoutingVpcs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2177,6 +2454,8 @@ public Builder clearRoutingVpcs() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2196,6 +2475,8 @@ public Builder removeRoutingVpcs(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2209,6 +2490,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder getRoutingVpcs
       return getRoutingVpcsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2220,11 +2503,14 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder getRoutingVpcs
     public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder(
         int index) {
       if (routingVpcsBuilder_ == null) {
-        return routingVpcs_.get(index);  } else {
+        return routingVpcs_.get(index);
+      } else {
         return routingVpcsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2233,8 +2519,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
      *
      * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
      */
-    public java.util.List 
-         getRoutingVpcsOrBuilderList() {
+    public java.util.List
+        getRoutingVpcsOrBuilderList() {
       if (routingVpcsBuilder_ != null) {
         return routingVpcsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2242,6 +2528,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
       }
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2251,10 +2539,12 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
      * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
      */
     public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcsBuilder() {
-      return getRoutingVpcsFieldBuilder().addBuilder(
-          com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
+      return getRoutingVpcsFieldBuilder()
+          .addBuilder(com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2265,10 +2555,13 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcs
      */
     public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcsBuilder(
         int index) {
-      return getRoutingVpcsFieldBuilder().addBuilder(
-          index, com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
+      return getRoutingVpcsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2277,27 +2570,30 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcs
      *
      * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
      */
-    public java.util.List 
-         getRoutingVpcsBuilderList() {
+    public java.util.List
+        getRoutingVpcsBuilderList() {
       return getRoutingVpcsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.networkconnectivity.v1.RoutingVPC, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder> 
+            com.google.cloud.networkconnectivity.v1.RoutingVPC,
+            com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder,
+            com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder>
         getRoutingVpcsFieldBuilder() {
       if (routingVpcsBuilder_ == null) {
-        routingVpcsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.networkconnectivity.v1.RoutingVPC, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder>(
-                routingVpcs_,
-                ((bitField0_ & 0x00000080) != 0),
-                getParentForChildren(),
-                isClean());
+        routingVpcsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.networkconnectivity.v1.RoutingVPC,
+                com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder,
+                com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder>(
+                routingVpcs_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean());
         routingVpcs_ = null;
       }
       return routingVpcsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2307,12 +2603,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.Hub)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.Hub)
   private static final com.google.cloud.networkconnectivity.v1.Hub DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.Hub();
   }
@@ -2321,27 +2617,27 @@ public static com.google.cloud.networkconnectivity.v1.Hub getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Hub parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Hub parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2356,6 +2652,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.networkconnectivity.v1.Hub getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
similarity index 100%
rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
similarity index 78%
rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
index 425f1e0e55fb..bfdd93c1ac4d 100644
--- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
+++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.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/networkconnectivity/v1/hub.proto
 
 package com.google.cloud.networkconnectivity.v1;
 
-public interface HubOrBuilder extends
+public interface HubOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.Hub)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -15,10 +33,13 @@ public interface HubOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -26,66 +47,90 @@ public interface HubOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The time the hub was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the hub was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the hub was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the hub was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time the hub was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time the hub was last updated.
    * 
* - * .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(); /** + * + * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -96,6 +141,8 @@ public interface HubOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -104,15 +151,13 @@ public interface HubOrBuilder extends
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -121,9 +166,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -133,11 +179,13 @@ boolean containsLabels(
    * map<string, string> labels = 4;
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -146,30 +194,36 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * An optional description of the hub.
    * 
* * string description = 5; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * An optional description of the hub.
    * 
* * string description = 5; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The Google-generated UUID for the hub. This value is unique
    * across all hub resources. If a hub is deleted and another with the same
@@ -177,10 +231,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ java.lang.String getUniqueId(); /** + * + * *
    * Output only. The Google-generated UUID for the hub. This value is unique
    * across all hub resources. If a hub is deleted and another with the same
@@ -188,31 +245,43 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString - getUniqueIdBytes(); + com.google.protobuf.ByteString getUniqueIdBytes(); /** + * + * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.networkconnectivity.v1.State getState(); /** + * + * *
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -221,9 +290,10 @@ java.lang.String getLabelsOrThrow(
    *
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
-  java.util.List 
-      getRoutingVpcsList();
+  java.util.List getRoutingVpcsList();
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -234,6 +304,8 @@ java.lang.String getLabelsOrThrow(
    */
   com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int index);
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -244,6 +316,8 @@ java.lang.String getLabelsOrThrow(
    */
   int getRoutingVpcsCount();
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -252,9 +326,11 @@ java.lang.String getLabelsOrThrow(
    *
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
-  java.util.List 
+  java.util.List
       getRoutingVpcsOrBuilderList();
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -263,6 +339,5 @@ java.lang.String getLabelsOrThrow(
    *
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
-  com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder(
-      int index);
+  com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder(int index);
 }
diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java
new file mode 100644
index 000000000000..961ad32eae1a
--- /dev/null
+++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java
@@ -0,0 +1,532 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/networkconnectivity/v1/hub.proto
+
+package com.google.cloud.networkconnectivity.v1;
+
+public final class HubProto {
+  private HubProto() {}
+
+  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_networkconnectivity_v1_Hub_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_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/networkconnectivity/v1/hu"
+          + "b.proto\022#google.cloud.networkconnectivit"
+          + "y.v1\032\034google/api/annotations.proto\032\027goog"
+          + "le/api/client.proto\032\037google/api/field_be"
+          + "havior.proto\032\031google/api/resource.proto\032"
+          + "#google/longrunning/operations.proto\032 go"
+          + "ogle/protobuf/field_mask.proto\032\037google/p"
+          + "rotobuf/timestamp.proto\"\212\004\n\003Hub\022\021\n\004name\030"
+          + "\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132\032.google"
+          + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030"
+          + "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022D"
+          + "\n\006labels\030\004 \003(\01324.google.cloud.networkcon"
+          + "nectivity.v1.Hub.LabelsEntry\022\023\n\013descript"
+          + "ion\030\005 \001(\t\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022>\n\005sta"
+          + "te\030\t \001(\0162*.google.cloud.networkconnectiv"
+          + "ity.v1.StateB\003\340A\003\022E\n\014routing_vpcs\030\n \003(\0132"
+          + "/.google.cloud.networkconnectivity.v1.Ro"
+          + "utingVPC\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005"
+          + "value\030\002 \001(\t:\0028\001:[\352AX\n&networkconnectivit"
+          + "y.googleapis.com/Hub\022.projects/{project}"
+          + "/locations/global/hubs/{hub}\"\177\n\nRoutingV"
+          + "PC\0220\n\003uri\030\001 \001(\tB#\372A \n\036compute.googleapis"
+          + ".com/Network\022?\n2required_for_new_site_to"
+          + "_site_data_transfer_spokes\030\002 \001(\010B\003\340A\003\"\276\006"
+          + "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create_tim"
+          + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003"
+          + "\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf."
+          + "TimestampB\003\340A\003\022F\n\006labels\030\004 \003(\01326.google."
+          + "cloud.networkconnectivity.v1.Spoke.Label"
+          + "sEntry\022\023\n\013description\030\005 \001(\t\022;\n\003hub\030\006 \001(\t"
+          + "B.\340A\005\372A(\n&networkconnectivity.googleapis"
+          + ".com/Hub\022Q\n\022linked_vpn_tunnels\030\021 \001(\01325.g"
+          + "oogle.cloud.networkconnectivity.v1.Linke"
+          + "dVpnTunnels\022k\n\037linked_interconnect_attac"
+          + "hments\030\022 \001(\0132B.google.cloud.networkconne"
+          + "ctivity.v1.LinkedInterconnectAttachments"
+          + "\022n\n!linked_router_appliance_instances\030\023 "
+          + "\001(\0132C.google.cloud.networkconnectivity.v"
+          + "1.LinkedRouterApplianceInstances\022\026\n\tuniq"
+          + "ue_id\030\013 \001(\tB\003\340A\003\022>\n\005state\030\017 \001(\0162*.google"
+          + ".cloud.networkconnectivity.v1.StateB\003\340A\003"
+          + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 "
+          + "\001(\t:\0028\001:e\352Ab\n(networkconnectivity.google"
+          + "apis.com/Spoke\0226projects/{project}/locat"
+          + "ions/{location}/spokes/{spoke}\"\225\001\n\017ListH"
+          + "ubsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca"
+          + "tions.googleapis.com/Location\022\021\n\tpage_si"
+          + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004"
+          + " \001(\t\022\020\n\010order_by\030\005 \001(\t\"x\n\020ListHubsRespon"
+          + "se\0226\n\004hubs\030\001 \003(\0132(.google.cloud.networkc"
+          + "onnectivity.v1.Hub\022\027\n\017next_page_token\030\002 "
+          + "\001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\rGetHubReques"
+          + "t\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&networkconnecti"
+          + "vity.googleapis.com/Hub\"\267\001\n\020CreateHubReq"
+          + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations."
+          + "googleapis.com/Location\022\023\n\006hub_id\030\002 \001(\tB"
+          + "\003\340A\002\022:\n\003hub\030\003 \001(\0132(.google.cloud.network"
+          + "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\004"
+          + " \001(\tB\003\340A\001\"\235\001\n\020UpdateHubRequest\0224\n\013update"
+          + "_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB"
+          + "\003\340A\001\022:\n\003hub\030\002 \001(\0132(.google.cloud.network"
+          + "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\003"
+          + " \001(\tB\003\340A\001\"i\n\020DeleteHubRequest\022<\n\004name\030\001 "
+          + "\001(\tB.\340A\002\372A(\n&networkconnectivity.googlea"
+          + "pis.com/Hub\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\227\001\n"
+          + "\021ListSpokesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372"
+          + "A#\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\006"
+          + "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\022ListSp"
+          + "okesResponse\022:\n\006spokes\030\001 \003(\0132*.google.cl"
+          + "oud.networkconnectivity.v1.Spoke\022\027\n\017next"
+          + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q"
+          + "\n\017GetSpokeRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n"
+          + "(networkconnectivity.googleapis.com/Spok"
+          + "e\"\277\001\n\022CreateSpokeRequest\0229\n\006parent\030\001 \001(\t"
+          + "B)\340A\002\372A#\n!locations.googleapis.com/Locat"
+          + "ion\022\025\n\010spoke_id\030\002 \001(\tB\003\340A\002\022>\n\005spoke\030\003 \001("
+          + "\0132*.google.cloud.networkconnectivity.v1."
+          + "SpokeB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\022"
+          + "UpdateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132"
+          + "\032.google.protobuf.FieldMaskB\003\340A\001\022>\n\005spok"
+          + "e\030\002 \001(\0132*.google.cloud.networkconnectivi"
+          + "ty.v1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A"
+          + "\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\tB0\340"
+          + "A\002\372A*\n(networkconnectivity.googleapis.co"
+          + "m/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\250\001\n\020Lin"
+          + "kedVpnTunnels\0223\n\004uris\030\001 \003(\tB%\372A\"\n comput"
+          + "e.googleapis.com/VpnTunnel\022\"\n\032site_to_si"
+          + "te_data_transfer\030\002 \001(\010\022;\n\013vpc_network\030\003 "
+          + "\001(\tB&\340A\003\372A \n\036compute.googleapis.com/Netw"
+          + "ork\"\302\001\n\035LinkedInterconnectAttachments\022@\n"
+          + "\004uris\030\001 \003(\tB2\372A/\n-compute.googleapis.com"
+          + "/InterconnectAttachment\022\"\n\032site_to_site_"
+          + "data_transfer\030\002 \001(\010\022;\n\013vpc_network\030\003 \001(\t"
+          + "B&\340A\003\372A \n\036compute.googleapis.com/Network"
+          + "\"\322\001\n\036LinkedRouterApplianceInstances\022O\n\ti"
+          + "nstances\030\001 \003(\0132<.google.cloud.networkcon"
+          + "nectivity.v1.RouterApplianceInstance\022\"\n\032"
+          + "site_to_site_data_transfer\030\002 \001(\010\022;\n\013vpc_"
+          + "network\030\003 \001(\tB&\340A\003\372A \n\036compute.googleapi"
+          + "s.com/Network\"l\n\027RouterApplianceInstance"
+          + "\022=\n\017virtual_machine\030\001 \001(\tB$\372A!\n\037compute."
+          + "googleapis.com/Instance\022\022\n\nip_address\030\003 "
+          + "\001(\t\"c\n\020LocationMetadata\022O\n\021location_feat"
+          + "ures\030\001 \003(\01624.google.cloud.networkconnect"
+          + "ivity.v1.LocationFeature*f\n\017LocationFeat"
+          + "ure\022 \n\034LOCATION_FEATURE_UNSPECIFIED\020\000\022\030\n"
+          + "\024SITE_TO_CLOUD_SPOKES\020\001\022\027\n\023SITE_TO_SITE_"
+          + "SPOKES\020\002*T\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000"
+          + "\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003"
+          + "\022\014\n\010UPDATING\020\0062\235\020\n\nHubService\022\267\001\n\010ListHu"
+          + "bs\0224.google.cloud.networkconnectivity.v1"
+          + ".ListHubsRequest\0325.google.cloud.networkc"
+          + "onnectivity.v1.ListHubsResponse\">\202\323\344\223\002/\022"
+          + "-/v1/{parent=projects/*/locations/global"
+          + "}/hubs\332A\006parent\022\244\001\n\006GetHub\0222.google.clou"
+          + "d.networkconnectivity.v1.GetHubRequest\032("
+          + ".google.cloud.networkconnectivity.v1.Hub"
+          + "\"<\202\323\344\223\002/\022-/v1/{name=projects/*/locations"
+          + "/global/hubs/*}\332A\004name\022\314\001\n\tCreateHub\0225.g"
+          + "oogle.cloud.networkconnectivity.v1.Creat"
+          + "eHubRequest\032\035.google.longrunning.Operati"
+          + "on\"i\202\323\344\223\0024\"-/v1/{parent=projects/*/locat"
+          + "ions/global}/hubs:\003hub\332A\021parent,hub,hub_"
+          + "id\312A\030\n\003Hub\022\021OperationMetadata\022\316\001\n\tUpdate"
+          + "Hub\0225.google.cloud.networkconnectivity.v"
+          + "1.UpdateHubRequest\032\035.google.longrunning."
+          + "Operation\"k\202\323\344\223\002821/v1/{hub.name=project"
+          + "s/*/locations/global/hubs/*}:\003hub\332A\017hub,"
+          + "update_mask\312A\030\n\003Hub\022\021OperationMetadata\022\314"
+          + "\001\n\tDeleteHub\0225.google.cloud.networkconne"
+          + "ctivity.v1.DeleteHubRequest\032\035.google.lon"
+          + "grunning.Operation\"i\202\323\344\223\002/*-/v1/{name=pr"
+          + "ojects/*/locations/global/hubs/*}\332A\004name"
+          + "\312A*\n\025google.protobuf.Empty\022\021OperationMet"
+          + "adata\022\272\001\n\nListSpokes\0226.google.cloud.netw"
+          + "orkconnectivity.v1.ListSpokesRequest\0327.g"
+          + "oogle.cloud.networkconnectivity.v1.ListS"
+          + "pokesResponse\";\202\323\344\223\002,\022*/v1/{parent=proje"
+          + "cts/*/locations/*}/spokes\332A\006parent\022\247\001\n\010G"
+          + "etSpoke\0224.google.cloud.networkconnectivi"
+          + "ty.v1.GetSpokeRequest\032*.google.cloud.net"
+          + "workconnectivity.v1.Spoke\"9\202\323\344\223\002,\022*/v1/{"
+          + "name=projects/*/locations/*/spokes/*}\332A\004"
+          + "name\022\325\001\n\013CreateSpoke\0227.google.cloud.netw"
+          + "orkconnectivity.v1.CreateSpokeRequest\032\035."
+          + "google.longrunning.Operation\"n\202\323\344\223\0023\"*/v"
+          + "1/{parent=projects/*/locations/*}/spokes"
+          + ":\005spoke\332A\025parent,spoke,spoke_id\312A\032\n\005Spok"
+          + "e\022\021OperationMetadata\022\327\001\n\013UpdateSpoke\0227.g"
+          + "oogle.cloud.networkconnectivity.v1.Updat"
+          + "eSpokeRequest\032\035.google.longrunning.Opera"
+          + "tion\"p\202\323\344\223\002920/v1/{spoke.name=projects/*"
+          + "/locations/*/spokes/*}:\005spoke\332A\021spoke,up"
+          + "date_mask\312A\032\n\005Spoke\022\021OperationMetadata\022\315"
+          + "\001\n\013DeleteSpoke\0227.google.cloud.networkcon"
+          + "nectivity.v1.DeleteSpokeRequest\032\035.google"
+          + ".longrunning.Operation\"f\202\323\344\223\002,**/v1/{nam"
+          + "e=projects/*/locations/*/spokes/*}\332A\004nam"
+          + "e\312A*\n\025google.protobuf.Empty\022\021OperationMe"
+          + "tadata\032V\312A\"networkconnectivity.googleapi"
+          + "s.com\322A.https://www.googleapis.com/auth/"
+          + "cloud-platformB\277\003\n\'com.google.cloud.netw"
+          + "orkconnectivity.v1B\010HubProtoP\001ZVgoogle.g"
+          + "olang.org/genproto/googleapis/cloud/netw"
+          + "orkconnectivity/v1;networkconnectivity\252\002"
+          + "#Google.Cloud.NetworkConnectivity.V1\312\002#G"
+          + "oogle\\Cloud\\NetworkConnectivity\\V1\352\002&Goo"
+          + "gle::Cloud::NetworkConnectivity::V1\352A`\n "
+          + "compute.googleapis.com/VpnTunnel\022
  * A collection of VLAN attachment resources. These resources should
  * be redundant attachments that all advertise the same prefixes to Google
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments}
  */
-public final class LinkedInterconnectAttachments extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LinkedInterconnectAttachments extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments)
     LinkedInterconnectAttachmentsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LinkedInterconnectAttachments.newBuilder() to construct.
   private LinkedInterconnectAttachments(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LinkedInterconnectAttachments() {
     uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     vpcNetwork_ = "";
@@ -29,61 +47,71 @@ private LinkedInterconnectAttachments() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LinkedInterconnectAttachments();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
+            com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class,
+            com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
   }
 
   public static final int URIS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringList uris_;
   /**
+   *
+   *
    * 
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_; } /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -91,22 +119,26 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 2; private boolean siteToSiteDataTransfer_ = false; /** + * + * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -114,6 +146,7 @@ public java.lang.String getUris(int index) {
    * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -122,14 +155,20 @@ public boolean getSiteToSiteDataTransfer() { } public static final int VPC_NETWORK_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object vpcNetwork_ = ""; /** + * + * *
    * Output only. The VPC network where these VLAN attachments are located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The vpcNetwork. */ @java.lang.Override @@ -138,29 +177,31 @@ public java.lang.String getVpcNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcNetwork_ = s; return s; } } /** + * + * *
    * Output only. The VPC network where these VLAN attachments are located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpcNetwork. */ @java.lang.Override - public com.google.protobuf.ByteString - getVpcNetworkBytes() { + public com.google.protobuf.ByteString getVpcNetworkBytes() { java.lang.Object ref = vpcNetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcNetwork_ = b; return b; } else { @@ -169,6 +210,7 @@ public java.lang.String getVpcNetwork() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,8 +222,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); } @@ -209,8 +250,7 @@ public int getSerializedSize() { size += 1 * getUrisList().size(); } if (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, siteToSiteDataTransfer_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vpcNetwork_); @@ -223,19 +263,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.networkconnectivity.v1.LinkedInterconnectAttachments)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other = (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) obj; + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other = + (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) obj; - if (!getUrisList() - .equals(other.getUrisList())) return false; - if (getSiteToSiteDataTransfer() - != other.getSiteToSiteDataTransfer()) return false; - if (!getVpcNetwork() - .equals(other.getVpcNetwork())) return false; + if (!getUrisList().equals(other.getUrisList())) return false; + if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; + if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -252,8 +290,7 @@ public int hashCode() { hash = (53 * hash) + getUrisList().hashCode(); } hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSiteToSiteDataTransfer()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getVpcNetwork().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -262,96 +299,105 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments 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.networkconnectivity.v1.LinkedInterconnectAttachments + 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.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 collection of VLAN attachment resources. These resources should
    * be redundant attachments that all advertise the same prefixes to Google
@@ -361,33 +407,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments)
       com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
+              com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class,
+              com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
     }
 
-    // Construct using com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.newBuilder()
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -400,14 +446,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getDefaultInstanceForType() {
-      return com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance();
+    public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments
+        getDefaultInstanceForType() {
+      return com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -421,14 +469,18 @@ public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments bui
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments buildPartial() {
-      com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result = new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(this);
+      com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result =
+          new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         uris_ = uris_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -436,7 +488,8 @@ private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.
       result.uris_ = uris_;
     }
 
-    private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
+    private void buildPartial0(
+        com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_;
@@ -450,46 +503,51 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedInterco
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments)other);
+        return mergeFrom(
+            (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other) {
-      if (other == com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other) {
+      if (other
+          == com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments
+              .getDefaultInstance()) return this;
       if (!other.uris_.isEmpty()) {
         if (uris_.isEmpty()) {
           uris_ = other.uris_;
@@ -534,28 +592,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureUrisIsMutable();
-              uris_.add(s);
-              break;
-            } // case 10
-            case 16: {
-              siteToSiteDataTransfer_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              vpcNetwork_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureUrisIsMutable();
+                uris_.add(s);
+                break;
+              } // case 10
+            case 16:
+              {
+                siteToSiteDataTransfer_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                vpcNetwork_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -565,44 +627,55 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList uris_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensureUrisIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         uris_ = new com.google.protobuf.LazyStringArrayList(uris_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_.getUnmodifiableView(); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -610,76 +683,90 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris( - java.lang.Iterable values) { + public Builder addAllUris(java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); onChanged(); return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearUris() { @@ -689,17 +776,21 @@ public Builder clearUris() { return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); @@ -707,8 +798,10 @@ public Builder addUrisBytes( return this; } - private boolean siteToSiteDataTransfer_ ; + private boolean siteToSiteDataTransfer_; /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -716,6 +809,7 @@ public Builder addUrisBytes(
      * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -723,6 +817,8 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -730,17 +826,20 @@ public boolean getSiteToSiteDataTransfer() {
      * 
* * bool site_to_site_data_transfer = 2; + * * @param value The siteToSiteDataTransfer to set. * @return This builder for chaining. */ public Builder setSiteToSiteDataTransfer(boolean value) { - + siteToSiteDataTransfer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -748,6 +847,7 @@ public Builder setSiteToSiteDataTransfer(boolean value) {
      * 
* * bool site_to_site_data_transfer = 2; + * * @return This builder for chaining. */ public Builder clearSiteToSiteDataTransfer() { @@ -759,18 +859,22 @@ public Builder clearSiteToSiteDataTransfer() { private java.lang.Object vpcNetwork_ = ""; /** + * + * *
      * Output only. The VPC network where these VLAN attachments are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The vpcNetwork. */ public java.lang.String getVpcNetwork() { java.lang.Object ref = vpcNetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcNetwork_ = s; return s; @@ -779,20 +883,23 @@ public java.lang.String getVpcNetwork() { } } /** + * + * *
      * Output only. The VPC network where these VLAN attachments are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpcNetwork. */ - public com.google.protobuf.ByteString - getVpcNetworkBytes() { + public com.google.protobuf.ByteString getVpcNetworkBytes() { java.lang.Object ref = vpcNetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcNetwork_ = b; return b; } else { @@ -800,28 +907,39 @@ public java.lang.String getVpcNetwork() { } } /** + * + * *
      * Output only. The VPC network where these VLAN attachments are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetwork( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVpcNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } vpcNetwork_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. The VPC network where these VLAN attachments are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearVpcNetwork() { @@ -831,26 +949,32 @@ public Builder clearVpcNetwork() { return this; } /** + * + * *
      * Output only. The VPC network where these VLAN attachments are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); vpcNetwork_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -860,41 +984,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) - private static final com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkedInterconnectAttachments parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkedInterconnectAttachments parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -906,9 +1032,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java similarity index 64% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java index 7d3715c99245..57208804dc85 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java @@ -1,54 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LinkedInterconnectAttachmentsOrBuilder extends +public interface LinkedInterconnectAttachmentsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the uris. */ - java.util.List - getUrisList(); + java.util.List getUrisList(); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of uris. */ int getUrisCount(); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString - getUrisBytes(int index); + com.google.protobuf.ByteString getUrisBytes(int index); /** + * + * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -56,27 +84,37 @@ public interface LinkedInterconnectAttachmentsOrBuilder extends
    * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ boolean getSiteToSiteDataTransfer(); /** + * + * *
    * Output only. The VPC network where these VLAN attachments are located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The vpcNetwork. */ java.lang.String getVpcNetwork(); /** + * + * *
    * Output only. The VPC network where these VLAN attachments are located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpcNetwork. */ - com.google.protobuf.ByteString - getVpcNetworkBytes(); + com.google.protobuf.ByteString getVpcNetworkBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java similarity index 64% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java index b0251c13a16c..3cab3c06b2f9 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * A collection of router appliance instances. If you configure multiple router
  * appliance instances to receive data from the same set of sites outside of
@@ -13,15 +30,17 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances}
  */
-public final class LinkedRouterApplianceInstances extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LinkedRouterApplianceInstances extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)
     LinkedRouterApplianceInstancesOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LinkedRouterApplianceInstances.newBuilder() to construct.
-  private LinkedRouterApplianceInstances(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private LinkedRouterApplianceInstances(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LinkedRouterApplianceInstances() {
     instances_ = java.util.Collections.emptyList();
     vpcNetwork_ = "";
@@ -29,93 +48,115 @@ private LinkedRouterApplianceInstances() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LinkedRouterApplianceInstances();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
+            com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class,
+            com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
   }
 
   public static final int INSTANCES_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
-  private java.util.List instances_;
+  private java.util.List
+      instances_;
   /**
+   *
+   *
    * 
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ @java.lang.Override - public java.util.List getInstancesList() { + public java.util.List + getInstancesList() { return instances_; } /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> getInstancesOrBuilderList() { return instances_; } /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ @java.lang.Override public int getInstancesCount() { return instances_.size(); } /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index) { return instances_.get(index); } /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInstancesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder + getInstancesOrBuilder(int index) { return instances_.get(index); } public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 2; private boolean siteToSiteDataTransfer_ = false; /** + * + * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -123,6 +164,7 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder
    * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -131,15 +173,21 @@ public boolean getSiteToSiteDataTransfer() { } public static final int VPC_NETWORK_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object vpcNetwork_ = ""; /** + * + * *
    * Output only. The VPC network where these router appliance instances are
    * located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The vpcNetwork. */ @java.lang.Override @@ -148,30 +196,32 @@ public java.lang.String getVpcNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcNetwork_ = s; return s; } } /** + * + * *
    * Output only. The VPC network where these router appliance instances are
    * located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpcNetwork. */ @java.lang.Override - public com.google.protobuf.ByteString - getVpcNetworkBytes() { + public com.google.protobuf.ByteString getVpcNetworkBytes() { java.lang.Object ref = vpcNetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcNetwork_ = b; return b; } else { @@ -180,6 +230,7 @@ public java.lang.String getVpcNetwork() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +242,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -212,12 +262,10 @@ 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 (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, siteToSiteDataTransfer_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vpcNetwork_); @@ -230,19 +278,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.networkconnectivity.v1.LinkedRouterApplianceInstances)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other = (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) obj; - - if (!getInstancesList() - .equals(other.getInstancesList())) return false; - if (getSiteToSiteDataTransfer() - != other.getSiteToSiteDataTransfer()) return false; - if (!getVpcNetwork() - .equals(other.getVpcNetwork())) return false; + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other = + (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) obj; + + if (!getInstancesList().equals(other.getInstancesList())) return false; + if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; + if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -259,8 +305,7 @@ public int hashCode() { hash = (53 * hash) + getInstancesList().hashCode(); } hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSiteToSiteDataTransfer()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getVpcNetwork().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -269,96 +314,105 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances 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.networkconnectivity.v1.LinkedRouterApplianceInstances + 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.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 collection of router appliance instances. If you configure multiple router
    * appliance instances to receive data from the same set of sites outside of
@@ -368,33 +422,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)
       com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
+              com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class,
+              com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
     }
 
-    // Construct using com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.newBuilder()
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -412,19 +466,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getDefaultInstanceForType() {
-      return com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance();
+    public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances
+        getDefaultInstanceForType() {
+      return com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances build() {
-      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result = buildPartial();
+      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -433,14 +490,18 @@ public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances bu
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances buildPartial() {
-      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result = new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(this);
+      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result =
+          new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
       if (instancesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           instances_ = java.util.Collections.unmodifiableList(instances_);
@@ -452,7 +513,8 @@ private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.
       }
     }
 
-    private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
+    private void buildPartial0(
+        com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_;
@@ -466,46 +528,51 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedRouterA
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)other);
+        return mergeFrom(
+            (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other) {
-      if (other == com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other) {
+      if (other
+          == com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances
+              .getDefaultInstance()) return this;
       if (instancesBuilder_ == null) {
         if (!other.instances_.isEmpty()) {
           if (instances_.isEmpty()) {
@@ -524,9 +591,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedRouterApp
             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_);
           }
@@ -566,35 +634,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance m =
-                  input.readMessage(
-                      com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.parser(),
-                      extensionRegistry);
-              if (instancesBuilder_ == null) {
-                ensureInstancesIsMutable();
-                instances_.add(m);
-              } else {
-                instancesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 16: {
-              siteToSiteDataTransfer_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              vpcNetwork_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.networkconnectivity.v1.RouterApplianceInstance m =
+                    input.readMessage(
+                        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.parser(),
+                        extensionRegistry);
+                if (instancesBuilder_ == null) {
+                  ensureInstancesIsMutable();
+                  instances_.add(m);
+                } else {
+                  instancesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 16:
+              {
+                siteToSiteDataTransfer_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                vpcNetwork_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -604,28 +676,39 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List instances_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        instances_ = java.util.Collections.emptyList();
+
     private void ensureInstancesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        instances_ = new java.util.ArrayList(instances_);
+        instances_ =
+            new java.util.ArrayList<
+                com.google.cloud.networkconnectivity.v1.RouterApplianceInstance>(instances_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> instancesBuilder_;
+            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance,
+            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder,
+            com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>
+        instancesBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public java.util.List getInstancesList() { + public java.util.List + getInstancesList() { if (instancesBuilder_ == null) { return java.util.Collections.unmodifiableList(instances_); } else { @@ -633,11 +716,14 @@ public java.util.List * The list of router appliance instances. *
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public int getInstancesCount() { if (instancesBuilder_ == null) { @@ -647,11 +733,14 @@ public int getInstancesCount() { } } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index) { if (instancesBuilder_ == null) { @@ -661,11 +750,14 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstan } } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder setInstances( int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { @@ -682,14 +774,18 @@ public Builder setInstances( return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder setInstances( - int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { + int index, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.set(index, builderForValue.build()); @@ -700,13 +796,17 @@ public Builder setInstances( return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public Builder addInstances(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { + public Builder addInstances( + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -720,11 +820,14 @@ public Builder addInstances(com.google.cloud.networkconnectivity.v1.RouterApplia return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder addInstances( int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { @@ -741,11 +844,14 @@ public Builder addInstances( return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder addInstances( com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { @@ -759,14 +865,18 @@ public Builder addInstances( return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder addInstances( - int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { + int index, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(index, builderForValue.build()); @@ -777,18 +887,22 @@ public Builder addInstances( return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder addAllInstances( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstance> + 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); @@ -796,11 +910,14 @@ public Builder addAllInstances( return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder clearInstances() { if (instancesBuilder_ == null) { @@ -813,11 +930,14 @@ public Builder clearInstances() { return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder removeInstances(int index) { if (instancesBuilder_ == null) { @@ -830,39 +950,50 @@ public Builder removeInstances(int index) { return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder getInstancesBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder + getInstancesBuilder(int index) { return getInstancesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInstancesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder + getInstancesOrBuilder(int index) { if (instancesBuilder_ == null) { - return instances_.get(index); } else { + return instances_.get(index); + } else { return instancesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public java.util.List - getInstancesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> + getInstancesOrBuilderList() { if (instancesBuilder_ != null) { return instancesBuilder_.getMessageOrBuilderList(); } else { @@ -870,56 +1001,74 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder } } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder addInstancesBuilder() { - return getInstancesFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder + addInstancesBuilder() { + return getInstancesFieldBuilder() + .addBuilder( + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder addInstancesBuilder( - int index) { - return getInstancesFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder + addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public java.util.List - getInstancesBuilderList() { + public java.util.List + getInstancesBuilderList() { return getInstancesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> getInstancesFieldBuilder() { if (instancesBuilder_ == null) { - instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>( - instances_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); instances_ = null; } return instancesBuilder_; } - private boolean siteToSiteDataTransfer_ ; + private boolean siteToSiteDataTransfer_; /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -927,6 +1076,7 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder a
      * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -934,6 +1084,8 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -941,17 +1093,20 @@ public boolean getSiteToSiteDataTransfer() {
      * 
* * bool site_to_site_data_transfer = 2; + * * @param value The siteToSiteDataTransfer to set. * @return This builder for chaining. */ public Builder setSiteToSiteDataTransfer(boolean value) { - + siteToSiteDataTransfer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -959,6 +1114,7 @@ public Builder setSiteToSiteDataTransfer(boolean value) {
      * 
* * bool site_to_site_data_transfer = 2; + * * @return This builder for chaining. */ public Builder clearSiteToSiteDataTransfer() { @@ -970,19 +1126,23 @@ public Builder clearSiteToSiteDataTransfer() { private java.lang.Object vpcNetwork_ = ""; /** + * + * *
      * Output only. The VPC network where these router appliance instances are
      * located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The vpcNetwork. */ public java.lang.String getVpcNetwork() { java.lang.Object ref = vpcNetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcNetwork_ = s; return s; @@ -991,21 +1151,24 @@ public java.lang.String getVpcNetwork() { } } /** + * + * *
      * Output only. The VPC network where these router appliance instances are
      * located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpcNetwork. */ - public com.google.protobuf.ByteString - getVpcNetworkBytes() { + public com.google.protobuf.ByteString getVpcNetworkBytes() { java.lang.Object ref = vpcNetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcNetwork_ = b; return b; } else { @@ -1013,30 +1176,41 @@ public java.lang.String getVpcNetwork() { } } /** + * + * *
      * Output only. The VPC network where these router appliance instances are
      * located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetwork( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVpcNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } vpcNetwork_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. The VPC network where these router appliance instances are
      * located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearVpcNetwork() { @@ -1046,27 +1220,33 @@ public Builder clearVpcNetwork() { return this; } /** + * + * *
      * Output only. The VPC network where these router appliance instances are
      * located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); vpcNetwork_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1076,41 +1256,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) - private static final com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkedRouterApplianceInstances parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkedRouterApplianceInstances parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1122,9 +1304,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java similarity index 62% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java index b7516a981b7a..cbca453e5f07 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java @@ -1,57 +1,90 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LinkedRouterApplianceInstancesOrBuilder extends +public interface LinkedRouterApplianceInstancesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - java.util.List + java.util.List getInstancesList(); /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index); /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ int getInstancesCount(); /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - java.util.List + java.util.List getInstancesOrBuilderList(); /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInstancesOrBuilder( int index); /** + * + * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -59,29 +92,39 @@ com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInst
    * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ boolean getSiteToSiteDataTransfer(); /** + * + * *
    * Output only. The VPC network where these router appliance instances are
    * located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The vpcNetwork. */ java.lang.String getVpcNetwork(); /** + * + * *
    * Output only. The VPC network where these router appliance instances are
    * located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpcNetwork. */ - com.google.protobuf.ByteString - getVpcNetworkBytes(); + com.google.protobuf.ByteString getVpcNetworkBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java similarity index 68% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java index 9b0d325630ba..79d15797258c 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * A collection of Cloud VPN tunnel resources. These resources should be
  * redundant HA VPN tunnels that all advertise the same prefixes to Google
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedVpnTunnels}
  */
-public final class LinkedVpnTunnels extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LinkedVpnTunnels extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LinkedVpnTunnels)
     LinkedVpnTunnelsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LinkedVpnTunnels.newBuilder() to construct.
   private LinkedVpnTunnels(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LinkedVpnTunnels() {
     uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     vpcNetwork_ = "";
@@ -29,61 +47,71 @@ private LinkedVpnTunnels() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LinkedVpnTunnels();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
+            com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class,
+            com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
   }
 
   public static final int URIS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringList uris_;
   /**
+   *
+   *
    * 
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_; } /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -91,22 +119,26 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 2; private boolean siteToSiteDataTransfer_ = false; /** + * + * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -114,6 +146,7 @@ public java.lang.String getUris(int index) {
    * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -122,14 +155,20 @@ public boolean getSiteToSiteDataTransfer() { } public static final int VPC_NETWORK_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object vpcNetwork_ = ""; /** + * + * *
    * Output only. The VPC network where these VPN tunnels are located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The vpcNetwork. */ @java.lang.Override @@ -138,29 +177,31 @@ public java.lang.String getVpcNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcNetwork_ = s; return s; } } /** + * + * *
    * Output only. The VPC network where these VPN tunnels are located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpcNetwork. */ @java.lang.Override - public com.google.protobuf.ByteString - getVpcNetworkBytes() { + public com.google.protobuf.ByteString getVpcNetworkBytes() { java.lang.Object ref = vpcNetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcNetwork_ = b; return b; } else { @@ -169,6 +210,7 @@ public java.lang.String getVpcNetwork() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,8 +222,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); } @@ -209,8 +250,7 @@ public int getSerializedSize() { size += 1 * getUrisList().size(); } if (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, siteToSiteDataTransfer_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vpcNetwork_); @@ -223,19 +263,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.networkconnectivity.v1.LinkedVpnTunnels)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other = (com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) obj; + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other = + (com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) obj; - if (!getUrisList() - .equals(other.getUrisList())) return false; - if (getSiteToSiteDataTransfer() - != other.getSiteToSiteDataTransfer()) return false; - if (!getVpcNetwork() - .equals(other.getVpcNetwork())) return false; + if (!getUrisList().equals(other.getUrisList())) return false; + if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; + if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -252,8 +290,7 @@ public int hashCode() { hash = (53 * hash) + getUrisList().hashCode(); } hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSiteToSiteDataTransfer()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getVpcNetwork().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -262,96 +299,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 collection of Cloud VPN tunnel resources. These resources should be
    * redundant HA VPN tunnels that all advertise the same prefixes to Google
@@ -361,33 +406,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedVpnTunnels}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedVpnTunnels)
       com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
+              com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class,
+              com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -400,9 +444,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
     }
 
     @java.lang.Override
@@ -421,14 +465,18 @@ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels buildPartial() {
-      com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result = new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(this);
+      com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result =
+          new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         uris_ = uris_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -450,38 +498,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedVpnTunn
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -489,7 +538,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other) {
-      if (other == com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance())
+        return this;
       if (!other.uris_.isEmpty()) {
         if (uris_.isEmpty()) {
           uris_ = other.uris_;
@@ -534,28 +584,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureUrisIsMutable();
-              uris_.add(s);
-              break;
-            } // case 10
-            case 16: {
-              siteToSiteDataTransfer_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              vpcNetwork_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureUrisIsMutable();
+                uris_.add(s);
+                break;
+              } // case 10
+            case 16:
+              {
+                siteToSiteDataTransfer_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                vpcNetwork_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -565,44 +619,55 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList uris_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensureUrisIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         uris_ = new com.google.protobuf.LazyStringArrayList(uris_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_.getUnmodifiableView(); } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -610,76 +675,90 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris( - java.lang.Iterable values) { + public Builder addAllUris(java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); onChanged(); return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearUris() { @@ -689,17 +768,21 @@ public Builder clearUris() { return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); @@ -707,8 +790,10 @@ public Builder addUrisBytes( return this; } - private boolean siteToSiteDataTransfer_ ; + private boolean siteToSiteDataTransfer_; /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -716,6 +801,7 @@ public Builder addUrisBytes(
      * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -723,6 +809,8 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -730,17 +818,20 @@ public boolean getSiteToSiteDataTransfer() {
      * 
* * bool site_to_site_data_transfer = 2; + * * @param value The siteToSiteDataTransfer to set. * @return This builder for chaining. */ public Builder setSiteToSiteDataTransfer(boolean value) { - + siteToSiteDataTransfer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -748,6 +839,7 @@ public Builder setSiteToSiteDataTransfer(boolean value) {
      * 
* * bool site_to_site_data_transfer = 2; + * * @return This builder for chaining. */ public Builder clearSiteToSiteDataTransfer() { @@ -759,18 +851,22 @@ public Builder clearSiteToSiteDataTransfer() { private java.lang.Object vpcNetwork_ = ""; /** + * + * *
      * Output only. The VPC network where these VPN tunnels are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The vpcNetwork. */ public java.lang.String getVpcNetwork() { java.lang.Object ref = vpcNetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcNetwork_ = s; return s; @@ -779,20 +875,23 @@ public java.lang.String getVpcNetwork() { } } /** + * + * *
      * Output only. The VPC network where these VPN tunnels are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpcNetwork. */ - public com.google.protobuf.ByteString - getVpcNetworkBytes() { + public com.google.protobuf.ByteString getVpcNetworkBytes() { java.lang.Object ref = vpcNetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcNetwork_ = b; return b; } else { @@ -800,28 +899,39 @@ public java.lang.String getVpcNetwork() { } } /** + * + * *
      * Output only. The VPC network where these VPN tunnels are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetwork( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVpcNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } vpcNetwork_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. The VPC network where these VPN tunnels are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearVpcNetwork() { @@ -831,26 +941,32 @@ public Builder clearVpcNetwork() { return this; } /** + * + * *
      * Output only. The VPC network where these VPN tunnels are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); vpcNetwork_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -860,12 +976,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) private static final com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(); } @@ -874,27 +990,27 @@ public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkedVpnTunnels parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkedVpnTunnels parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -909,6 +1025,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java similarity index 63% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java index 03fe8a98bd17..8072c8053993 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java @@ -1,54 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LinkedVpnTunnelsOrBuilder extends +public interface LinkedVpnTunnelsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the uris. */ - java.util.List - getUrisList(); + java.util.List getUrisList(); /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of uris. */ int getUrisCount(); /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString - getUrisBytes(int index); + com.google.protobuf.ByteString getUrisBytes(int index); /** + * + * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -56,27 +84,37 @@ public interface LinkedVpnTunnelsOrBuilder extends
    * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ boolean getSiteToSiteDataTransfer(); /** + * + * *
    * Output only. The VPC network where these VPN tunnels are located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The vpcNetwork. */ java.lang.String getVpcNetwork(); /** + * + * *
    * Output only. The VPC network where these VPN tunnels are located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpcNetwork. */ - com.google.protobuf.ByteString - getVpcNetworkBytes(); + com.google.protobuf.ByteString getVpcNetworkBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java index 0675938836a5..f993c7627249 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Request for
  * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsRequest}
  */
-public final class ListHubsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListHubsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListHubsRequest)
     ListHubsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListHubsRequest.newBuilder() to construct.
   private ListHubsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListHubsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -30,38 +48,45 @@ private ListHubsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListHubsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.ListHubsRequest.class,
+            com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. The parent resource's name.
    * 
* - * string parent = 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 @@ -70,29 +95,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 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 { @@ -103,11 +130,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -116,14 +146,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -132,29 +166,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The page token.
    * 
* * 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 { @@ -163,14 +197,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -179,29 +217,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; } } /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * 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 { @@ -210,14 +248,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -226,29 +268,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -257,6 +299,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,8 +311,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -298,8 +340,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_); @@ -318,23 +359,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.networkconnectivity.v1.ListHubsRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListHubsRequest other = (com.google.cloud.networkconnectivity.v1.ListHubsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1.ListHubsRequest other = + (com.google.cloud.networkconnectivity.v1.ListHubsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -362,96 +399,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListHubsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.ListHubsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
@@ -460,33 +505,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListHubsRequest)
       com.google.cloud.networkconnectivity.v1.ListHubsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.ListHubsRequest.class,
+              com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.ListHubsRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -500,9 +544,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -521,8 +565,11 @@ public com.google.cloud.networkconnectivity.v1.ListHubsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.ListHubsRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.ListHubsRequest result = new com.google.cloud.networkconnectivity.v1.ListHubsRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.ListHubsRequest result =
+          new com.google.cloud.networkconnectivity.v1.ListHubsRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -550,38 +597,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListHubsReque
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.ListHubsRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -589,7 +637,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListHubsRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.ListHubsRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.ListHubsRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -639,37 +688,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              filter_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              orderBy_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                filter_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                orderBy_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -679,22 +734,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The parent resource's name.
      * 
* - * string parent = 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; @@ -703,20 +763,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * string parent = 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 { @@ -724,28 +787,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * string 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() { @@ -755,17 +829,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -773,13 +853,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -787,27 +870,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -819,18 +908,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The page token.
      * 
* * 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; @@ -839,20 +930,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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 { @@ -860,28 +952,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The page token.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -891,17 +990,21 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -911,18 +1014,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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; @@ -931,20 +1036,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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 { @@ -952,28 +1058,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -983,17 +1096,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1003,18 +1120,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1023,20 +1142,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1044,28 +1164,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1075,26 +1202,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1104,12 +1235,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListHubsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListHubsRequest) private static final com.google.cloud.networkconnectivity.v1.ListHubsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListHubsRequest(); } @@ -1118,27 +1249,27 @@ public static com.google.cloud.networkconnectivity.v1.ListHubsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1153,6 +1284,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListHubsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java index d7553ac570fe..0a8b42a0fd49 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java @@ -1,99 +1,142 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListHubsRequestOrBuilder extends +public interface ListHubsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListHubsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java similarity index 72% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java index 435684caabee..20024f166dd5 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Response for
  * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsResponse}
  */
-public final class ListHubsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListHubsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListHubsResponse)
     ListHubsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListHubsResponse.newBuilder() to construct.
   private ListHubsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListHubsResponse() {
     hubs_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -29,33 +47,37 @@ private ListHubsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListHubsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class);
+            com.google.cloud.networkconnectivity.v1.ListHubsResponse.class,
+            com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class);
   }
 
   public static final int HUBS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List hubs_;
   /**
+   *
+   *
    * 
    * The requested hubs.
    * 
@@ -67,6 +89,8 @@ public java.util.List getHubsList() return hubs_; } /** + * + * *
    * The requested hubs.
    * 
@@ -74,11 +98,13 @@ public java.util.List getHubsList() * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getHubsOrBuilderList() { return hubs_; } /** + * + * *
    * The requested hubs.
    * 
@@ -90,6 +116,8 @@ public int getHubsCount() { return hubs_.size(); } /** + * + * *
    * The requested hubs.
    * 
@@ -101,6 +129,8 @@ public com.google.cloud.networkconnectivity.v1.Hub getHubs(int index) { return hubs_.get(index); } /** + * + * *
    * The requested hubs.
    * 
@@ -108,21 +138,24 @@ public com.google.cloud.networkconnectivity.v1.Hub getHubs(int index) { * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int index) { return hubs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -131,30 +164,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -163,37 +196,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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. */ @@ -201,20 +243,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; @@ -226,8 +271,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < hubs_.size(); i++) { output.writeMessage(1, hubs_.get(i)); } @@ -247,8 +291,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < hubs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, hubs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hubs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -269,19 +312,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.networkconnectivity.v1.ListHubsResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListHubsResponse other = (com.google.cloud.networkconnectivity.v1.ListHubsResponse) obj; + com.google.cloud.networkconnectivity.v1.ListHubsResponse other = + (com.google.cloud.networkconnectivity.v1.ListHubsResponse) obj; - if (!getHubsList() - .equals(other.getHubsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getHubsList().equals(other.getHubsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -309,96 +350,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListHubsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.ListHubsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for
    * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
@@ -407,33 +456,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListHubsResponse)
       com.google.cloud.networkconnectivity.v1.ListHubsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class);
+              com.google.cloud.networkconnectivity.v1.ListHubsResponse.class,
+              com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.ListHubsResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -452,9 +500,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -473,14 +521,18 @@ public com.google.cloud.networkconnectivity.v1.ListHubsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.ListHubsResponse buildPartial() {
-      com.google.cloud.networkconnectivity.v1.ListHubsResponse result = new com.google.cloud.networkconnectivity.v1.ListHubsResponse(this);
+      com.google.cloud.networkconnectivity.v1.ListHubsResponse result =
+          new com.google.cloud.networkconnectivity.v1.ListHubsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.ListHubsResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1.ListHubsResponse result) {
       if (hubsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           hubs_ = java.util.Collections.unmodifiableList(hubs_);
@@ -508,38 +560,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListHubsRespo
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.ListHubsResponse) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsResponse)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -547,7 +600,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListHubsResponse other) {
-      if (other == com.google.cloud.networkconnectivity.v1.ListHubsResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.ListHubsResponse.getDefaultInstance())
+        return this;
       if (hubsBuilder_ == null) {
         if (!other.hubs_.isEmpty()) {
           if (hubs_.isEmpty()) {
@@ -566,9 +620,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListHubsRespons
             hubsBuilder_ = null;
             hubs_ = other.hubs_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            hubsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getHubsFieldBuilder() : null;
+            hubsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getHubsFieldBuilder()
+                    : null;
           } else {
             hubsBuilder_.addAllMessages(other.hubs_);
           }
@@ -615,36 +670,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.networkconnectivity.v1.Hub m =
-                  input.readMessage(
-                      com.google.cloud.networkconnectivity.v1.Hub.parser(),
-                      extensionRegistry);
-              if (hubsBuilder_ == null) {
-                ensureHubsIsMutable();
-                hubs_.add(m);
-              } else {
-                hubsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureUnreachableIsMutable();
-              unreachable_.add(s);
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.networkconnectivity.v1.Hub m =
+                    input.readMessage(
+                        com.google.cloud.networkconnectivity.v1.Hub.parser(), extensionRegistry);
+                if (hubsBuilder_ == null) {
+                  ensureHubsIsMutable();
+                  hubs_.add(m);
+                } else {
+                  hubsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureUnreachableIsMutable();
+                unreachable_.add(s);
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -654,21 +712,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List hubs_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureHubsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         hubs_ = new java.util.ArrayList(hubs_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> hubsBuilder_;
+            com.google.cloud.networkconnectivity.v1.Hub,
+            com.google.cloud.networkconnectivity.v1.Hub.Builder,
+            com.google.cloud.networkconnectivity.v1.HubOrBuilder>
+        hubsBuilder_;
 
     /**
+     *
+     *
      * 
      * The requested hubs.
      * 
@@ -683,6 +748,8 @@ public java.util.List getHubsList() } } /** + * + * *
      * The requested hubs.
      * 
@@ -697,6 +764,8 @@ public int getHubsCount() { } } /** + * + * *
      * The requested hubs.
      * 
@@ -711,14 +780,15 @@ public com.google.cloud.networkconnectivity.v1.Hub getHubs(int index) { } } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public Builder setHubs( - int index, com.google.cloud.networkconnectivity.v1.Hub value) { + public Builder setHubs(int index, com.google.cloud.networkconnectivity.v1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -732,6 +802,8 @@ public Builder setHubs( return this; } /** + * + * *
      * The requested hubs.
      * 
@@ -750,6 +822,8 @@ public Builder setHubs( return this; } /** + * + * *
      * The requested hubs.
      * 
@@ -770,14 +844,15 @@ public Builder addHubs(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public Builder addHubs( - int index, com.google.cloud.networkconnectivity.v1.Hub value) { + public Builder addHubs(int index, com.google.cloud.networkconnectivity.v1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -791,14 +866,15 @@ public Builder addHubs( return this; } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public Builder addHubs( - com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { + public Builder addHubs(com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { if (hubsBuilder_ == null) { ensureHubsIsMutable(); hubs_.add(builderForValue.build()); @@ -809,6 +885,8 @@ public Builder addHubs( return this; } /** + * + * *
      * The requested hubs.
      * 
@@ -827,6 +905,8 @@ public Builder addHubs( return this; } /** + * + * *
      * The requested hubs.
      * 
@@ -837,8 +917,7 @@ public Builder addAllHubs( java.lang.Iterable values) { if (hubsBuilder_ == null) { ensureHubsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, hubs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hubs_); onChanged(); } else { hubsBuilder_.addAllMessages(values); @@ -846,6 +925,8 @@ public Builder addAllHubs( return this; } /** + * + * *
      * The requested hubs.
      * 
@@ -863,6 +944,8 @@ public Builder clearHubs() { return this; } /** + * + * *
      * The requested hubs.
      * 
@@ -880,39 +963,44 @@ public Builder removeHubs(int index) { return this; } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubsBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubsBuilder(int index) { return getHubsFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int index) { if (hubsBuilder_ == null) { - return hubs_.get(index); } else { + return hubs_.get(index); + } else { return hubsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public java.util.List - getHubsOrBuilderList() { + public java.util.List + getHubsOrBuilderList() { if (hubsBuilder_ != null) { return hubsBuilder_.getMessageOrBuilderList(); } else { @@ -920,6 +1008,8 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( } } /** + * + * *
      * The requested hubs.
      * 
@@ -927,42 +1017,48 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder() { - return getHubsFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); + return getHubsFieldBuilder() + .addBuilder(com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder( - int index) { - return getHubsFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder(int index) { + return getHubsFieldBuilder() + .addBuilder(index, com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public java.util.List - getHubsBuilderList() { + public java.util.List + getHubsBuilderList() { return getHubsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder> getHubsFieldBuilder() { if (hubsBuilder_ == null) { - hubsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder>( - hubs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + hubsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder>( + hubs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); hubs_ = null; } return hubsBuilder_; @@ -970,19 +1066,21 @@ public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -991,21 +1089,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1013,30 +1112,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1046,18 +1152,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1065,42 +1175,52 @@ public Builder setNextPageTokenBytes( 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * 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. */ @@ -1108,76 +1228,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) { - if (value == null) { throw new NullPointerException(); } + 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(); } + 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) { + 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() { @@ -1187,26 +1321,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) { - if (value == null) { throw new NullPointerException(); } + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1216,12 +1354,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListHubsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListHubsResponse) private static final com.google.cloud.networkconnectivity.v1.ListHubsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListHubsResponse(); } @@ -1230,27 +1368,27 @@ public static com.google.cloud.networkconnectivity.v1.ListHubsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1265,6 +1403,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListHubsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java index 73449f136a7b..b161d9b83f1a 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListHubsResponseOrBuilder extends +public interface ListHubsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListHubsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested hubs.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - java.util.List - getHubsList(); + java.util.List getHubsList(); /** + * + * *
    * The requested hubs.
    * 
@@ -25,6 +44,8 @@ public interface ListHubsResponseOrBuilder extends */ com.google.cloud.networkconnectivity.v1.Hub getHubs(int index); /** + * + * *
    * The requested hubs.
    * 
@@ -33,84 +54,102 @@ public interface ListHubsResponseOrBuilder extends */ int getHubsCount(); /** + * + * *
    * The requested hubs.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - java.util.List + java.util.List getHubsOrBuilderList(); /** + * + * *
    * The requested hubs.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( - int index); + com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int index); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequest.java similarity index 66% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequest.java index e4d5c60f2d07..9b8eb43b32e7 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequest.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/networkconnectivity/v1/policy_based_routing.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Request for [PolicyBasedRouting.ListPolicyBasedRoutes][] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest} */ -public final class ListPolicyBasedRoutesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPolicyBasedRoutesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) ListPolicyBasedRoutesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPolicyBasedRoutesRequest.newBuilder() to construct. private ListPolicyBasedRoutesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPolicyBasedRoutesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,38 +46,45 @@ private ListPolicyBasedRoutesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPolicyBasedRoutesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.class, com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.class, + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 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 @@ -68,29 +93,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 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 { @@ -101,11 +128,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -114,14 +144,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -130,29 +164,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The page token.
    * 
* * 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 { @@ -161,14 +195,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -177,29 +215,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; } } /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * 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 { @@ -208,14 +246,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -224,29 +266,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -255,6 +297,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -296,8 +338,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_); @@ -316,23 +357,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.networkconnectivity.v1.ListPolicyBasedRoutesRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest other = (com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest other = + (com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -360,129 +397,138 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest + 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [PolicyBasedRouting.ListPolicyBasedRoutes][] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.class, com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.class, + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.Builder.class); } - // Construct using com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,14 +542,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.getDefaultInstance(); + public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest + .getDefaultInstance(); } @java.lang.Override @@ -517,13 +565,17 @@ public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest buil @java.lang.Override public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest result = new com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest result = + new com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -546,46 +598,51 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListPolicyBas public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest)other); + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest other) { - if (other == com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -635,37 +692,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -675,22 +738,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource's name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -699,20 +767,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * string parent = 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,28 +791,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * string 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() { @@ -751,17 +833,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -769,13 +857,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -783,27 +874,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -815,18 +912,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The page token.
      * 
* * 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; @@ -835,20 +934,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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 { @@ -856,28 +956,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The page token.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -887,17 +994,21 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -907,18 +1018,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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; @@ -927,20 +1040,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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 { @@ -948,28 +1062,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -979,17 +1100,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -999,18 +1124,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1019,20 +1146,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1040,28 +1168,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1071,26 +1206,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1100,41 +1239,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) - private static final com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest(); } - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPolicyBasedRoutesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPolicyBasedRoutesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1146,9 +1287,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequestOrBuilder.java index b2a270a2d8a6..40cc72dd34cc 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequestOrBuilder.java @@ -1,99 +1,142 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/policy_based_routing.proto package com.google.cloud.networkconnectivity.v1; -public interface ListPolicyBasedRoutesRequestOrBuilder extends +public interface ListPolicyBasedRoutesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponse.java similarity index 68% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponse.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponse.java index c5bfb680dba5..3d4543567852 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponse.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponse.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/networkconnectivity/v1/policy_based_routing.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Response for [PolicyBasedRouting.ListPolicyBasedRoutes][] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse} */ -public final class ListPolicyBasedRoutesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPolicyBasedRoutesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) ListPolicyBasedRoutesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPolicyBasedRoutesResponse.newBuilder() to construct. private ListPolicyBasedRoutesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPolicyBasedRoutesResponse() { policyBasedRoutes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,100 +45,123 @@ private ListPolicyBasedRoutesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPolicyBasedRoutesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.class, com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.class, + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.Builder.class); } public static final int POLICY_BASED_ROUTES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List policyBasedRoutes_; + private java.util.List + policyBasedRoutes_; /** + * + * *
    * Policy based routes to be returned.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ @java.lang.Override - public java.util.List getPolicyBasedRoutesList() { + public java.util.List + getPolicyBasedRoutesList() { return policyBasedRoutes_; } /** + * + * *
    * Policy based routes to be returned.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getPolicyBasedRoutesOrBuilderList() { return policyBasedRoutes_; } /** + * + * *
    * Policy based routes to be returned.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ @java.lang.Override public int getPolicyBasedRoutesCount() { return policyBasedRoutes_.size(); } /** + * + * *
    * Policy based routes to be returned.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoutes(int index) { return policyBasedRoutes_.get(index); } /** + * + * *
    * Policy based routes to be returned.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPolicyBasedRoutesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder + getPolicyBasedRoutesOrBuilder(int index) { return policyBasedRoutes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +170,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -161,37 +202,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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. */ @@ -199,20 +249,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; @@ -224,8 +277,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < policyBasedRoutes_.size(); i++) { output.writeMessage(1, policyBasedRoutes_.get(i)); } @@ -245,8 +297,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < policyBasedRoutes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, policyBasedRoutes_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, policyBasedRoutes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +319,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse other = (com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) obj; + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse other = + (com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) obj; - if (!getPolicyBasedRoutesList() - .equals(other.getPolicyBasedRoutesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getPolicyBasedRoutesList().equals(other.getPolicyBasedRoutesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +357,138 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse + 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [PolicyBasedRouting.ListPolicyBasedRoutes][] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.class, com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.class, + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.Builder.class); } - // Construct using com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,14 +507,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.getDefaultInstance(); + public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse + .getDefaultInstance(); } @java.lang.Override @@ -469,14 +530,18 @@ public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse bui @java.lang.Override public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse buildPartial() { - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse result = new com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse(this); + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse result = + new com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse result) { if (policyBasedRoutesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { policyBasedRoutes_ = java.util.Collections.unmodifiableList(policyBasedRoutes_); @@ -493,7 +558,8 @@ private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1. result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -504,46 +570,51 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListPolicyBas public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse)other); + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse other) { - if (other == com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse other) { + if (other + == com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse + .getDefaultInstance()) return this; if (policyBasedRoutesBuilder_ == null) { if (!other.policyBasedRoutes_.isEmpty()) { if (policyBasedRoutes_.isEmpty()) { @@ -562,9 +633,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListPolicyBased policyBasedRoutesBuilder_ = null; policyBasedRoutes_ = other.policyBasedRoutes_; bitField0_ = (bitField0_ & ~0x00000001); - policyBasedRoutesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPolicyBasedRoutesFieldBuilder() : null; + policyBasedRoutesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPolicyBasedRoutesFieldBuilder() + : null; } else { policyBasedRoutesBuilder_.addAllMessages(other.policyBasedRoutes_); } @@ -611,36 +683,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute m = - input.readMessage( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.parser(), - extensionRegistry); - if (policyBasedRoutesBuilder_ == null) { - ensurePolicyBasedRoutesIsMutable(); - policyBasedRoutes_.add(m); - } else { - policyBasedRoutesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute m = + input.readMessage( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.parser(), + extensionRegistry); + if (policyBasedRoutesBuilder_ == null) { + ensurePolicyBasedRoutesIsMutable(); + policyBasedRoutes_.add(m); + } else { + policyBasedRoutesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,28 +726,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List policyBasedRoutes_ = - java.util.Collections.emptyList(); + private java.util.List + policyBasedRoutes_ = java.util.Collections.emptyList(); + private void ensurePolicyBasedRoutesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - policyBasedRoutes_ = new java.util.ArrayList(policyBasedRoutes_); + policyBasedRoutes_ = + new java.util.ArrayList( + policyBasedRoutes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> policyBasedRoutesBuilder_; + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, + com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> + policyBasedRoutesBuilder_; /** + * + * *
      * Policy based routes to be returned.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ - public java.util.List getPolicyBasedRoutesList() { + public java.util.List + getPolicyBasedRoutesList() { if (policyBasedRoutesBuilder_ == null) { return java.util.Collections.unmodifiableList(policyBasedRoutes_); } else { @@ -679,11 +766,14 @@ public java.util.List } } /** + * + * *
      * Policy based routes to be returned.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ public int getPolicyBasedRoutesCount() { if (policyBasedRoutesBuilder_ == null) { @@ -693,13 +783,17 @@ public int getPolicyBasedRoutesCount() { } } /** + * + * *
      * Policy based routes to be returned.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoutes(int index) { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoutes( + int index) { if (policyBasedRoutesBuilder_ == null) { return policyBasedRoutes_.get(index); } else { @@ -707,11 +801,14 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRo } } /** + * + * *
      * Policy based routes to be returned.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ public Builder setPolicyBasedRoutes( int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { @@ -728,14 +825,18 @@ public Builder setPolicyBasedRoutes( return this; } /** + * + * *
      * Policy based routes to be returned.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ public Builder setPolicyBasedRoutes( - int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder builderForValue) { + int index, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder builderForValue) { if (policyBasedRoutesBuilder_ == null) { ensurePolicyBasedRoutesIsMutable(); policyBasedRoutes_.set(index, builderForValue.build()); @@ -746,13 +847,17 @@ public Builder setPolicyBasedRoutes( return this; } /** + * + * *
      * Policy based routes to be returned.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ - public Builder addPolicyBasedRoutes(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { + public Builder addPolicyBasedRoutes( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { if (policyBasedRoutesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -766,11 +871,14 @@ public Builder addPolicyBasedRoutes(com.google.cloud.networkconnectivity.v1.Poli return this; } /** + * + * *
      * Policy based routes to be returned.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ public Builder addPolicyBasedRoutes( int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { @@ -787,11 +895,14 @@ public Builder addPolicyBasedRoutes( return this; } /** + * + * *
      * Policy based routes to be returned.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ public Builder addPolicyBasedRoutes( com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder builderForValue) { @@ -805,14 +916,18 @@ public Builder addPolicyBasedRoutes( return this; } /** + * + * *
      * Policy based routes to be returned.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ public Builder addPolicyBasedRoutes( - int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder builderForValue) { + int index, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder builderForValue) { if (policyBasedRoutesBuilder_ == null) { ensurePolicyBasedRoutesIsMutable(); policyBasedRoutes_.add(index, builderForValue.build()); @@ -823,18 +938,21 @@ public Builder addPolicyBasedRoutes( return this; } /** + * + * *
      * Policy based routes to be returned.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ public Builder addAllPolicyBasedRoutes( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (policyBasedRoutesBuilder_ == null) { ensurePolicyBasedRoutesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, policyBasedRoutes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyBasedRoutes_); onChanged(); } else { policyBasedRoutesBuilder_.addAllMessages(values); @@ -842,11 +960,14 @@ public Builder addAllPolicyBasedRoutes( return this; } /** + * + * *
      * Policy based routes to be returned.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ public Builder clearPolicyBasedRoutes() { if (policyBasedRoutesBuilder_ == null) { @@ -859,11 +980,14 @@ public Builder clearPolicyBasedRoutes() { return this; } /** + * + * *
      * Policy based routes to be returned.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ public Builder removePolicyBasedRoutes(int index) { if (policyBasedRoutesBuilder_ == null) { @@ -876,39 +1000,50 @@ public Builder removePolicyBasedRoutes(int index) { return this; } /** + * + * *
      * Policy based routes to be returned.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder getPolicyBasedRoutesBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder + getPolicyBasedRoutesBuilder(int index) { return getPolicyBasedRoutesFieldBuilder().getBuilder(index); } /** + * + * *
      * Policy based routes to be returned.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPolicyBasedRoutesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder + getPolicyBasedRoutesOrBuilder(int index) { if (policyBasedRoutesBuilder_ == null) { - return policyBasedRoutes_.get(index); } else { + return policyBasedRoutes_.get(index); + } else { return policyBasedRoutesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Policy based routes to be returned.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ - public java.util.List - getPolicyBasedRoutesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> + getPolicyBasedRoutesOrBuilderList() { if (policyBasedRoutesBuilder_ != null) { return policyBasedRoutesBuilder_.getMessageOrBuilderList(); } else { @@ -916,45 +1051,63 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPoli } } /** + * + * *
      * Policy based routes to be returned.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder addPolicyBasedRoutesBuilder() { - return getPolicyBasedRoutesFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder + addPolicyBasedRoutesBuilder() { + return getPolicyBasedRoutesFieldBuilder() + .addBuilder( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance()); } /** + * + * *
      * Policy based routes to be returned.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder addPolicyBasedRoutesBuilder( - int index) { - return getPolicyBasedRoutesFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder + addPolicyBasedRoutesBuilder(int index) { + return getPolicyBasedRoutesFieldBuilder() + .addBuilder( + index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance()); } /** + * + * *
      * Policy based routes to be returned.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ - public java.util.List - getPolicyBasedRoutesBuilderList() { + public java.util.List + getPolicyBasedRoutesBuilderList() { return getPolicyBasedRoutesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, + com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> getPolicyBasedRoutesFieldBuilder() { if (policyBasedRoutesBuilder_ == null) { - policyBasedRoutesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder>( + policyBasedRoutesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, + com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder>( policyBasedRoutes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -966,19 +1119,21 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder addPolic private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -987,21 +1142,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1009,30 +1165,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1205,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1228,52 @@ public Builder setNextPageTokenBytes( 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * 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. */ @@ -1104,76 +1281,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) { - if (value == null) { throw new NullPointerException(); } + 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(); } + 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) { + 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() { @@ -1183,26 +1374,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) { - if (value == null) { throw new NullPointerException(); } + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1212,41 +1407,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) - private static final com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse(); } - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPolicyBasedRoutesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPolicyBasedRoutesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1258,9 +1455,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponseOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponseOrBuilder.java index b8ab149df1bb..876654c552f5 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponseOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponseOrBuilder.java @@ -1,116 +1,162 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/policy_based_routing.proto package com.google.cloud.networkconnectivity.v1; -public interface ListPolicyBasedRoutesResponseOrBuilder extends +public interface ListPolicyBasedRoutesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Policy based routes to be returned.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ - java.util.List + java.util.List getPolicyBasedRoutesList(); /** + * + * *
    * Policy based routes to be returned.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoutes(int index); /** + * + * *
    * Policy based routes to be returned.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ int getPolicyBasedRoutesCount(); /** + * + * *
    * Policy based routes to be returned.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ - java.util.List + java.util.List getPolicyBasedRoutesOrBuilderList(); /** + * + * *
    * Policy based routes to be returned.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; + * */ com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPolicyBasedRoutesOrBuilder( int index); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java index 0cb0927c1eb9..444325073897 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The request for
  * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesRequest}
  */
-public final class ListSpokesRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListSpokesRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListSpokesRequest)
     ListSpokesRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListSpokesRequest.newBuilder() to construct.
   private ListSpokesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListSpokesRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -29,38 +47,45 @@ private ListSpokesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListSpokesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class,
+            com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. The parent resource.
    * 
* - * string parent = 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 @@ -69,29 +94,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 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 { @@ -102,11 +129,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -115,14 +145,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -131,29 +165,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The page token.
    * 
* * 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 { @@ -162,14 +196,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -178,29 +216,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; } } /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * 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 { @@ -209,14 +247,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -225,29 +267,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -256,6 +298,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,8 +310,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -297,8 +339,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_); @@ -317,23 +358,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1.ListSpokesRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListSpokesRequest other = (com.google.cloud.networkconnectivity.v1.ListSpokesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1.ListSpokesRequest other = + (com.google.cloud.networkconnectivity.v1.ListSpokesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -361,96 +398,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListSpokesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for
    * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
@@ -458,33 +503,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListSpokesRequest)
       com.google.cloud.networkconnectivity.v1.ListSpokesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class,
+              com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.ListSpokesRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -498,9 +542,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
     }
 
     @java.lang.Override
@@ -519,8 +563,11 @@ public com.google.cloud.networkconnectivity.v1.ListSpokesRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.ListSpokesRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.ListSpokesRequest result = new com.google.cloud.networkconnectivity.v1.ListSpokesRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.ListSpokesRequest result =
+          new com.google.cloud.networkconnectivity.v1.ListSpokesRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -548,38 +595,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListSpokesReq
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.ListSpokesRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -587,7 +635,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListSpokesRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.ListSpokesRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.ListSpokesRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -637,37 +686,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              filter_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              orderBy_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                filter_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                orderBy_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -677,22 +732,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The parent resource.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -701,20 +761,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource.
      * 
* - * string parent = 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 { @@ -722,28 +785,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource.
      * 
* - * string 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() { @@ -753,17 +827,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -771,13 +851,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -785,27 +868,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -817,18 +906,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The page token.
      * 
* * 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; @@ -837,20 +928,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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 { @@ -858,28 +950,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The page token.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -889,17 +988,21 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -909,18 +1012,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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; @@ -929,20 +1034,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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 { @@ -950,28 +1056,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -981,17 +1094,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1001,18 +1118,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1021,20 +1140,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1042,28 +1162,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1073,26 +1200,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1102,12 +1233,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListSpokesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListSpokesRequest) private static final com.google.cloud.networkconnectivity.v1.ListSpokesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListSpokesRequest(); } @@ -1116,27 +1247,27 @@ public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1151,6 +1282,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListSpokesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java index 46c69c915c82..6d50170b35ab 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java @@ -1,99 +1,142 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListSpokesRequestOrBuilder extends +public interface ListSpokesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListSpokesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java similarity index 72% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java index d0fdc3b7fbec..3dc609e1c520 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The response for
  * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesResponse}
  */
-public final class ListSpokesResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListSpokesResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListSpokesResponse)
     ListSpokesResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListSpokesResponse.newBuilder() to construct.
   private ListSpokesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListSpokesResponse() {
     spokes_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -28,33 +46,37 @@ private ListSpokesResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListSpokesResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class);
+            com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class,
+            com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class);
   }
 
   public static final int SPOKES_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List spokes_;
   /**
+   *
+   *
    * 
    * The requested spokes.
    * 
@@ -66,6 +88,8 @@ public java.util.List getSpokesLi return spokes_; } /** + * + * *
    * The requested spokes.
    * 
@@ -73,11 +97,13 @@ public java.util.List getSpokesLi * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSpokesOrBuilderList() { return spokes_; } /** + * + * *
    * The requested spokes.
    * 
@@ -89,6 +115,8 @@ public int getSpokesCount() { return spokes_.size(); } /** + * + * *
    * The requested spokes.
    * 
@@ -100,6 +128,8 @@ public com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index) { return spokes_.get(index); } /** + * + * *
    * The requested spokes.
    * 
@@ -107,21 +137,24 @@ public com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index) { * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder(int index) { return spokes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -130,30 +163,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -162,37 +195,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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. */ @@ -200,20 +242,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; @@ -225,8 +270,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < spokes_.size(); i++) { output.writeMessage(1, spokes_.get(i)); } @@ -246,8 +290,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < spokes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, spokes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, spokes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -268,19 +311,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.networkconnectivity.v1.ListSpokesResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListSpokesResponse other = (com.google.cloud.networkconnectivity.v1.ListSpokesResponse) obj; + com.google.cloud.networkconnectivity.v1.ListSpokesResponse other = + (com.google.cloud.networkconnectivity.v1.ListSpokesResponse) obj; - if (!getSpokesList() - .equals(other.getSpokesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getSpokesList().equals(other.getSpokesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -308,96 +349,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListSpokesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.ListSpokesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response for
    * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
@@ -405,33 +454,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListSpokesResponse)
       com.google.cloud.networkconnectivity.v1.ListSpokesResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class);
+              com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class,
+              com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.ListSpokesResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -450,9 +498,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
     }
 
     @java.lang.Override
@@ -471,14 +519,18 @@ public com.google.cloud.networkconnectivity.v1.ListSpokesResponse build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.ListSpokesResponse buildPartial() {
-      com.google.cloud.networkconnectivity.v1.ListSpokesResponse result = new com.google.cloud.networkconnectivity.v1.ListSpokesResponse(this);
+      com.google.cloud.networkconnectivity.v1.ListSpokesResponse result =
+          new com.google.cloud.networkconnectivity.v1.ListSpokesResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.ListSpokesResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1.ListSpokesResponse result) {
       if (spokesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           spokes_ = java.util.Collections.unmodifiableList(spokes_);
@@ -506,38 +558,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListSpokesRes
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.ListSpokesResponse) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesResponse)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -545,7 +598,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListSpokesResponse other) {
-      if (other == com.google.cloud.networkconnectivity.v1.ListSpokesResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.ListSpokesResponse.getDefaultInstance())
+        return this;
       if (spokesBuilder_ == null) {
         if (!other.spokes_.isEmpty()) {
           if (spokes_.isEmpty()) {
@@ -564,9 +618,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListSpokesRespo
             spokesBuilder_ = null;
             spokes_ = other.spokes_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            spokesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSpokesFieldBuilder() : null;
+            spokesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSpokesFieldBuilder()
+                    : null;
           } else {
             spokesBuilder_.addAllMessages(other.spokes_);
           }
@@ -613,36 +668,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.networkconnectivity.v1.Spoke m =
-                  input.readMessage(
-                      com.google.cloud.networkconnectivity.v1.Spoke.parser(),
-                      extensionRegistry);
-              if (spokesBuilder_ == null) {
-                ensureSpokesIsMutable();
-                spokes_.add(m);
-              } else {
-                spokesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureUnreachableIsMutable();
-              unreachable_.add(s);
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.networkconnectivity.v1.Spoke m =
+                    input.readMessage(
+                        com.google.cloud.networkconnectivity.v1.Spoke.parser(), extensionRegistry);
+                if (spokesBuilder_ == null) {
+                  ensureSpokesIsMutable();
+                  spokes_.add(m);
+                } else {
+                  spokesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureUnreachableIsMutable();
+                unreachable_.add(s);
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -652,21 +710,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List spokes_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureSpokesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         spokes_ = new java.util.ArrayList(spokes_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> spokesBuilder_;
+            com.google.cloud.networkconnectivity.v1.Spoke,
+            com.google.cloud.networkconnectivity.v1.Spoke.Builder,
+            com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>
+        spokesBuilder_;
 
     /**
+     *
+     *
      * 
      * The requested spokes.
      * 
@@ -681,6 +746,8 @@ public java.util.List getSpokesLi } } /** + * + * *
      * The requested spokes.
      * 
@@ -695,6 +762,8 @@ public int getSpokesCount() { } } /** + * + * *
      * The requested spokes.
      * 
@@ -709,14 +778,15 @@ public com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index) { } } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public Builder setSpokes( - int index, com.google.cloud.networkconnectivity.v1.Spoke value) { + public Builder setSpokes(int index, com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -730,6 +800,8 @@ public Builder setSpokes( return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -748,6 +820,8 @@ public Builder setSpokes( return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -768,14 +842,15 @@ public Builder addSpokes(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public Builder addSpokes( - int index, com.google.cloud.networkconnectivity.v1.Spoke value) { + public Builder addSpokes(int index, com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -789,6 +864,8 @@ public Builder addSpokes( return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -807,6 +884,8 @@ public Builder addSpokes( return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -825,6 +904,8 @@ public Builder addSpokes( return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -835,8 +916,7 @@ public Builder addAllSpokes( java.lang.Iterable values) { if (spokesBuilder_ == null) { ensureSpokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, spokes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spokes_); onChanged(); } else { spokesBuilder_.addAllMessages(values); @@ -844,6 +924,8 @@ public Builder addAllSpokes( return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -861,6 +943,8 @@ public Builder clearSpokes() { return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -878,39 +962,44 @@ public Builder removeSpokes(int index) { return this; } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokesBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokesBuilder(int index) { return getSpokesFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder(int index) { if (spokesBuilder_ == null) { - return spokes_.get(index); } else { + return spokes_.get(index); + } else { return spokesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public java.util.List - getSpokesOrBuilderList() { + public java.util.List + getSpokesOrBuilderList() { if (spokesBuilder_ != null) { return spokesBuilder_.getMessageOrBuilderList(); } else { @@ -918,6 +1007,8 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder } } /** + * + * *
      * The requested spokes.
      * 
@@ -925,42 +1016,48 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder() { - return getSpokesFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); + return getSpokesFieldBuilder() + .addBuilder(com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder( - int index) { - return getSpokesFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder(int index) { + return getSpokesFieldBuilder() + .addBuilder(index, com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public java.util.List - getSpokesBuilderList() { + public java.util.List + getSpokesBuilderList() { return getSpokesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> getSpokesFieldBuilder() { if (spokesBuilder_ == null) { - spokesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( - spokes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + spokesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( + spokes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); spokes_ = null; } return spokesBuilder_; @@ -968,19 +1065,21 @@ public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -989,21 +1088,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1011,30 +1111,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1044,18 +1151,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1063,42 +1174,52 @@ public Builder setNextPageTokenBytes( 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * 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. */ @@ -1106,76 +1227,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) { - if (value == null) { throw new NullPointerException(); } + 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(); } + 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) { + 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() { @@ -1185,26 +1320,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) { - if (value == null) { throw new NullPointerException(); } + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1214,12 +1353,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListSpokesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListSpokesResponse) private static final com.google.cloud.networkconnectivity.v1.ListSpokesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListSpokesResponse(); } @@ -1228,27 +1367,27 @@ public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1263,6 +1402,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListSpokesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java index 834b94da7b71..212e8ce02a58 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListSpokesResponseOrBuilder extends +public interface ListSpokesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListSpokesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested spokes.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - java.util.List - getSpokesList(); + java.util.List getSpokesList(); /** + * + * *
    * The requested spokes.
    * 
@@ -25,6 +44,8 @@ public interface ListSpokesResponseOrBuilder extends */ com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index); /** + * + * *
    * The requested spokes.
    * 
@@ -33,84 +54,102 @@ public interface ListSpokesResponseOrBuilder extends */ int getSpokesCount(); /** + * + * *
    * The requested spokes.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - java.util.List + java.util.List getSpokesOrBuilderList(); /** + * + * *
    * The requested spokes.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder( - int index); + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder(int index); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java index cf212e9b299c..21d5923cd802 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Supported features for a location
  * 
* * Protobuf enum {@code google.cloud.networkconnectivity.v1.LocationFeature} */ -public enum LocationFeature - implements com.google.protobuf.ProtocolMessageEnum { +public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * No publicly supported feature in this location
    * 
@@ -21,6 +39,8 @@ public enum LocationFeature */ LOCATION_FEATURE_UNSPECIFIED(0), /** + * + * *
    * Site-to-cloud spokes are supported in this location
    * 
@@ -29,6 +49,8 @@ public enum LocationFeature */ SITE_TO_CLOUD_SPOKES(1), /** + * + * *
    * Site-to-site spokes are supported in this location
    * 
@@ -40,6 +62,8 @@ public enum LocationFeature ; /** + * + * *
    * No publicly supported feature in this location
    * 
@@ -48,6 +72,8 @@ public enum LocationFeature */ public static final int LOCATION_FEATURE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Site-to-cloud spokes are supported in this location
    * 
@@ -56,6 +82,8 @@ public enum LocationFeature */ public static final int SITE_TO_CLOUD_SPOKES_VALUE = 1; /** + * + * *
    * Site-to-site spokes are supported in this location
    * 
@@ -64,7 +92,6 @@ public enum LocationFeature */ public static final int SITE_TO_SITE_SPOKES_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,49 +116,49 @@ public static LocationFeature valueOf(int value) { */ public static LocationFeature forNumber(int value) { switch (value) { - case 0: return LOCATION_FEATURE_UNSPECIFIED; - case 1: return SITE_TO_CLOUD_SPOKES; - case 2: return SITE_TO_SITE_SPOKES; - default: return null; + case 0: + return LOCATION_FEATURE_UNSPECIFIED; + case 1: + return SITE_TO_CLOUD_SPOKES; + case 2: + return SITE_TO_SITE_SPOKES; + 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< - LocationFeature> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LocationFeature findValueByNumber(int number) { - return LocationFeature.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 LocationFeature findValueByNumber(int number) { + return LocationFeature.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.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(0); } private static final LocationFeature[] VALUES = values(); - public static LocationFeature valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static LocationFeature valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -147,4 +174,3 @@ private LocationFeature(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.LocationFeature) } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java index 2f0e5ab71614..b9e4e2f54e66 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java @@ -1,84 +1,120 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Metadata about locations
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.LocationMetadata} */ -public final class LocationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LocationMetadata) LocationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LocationMetadata.newBuilder() to construct. private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LocationMetadata() { locationFeatures_ = 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 LocationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.LocationMetadata.class, com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.LocationMetadata.class, + com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); } public static final int LOCATION_FEATURES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List locationFeatures_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature> locationFeatures_converter_ = + java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature> + locationFeatures_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>() { - public com.google.cloud.networkconnectivity.v1.LocationFeature convert(java.lang.Integer from) { - com.google.cloud.networkconnectivity.v1.LocationFeature result = com.google.cloud.networkconnectivity.v1.LocationFeature.forNumber(from); - return result == null ? com.google.cloud.networkconnectivity.v1.LocationFeature.UNRECOGNIZED : result; + public com.google.cloud.networkconnectivity.v1.LocationFeature convert( + java.lang.Integer from) { + com.google.cloud.networkconnectivity.v1.LocationFeature result = + com.google.cloud.networkconnectivity.v1.LocationFeature.forNumber(from); + return result == null + ? com.google.cloud.networkconnectivity.v1.LocationFeature.UNRECOGNIZED + : result; } }; /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return A list containing the locationFeatures. */ @java.lang.Override - public java.util.List getLocationFeaturesList() { + public java.util.List + getLocationFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>(locationFeatures_, locationFeatures_converter_); + java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>( + locationFeatures_, locationFeatures_converter_); } /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return The count of locationFeatures. */ @java.lang.Override @@ -86,11 +122,15 @@ public int getLocationFeaturesCount() { return locationFeatures_.size(); } /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index of the element to return. * @return The locationFeatures at the given index. */ @@ -99,24 +139,31 @@ public com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatur return locationFeatures_converter_.convert(locationFeatures_.get(index)); } /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return A list containing the enum numeric values on the wire for locationFeatures. */ @java.lang.Override - public java.util.List - getLocationFeaturesValueList() { + public java.util.List getLocationFeaturesValueList() { return locationFeatures_; } /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of locationFeatures at the given index. */ @@ -124,9 +171,11 @@ public com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatur public int getLocationFeaturesValue(int index) { return locationFeatures_.get(index); } + private int locationFeaturesMemoizedSerializedSize; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +187,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getLocationFeaturesList().size() > 0) { output.writeUInt32NoTag(10); @@ -160,14 +208,15 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < locationFeatures_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(locationFeatures_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(locationFeatures_.get(i)); } size += dataSize; - if (!getLocationFeaturesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }locationFeaturesMemoizedSerializedSize = dataSize; + if (!getLocationFeaturesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + locationFeaturesMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,12 +226,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.networkconnectivity.v1.LocationMetadata)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LocationMetadata other = (com.google.cloud.networkconnectivity.v1.LocationMetadata) obj; + com.google.cloud.networkconnectivity.v1.LocationMetadata other = + (com.google.cloud.networkconnectivity.v1.LocationMetadata) obj; if (!locationFeatures_.equals(other.locationFeatures_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -206,129 +256,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LocationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.LocationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata about locations
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.LocationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LocationMetadata) com.google.cloud.networkconnectivity.v1.LocationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.LocationMetadata.class, com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.LocationMetadata.class, + com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.LocationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +396,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; } @java.lang.Override @@ -360,14 +417,18 @@ public com.google.cloud.networkconnectivity.v1.LocationMetadata build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.LocationMetadata buildPartial() { - com.google.cloud.networkconnectivity.v1.LocationMetadata result = new com.google.cloud.networkconnectivity.v1.LocationMetadata(this); + com.google.cloud.networkconnectivity.v1.LocationMetadata result = + new com.google.cloud.networkconnectivity.v1.LocationMetadata(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LocationMetadata result) { + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1.LocationMetadata result) { if (((bitField0_ & 0x00000001) != 0)) { locationFeatures_ = java.util.Collections.unmodifiableList(locationFeatures_); bitField0_ = (bitField0_ & ~0x00000001); @@ -383,38 +444,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LocationMetad public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.LocationMetadata) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.LocationMetadata)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.LocationMetadata) other); } else { super.mergeFrom(other); return this; @@ -422,7 +484,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LocationMetadata other) { - if (other == com.google.cloud.networkconnectivity.v1.LocationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1.LocationMetadata.getDefaultInstance()) + return this; if (!other.locationFeatures_.isEmpty()) { if (locationFeatures_.isEmpty()) { locationFeatures_ = other.locationFeatures_; @@ -459,29 +522,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - int tmpRaw = input.readEnum(); - ensureLocationFeaturesIsMutable(); - locationFeatures_.add(tmpRaw); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 8: + { int tmpRaw = input.readEnum(); ensureLocationFeaturesIsMutable(); locationFeatures_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureLocationFeaturesIsMutable(); + locationFeatures_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -491,10 +557,11 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List locationFeatures_ = - java.util.Collections.emptyList(); + private java.util.List locationFeatures_ = java.util.Collections.emptyList(); + private void ensureLocationFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { locationFeatures_ = new java.util.ArrayList(locationFeatures_); @@ -502,34 +569,48 @@ private void ensureLocationFeaturesIsMutable() { } } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return A list containing the locationFeatures. */ - public java.util.List getLocationFeaturesList() { + public java.util.List + getLocationFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>(locationFeatures_, locationFeatures_converter_); + java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>( + locationFeatures_, locationFeatures_converter_); } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return The count of locationFeatures. */ public int getLocationFeaturesCount() { return locationFeatures_.size(); } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index of the element to return. * @return The locationFeatures at the given index. */ @@ -537,11 +618,15 @@ public com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatur return locationFeatures_converter_.convert(locationFeatures_.get(index)); } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index to set the value at. * @param value The locationFeatures to set. * @return This builder for chaining. @@ -557,15 +642,20 @@ public Builder setLocationFeatures( return this; } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param value The locationFeatures to add. * @return This builder for chaining. */ - public Builder addLocationFeatures(com.google.cloud.networkconnectivity.v1.LocationFeature value) { + public Builder addLocationFeatures( + com.google.cloud.networkconnectivity.v1.LocationFeature value) { if (value == null) { throw new NullPointerException(); } @@ -575,16 +665,21 @@ public Builder addLocationFeatures(com.google.cloud.networkconnectivity.v1.Locat return this; } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param values The locationFeatures to add. * @return This builder for chaining. */ public Builder addAllLocationFeatures( - java.lang.Iterable values) { + java.lang.Iterable + values) { ensureLocationFeaturesIsMutable(); for (com.google.cloud.networkconnectivity.v1.LocationFeature value : values) { locationFeatures_.add(value.getNumber()); @@ -593,11 +688,15 @@ public Builder addAllLocationFeatures( return this; } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return This builder for chaining. */ public Builder clearLocationFeatures() { @@ -607,23 +706,30 @@ public Builder clearLocationFeatures() { return this; } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return A list containing the enum numeric values on the wire for locationFeatures. */ - public java.util.List - getLocationFeaturesValueList() { + public java.util.List getLocationFeaturesValueList() { return java.util.Collections.unmodifiableList(locationFeatures_); } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of locationFeatures at the given index. */ @@ -631,28 +737,35 @@ public int getLocationFeaturesValue(int index) { return locationFeatures_.get(index); } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for locationFeatures to set. * @return This builder for chaining. */ - public Builder setLocationFeaturesValue( - int index, int value) { + public Builder setLocationFeaturesValue(int index, int value) { ensureLocationFeaturesIsMutable(); locationFeatures_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param value The enum numeric value on the wire for locationFeatures to add. * @return This builder for chaining. */ @@ -663,16 +776,19 @@ public Builder addLocationFeaturesValue(int value) { return this; } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param values The enum numeric values on the wire for locationFeatures to add. * @return This builder for chaining. */ - public Builder addAllLocationFeaturesValue( - java.lang.Iterable values) { + public Builder addAllLocationFeaturesValue(java.lang.Iterable values) { ensureLocationFeaturesIsMutable(); for (int value : values) { locationFeatures_.add(value); @@ -680,9 +796,9 @@ public Builder addAllLocationFeaturesValue( onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -692,12 +808,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LocationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LocationMetadata) private static final com.google.cloud.networkconnectivity.v1.LocationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LocationMetadata(); } @@ -706,27 +822,27 @@ public static com.google.cloud.networkconnectivity.v1.LocationMetadata getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -741,6 +857,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.LocationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java similarity index 62% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java index f8b387b0a5a2..f42007f563f6 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java @@ -1,56 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LocationMetadataOrBuilder extends +public interface LocationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LocationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return A list containing the locationFeatures. */ java.util.List getLocationFeaturesList(); /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return The count of locationFeatures. */ int getLocationFeaturesCount(); /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index of the element to return. * @return The locationFeatures at the given index. */ com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatures(int index); /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return A list containing the enum numeric values on the wire for locationFeatures. */ - java.util.List - getLocationFeaturesValueList(); + java.util.List getLocationFeaturesValueList(); /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of locationFeatures at the given index. */ diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java index ccff6a11ac7c..ecb829230dfd 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/common.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,37 +46,42 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.OperationMetadata.class, + com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -66,11 +89,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -78,11 +105,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -92,11 +122,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -104,11 +138,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -116,11 +154,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -128,14 +169,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -144,29 +189,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -175,14 +220,18 @@ public java.lang.String getTarget() { } public static final int VERB_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -191,29 +240,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -222,14 +271,18 @@ public java.lang.String getVerb() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -238,29 +291,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -271,6 +324,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have been cancelled successfully
@@ -279,6 +334,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -287,14 +343,18 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -303,29 +363,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -334,6 +394,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -345,8 +406,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -378,12 +438,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_); @@ -395,8 +453,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_); @@ -409,33 +466,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.networkconnectivity.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.OperationMetadata other = (com.google.cloud.networkconnectivity.v1.OperationMetadata) obj; + com.google.cloud.networkconnectivity.v1.OperationMetadata other = + (com.google.cloud.networkconnectivity.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -462,8 +513,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) + getUnknownFields().hashCode(); @@ -472,129 +522,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.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.networkconnectivity.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.OperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.OperationMetadata) com.google.cloud.networkconnectivity.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.OperationMetadata.class, + com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.OperationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -618,9 +675,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -639,8 +696,11 @@ public com.google.cloud.networkconnectivity.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.OperationMetadata buildPartial() { - com.google.cloud.networkconnectivity.v1.OperationMetadata result = new com.google.cloud.networkconnectivity.v1.OperationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1.OperationMetadata result = + new com.google.cloud.networkconnectivity.v1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -648,14 +708,10 @@ public com.google.cloud.networkconnectivity.v1.OperationMetadata buildPartial() private void buildPartial0(com.google.cloud.networkconnectivity.v1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -678,38 +734,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.OperationMeta public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.OperationMetadata)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -717,7 +774,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.OperationMetadata other) { - if (other == com.google.cloud.networkconnectivity.v1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -773,51 +831,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -827,43 +889,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time 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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -879,14 +961,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -897,17 +982,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -920,11 +1009,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -937,11 +1030,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -949,36 +1046,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -986,24 +1095,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1014,11 +1134,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1034,14 +1157,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1052,17 +1177,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1075,11 +1203,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1092,11 +1223,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1104,36 +1238,44 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1141,18 +1283,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1161,20 +1305,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1182,28 +1327,35 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1213,17 +1365,21 @@ public Builder clearTarget() { return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1233,18 +1389,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1253,20 +1411,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1274,28 +1433,35 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1305,17 +1471,21 @@ public Builder clearVerb() { return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1325,18 +1495,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1345,20 +1517,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1366,28 +1539,35 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1397,17 +1577,21 @@ public Builder clearStatusMessage() { return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1415,8 +1599,10 @@ public Builder setStatusMessageBytes( return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
@@ -1425,6 +1611,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1432,6 +1619,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
@@ -1440,17 +1629,20 @@ 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
@@ -1459,6 +1651,7 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1470,18 +1663,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1490,20 +1685,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1511,28 +1707,35 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1542,26 +1745,30 @@ public Builder clearApiVersion() { return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1571,12 +1778,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.OperationMetadata) private static final com.google.cloud.networkconnectivity.v1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.OperationMetadata(); } @@ -1585,27 +1792,27 @@ public static com.google.cloud.networkconnectivity.v1.OperationMetadata getDefau 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1620,6 +1827,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java index f4be0419ee4b..217a088b5a3d 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/common.proto package com.google.cloud.networkconnectivity.v1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have been cancelled successfully
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoute.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoute.java similarity index 65% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoute.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoute.java index 661f165a5003..0d5216a57065 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoute.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoute.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/networkconnectivity/v1/policy_based_routing.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Policy Based Routes (PBR) are more powerful routes that allows GCP customers
  * to route their L4 network traffic based on not just destination IP, but also
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute}
  */
-public final class PolicyBasedRoute extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PolicyBasedRoute extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute)
     PolicyBasedRouteOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PolicyBasedRoute.newBuilder() to construct.
   private PolicyBasedRoute(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PolicyBasedRoute() {
     name_ = "";
     description_ = "";
@@ -34,46 +52,49 @@ private PolicyBasedRoute() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PolicyBasedRoute();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto
+        .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto
+        .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder.class);
+            com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.class,
+            com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder.class);
   }
 
-  public interface VirtualMachineOrBuilder extends
+  public interface VirtualMachineOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Optional. A list of VM instance tags to which this policy based route applies to.
      * VM instances that have ANY of tags specified here will install this
@@ -81,11 +102,13 @@ public interface VirtualMachineOrBuilder extends
      * 
* * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the tags. */ - java.util.List - getTagsList(); + java.util.List getTagsList(); /** + * + * *
      * Optional. A list of VM instance tags to which this policy based route applies to.
      * VM instances that have ANY of tags specified here will install this
@@ -93,10 +116,13 @@ public interface VirtualMachineOrBuilder extends
      * 
* * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of tags. */ int getTagsCount(); /** + * + * *
      * Optional. A list of VM instance tags to which this policy based route applies to.
      * VM instances that have ANY of tags specified here will install this
@@ -104,11 +130,14 @@ public interface VirtualMachineOrBuilder extends
      * 
* * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** + * + * *
      * Optional. A list of VM instance tags to which this policy based route applies to.
      * VM instances that have ANY of tags specified here will install this
@@ -116,61 +145,69 @@ public interface VirtualMachineOrBuilder extends
      * 
* * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - com.google.protobuf.ByteString - getTagsBytes(int index); + com.google.protobuf.ByteString getTagsBytes(int index); } /** + * + * *
    * VM instances to which this policy based route applies to.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine} */ - public static final class VirtualMachine extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class VirtualMachine extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) VirtualMachineOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VirtualMachine.newBuilder() to construct. private VirtualMachine(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VirtualMachine() { tags_ = 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 VirtualMachine(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder.class); + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.class, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder + .class); } public static final int TAGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList tags_; /** + * + * *
      * Optional. A list of VM instance tags to which this policy based route applies to.
      * VM instances that have ANY of tags specified here will install this
@@ -178,13 +215,15 @@ protected java.lang.Object newInstance(
      * 
* * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** + * + * *
      * Optional. A list of VM instance tags to which this policy based route applies to.
      * VM instances that have ANY of tags specified here will install this
@@ -192,12 +231,15 @@ protected java.lang.Object newInstance(
      * 
* * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
      * Optional. A list of VM instance tags to which this policy based route applies to.
      * VM instances that have ANY of tags specified here will install this
@@ -205,6 +247,7 @@ public int getTagsCount() {
      * 
* * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -212,6 +255,8 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
      * Optional. A list of VM instance tags to which this policy based route applies to.
      * VM instances that have ANY of tags specified here will install this
@@ -219,15 +264,16 @@ public java.lang.String getTags(int index) {
      * 
* * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,8 +285,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tags_.getRaw(i)); } @@ -269,15 +314,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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine)) { + if (!(obj + instanceof com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine other = (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) obj; + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine other = + (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) obj; - if (!getTagsList() - .equals(other.getTagsList())) return false; + if (!getTagsList().equals(other.getTagsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -299,87 +345,95 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine 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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine + 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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -389,39 +443,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * VM instances to which this policy based route applies to.
      * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder.class); + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.class, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder + .class); } - // Construct using com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -432,19 +490,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.getDefaultInstance(); + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine build() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result = buildPartial(); + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -452,15 +513,20 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine b } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine buildPartial() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine(this); + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine + buildPartial() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result = + new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result) { + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result) { if (((bitField0_ & 0x00000001) != 0)) { tags_ = tags_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -468,7 +534,8 @@ private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1. result.tags_ = tags_; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result) { int from_bitField0_ = bitField0_; } @@ -476,46 +543,54 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.PolicyBasedRo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine)other); + if (other + instanceof com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine other) { - if (other == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine other) { + if (other + == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine + .getDefaultInstance()) return this; if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; @@ -552,18 +627,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -573,16 +650,21 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList tags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * Optional. A list of VM instance tags to which this policy based route applies to.
        * VM instances that have ANY of tags specified here will install this
@@ -590,13 +672,15 @@ private void ensureTagsIsMutable() {
        * 
* * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); } /** + * + * *
        * Optional. A list of VM instance tags to which this policy based route applies to.
        * VM instances that have ANY of tags specified here will install this
@@ -604,12 +688,15 @@ private void ensureTagsIsMutable() {
        * 
* * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
        * Optional. A list of VM instance tags to which this policy based route applies to.
        * VM instances that have ANY of tags specified here will install this
@@ -617,6 +704,7 @@ public int getTagsCount() {
        * 
* * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -624,6 +712,8 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
        * Optional. A list of VM instance tags to which this policy based route applies to.
        * VM instances that have ANY of tags specified here will install this
@@ -631,14 +721,16 @@ public java.lang.String getTags(int index) {
        * 
* * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** + * + * *
        * Optional. A list of VM instance tags to which this policy based route applies to.
        * VM instances that have ANY of tags specified here will install this
@@ -646,19 +738,23 @@ public java.lang.String getTags(int index) {
        * 
* * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** + * + * *
        * Optional. A list of VM instance tags to which this policy based route applies to.
        * VM instances that have ANY of tags specified here will install this
@@ -666,18 +762,22 @@ public Builder setTags(
        * 
* * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The tags to add. * @return This builder for chaining. */ - public Builder addTags( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** + * + * *
        * Optional. A list of VM instance tags to which this policy based route applies to.
        * VM instances that have ANY of tags specified here will install this
@@ -685,18 +785,19 @@ public Builder addTags(
        * 
* * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The tags to add. * @return This builder for chaining. */ - public Builder addAllTags( - java.lang.Iterable values) { + public Builder addAllTags(java.lang.Iterable values) { ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); onChanged(); return this; } /** + * + * *
        * Optional. A list of VM instance tags to which this policy based route applies to.
        * VM instances that have ANY of tags specified here will install this
@@ -704,6 +805,7 @@ public Builder addAllTags(
        * 
* * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTags() { @@ -713,6 +815,8 @@ public Builder clearTags() { return this; } /** + * + * *
        * Optional. A list of VM instance tags to which this policy based route applies to.
        * VM instances that have ANY of tags specified here will install this
@@ -720,18 +824,21 @@ public Builder clearTags() {
        * 
* * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the tags to add. * @return This builder for chaining. */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -744,41 +851,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) - private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine(); + DEFAULT_INSTANCE = + new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine(); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VirtualMachine parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VirtualMachine parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -790,93 +901,109 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface InterconnectAttachmentOrBuilder extends + public interface InterconnectAttachmentOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. Cloud region to install this policy based route on interconnect
      * attachment. Use `all` to install it on all interconnect attachments.
      * 
* * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The region. */ java.lang.String getRegion(); /** + * + * *
      * Optional. Cloud region to install this policy based route on interconnect
      * attachment. Use `all` to install it on all interconnect attachments.
      * 
* * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for region. */ - com.google.protobuf.ByteString - getRegionBytes(); + com.google.protobuf.ByteString getRegionBytes(); } /** + * + * *
    * InterconnectAttachment to which this route applies to.
    * 
* - * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment} + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment} */ - public static final class InterconnectAttachment extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class InterconnectAttachment extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) InterconnectAttachmentOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InterconnectAttachment.newBuilder() to construct. private InterconnectAttachment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InterconnectAttachment() { region_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InterconnectAttachment(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder.class); + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.class, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + .Builder.class); } public static final int REGION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object region_ = ""; /** + * + * *
      * Optional. Cloud region to install this policy based route on interconnect
      * attachment. Use `all` to install it on all interconnect attachments.
      * 
* * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The region. */ @java.lang.Override @@ -885,30 +1012,30 @@ public java.lang.String getRegion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; } } /** + * + * *
      * Optional. Cloud region to install this policy based route on interconnect
      * attachment. Use `all` to install it on all interconnect attachments.
      * 
* * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -917,6 +1044,7 @@ public java.lang.String getRegion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -928,8 +1056,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, region_); } @@ -953,15 +1080,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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment)) { + if (!(obj + instanceof + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment other = (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) obj; + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment other = + (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) obj; - if (!getRegion() - .equals(other.getRegion())) return false; + if (!getRegion().equals(other.getRegion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -980,88 +1109,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1071,39 +1213,45 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * InterconnectAttachment to which this route applies to.
      * 
* - * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment} + * Protobuf type {@code + * google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder.class); + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + .class, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + .Builder.class); } - // Construct using com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1113,19 +1261,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.getDefaultInstance(); + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment build() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment result = buildPartial(); + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + build() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1133,14 +1285,20 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAtta } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment buildPartial() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment result = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + buildPartial() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment result = + new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.region_ = region_; @@ -1151,46 +1309,56 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.PolicyBasedRo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment)other); + if (other + instanceof + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) { + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment other) { - if (other == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment other) { + if (other + == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + .getDefaultInstance()) return this; if (!other.getRegion().isEmpty()) { region_ = other.region_; bitField0_ |= 0x00000001; @@ -1222,17 +1390,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - region_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1242,23 +1412,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object region_ = ""; /** + * + * *
        * Optional. Cloud region to install this policy based route on interconnect
        * attachment. Use `all` to install it on all interconnect attachments.
        * 
* * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); region_ = s; return s; @@ -1267,21 +1440,22 @@ public java.lang.String getRegion() { } } /** + * + * *
        * Optional. Cloud region to install this policy based route on interconnect
        * attachment. Use `all` to install it on all interconnect attachments.
        * 
* * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for region. */ - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); region_ = b; return b; } else { @@ -1289,30 +1463,37 @@ public java.lang.String getRegion() { } } /** + * + * *
        * Optional. Cloud region to install this policy based route on interconnect
        * attachment. Use `all` to install it on all interconnect attachments.
        * 
* * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } region_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Optional. Cloud region to install this policy based route on interconnect
        * attachment. Use `all` to install it on all interconnect attachments.
        * 
* * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRegion() { @@ -1322,24 +1503,29 @@ public Builder clearRegion() { return this; } /** + * + * *
        * Optional. Cloud region to install this policy based route on interconnect
        * attachment. Use `all` to install it on all interconnect attachments.
        * 
* * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); region_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1352,41 +1538,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute + .InterconnectAttachment + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment(); + DEFAULT_INSTANCE = + new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment(); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InterconnectAttachment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InterconnectAttachment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1398,119 +1589,149 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface FilterOrBuilder extends + public interface FilterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. The IP protocol that this policy based route applies to. Valid values are
      * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
      * 
* * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ipProtocol. */ java.lang.String getIpProtocol(); /** + * + * *
      * Optional. The IP protocol that this policy based route applies to. Valid values are
      * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
      * 
* * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for ipProtocol. */ - com.google.protobuf.ByteString - getIpProtocolBytes(); + com.google.protobuf.ByteString getIpProtocolBytes(); /** + * + * *
      * Optional. The source IP range of outgoing packets that this policy based route
      * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
      * 
* * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The srcRange. */ java.lang.String getSrcRange(); /** + * + * *
      * Optional. The source IP range of outgoing packets that this policy based route
      * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
      * 
* * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for srcRange. */ - com.google.protobuf.ByteString - getSrcRangeBytes(); + com.google.protobuf.ByteString getSrcRangeBytes(); /** + * + * *
      * Optional. The destination IP range of outgoing packets that this policy based route
      * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
      * 
* * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The destRange. */ java.lang.String getDestRange(); /** + * + * *
      * Optional. The destination IP range of outgoing packets that this policy based route
      * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
      * 
* * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for destRange. */ - com.google.protobuf.ByteString - getDestRangeBytes(); + com.google.protobuf.ByteString getDestRangeBytes(); /** + * + * *
      * Required. Internet protocol versions this policy based route applies to. For this
      * version, only IPV4 is supported.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for protocolVersion. */ int getProtocolVersionValue(); /** + * + * *
      * Required. Internet protocol versions this policy based route applies to. For this
      * version, only IPV4 is supported.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The protocolVersion. */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion getProtocolVersion(); + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion + getProtocolVersion(); } /** + * + * *
    * Filter matches L4 traffic.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter} */ - public static final class Filter extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Filter extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) FilterOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Filter.newBuilder() to construct. private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Filter() { ipProtocol_ = ""; srcRange_ = ""; @@ -1520,39 +1741,44 @@ private Filter() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Filter(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder.class); + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.class, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder.class); } /** + * + * *
      * The internet protocol version.
      * 
* - * Protobuf enum {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion} + * Protobuf enum {@code + * google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion} */ - public enum ProtocolVersion - implements com.google.protobuf.ProtocolMessageEnum { + public enum ProtocolVersion implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Default value.
        * 
@@ -1561,6 +1787,8 @@ public enum ProtocolVersion */ PROTOCOL_VERSION_UNSPECIFIED(0), /** + * + * *
        * The PBR is for IPv4 internet protocol traffic.
        * 
@@ -1572,6 +1800,8 @@ public enum ProtocolVersion ; /** + * + * *
        * Default value.
        * 
@@ -1580,6 +1810,8 @@ public enum ProtocolVersion */ public static final int PROTOCOL_VERSION_UNSPECIFIED_VALUE = 0; /** + * + * *
        * The PBR is for IPv4 internet protocol traffic.
        * 
@@ -1588,7 +1820,6 @@ public enum ProtocolVersion */ public static final int IPV4_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1613,9 +1844,12 @@ public static ProtocolVersion valueOf(int value) { */ public static ProtocolVersion forNumber(int value) { switch (value) { - case 0: return PROTOCOL_VERSION_UNSPECIFIED; - case 1: return IPV4; - default: return null; + case 0: + return PROTOCOL_VERSION_UNSPECIFIED; + case 1: + return IPV4; + default: + return null; } } @@ -1623,29 +1857,31 @@ public static ProtocolVersion forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ProtocolVersion> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ProtocolVersion findValueByNumber(int number) { - return ProtocolVersion.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 ProtocolVersion findValueByNumber(int number) { + return ProtocolVersion.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.networkconnectivity.v1.PolicyBasedRoute.Filter.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDescriptor() + .getEnumTypes() + .get(0); } private static final ProtocolVersion[] VALUES = values(); @@ -1653,8 +1889,7 @@ public ProtocolVersion findValueByNumber(int number) { public static ProtocolVersion 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; @@ -1672,15 +1907,19 @@ private ProtocolVersion(int value) { } public static final int IP_PROTOCOL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object ipProtocol_ = ""; /** + * + * *
      * Optional. The IP protocol that this policy based route applies to. Valid values are
      * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
      * 
* * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ipProtocol. */ @java.lang.Override @@ -1689,30 +1928,30 @@ public java.lang.String getIpProtocol() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipProtocol_ = s; return s; } } /** + * + * *
      * Optional. The IP protocol that this policy based route applies to. Valid values are
      * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
      * 
* * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for ipProtocol. */ @java.lang.Override - public com.google.protobuf.ByteString - getIpProtocolBytes() { + public com.google.protobuf.ByteString getIpProtocolBytes() { java.lang.Object ref = ipProtocol_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipProtocol_ = b; return b; } else { @@ -1721,15 +1960,19 @@ public java.lang.String getIpProtocol() { } public static final int SRC_RANGE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object srcRange_ = ""; /** + * + * *
      * Optional. The source IP range of outgoing packets that this policy based route
      * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
      * 
* * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The srcRange. */ @java.lang.Override @@ -1738,30 +1981,30 @@ public java.lang.String getSrcRange() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); srcRange_ = s; return s; } } /** + * + * *
      * Optional. The source IP range of outgoing packets that this policy based route
      * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
      * 
* * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for srcRange. */ @java.lang.Override - public com.google.protobuf.ByteString - getSrcRangeBytes() { + public com.google.protobuf.ByteString getSrcRangeBytes() { java.lang.Object ref = srcRange_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); srcRange_ = b; return b; } else { @@ -1770,15 +2013,19 @@ public java.lang.String getSrcRange() { } public static final int DEST_RANGE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object destRange_ = ""; /** + * + * *
      * Optional. The destination IP range of outgoing packets that this policy based route
      * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
      * 
* * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The destRange. */ @java.lang.Override @@ -1787,30 +2034,30 @@ public java.lang.String getDestRange() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destRange_ = s; return s; } } /** + * + * *
      * Optional. The destination IP range of outgoing packets that this policy based route
      * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
      * 
* * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for destRange. */ @java.lang.Override - public com.google.protobuf.ByteString - getDestRangeBytes() { + public com.google.protobuf.ByteString getDestRangeBytes() { java.lang.Object ref = destRange_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destRange_ = b; return b; } else { @@ -1821,32 +2068,51 @@ public java.lang.String getDestRange() { public static final int PROTOCOL_VERSION_FIELD_NUMBER = 6; private int protocolVersion_ = 0; /** + * + * *
      * Required. Internet protocol versions this policy based route applies to. For this
      * version, only IPV4 is supported.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for protocolVersion. */ - @java.lang.Override public int getProtocolVersionValue() { + @java.lang.Override + public int getProtocolVersionValue() { return protocolVersion_; } /** + * + * *
      * Required. Internet protocol versions this policy based route applies to. For this
      * version, only IPV4 is supported.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The protocolVersion. */ - @java.lang.Override public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion getProtocolVersion() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion result = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion.forNumber(protocolVersion_); - return result == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion + getProtocolVersion() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion result = + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion.forNumber( + protocolVersion_); + return result == null + ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion + .UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1858,8 +2124,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipProtocol_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipProtocol_); } @@ -1869,7 +2134,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destRange_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, destRange_); } - if (protocolVersion_ != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion.PROTOCOL_VERSION_UNSPECIFIED.getNumber()) { + if (protocolVersion_ + != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion + .PROTOCOL_VERSION_UNSPECIFIED + .getNumber()) { output.writeEnum(6, protocolVersion_); } getUnknownFields().writeTo(output); @@ -1890,9 +2158,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destRange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, destRange_); } - if (protocolVersion_ != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion.PROTOCOL_VERSION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, protocolVersion_); + if (protocolVersion_ + != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion + .PROTOCOL_VERSION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, protocolVersion_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1902,19 +2172,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.networkconnectivity.v1.PolicyBasedRoute.Filter)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter other = (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) obj; + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter other = + (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) obj; - if (!getIpProtocol() - .equals(other.getIpProtocol())) return false; - if (!getSrcRange() - .equals(other.getSrcRange())) return false; - if (!getDestRange() - .equals(other.getDestRange())) return false; + if (!getIpProtocol().equals(other.getIpProtocol())) return false; + if (!getSrcRange().equals(other.getSrcRange())) return false; + if (!getDestRange().equals(other.getDestRange())) return false; if (protocolVersion_ != other.protocolVersion_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1941,87 +2209,95 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter 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.networkconnectivity.v1.PolicyBasedRoute.Filter + 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.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2031,39 +2307,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Filter matches L4 traffic.
      * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder.class); + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.class, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder.class); } - // Construct using com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2076,13 +2355,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance(); } @@ -2097,13 +2377,17 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter buildPartial() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter result = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter result = + new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ipProtocol_ = ipProtocol_; @@ -2123,46 +2407,52 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.PolicyBasedRo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.networkconnectivity.v1.PolicyBasedRoute.Filter) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter other) { - if (other == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter other) { + if (other + == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance()) + return this; if (!other.getIpProtocol().isEmpty()) { ipProtocol_ = other.ipProtocol_; bitField0_ |= 0x00000001; @@ -2207,32 +2497,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - ipProtocol_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - srcRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - destRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 48: { - protocolVersion_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + ipProtocol_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + srcRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + destRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 48: + { + protocolVersion_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2242,23 +2537,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object ipProtocol_ = ""; /** + * + * *
        * Optional. The IP protocol that this policy based route applies to. Valid values are
        * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
        * 
* * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The ipProtocol. */ public java.lang.String getIpProtocol() { java.lang.Object ref = ipProtocol_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipProtocol_ = s; return s; @@ -2267,21 +2565,22 @@ public java.lang.String getIpProtocol() { } } /** + * + * *
        * Optional. The IP protocol that this policy based route applies to. Valid values are
        * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
        * 
* * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for ipProtocol. */ - public com.google.protobuf.ByteString - getIpProtocolBytes() { + public com.google.protobuf.ByteString getIpProtocolBytes() { java.lang.Object ref = ipProtocol_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipProtocol_ = b; return b; } else { @@ -2289,30 +2588,37 @@ public java.lang.String getIpProtocol() { } } /** + * + * *
        * Optional. The IP protocol that this policy based route applies to. Valid values are
        * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
        * 
* * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The ipProtocol to set. * @return This builder for chaining. */ - public Builder setIpProtocol( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIpProtocol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ipProtocol_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Optional. The IP protocol that this policy based route applies to. Valid values are
        * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
        * 
* * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIpProtocol() { @@ -2322,18 +2628,22 @@ public Builder clearIpProtocol() { return this; } /** + * + * *
        * Optional. The IP protocol that this policy based route applies to. Valid values are
        * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
        * 
* * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for ipProtocol to set. * @return This builder for chaining. */ - public Builder setIpProtocolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIpProtocolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ipProtocol_ = value; bitField0_ |= 0x00000001; @@ -2343,19 +2653,21 @@ public Builder setIpProtocolBytes( private java.lang.Object srcRange_ = ""; /** + * + * *
        * Optional. The source IP range of outgoing packets that this policy based route
        * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
        * 
* * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The srcRange. */ public java.lang.String getSrcRange() { java.lang.Object ref = srcRange_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); srcRange_ = s; return s; @@ -2364,21 +2676,22 @@ public java.lang.String getSrcRange() { } } /** + * + * *
        * Optional. The source IP range of outgoing packets that this policy based route
        * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
        * 
* * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for srcRange. */ - public com.google.protobuf.ByteString - getSrcRangeBytes() { + public com.google.protobuf.ByteString getSrcRangeBytes() { java.lang.Object ref = srcRange_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); srcRange_ = b; return b; } else { @@ -2386,30 +2699,37 @@ public java.lang.String getSrcRange() { } } /** + * + * *
        * Optional. The source IP range of outgoing packets that this policy based route
        * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
        * 
* * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The srcRange to set. * @return This builder for chaining. */ - public Builder setSrcRange( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSrcRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } srcRange_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Optional. The source IP range of outgoing packets that this policy based route
        * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
        * 
* * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSrcRange() { @@ -2419,18 +2739,22 @@ public Builder clearSrcRange() { return this; } /** + * + * *
        * Optional. The source IP range of outgoing packets that this policy based route
        * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
        * 
* * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for srcRange to set. * @return This builder for chaining. */ - public Builder setSrcRangeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSrcRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); srcRange_ = value; bitField0_ |= 0x00000002; @@ -2440,19 +2764,21 @@ public Builder setSrcRangeBytes( private java.lang.Object destRange_ = ""; /** + * + * *
        * Optional. The destination IP range of outgoing packets that this policy based route
        * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
        * 
* * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The destRange. */ public java.lang.String getDestRange() { java.lang.Object ref = destRange_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destRange_ = s; return s; @@ -2461,21 +2787,22 @@ public java.lang.String getDestRange() { } } /** + * + * *
        * Optional. The destination IP range of outgoing packets that this policy based route
        * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
        * 
* * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for destRange. */ - public com.google.protobuf.ByteString - getDestRangeBytes() { + public com.google.protobuf.ByteString getDestRangeBytes() { java.lang.Object ref = destRange_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destRange_ = b; return b; } else { @@ -2483,30 +2810,37 @@ public java.lang.String getDestRange() { } } /** + * + * *
        * Optional. The destination IP range of outgoing packets that this policy based route
        * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
        * 
* * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The destRange to set. * @return This builder for chaining. */ - public Builder setDestRange( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } destRange_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Optional. The destination IP range of outgoing packets that this policy based route
        * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
        * 
* * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDestRange() { @@ -2516,18 +2850,22 @@ public Builder clearDestRange() { return this; } /** + * + * *
        * Optional. The destination IP range of outgoing packets that this policy based route
        * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
        * 
* * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for destRange to set. * @return This builder for chaining. */ - public Builder setDestRangeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); destRange_ = value; bitField0_ |= 0x00000004; @@ -2537,24 +2875,35 @@ public Builder setDestRangeBytes( private int protocolVersion_ = 0; /** + * + * *
        * Required. Internet protocol versions this policy based route applies to. For this
        * version, only IPV4 is supported.
        * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for protocolVersion. */ - @java.lang.Override public int getProtocolVersionValue() { + @java.lang.Override + public int getProtocolVersionValue() { return protocolVersion_; } /** + * + * *
        * Required. Internet protocol versions this policy based route applies to. For this
        * version, only IPV4 is supported.
        * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for protocolVersion to set. * @return This builder for chaining. */ @@ -2565,30 +2914,47 @@ public Builder setProtocolVersionValue(int value) { return this; } /** + * + * *
        * Required. Internet protocol versions this policy based route applies to. For this
        * version, only IPV4 is supported.
        * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The protocolVersion. */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion getProtocolVersion() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion result = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion.forNumber(protocolVersion_); - return result == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion.UNRECOGNIZED : result; + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion + getProtocolVersion() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion result = + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion + .forNumber(protocolVersion_); + return result == null + ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion + .UNRECOGNIZED + : result; } /** + * + * *
        * Required. Internet protocol versions this policy based route applies to. For this
        * version, only IPV4 is supported.
        * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The protocolVersion to set. * @return This builder for chaining. */ - public Builder setProtocolVersion(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion value) { + public Builder setProtocolVersion( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion value) { if (value == null) { throw new NullPointerException(); } @@ -2598,12 +2964,17 @@ public Builder setProtocolVersion(com.google.cloud.networkconnectivity.v1.Policy return this; } /** + * + * *
        * Required. Internet protocol versions this policy based route applies to. For this
        * version, only IPV4 is supported.
        * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearProtocolVersion() { @@ -2612,6 +2983,7 @@ public Builder clearProtocolVersion() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2624,41 +2996,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) - private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter(); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Filter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2670,36 +3045,49 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface WarningsOrBuilder extends + public interface WarningsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Output only. A warning code, if applicable.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
      * Output only. A warning code, if applicable.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The code. */ com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code getCode(); /** + * + * *
      * Output only. Metadata about this warning in key: value format. The key should provides
      * more detail on the warning being returned. For example, for warnings
@@ -2713,6 +3101,8 @@ public interface WarningsOrBuilder extends
      */
     int getDataCount();
     /**
+     *
+     *
      * 
      * Output only. Metadata about this warning in key: value format. The key should provides
      * more detail on the warning being returned. For example, for warnings
@@ -2724,15 +3114,13 @@ public interface WarningsOrBuilder extends
      *
      * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
-    boolean containsData(
-        java.lang.String key);
-    /**
-     * Use {@link #getDataMap()} instead.
-     */
+    boolean containsData(java.lang.String key);
+    /** Use {@link #getDataMap()} instead. */
     @java.lang.Deprecated
-    java.util.Map
-    getData();
+    java.util.Map getData();
     /**
+     *
+     *
      * 
      * Output only. Metadata about this warning in key: value format. The key should provides
      * more detail on the warning being returned. For example, for warnings
@@ -2744,9 +3132,10 @@ boolean containsData(
      *
      * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
-    java.util.Map
-    getDataMap();
+    java.util.Map getDataMap();
     /**
+     *
+     *
      * 
      * Output only. Metadata about this warning in key: value format. The key should provides
      * more detail on the warning being returned. For example, for warnings
@@ -2759,11 +3148,13 @@ boolean containsData(
      * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     /* nullable */
-java.lang.String getDataOrDefault(
+    java.lang.String getDataOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue);
+        java.lang.String defaultValue);
     /**
+     *
+     *
      * 
      * Output only. Metadata about this warning in key: value format. The key should provides
      * more detail on the warning being returned. For example, for warnings
@@ -2775,45 +3166,52 @@ java.lang.String getDataOrDefault(
      *
      * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
-    java.lang.String getDataOrThrow(
-        java.lang.String key);
+    java.lang.String getDataOrThrow(java.lang.String key);
 
     /**
+     *
+     *
      * 
      * Output only. A human-readable description of the warning code.
      * 
* * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The warningMessage. */ java.lang.String getWarningMessage(); /** + * + * *
      * Output only. A human-readable description of the warning code.
      * 
* * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for warningMessage. */ - com.google.protobuf.ByteString - getWarningMessageBytes(); + com.google.protobuf.ByteString getWarningMessageBytes(); } /** + * + * *
    * Informational warning message.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings} */ - public static final class Warnings extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Warnings extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) WarningsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Warnings.newBuilder() to construct. private Warnings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Warnings() { code_ = 0; warningMessage_ = ""; @@ -2821,42 +3219,44 @@ private Warnings() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Warnings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_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 2: return internalGetData(); 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.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder.class); + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.class, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder.class); } /** + * + * *
      * Warning code for Policy Based Routing. Expect to add values in the
      * future.
@@ -2864,9 +3264,10 @@ protected com.google.protobuf.MapField internalGetMapField(
      *
      * Protobuf enum {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code}
      */
-    public enum Code
-        implements com.google.protobuf.ProtocolMessageEnum {
+    public enum Code implements com.google.protobuf.ProtocolMessageEnum {
       /**
+       *
+       *
        * 
        * Default value.
        * 
@@ -2875,6 +3276,8 @@ public enum Code */ WARNING_UNSPECIFIED(0), /** + * + * *
        * The policy based route is not active and functioning. Common causes are
        * the dependent network was deleted or the resource project was turned
@@ -2885,6 +3288,8 @@ public enum Code
        */
       RESOURCE_NOT_ACTIVE(1),
       /**
+       *
+       *
        * 
        * The policy based route is being modified (e.g. created/deleted) at this
        * time.
@@ -2897,6 +3302,8 @@ public enum Code
       ;
 
       /**
+       *
+       *
        * 
        * Default value.
        * 
@@ -2905,6 +3312,8 @@ public enum Code */ public static final int WARNING_UNSPECIFIED_VALUE = 0; /** + * + * *
        * The policy based route is not active and functioning. Common causes are
        * the dependent network was deleted or the resource project was turned
@@ -2915,6 +3324,8 @@ public enum Code
        */
       public static final int RESOURCE_NOT_ACTIVE_VALUE = 1;
       /**
+       *
+       *
        * 
        * The policy based route is being modified (e.g. created/deleted) at this
        * time.
@@ -2924,7 +3335,6 @@ public enum Code
        */
       public static final int RESOURCE_BEING_MODIFIED_VALUE = 2;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -2949,49 +3359,51 @@ public static Code valueOf(int value) {
        */
       public static Code forNumber(int value) {
         switch (value) {
-          case 0: return WARNING_UNSPECIFIED;
-          case 1: return RESOURCE_NOT_ACTIVE;
-          case 2: return RESOURCE_BEING_MODIFIED;
-          default: return null;
+          case 0:
+            return WARNING_UNSPECIFIED;
+          case 1:
+            return RESOURCE_NOT_ACTIVE;
+          case 2:
+            return RESOURCE_BEING_MODIFIED;
+          default:
+            return null;
         }
       }
 
-      public static com.google.protobuf.Internal.EnumLiteMap
-          internalGetValueMap() {
+      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
         return internalValueMap;
       }
-      private static final com.google.protobuf.Internal.EnumLiteMap<
-          Code> internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public Code findValueByNumber(int number) {
-                return Code.forNumber(number);
-              }
-            };
 
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor
-          getValueDescriptor() {
+      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Code findValueByNumber(int number) {
+              return Code.forNumber(number);
+            }
+          };
+
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-      public final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptorForType() {
+
+      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
         return getDescriptor();
       }
-      public static final com.google.protobuf.Descriptors.EnumDescriptor
-          getDescriptor() {
-        return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.getDescriptor().getEnumTypes().get(0);
+
+      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+        return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.getDescriptor()
+            .getEnumTypes()
+            .get(0);
       }
 
       private static final Code[] VALUES = values();
 
-      public static Code valueOf(
-          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException(
-            "EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -3011,56 +3423,73 @@ private Code(int value) {
     public static final int CODE_FIELD_NUMBER = 1;
     private int code_ = 0;
     /**
+     *
+     *
      * 
      * Output only. A warning code, if applicable.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * Output only. A warning code, if applicable.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The code. */ - @java.lang.Override public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code getCode() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code result = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.forNumber(code_); - return result == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code getCode() { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code result = + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.forNumber(code_); + return result == null + ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.UNRECOGNIZED + : result; } public static final int DATA_FIELD_NUMBER = 2; + private static final class DataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_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.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> data_; - private com.google.protobuf.MapField - internalGetData() { + private com.google.protobuf.MapField data_; + + private com.google.protobuf.MapField internalGetData() { if (data_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(DataDefaultEntryHolder.defaultEntry); } return data_; } + public int getDataCount() { return internalGetData().getMap().size(); } /** + * + * *
      * Output only. Metadata about this warning in key: value format. The key should provides
      * more detail on the warning being returned. For example, for warnings
@@ -3073,20 +3502,21 @@ public int getDataCount() {
      * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     @java.lang.Override
-    public boolean containsData(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsData(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetData().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getDataMap()} instead.
-     */
+    /** Use {@link #getDataMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getData() {
       return getDataMap();
     }
     /**
+     *
+     *
      * 
      * Output only. Metadata about this warning in key: value format. The key should provides
      * more detail on the warning being returned. For example, for warnings
@@ -3103,6 +3533,8 @@ public java.util.Map getDataMap() {
       return internalGetData().getMap();
     }
     /**
+     *
+     *
      * 
      * Output only. Metadata about this warning in key: value format. The key should provides
      * more detail on the warning being returned. For example, for warnings
@@ -3115,17 +3547,19 @@ public java.util.Map getDataMap() {
      * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getDataOrDefault(
+    public /* nullable */ java.lang.String getDataOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetData().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetData().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Output only. Metadata about this warning in key: value format. The key should provides
      * more detail on the warning being returned. For example, for warnings
@@ -3138,11 +3572,11 @@ java.lang.String getDataOrDefault(
      * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      */
     @java.lang.Override
-    public java.lang.String getDataOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetData().getMap();
+    public java.lang.String getDataOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetData().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3150,14 +3584,18 @@ public java.lang.String getDataOrThrow(
     }
 
     public static final int WARNING_MESSAGE_FIELD_NUMBER = 3;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object warningMessage_ = "";
     /**
+     *
+     *
      * 
      * Output only. A human-readable description of the warning code.
      * 
* * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The warningMessage. */ @java.lang.Override @@ -3166,29 +3604,29 @@ public java.lang.String getWarningMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); warningMessage_ = s; return s; } } /** + * + * *
      * Output only. A human-readable description of the warning code.
      * 
* * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for warningMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getWarningMessageBytes() { + public com.google.protobuf.ByteString getWarningMessageBytes() { java.lang.Object ref = warningMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); warningMessage_ = b; return b; } else { @@ -3197,6 +3635,7 @@ public java.lang.String getWarningMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3208,17 +3647,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.WARNING_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ + != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code + .WARNING_UNSPECIFIED + .getNumber()) { output.writeEnum(1, code_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetData(), - DataDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetData(), DataDefaultEntryHolder.defaultEntry, 2); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warningMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, warningMessage_); } @@ -3231,19 +3668,21 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.WARNING_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, code_); - } - for (java.util.Map.Entry entry - : internalGetData().getMap().entrySet()) { - com.google.protobuf.MapEntry - data__ = DataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, data__); + if (code_ + != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code + .WARNING_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + } + for (java.util.Map.Entry entry : + internalGetData().getMap().entrySet()) { + com.google.protobuf.MapEntry data__ = + DataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, data__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warningMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, warningMessage_); @@ -3256,18 +3695,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.networkconnectivity.v1.PolicyBasedRoute.Warnings)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings other = (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) obj; + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings other = + (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) obj; if (code_ != other.code_) return false; - if (!internalGetData().equals( - other.internalGetData())) return false; - if (!getWarningMessage() - .equals(other.getWarningMessage())) return false; + if (!internalGetData().equals(other.internalGetData())) return false; + if (!getWarningMessage().equals(other.getWarningMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3293,87 +3731,95 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings 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.networkconnectivity.v1.PolicyBasedRoute.Warnings + 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.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3383,61 +3829,62 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Informational warning message.
      * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetData(); 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 2: return internalGetMutableData(); 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.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder.class); + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.class, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder.class); } - // Construct using com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3449,14 +3896,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.getDefaultInstance(); + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings + getDefaultInstanceForType() { + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings + .getDefaultInstance(); } @java.lang.Override @@ -3470,13 +3919,17 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings build() @java.lang.Override public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings buildPartial() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings result = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings result = + new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.code_ = code_; @@ -3494,51 +3947,57 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.PolicyBasedRo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.networkconnectivity.v1.PolicyBasedRoute.Warnings) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings)other); + return mergeFrom( + (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings other) { - if (other == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings other) { + if (other + == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings + .getDefaultInstance()) return this; if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } - internalGetMutableData().mergeFrom( - other.internalGetData()); + internalGetMutableData().mergeFrom(other.internalGetData()); bitField0_ |= 0x00000002; if (!other.getWarningMessage().isEmpty()) { warningMessage_ = other.warningMessage_; @@ -3571,31 +4030,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - code_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - com.google.protobuf.MapEntry - data__ = input.readMessage( - DataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableData().getMutableMap().put( - data__.getKey(), data__.getValue()); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - warningMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + code_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.protobuf.MapEntry data__ = + input.readMessage( + DataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableData().getMutableMap().put(data__.getKey(), data__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + warningMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3605,26 +4068,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int code_ = 0; /** + * + * *
        * Output only. A warning code, if applicable.
        * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
        * Output only. A warning code, if applicable.
        * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ @@ -3635,28 +4110,42 @@ public Builder setCodeValue(int value) { return this; } /** + * + * *
        * Output only. A warning code, if applicable.
        * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The code. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code getCode() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code result = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.forNumber(code_); - return result == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.UNRECOGNIZED : result; + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code result = + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.forNumber(code_); + return result == null + ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.UNRECOGNIZED + : result; } /** + * + * *
        * Output only. A warning code, if applicable.
        * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code value) { + public Builder setCode( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code value) { if (value == null) { throw new NullPointerException(); } @@ -3666,11 +4155,16 @@ public Builder setCode(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute. return this; } /** + * + * *
        * Output only. A warning code, if applicable.
        * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearCode() { @@ -3680,21 +4174,19 @@ public Builder clearCode() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> data_; - private com.google.protobuf.MapField - internalGetData() { + private com.google.protobuf.MapField data_; + + private com.google.protobuf.MapField internalGetData() { if (data_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(DataDefaultEntryHolder.defaultEntry); } return data_; } + private com.google.protobuf.MapField internalGetMutableData() { if (data_ == null) { - data_ = com.google.protobuf.MapField.newMapField( - DataDefaultEntryHolder.defaultEntry); + data_ = com.google.protobuf.MapField.newMapField(DataDefaultEntryHolder.defaultEntry); } if (!data_.isMutable()) { data_ = data_.copy(); @@ -3703,10 +4195,13 @@ public Builder clearCode() { onChanged(); return data_; } + public int getDataCount() { return internalGetData().getMap().size(); } /** + * + * *
        * Output only. Metadata about this warning in key: value format. The key should provides
        * more detail on the warning being returned. For example, for warnings
@@ -3716,23 +4211,25 @@ public int getDataCount() {
        * replacement.
        * 
* - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public boolean containsData( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsData(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetData().getMap().containsKey(key); } - /** - * Use {@link #getDataMap()} instead. - */ + /** Use {@link #getDataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getData() { return getDataMap(); } /** + * + * *
        * Output only. Metadata about this warning in key: value format. The key should provides
        * more detail on the warning being returned. For example, for warnings
@@ -3742,13 +4239,16 @@ public java.util.Map getData() {
        * replacement.
        * 
* - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.Map getDataMap() { return internalGetData().getMap(); } /** + * + * *
        * Output only. Metadata about this warning in key: value format. The key should provides
        * more detail on the warning being returned. For example, for warnings
@@ -3758,20 +4258,23 @@ public java.util.Map getDataMap() {
        * replacement.
        * 
* - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getDataOrDefault( + public /* nullable */ java.lang.String getDataOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetData().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetData().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
        * Output only. Metadata about this warning in key: value format. The key should provides
        * more detail on the warning being returned. For example, for warnings
@@ -3781,26 +4284,29 @@ java.lang.String getDataOrDefault(
        * replacement.
        * 
* - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.lang.String getDataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetData().getMap(); + public java.lang.String getDataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetData().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableData().getMutableMap() - .clear(); + internalGetMutableData().getMutableMap().clear(); return this; } /** + * + * *
        * Output only. Metadata about this warning in key: value format. The key should provides
        * more detail on the warning being returned. For example, for warnings
@@ -3810,25 +4316,25 @@ public Builder clearData() {
        * replacement.
        * 
* - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder removeData( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableData().getMutableMap() - .remove(key); + public Builder removeData(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableData().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableData() { + public java.util.Map getMutableData() { bitField0_ |= 0x00000002; return internalGetMutableData().getMutableMap(); } /** + * + * *
        * Output only. Metadata about this warning in key: value format. The key should provides
        * more detail on the warning being returned. For example, for warnings
@@ -3838,19 +4344,23 @@ public Builder removeData(
        * replacement.
        * 
* - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putData( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableData().getMutableMap() - .put(key, value); + public Builder putData(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableData().getMutableMap().put(key, value); bitField0_ |= 0x00000002; return this; } /** + * + * *
        * Output only. Metadata about this warning in key: value format. The key should provides
        * more detail on the warning being returned. For example, for warnings
@@ -3860,30 +4370,31 @@ public Builder putData(
        * replacement.
        * 
* - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putAllData( - java.util.Map values) { - internalGetMutableData().getMutableMap() - .putAll(values); + public Builder putAllData(java.util.Map values) { + internalGetMutableData().getMutableMap().putAll(values); bitField0_ |= 0x00000002; return this; } private java.lang.Object warningMessage_ = ""; /** + * + * *
        * Output only. A human-readable description of the warning code.
        * 
* * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The warningMessage. */ public java.lang.String getWarningMessage() { java.lang.Object ref = warningMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); warningMessage_ = s; return s; @@ -3892,20 +4403,21 @@ public java.lang.String getWarningMessage() { } } /** + * + * *
        * Output only. A human-readable description of the warning code.
        * 
* * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for warningMessage. */ - public com.google.protobuf.ByteString - getWarningMessageBytes() { + public com.google.protobuf.ByteString getWarningMessageBytes() { java.lang.Object ref = warningMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); warningMessage_ = b; return b; } else { @@ -3913,28 +4425,35 @@ public java.lang.String getWarningMessage() { } } /** + * + * *
        * Output only. A human-readable description of the warning code.
        * 
* * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The warningMessage to set. * @return This builder for chaining. */ - public Builder setWarningMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWarningMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } warningMessage_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Output only. A human-readable description of the warning code.
        * 
* * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearWarningMessage() { @@ -3944,23 +4463,28 @@ public Builder clearWarningMessage() { return this; } /** + * + * *
        * Output only. A human-readable description of the warning code.
        * 
* * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for warningMessage to set. * @return This builder for chaining. */ - public Builder setWarningMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWarningMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); warningMessage_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3973,41 +4497,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) - private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings(); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Warnings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Warnings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4019,21 +4546,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int targetCase_ = 0; private java.lang.Object target_; + public enum TargetCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VIRTUAL_MACHINE(18), INTERCONNECT_ATTACHMENT(9), TARGET_NOT_SET(0); private final int value; + private TargetCase(int value) { this.value = value; } @@ -4049,31 +4579,37 @@ public static TargetCase valueOf(int value) { public static TargetCase forNumber(int value) { switch (value) { - case 18: return VIRTUAL_MACHINE; - case 9: return INTERCONNECT_ATTACHMENT; - case 0: return TARGET_NOT_SET; - default: return null; + case 18: + return VIRTUAL_MACHINE; + case 9: + return INTERCONNECT_ATTACHMENT; + case 0: + return TARGET_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); } private int nextHopCase_ = 0; private java.lang.Object nextHop_; + public enum NextHopCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NEXT_HOP_ILB_IP(12), NEXTHOP_NOT_SET(0); private final int value; + private NextHopCase(int value) { this.value = value; } @@ -4089,29 +4625,36 @@ public static NextHopCase valueOf(int value) { public static NextHopCase forNumber(int value) { switch (value) { - case 12: return NEXT_HOP_ILB_IP; - case 0: return NEXTHOP_NOT_SET; - default: return null; + case 12: + return NEXT_HOP_ILB_IP; + case 0: + return NEXTHOP_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public NextHopCase - getNextHopCase() { - return NextHopCase.forNumber( - nextHopCase_); + public NextHopCase getNextHopCase() { + return NextHopCase.forNumber(nextHopCase_); } public static final int VIRTUAL_MACHINE_FIELD_NUMBER = 18; /** + * + * *
    * Optional. VM instances to which this policy based route applies to.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the virtualMachine field is set. */ @java.lang.Override @@ -4119,42 +4662,60 @@ public boolean hasVirtualMachine() { return targetCase_ == 18; } /** + * + * *
    * Optional. VM instances to which this policy based route applies to.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The virtualMachine. */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine getVirtualMachine() { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine + getVirtualMachine() { if (targetCase_ == 18) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_; + return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_; } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.getDefaultInstance(); + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine + .getDefaultInstance(); } /** + * + * *
    * Optional. VM instances to which this policy based route applies to.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder getVirtualMachineOrBuilder() { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder + getVirtualMachineOrBuilder() { if (targetCase_ == 18) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_; + return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_; } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.getDefaultInstance(); + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine + .getDefaultInstance(); } public static final int INTERCONNECT_ATTACHMENT_FIELD_NUMBER = 9; /** + * + * *
    * Optional. The interconnect attachments to which this route applies to.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the interconnectAttachment field is set. */ @java.lang.Override @@ -4162,37 +4723,54 @@ public boolean hasInterconnectAttachment() { return targetCase_ == 9; } /** + * + * *
    * Optional. The interconnect attachments to which this route applies to.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The interconnectAttachment. */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment getInterconnectAttachment() { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + getInterconnectAttachment() { if (targetCase_ == 9) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) target_; + return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) + target_; } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.getDefaultInstance(); + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + .getDefaultInstance(); } /** + * + * *
    * Optional. The interconnect attachments to which this route applies to.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder getInterconnectAttachmentOrBuilder() { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder + getInterconnectAttachmentOrBuilder() { if (targetCase_ == 9) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) target_; + return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) + target_; } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.getDefaultInstance(); + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + .getDefaultInstance(); } public static final int NEXT_HOP_ILB_IP_FIELD_NUMBER = 12; /** + * + * *
    * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
    * handle matching packets. For this version, only next_hop_ilb_ip is
@@ -4200,12 +4778,15 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAtta
    * 
* * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the nextHopIlbIp field is set. */ public boolean hasNextHopIlbIp() { return nextHopCase_ == 12; } /** + * + * *
    * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
    * handle matching packets. For this version, only next_hop_ilb_ip is
@@ -4213,6 +4794,7 @@ public boolean hasNextHopIlbIp() {
    * 
* * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextHopIlbIp. */ public java.lang.String getNextHopIlbIp() { @@ -4223,8 +4805,7 @@ public java.lang.String getNextHopIlbIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (nextHopCase_ == 12) { nextHop_ = s; @@ -4233,6 +4814,8 @@ public java.lang.String getNextHopIlbIp() { } } /** + * + * *
    * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
    * handle matching packets. For this version, only next_hop_ilb_ip is
@@ -4240,18 +4823,17 @@ public java.lang.String getNextHopIlbIp() {
    * 
* * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextHopIlbIp. */ - public com.google.protobuf.ByteString - getNextHopIlbIpBytes() { + public com.google.protobuf.ByteString getNextHopIlbIpBytes() { java.lang.Object ref = ""; if (nextHopCase_ == 12) { ref = nextHop_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (nextHopCase_ == 12) { nextHop_ = b; } @@ -4262,15 +4844,19 @@ public java.lang.String getNextHopIlbIp() { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Immutable. A unique name of the resource in the form of
    * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -4279,30 +4865,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; } } /** + * + * *
    * Immutable. A unique name of the resource in the form of
    * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -4313,11 +4899,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Time when the PolicyBasedRoute was created.
    * 
* - * .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 @@ -4325,11 +4915,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time when the PolicyBasedRoute was created.
    * 
* - * .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 @@ -4337,11 +4931,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time when the PolicyBasedRoute was created.
    * 
* - * .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() { @@ -4351,11 +4948,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Time when the PolicyBasedRoute was updated.
    * 
* - * .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 @@ -4363,11 +4964,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time when the PolicyBasedRoute was updated.
    * 
* - * .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 @@ -4375,11 +4980,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Time when the PolicyBasedRoute was updated.
    * 
* - * .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() { @@ -4387,32 +4995,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_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.networkconnectivity.v1.PolicyBasedRoutingProto + .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - 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_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * User-defined labels.
    * 
@@ -4420,20 +5030,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** + * + * *
    * User-defined labels.
    * 
@@ -4445,6 +5056,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * User-defined labels.
    * 
@@ -4452,17 +5065,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + 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; } /** + * + * *
    * User-defined labels.
    * 
@@ -4470,11 +5085,11 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new 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(); } @@ -4482,15 +5097,19 @@ public java.lang.String getLabelsOrThrow( } public static final int DESCRIPTION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Optional. An optional description of this resource. Provide this field when you
    * create the resource.
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -4499,30 +5118,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Optional. An optional description of this resource. Provide this field when you
    * create the resource.
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -4531,15 +5150,21 @@ public java.lang.String getDescription() { } public static final int NETWORK_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object network_ = ""; /** + * + * *
    * Required. Fully-qualified URL of the network that this route applies to. e.g.
    * projects/my-project/global/networks/my-network.
    * 
* - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The network. */ @java.lang.Override @@ -4548,30 +5173,32 @@ 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; } } /** + * + * *
    * Required. Fully-qualified URL of the network that this route applies to. e.g.
    * projects/my-project/global/networks/my-network.
    * 
* - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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 { @@ -4582,11 +5209,16 @@ public java.lang.String getNetwork() { public static final int FILTER_FIELD_NUMBER = 10; private com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter_; /** + * + * *
    * Required. The filter to match L4 traffic.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the filter field is set. */ @java.lang.Override @@ -4594,32 +5226,48 @@ public boolean hasFilter() { return filter_ != null; } /** + * + * *
    * Required. The filter to match L4 traffic.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The filter. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter getFilter() { - return filter_ == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() : filter_; + return filter_ == null + ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() + : filter_; } /** + * + * *
    * Required. The filter to match L4 traffic.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder getFilterOrBuilder() { - return filter_ == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() : filter_; + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder + getFilterOrBuilder() { + return filter_ == null + ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() + : filter_; } public static final int PRIORITY_FIELD_NUMBER = 11; private int priority_ = 0; /** + * + * *
    * Optional. The priority of this policy based route. Priority is used to break ties in
    * cases where there are more than one matching policy based routes found. In
@@ -4629,6 +5277,7 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder
    * 
* * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The priority. */ @java.lang.Override @@ -4637,80 +5286,108 @@ public int getPriority() { } public static final int WARNINGS_FIELD_NUMBER = 14; + @SuppressWarnings("serial") - private java.util.List warnings_; + private java.util.List + warnings_; /** + * + * *
    * Output only. If potential misconfigurations are detected for this route,
    * this field will be populated with warning messages.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getWarningsList() { + public java.util.List + getWarningsList() { return warnings_; } /** + * + * *
    * Output only. If potential misconfigurations are detected for this route,
    * this field will be populated with warning messages.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder> getWarningsOrBuilderList() { return warnings_; } /** + * + * *
    * Output only. If potential misconfigurations are detected for this route,
    * this field will be populated with warning messages.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getWarningsCount() { return warnings_.size(); } /** + * + * *
    * Output only. If potential misconfigurations are detected for this route,
    * this field will be populated with warning messages.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings getWarnings(int index) { return warnings_.get(index); } /** + * + * *
    * Output only. If potential misconfigurations are detected for this route,
    * this field will be populated with warning messages.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder getWarningsOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder + getWarningsOrBuilder(int index) { return warnings_.get(index); } public static final int SELF_LINK_FIELD_NUMBER = 15; + @SuppressWarnings("serial") private volatile java.lang.Object selfLink_ = ""; /** + * + * *
    * Output only. Server-defined fully-qualified URL for this resource.
    * 
* * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The selfLink. */ @java.lang.Override @@ -4719,29 +5396,29 @@ public java.lang.String getSelfLink() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); selfLink_ = s; return s; } } /** + * + * *
    * Output only. Server-defined fully-qualified URL for this resource.
    * 
* * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for selfLink. */ @java.lang.Override - public com.google.protobuf.ByteString - getSelfLinkBytes() { + public com.google.protobuf.ByteString getSelfLinkBytes() { java.lang.Object ref = selfLink_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selfLink_ = b; return b; } else { @@ -4750,15 +5427,19 @@ public java.lang.String getSelfLink() { } public static final int KIND_FIELD_NUMBER = 16; + @SuppressWarnings("serial") private volatile java.lang.Object kind_ = ""; /** + * + * *
    * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
    * Policy Based Route resources.
    * 
* * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The kind. */ @java.lang.Override @@ -4767,30 +5448,30 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** + * + * *
    * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
    * Policy Based Route resources.
    * 
* * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -4799,6 +5480,7 @@ public java.lang.String getKind() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4810,8 +5492,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -4821,12 +5502,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -4834,7 +5511,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 6, network_); } if (targetCase_ == 9) { - output.writeMessage(9, (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) target_); + output.writeMessage( + 9, + (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) + target_); } if (filter_ != null) { output.writeMessage(10, getFilter()); @@ -4855,7 +5535,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 16, kind_); } if (targetCase_ == 18) { - output.writeMessage(18, (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_); + output.writeMessage( + 18, (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_); } getUnknownFields().writeTo(output); } @@ -4870,22 +5551,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -4894,23 +5573,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, network_); } if (targetCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) target_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, + (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) + target_); } if (filter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getFilter()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getFilter()); } if (priority_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(11, priority_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, priority_); } if (nextHopCase_ == 12) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, nextHop_); } for (int i = 0; i < warnings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, warnings_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, warnings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, selfLink_); @@ -4919,8 +5598,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, kind_); } if (targetCase_ == 18) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, + (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4930,53 +5611,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.networkconnectivity.v1.PolicyBasedRoute)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute other = (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute) obj; + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute other = + (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getNetwork() - .equals(other.getNetwork())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; if (hasFilter() != other.hasFilter()) return false; if (hasFilter()) { - if (!getFilter() - .equals(other.getFilter())) return false; - } - if (getPriority() - != other.getPriority()) return false; - if (!getWarningsList() - .equals(other.getWarningsList())) return false; - if (!getSelfLink() - .equals(other.getSelfLink())) return false; - if (!getKind() - .equals(other.getKind())) return false; + if (!getFilter().equals(other.getFilter())) return false; + } + if (getPriority() != other.getPriority()) return false; + if (!getWarningsList().equals(other.getWarningsList())) return false; + if (!getSelfLink().equals(other.getSelfLink())) return false; + if (!getKind().equals(other.getKind())) return false; if (!getTargetCase().equals(other.getTargetCase())) return false; switch (targetCase_) { case 18: - if (!getVirtualMachine() - .equals(other.getVirtualMachine())) return false; + if (!getVirtualMachine().equals(other.getVirtualMachine())) return false; break; case 9: - if (!getInterconnectAttachment() - .equals(other.getInterconnectAttachment())) return false; + if (!getInterconnectAttachment().equals(other.getInterconnectAttachment())) return false; break; case 0: default: @@ -4984,8 +5653,7 @@ public boolean equals(final java.lang.Object obj) { if (!getNextHopCase().equals(other.getNextHopCase())) return false; switch (nextHopCase_) { case 12: - if (!getNextHopIlbIp() - .equals(other.getNextHopIlbIp())) return false; + if (!getNextHopIlbIp().equals(other.getNextHopIlbIp())) return false; break; case 0: default: @@ -5059,96 +5727,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Policy Based Routes (PBR) are more powerful routes that allows GCP customers
    * to route their L4 network traffic based on not just destination IP, but also
@@ -5159,55 +5835,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute)
       com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto
+          .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto
+          .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.class, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder.class);
+              com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.class,
+              com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -5255,9 +5928,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto
+          .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor;
     }
 
     @java.lang.Override
@@ -5276,15 +5949,19 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute buildPartial() {
-      com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute(this);
+      com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result =
+          new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result) {
       if (warningsBuilder_ == null) {
         if (((bitField0_ & 0x00000800) != 0)) {
           warnings_ = java.util.Collections.unmodifiableList(warnings_);
@@ -5302,14 +5979,10 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.PolicyBasedRo
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.labels_ = internalGetLabels();
@@ -5322,9 +5995,7 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.PolicyBasedRo
         result.network_ = network_;
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.filter_ = filterBuilder_ == null
-            ? filter_
-            : filterBuilder_.build();
+        result.filter_ = filterBuilder_ == null ? filter_ : filterBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
         result.priority_ = priority_;
@@ -5337,15 +6008,14 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.PolicyBasedRo
       }
     }
 
-    private void buildPartialOneofs(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result) {
+    private void buildPartialOneofs(
+        com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result) {
       result.targetCase_ = targetCase_;
       result.target_ = this.target_;
-      if (targetCase_ == 18 &&
-          virtualMachineBuilder_ != null) {
+      if (targetCase_ == 18 && virtualMachineBuilder_ != null) {
         result.target_ = virtualMachineBuilder_.build();
       }
-      if (targetCase_ == 9 &&
-          interconnectAttachmentBuilder_ != null) {
+      if (targetCase_ == 9 && interconnectAttachmentBuilder_ != null) {
         result.target_ = interconnectAttachmentBuilder_.build();
       }
       result.nextHopCase_ = nextHopCase_;
@@ -5356,38 +6026,39 @@ private void buildPartialOneofs(com.google.cloud.networkconnectivity.v1.PolicyBa
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.PolicyBasedRoute) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -5395,7 +6066,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute other) {
-      if (other == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000008;
@@ -5407,8 +6079,7 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.PolicyBasedRout
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000040;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -5444,9 +6115,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.PolicyBasedRout
             warningsBuilder_ = null;
             warnings_ = other.warnings_;
             bitField0_ = (bitField0_ & ~0x00000800);
-            warningsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getWarningsFieldBuilder() : null;
+            warningsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getWarningsFieldBuilder()
+                    : null;
           } else {
             warningsBuilder_.addAllMessages(other.warnings_);
           }
@@ -5463,28 +6135,33 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.PolicyBasedRout
         onChanged();
       }
       switch (other.getTargetCase()) {
-        case VIRTUAL_MACHINE: {
-          mergeVirtualMachine(other.getVirtualMachine());
-          break;
-        }
-        case INTERCONNECT_ATTACHMENT: {
-          mergeInterconnectAttachment(other.getInterconnectAttachment());
-          break;
-        }
-        case TARGET_NOT_SET: {
-          break;
-        }
+        case VIRTUAL_MACHINE:
+          {
+            mergeVirtualMachine(other.getVirtualMachine());
+            break;
+          }
+        case INTERCONNECT_ATTACHMENT:
+          {
+            mergeInterconnectAttachment(other.getInterconnectAttachment());
+            break;
+          }
+        case TARGET_NOT_SET:
+          {
+            break;
+          }
       }
       switch (other.getNextHopCase()) {
-        case NEXT_HOP_ILB_IP: {
-          nextHopCase_ = 12;
-          nextHop_ = other.nextHop_;
-          onChanged();
-          break;
-        }
-        case NEXTHOP_NOT_SET: {
-          break;
-        }
+        case NEXT_HOP_ILB_IP:
+          {
+            nextHopCase_ = 12;
+            nextHop_ = other.nextHop_;
+            onChanged();
+            break;
+          }
+        case NEXTHOP_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -5512,105 +6189,113 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 34
-            case 42: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 42
-            case 50: {
-              network_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 50
-            case 74: {
-              input.readMessage(
-                  getInterconnectAttachmentFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              targetCase_ = 9;
-              break;
-            } // case 74
-            case 82: {
-              input.readMessage(
-                  getFilterFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 82
-            case 88: {
-              priority_ = input.readInt32();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 88
-            case 98: {
-              java.lang.String s = input.readStringRequireUtf8();
-              nextHopCase_ = 12;
-              nextHop_ = s;
-              break;
-            } // case 98
-            case 114: {
-              com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings m =
-                  input.readMessage(
-                      com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.parser(),
-                      extensionRegistry);
-              if (warningsBuilder_ == null) {
-                ensureWarningsIsMutable();
-                warnings_.add(m);
-              } else {
-                warningsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 114
-            case 122: {
-              selfLink_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 122
-            case 130: {
-              kind_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 130
-            case 146: {
-              input.readMessage(
-                  getVirtualMachineFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              targetCase_ = 18;
-              break;
-            } // case 146
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 34
+            case 42:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 42
+            case 50:
+              {
+                network_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 50
+            case 74:
+              {
+                input.readMessage(
+                    getInterconnectAttachmentFieldBuilder().getBuilder(), extensionRegistry);
+                targetCase_ = 9;
+                break;
+              } // case 74
+            case 82:
+              {
+                input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 82
+            case 88:
+              {
+                priority_ = input.readInt32();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 88
+            case 98:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                nextHopCase_ = 12;
+                nextHop_ = s;
+                break;
+              } // case 98
+            case 114:
+              {
+                com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings m =
+                    input.readMessage(
+                        com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.parser(),
+                        extensionRegistry);
+                if (warningsBuilder_ == null) {
+                  ensureWarningsIsMutable();
+                  warnings_.add(m);
+                } else {
+                  warningsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 114
+            case 122:
+              {
+                selfLink_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 122
+            case 130:
+              {
+                kind_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 130
+            case 146:
+              {
+                input.readMessage(getVirtualMachineFieldBuilder().getBuilder(), extensionRegistry);
+                targetCase_ = 18;
+                break;
+              } // case 146
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -5620,12 +6305,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int targetCase_ = 0;
     private java.lang.Object target_;
-    public TargetCase
-        getTargetCase() {
-      return TargetCase.forNumber(
-          targetCase_);
+
+    public TargetCase getTargetCase() {
+      return TargetCase.forNumber(targetCase_);
     }
 
     public Builder clearTarget() {
@@ -5637,10 +6322,9 @@ public Builder clearTarget() {
 
     private int nextHopCase_ = 0;
     private java.lang.Object nextHop_;
-    public NextHopCase
-        getNextHopCase() {
-      return NextHopCase.forNumber(
-          nextHopCase_);
+
+    public NextHopCase getNextHopCase() {
+      return NextHopCase.forNumber(nextHopCase_);
     }
 
     public Builder clearNextHop() {
@@ -5653,13 +6337,21 @@ public Builder clearNextHop() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder> virtualMachineBuilder_;
+            com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine,
+            com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder,
+            com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder>
+        virtualMachineBuilder_;
     /**
+     *
+     *
      * 
      * Optional. VM instances to which this policy based route applies to.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the virtualMachine field is set. */ @java.lang.Override @@ -5667,35 +6359,48 @@ public boolean hasVirtualMachine() { return targetCase_ == 18; } /** + * + * *
      * Optional. VM instances to which this policy based route applies to.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The virtualMachine. */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine getVirtualMachine() { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine + getVirtualMachine() { if (virtualMachineBuilder_ == null) { if (targetCase_ == 18) { return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_; } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.getDefaultInstance(); + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine + .getDefaultInstance(); } else { if (targetCase_ == 18) { return virtualMachineBuilder_.getMessage(); } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.getDefaultInstance(); + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine + .getDefaultInstance(); } } /** + * + * *
      * Optional. VM instances to which this policy based route applies to.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setVirtualMachine(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine value) { + public Builder setVirtualMachine( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine value) { if (virtualMachineBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5709,14 +6414,19 @@ public Builder setVirtualMachine(com.google.cloud.networkconnectivity.v1.PolicyB return this; } /** + * + * *
      * Optional. VM instances to which this policy based route applies to.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setVirtualMachine( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder builderForValue) { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder + builderForValue) { if (virtualMachineBuilder_ == null) { target_ = builderForValue.build(); onChanged(); @@ -5727,18 +6437,29 @@ public Builder setVirtualMachine( return this; } /** + * + * *
      * Optional. VM instances to which this policy based route applies to.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeVirtualMachine(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine value) { + public Builder mergeVirtualMachine( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine value) { if (virtualMachineBuilder_ == null) { - if (targetCase_ == 18 && - target_ != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.getDefaultInstance()) { - target_ = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.newBuilder((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_) - .mergeFrom(value).buildPartial(); + if (targetCase_ == 18 + && target_ + != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine + .getDefaultInstance()) { + target_ = + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.newBuilder( + (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) + target_) + .mergeFrom(value) + .buildPartial(); } else { target_ = value; } @@ -5754,11 +6475,15 @@ public Builder mergeVirtualMachine(com.google.cloud.networkconnectivity.v1.Polic return this; } /** + * + * *
      * Optional. VM instances to which this policy based route applies to.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearVirtualMachine() { if (virtualMachineBuilder_ == null) { @@ -5777,49 +6502,71 @@ public Builder clearVirtualMachine() { return this; } /** + * + * *
      * Optional. VM instances to which this policy based route applies to.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder getVirtualMachineBuilder() { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder + getVirtualMachineBuilder() { return getVirtualMachineFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. VM instances to which this policy based route applies to.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder getVirtualMachineOrBuilder() { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder + getVirtualMachineOrBuilder() { if ((targetCase_ == 18) && (virtualMachineBuilder_ != null)) { return virtualMachineBuilder_.getMessageOrBuilder(); } else { if (targetCase_ == 18) { return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_; } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.getDefaultInstance(); + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine + .getDefaultInstance(); } } /** + * + * *
      * Optional. VM instances to which this policy based route applies to.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder> + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder> getVirtualMachineFieldBuilder() { if (virtualMachineBuilder_ == null) { if (!(targetCase_ == 18)) { - target_ = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.getDefaultInstance(); + target_ = + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine + .getDefaultInstance(); } - virtualMachineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder>( + virtualMachineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder>( (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_, getParentForChildren(), isClean()); @@ -5831,13 +6578,22 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOr } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder> interconnectAttachmentBuilder_; + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute + .InterconnectAttachmentOrBuilder> + interconnectAttachmentBuilder_; /** + * + * *
      * Optional. The interconnect attachments to which this route applies to.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the interconnectAttachment field is set. */ @java.lang.Override @@ -5845,35 +6601,49 @@ public boolean hasInterconnectAttachment() { return targetCase_ == 9; } /** + * + * *
      * Optional. The interconnect attachments to which this route applies to.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The interconnectAttachment. */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment getInterconnectAttachment() { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + getInterconnectAttachment() { if (interconnectAttachmentBuilder_ == null) { if (targetCase_ == 9) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) target_; + return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) + target_; } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.getDefaultInstance(); + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + .getDefaultInstance(); } else { if (targetCase_ == 9) { return interconnectAttachmentBuilder_.getMessage(); } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.getDefaultInstance(); + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + .getDefaultInstance(); } } /** + * + * *
      * Optional. The interconnect attachments to which this route applies to.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setInterconnectAttachment(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment value) { + public Builder setInterconnectAttachment( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment value) { if (interconnectAttachmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5887,14 +6657,19 @@ public Builder setInterconnectAttachment(com.google.cloud.networkconnectivity.v1 return this; } /** + * + * *
      * Optional. The interconnect attachments to which this route applies to.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setInterconnectAttachment( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder builderForValue) { + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder + builderForValue) { if (interconnectAttachmentBuilder_ == null) { target_ = builderForValue.build(); onChanged(); @@ -5905,18 +6680,31 @@ public Builder setInterconnectAttachment( return this; } /** + * + * *
      * Optional. The interconnect attachments to which this route applies to.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeInterconnectAttachment(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment value) { + public Builder mergeInterconnectAttachment( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment value) { if (interconnectAttachmentBuilder_ == null) { - if (targetCase_ == 9 && - target_ != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.getDefaultInstance()) { - target_ = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.newBuilder((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) target_) - .mergeFrom(value).buildPartial(); + if (targetCase_ == 9 + && target_ + != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + .getDefaultInstance()) { + target_ = + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + .newBuilder( + (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute + .InterconnectAttachment) + target_) + .mergeFrom(value) + .buildPartial(); } else { target_ = value; } @@ -5932,11 +6720,15 @@ public Builder mergeInterconnectAttachment(com.google.cloud.networkconnectivity. return this; } /** + * + * *
      * Optional. The interconnect attachments to which this route applies to.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearInterconnectAttachment() { if (interconnectAttachmentBuilder_ == null) { @@ -5955,50 +6747,77 @@ public Builder clearInterconnectAttachment() { return this; } /** + * + * *
      * Optional. The interconnect attachments to which this route applies to.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder getInterconnectAttachmentBuilder() { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder + getInterconnectAttachmentBuilder() { return getInterconnectAttachmentFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The interconnect attachments to which this route applies to.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder getInterconnectAttachmentOrBuilder() { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder + getInterconnectAttachmentOrBuilder() { if ((targetCase_ == 9) && (interconnectAttachmentBuilder_ != null)) { return interconnectAttachmentBuilder_.getMessageOrBuilder(); } else { if (targetCase_ == 9) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) target_; + return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) + target_; } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.getDefaultInstance(); + return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + .getDefaultInstance(); } } /** + * + * *
      * Optional. The interconnect attachments to which this route applies to.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder> + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute + .InterconnectAttachmentOrBuilder> getInterconnectAttachmentFieldBuilder() { if (interconnectAttachmentBuilder_ == null) { if (!(targetCase_ == 9)) { - target_ = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.getDefaultInstance(); + target_ = + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + .getDefaultInstance(); } - interconnectAttachmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder>( - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) target_, + interconnectAttachmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + .Builder, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute + .InterconnectAttachmentOrBuilder>( + (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) + target_, getParentForChildren(), isClean()); target_ = null; @@ -6009,6 +6828,8 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAtta } /** + * + * *
      * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
      * handle matching packets. For this version, only next_hop_ilb_ip is
@@ -6016,6 +6837,7 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAtta
      * 
* * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the nextHopIlbIp field is set. */ @java.lang.Override @@ -6023,6 +6845,8 @@ public boolean hasNextHopIlbIp() { return nextHopCase_ == 12; } /** + * + * *
      * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
      * handle matching packets. For this version, only next_hop_ilb_ip is
@@ -6030,6 +6854,7 @@ public boolean hasNextHopIlbIp() {
      * 
* * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextHopIlbIp. */ @java.lang.Override @@ -6039,8 +6864,7 @@ public java.lang.String getNextHopIlbIp() { ref = nextHop_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (nextHopCase_ == 12) { nextHop_ = s; @@ -6051,6 +6875,8 @@ public java.lang.String getNextHopIlbIp() { } } /** + * + * *
      * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
      * handle matching packets. For this version, only next_hop_ilb_ip is
@@ -6058,19 +6884,18 @@ public java.lang.String getNextHopIlbIp() {
      * 
* * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextHopIlbIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextHopIlbIpBytes() { + public com.google.protobuf.ByteString getNextHopIlbIpBytes() { java.lang.Object ref = ""; if (nextHopCase_ == 12) { ref = nextHop_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (nextHopCase_ == 12) { nextHop_ = b; } @@ -6080,6 +6905,8 @@ public java.lang.String getNextHopIlbIp() { } } /** + * + * *
      * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
      * handle matching packets. For this version, only next_hop_ilb_ip is
@@ -6087,18 +6914,22 @@ public java.lang.String getNextHopIlbIp() {
      * 
* * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The nextHopIlbIp to set. * @return This builder for chaining. */ - public Builder setNextHopIlbIp( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextHopIlbIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextHopCase_ = 12; nextHop_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
      * handle matching packets. For this version, only next_hop_ilb_ip is
@@ -6106,6 +6937,7 @@ public Builder setNextHopIlbIp(
      * 
* * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNextHopIlbIp() { @@ -6117,6 +6949,8 @@ public Builder clearNextHopIlbIp() { return this; } /** + * + * *
      * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
      * handle matching packets. For this version, only next_hop_ilb_ip is
@@ -6124,12 +6958,14 @@ public Builder clearNextHopIlbIp() {
      * 
* * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for nextHopIlbIp to set. * @return This builder for chaining. */ - public Builder setNextHopIlbIpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextHopIlbIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextHopCase_ = 12; nextHop_ = value; @@ -6139,19 +6975,21 @@ public Builder setNextHopIlbIpBytes( private java.lang.Object name_ = ""; /** + * + * *
      * Immutable. A unique name of the resource in the form of
      * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -6160,21 +6998,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. A unique name of the resource in the form of
      * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -6182,30 +7021,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. A unique name of the resource in the form of
      * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Immutable. A unique name of the resource in the form of
      * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -6215,18 +7061,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. A unique name of the resource in the form of
      * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000008; @@ -6236,39 +7086,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Time when the PolicyBasedRoute was created.
      * 
* - * .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 ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Output only. Time when the PolicyBasedRoute was created.
      * 
* - * .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. Time when the PolicyBasedRoute was created.
      * 
* - * .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) { @@ -6284,14 +7153,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the PolicyBasedRoute was created.
      * 
* - * .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(); } else { @@ -6302,17 +7174,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time when the PolicyBasedRoute was created.
      * 
* - * .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 (((bitField0_ & 0x00000010) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -6325,11 +7201,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the PolicyBasedRoute was created.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000010); @@ -6342,11 +7222,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time when the PolicyBasedRoute was created.
      * 
* - * .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() { bitField0_ |= 0x00000010; @@ -6354,36 +7238,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when the PolicyBasedRoute was created.
      * 
* - * .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. Time when the PolicyBasedRoute was created.
      * 
* - * .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_; @@ -6391,39 +7287,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. Time when the PolicyBasedRoute was updated.
      * 
* - * .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 ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Output only. Time when the PolicyBasedRoute was updated.
      * 
* - * .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. Time when the PolicyBasedRoute was updated.
      * 
* - * .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) { @@ -6439,14 +7354,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the PolicyBasedRoute was updated.
      * 
* - * .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(); } else { @@ -6457,17 +7375,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time when the PolicyBasedRoute was updated.
      * 
* - * .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 (((bitField0_ & 0x00000020) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -6480,11 +7402,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the PolicyBasedRoute was updated.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000020); @@ -6497,11 +7423,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time when the PolicyBasedRoute was updated.
      * 
* - * .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() { bitField0_ |= 0x00000020; @@ -6509,56 +7439,66 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when the PolicyBasedRoute was updated.
      * 
* - * .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. Time when the PolicyBasedRoute was updated.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -6567,10 +7507,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * User-defined labels.
      * 
@@ -6578,20 +7521,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** + * + * *
      * User-defined labels.
      * 
@@ -6603,6 +7547,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * User-defined labels.
      * 
@@ -6610,17 +7556,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + 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; } /** + * + * *
      * User-defined labels.
      * 
@@ -6628,92 +7576,96 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new 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(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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() { bitField0_ |= 0x00000040; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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); + 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); bitField0_ |= 0x00000040; return this; } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000040; return this; } private java.lang.Object description_ = ""; /** + * + * *
      * Optional. An optional description of this resource. Provide this field when you
      * create the resource.
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -6722,21 +7674,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. An optional description of this resource. Provide this field when you
      * create the resource.
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -6744,30 +7697,37 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. An optional description of this resource. Provide this field when you
      * create the resource.
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * *
      * Optional. An optional description of this resource. Provide this field when you
      * create the resource.
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -6777,18 +7737,22 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Optional. An optional description of this resource. Provide this field when you
      * create the resource.
      * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000080; @@ -6798,19 +7762,23 @@ public Builder setDescriptionBytes( private java.lang.Object network_ = ""; /** + * + * *
      * Required. Fully-qualified URL of the network that this route applies to. e.g.
      * projects/my-project/global/networks/my-network.
      * 
* - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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; @@ -6819,21 +7787,24 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * Required. Fully-qualified URL of the network that this route applies to. e.g.
      * projects/my-project/global/networks/my-network.
      * 
* - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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 { @@ -6841,30 +7812,41 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * Required. Fully-qualified URL of the network that this route applies to. e.g.
      * projects/my-project/global/networks/my-network.
      * 
* - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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(); } + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } network_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * Required. Fully-qualified URL of the network that this route applies to. e.g.
      * projects/my-project/global/networks/my-network.
      * 
* - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearNetwork() { @@ -6874,18 +7856,24 @@ public Builder clearNetwork() { return this; } /** + * + * *
      * Required. Fully-qualified URL of the network that this route applies to. e.g.
      * projects/my-project/global/networks/my-network.
      * 
* - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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(); } + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); network_ = value; bitField0_ |= 0x00000100; @@ -6895,41 +7883,61 @@ public Builder setNetworkBytes( private com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder> filterBuilder_; + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder> + filterBuilder_; /** + * + * *
      * Required. The filter to match L4 traffic.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the filter field is set. */ public boolean hasFilter() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Required. The filter to match L4 traffic.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The filter. */ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter getFilter() { if (filterBuilder_ == null) { - return filter_ == null ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() : filter_; + return filter_ == null + ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() + : filter_; } else { return filterBuilder_.getMessage(); } } /** + * + * *
      * Required. The filter to match L4 traffic.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setFilter(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter value) { + public Builder setFilter( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter value) { if (filterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6943,11 +7951,15 @@ public Builder setFilter(com.google.cloud.networkconnectivity.v1.PolicyBasedRout return this; } /** + * + * *
      * Required. The filter to match L4 traffic.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFilter( com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder builderForValue) { @@ -6961,17 +7973,24 @@ public Builder setFilter( return this; } /** + * + * *
      * Required. The filter to match L4 traffic.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeFilter(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter value) { + public Builder mergeFilter( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter value) { if (filterBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - filter_ != null && - filter_ != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && filter_ != null + && filter_ + != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter + .getDefaultInstance()) { getFilterBuilder().mergeFrom(value); } else { filter_ = value; @@ -6984,11 +8003,15 @@ public Builder mergeFilter(com.google.cloud.networkconnectivity.v1.PolicyBasedRo return this; } /** + * + * *
      * Required. The filter to match L4 traffic.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFilter() { bitField0_ = (bitField0_ & ~0x00000200); @@ -7001,55 +8024,75 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Required. The filter to match L4 traffic.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder getFilterBuilder() { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder + getFilterBuilder() { bitField0_ |= 0x00000200; onChanged(); return getFilterFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The filter to match L4 traffic.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder getFilterOrBuilder() { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder + getFilterOrBuilder() { if (filterBuilder_ != null) { return filterBuilder_.getMessageOrBuilder(); } else { - return filter_ == null ? - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() : filter_; + return filter_ == null + ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() + : filter_; } } /** + * + * *
      * Required. The filter to match L4 traffic.
      * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder> + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder> getFilterFieldBuilder() { if (filterBuilder_ == null) { - filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder>( - getFilter(), - getParentForChildren(), - isClean()); + filterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder>( + getFilter(), getParentForChildren(), isClean()); filter_ = null; } return filterBuilder_; } - private int priority_ ; + private int priority_; /** + * + * *
      * Optional. The priority of this policy based route. Priority is used to break ties in
      * cases where there are more than one matching policy based routes found. In
@@ -7059,6 +8102,7 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder
      * 
* * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The priority. */ @java.lang.Override @@ -7066,6 +8110,8 @@ public int getPriority() { return priority_; } /** + * + * *
      * Optional. The priority of this policy based route. Priority is used to break ties in
      * cases where there are more than one matching policy based routes found. In
@@ -7075,17 +8121,20 @@ public int getPriority() {
      * 
* * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The priority to set. * @return This builder for chaining. */ public Builder setPriority(int value) { - + priority_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
      * Optional. The priority of this policy based route. Priority is used to break ties in
      * cases where there are more than one matching policy based routes found. In
@@ -7095,6 +8144,7 @@ public Builder setPriority(int value) {
      * 
* * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPriority() { @@ -7104,27 +8154,38 @@ public Builder clearPriority() { return this; } - private java.util.List warnings_ = - java.util.Collections.emptyList(); + private java.util.List + warnings_ = java.util.Collections.emptyList(); + private void ensureWarningsIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { - warnings_ = new java.util.ArrayList(warnings_); + warnings_ = + new java.util.ArrayList< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings>(warnings_); bitField0_ |= 0x00000800; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder> warningsBuilder_; + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder> + warningsBuilder_; /** + * + * *
      * Output only. If potential misconfigurations are detected for this route,
      * this field will be populated with warning messages.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getWarningsList() { + public java.util.List + getWarningsList() { if (warningsBuilder_ == null) { return java.util.Collections.unmodifiableList(warnings_); } else { @@ -7132,12 +8193,16 @@ public java.util.List * Output only. If potential misconfigurations are detected for this route, * this field will be populated with warning messages. *
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getWarningsCount() { if (warningsBuilder_ == null) { @@ -7147,14 +8212,19 @@ public int getWarningsCount() { } } /** + * + * *
      * Output only. If potential misconfigurations are detected for this route,
      * this field will be populated with warning messages.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings getWarnings(int index) { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings getWarnings( + int index) { if (warningsBuilder_ == null) { return warnings_.get(index); } else { @@ -7162,12 +8232,16 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings getWarn } } /** + * + * *
      * Output only. If potential misconfigurations are detected for this route,
      * this field will be populated with warning messages.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setWarnings( int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings value) { @@ -7184,15 +8258,20 @@ public Builder setWarnings( return this; } /** + * + * *
      * Output only. If potential misconfigurations are detected for this route,
      * this field will be populated with warning messages.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setWarnings( - int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder builderForValue) { + int index, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder builderForValue) { if (warningsBuilder_ == null) { ensureWarningsIsMutable(); warnings_.set(index, builderForValue.build()); @@ -7203,14 +8282,19 @@ public Builder setWarnings( return this; } /** + * + * *
      * Output only. If potential misconfigurations are detected for this route,
      * this field will be populated with warning messages.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addWarnings(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings value) { + public Builder addWarnings( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings value) { if (warningsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7224,12 +8308,16 @@ public Builder addWarnings(com.google.cloud.networkconnectivity.v1.PolicyBasedRo return this; } /** + * + * *
      * Output only. If potential misconfigurations are detected for this route,
      * this field will be populated with warning messages.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addWarnings( int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings value) { @@ -7246,12 +8334,16 @@ public Builder addWarnings( return this; } /** + * + * *
      * Output only. If potential misconfigurations are detected for this route,
      * this field will be populated with warning messages.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addWarnings( com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder builderForValue) { @@ -7265,15 +8357,20 @@ public Builder addWarnings( return this; } /** + * + * *
      * Output only. If potential misconfigurations are detected for this route,
      * this field will be populated with warning messages.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addWarnings( - int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder builderForValue) { + int index, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder builderForValue) { if (warningsBuilder_ == null) { ensureWarningsIsMutable(); warnings_.add(index, builderForValue.build()); @@ -7284,19 +8381,24 @@ public Builder addWarnings( return this; } /** + * + * *
      * Output only. If potential misconfigurations are detected for this route,
      * this field will be populated with warning messages.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllWarnings( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings> + values) { if (warningsBuilder_ == null) { ensureWarningsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, warnings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); onChanged(); } else { warningsBuilder_.addAllMessages(values); @@ -7304,12 +8406,16 @@ public Builder addAllWarnings( return this; } /** + * + * *
      * Output only. If potential misconfigurations are detected for this route,
      * this field will be populated with warning messages.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearWarnings() { if (warningsBuilder_ == null) { @@ -7322,12 +8428,16 @@ public Builder clearWarnings() { return this; } /** + * + * *
      * Output only. If potential misconfigurations are detected for this route,
      * this field will be populated with warning messages.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeWarnings(int index) { if (warningsBuilder_ == null) { @@ -7340,42 +8450,56 @@ public Builder removeWarnings(int index) { return this; } /** + * + * *
      * Output only. If potential misconfigurations are detected for this route,
      * this field will be populated with warning messages.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder getWarningsBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder + getWarningsBuilder(int index) { return getWarningsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. If potential misconfigurations are detected for this route,
      * this field will be populated with warning messages.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder getWarningsOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder + getWarningsOrBuilder(int index) { if (warningsBuilder_ == null) { - return warnings_.get(index); } else { + return warnings_.get(index); + } else { return warningsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. If potential misconfigurations are detected for this route,
      * this field will be populated with warning messages.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getWarningsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder> + getWarningsOrBuilderList() { if (warningsBuilder_ != null) { return warningsBuilder_.getMessageOrBuilderList(); } else { @@ -7383,52 +8507,73 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilde } } /** + * + * *
      * Output only. If potential misconfigurations are detected for this route,
      * this field will be populated with warning messages.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder addWarningsBuilder() { - return getWarningsFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder + addWarningsBuilder() { + return getWarningsFieldBuilder() + .addBuilder( + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings + .getDefaultInstance()); } /** + * + * *
      * Output only. If potential misconfigurations are detected for this route,
      * this field will be populated with warning messages.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder addWarningsBuilder( - int index) { - return getWarningsFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder + addWarningsBuilder(int index) { + return getWarningsFieldBuilder() + .addBuilder( + index, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings + .getDefaultInstance()); } /** + * + * *
      * Output only. If potential misconfigurations are detected for this route,
      * this field will be populated with warning messages.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getWarningsBuilderList() { + public java.util.List + getWarningsBuilderList() { return getWarningsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder> + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder> getWarningsFieldBuilder() { if (warningsBuilder_ == null) { - warningsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder>( - warnings_, - ((bitField0_ & 0x00000800) != 0), - getParentForChildren(), - isClean()); + warningsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder, + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder>( + warnings_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); warnings_ = null; } return warningsBuilder_; @@ -7436,18 +8581,20 @@ public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder private java.lang.Object selfLink_ = ""; /** + * + * *
      * Output only. Server-defined fully-qualified URL for this resource.
      * 
* * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The selfLink. */ public java.lang.String getSelfLink() { java.lang.Object ref = selfLink_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); selfLink_ = s; return s; @@ -7456,20 +8603,21 @@ public java.lang.String getSelfLink() { } } /** + * + * *
      * Output only. Server-defined fully-qualified URL for this resource.
      * 
* * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for selfLink. */ - public com.google.protobuf.ByteString - getSelfLinkBytes() { + public com.google.protobuf.ByteString getSelfLinkBytes() { java.lang.Object ref = selfLink_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); selfLink_ = b; return b; } else { @@ -7477,28 +8625,35 @@ public java.lang.String getSelfLink() { } } /** + * + * *
      * Output only. Server-defined fully-qualified URL for this resource.
      * 
* * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The selfLink to set. * @return This builder for chaining. */ - public Builder setSelfLink( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSelfLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } selfLink_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined fully-qualified URL for this resource.
      * 
* * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSelfLink() { @@ -7508,17 +8663,21 @@ public Builder clearSelfLink() { return this; } /** + * + * *
      * Output only. Server-defined fully-qualified URL for this resource.
      * 
* * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for selfLink to set. * @return This builder for chaining. */ - public Builder setSelfLinkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); selfLink_ = value; bitField0_ |= 0x00001000; @@ -7528,19 +8687,21 @@ public Builder setSelfLinkBytes( private java.lang.Object kind_ = ""; /** + * + * *
      * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
      * Policy Based Route resources.
      * 
* * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -7549,21 +8710,22 @@ public java.lang.String getKind() { } } /** + * + * *
      * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
      * Policy Based Route resources.
      * 
* * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for kind. */ - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -7571,30 +8733,37 @@ public java.lang.String getKind() { } } /** + * + * *
      * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
      * Policy Based Route resources.
      * 
* * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kind_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** + * + * *
      * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
      * Policy Based Route resources.
      * 
* * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearKind() { @@ -7604,27 +8773,31 @@ public Builder clearKind() { return this; } /** + * + * *
      * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
      * Policy Based Route resources.
      * 
* * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kind_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7634,12 +8807,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute) private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute(); } @@ -7648,27 +8821,27 @@ public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyBasedRoute parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyBasedRoute parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7683,6 +8856,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteOrBuilder.java similarity index 66% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteOrBuilder.java index 2ebdb60575ab..86836923ee85 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteOrBuilder.java @@ -1,67 +1,116 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/policy_based_routing.proto package com.google.cloud.networkconnectivity.v1; -public interface PolicyBasedRouteOrBuilder extends +public interface PolicyBasedRouteOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. VM instances to which this policy based route applies to.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the virtualMachine field is set. */ boolean hasVirtualMachine(); /** + * + * *
    * Optional. VM instances to which this policy based route applies to.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The virtualMachine. */ com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine getVirtualMachine(); /** + * + * *
    * Optional. VM instances to which this policy based route applies to.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder getVirtualMachineOrBuilder(); + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder + getVirtualMachineOrBuilder(); /** + * + * *
    * Optional. The interconnect attachments to which this route applies to.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the interconnectAttachment field is set. */ boolean hasInterconnectAttachment(); /** + * + * *
    * Optional. The interconnect attachments to which this route applies to.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The interconnectAttachment. */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment getInterconnectAttachment(); + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment + getInterconnectAttachment(); /** + * + * *
    * Optional. The interconnect attachments to which this route applies to.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder getInterconnectAttachmentOrBuilder(); + com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder + getInterconnectAttachmentOrBuilder(); /** + * + * *
    * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
    * handle matching packets. For this version, only next_hop_ilb_ip is
@@ -69,10 +118,13 @@ public interface PolicyBasedRouteOrBuilder extends
    * 
* * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the nextHopIlbIp field is set. */ boolean hasNextHopIlbIp(); /** + * + * *
    * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
    * handle matching packets. For this version, only next_hop_ilb_ip is
@@ -80,10 +132,13 @@ public interface PolicyBasedRouteOrBuilder extends
    * 
* * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextHopIlbIp. */ java.lang.String getNextHopIlbIp(); /** + * + * *
    * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
    * handle matching packets. For this version, only next_hop_ilb_ip is
@@ -91,88 +146,117 @@ public interface PolicyBasedRouteOrBuilder extends
    * 
* * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextHopIlbIp. */ - com.google.protobuf.ByteString - getNextHopIlbIpBytes(); + com.google.protobuf.ByteString getNextHopIlbIpBytes(); /** + * + * *
    * Immutable. A unique name of the resource in the form of
    * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Immutable. A unique name of the resource in the form of
    * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. Time when the PolicyBasedRoute was created.
    * 
* - * .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. Time when the PolicyBasedRoute was created.
    * 
* - * .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. Time when the PolicyBasedRoute was created.
    * 
* - * .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. Time when the PolicyBasedRoute was updated.
    * 
* - * .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. Time when the PolicyBasedRoute was updated.
    * 
* - * .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. Time when the PolicyBasedRoute was updated.
    * 
* - * .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(); /** + * + * *
    * User-defined labels.
    * 
@@ -181,30 +265,31 @@ public interface PolicyBasedRouteOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * User-defined labels.
    * 
@@ -212,92 +297,123 @@ boolean containsLabels( * map<string, string> labels = 4; */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Optional. An optional description of this resource. Provide this field when you
    * create the resource.
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. An optional description of this resource. Provide this field when you
    * create the resource.
    * 
* * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Required. Fully-qualified URL of the network that this route applies to. e.g.
    * projects/my-project/global/networks/my-network.
    * 
* - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
    * Required. Fully-qualified URL of the network that this route applies to. e.g.
    * projects/my-project/global/networks/my-network.
    * 
* - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
    * Required. The filter to match L4 traffic.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the filter field is set. */ boolean hasFilter(); /** + * + * *
    * Required. The filter to match L4 traffic.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The filter. */ com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter getFilter(); /** + * + * *
    * Required. The filter to match L4 traffic.
    * 
* - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder getFilterOrBuilder(); /** + * + * *
    * Optional. The priority of this policy based route. Priority is used to break ties in
    * cases where there are more than one matching policy based routes found. In
@@ -307,100 +423,132 @@ java.lang.String getLabelsOrThrow(
    * 
* * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The priority. */ int getPriority(); /** + * + * *
    * Output only. If potential misconfigurations are detected for this route,
    * this field will be populated with warning messages.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getWarningsList(); /** + * + * *
    * Output only. If potential misconfigurations are detected for this route,
    * this field will be populated with warning messages.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings getWarnings(int index); /** + * + * *
    * Output only. If potential misconfigurations are detected for this route,
    * this field will be populated with warning messages.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getWarningsCount(); /** + * + * *
    * Output only. If potential misconfigurations are detected for this route,
    * this field will be populated with warning messages.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder> getWarningsOrBuilderList(); /** + * + * *
    * Output only. If potential misconfigurations are detected for this route,
    * this field will be populated with warning messages.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder getWarningsOrBuilder( int index); /** + * + * *
    * Output only. Server-defined fully-qualified URL for this resource.
    * 
* * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The selfLink. */ java.lang.String getSelfLink(); /** + * + * *
    * Output only. Server-defined fully-qualified URL for this resource.
    * 
* * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for selfLink. */ - com.google.protobuf.ByteString - getSelfLinkBytes(); + com.google.protobuf.ByteString getSelfLinkBytes(); /** + * + * *
    * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
    * Policy Based Route resources.
    * 
* * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The kind. */ java.lang.String getKind(); /** + * + * *
    * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
    * Policy Based Route resources.
    * 
* * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for kind. */ - com.google.protobuf.ByteString - getKindBytes(); + com.google.protobuf.ByteString getKindBytes(); public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.TargetCase getTargetCase(); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingProto.java new file mode 100644 index 000000000000..35f1499abf05 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingProto.java @@ -0,0 +1,349 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/policy_based_routing.proto + +package com.google.cloud.networkconnectivity.v1; + +public final class PolicyBasedRoutingProto { + private PolicyBasedRoutingProto() {} + + 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_networkconnectivity_v1_PolicyBasedRoute_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_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/networkconnectivity/v1/po" + + "licy_based_routing.proto\022#google.cloud.n" + + "etworkconnectivity.v1\032\034google/api/annota" + + "tions.proto\032\027google/api/client.proto\032\037go" + + "ogle/api/field_behavior.proto\032\031google/ap" + + "i/resource.proto\032#google/longrunning/ope" + + "rations.proto\032\037google/protobuf/timestamp" + + ".proto\"\247\r\n\020PolicyBasedRoute\022d\n\017virtual_m" + + "achine\030\022 \001(\0132D.google.cloud.networkconne" + + "ctivity.v1.PolicyBasedRoute.VirtualMachi" + + "neB\003\340A\001H\000\022t\n\027interconnect_attachment\030\t \001" + + "(\0132L.google.cloud.networkconnectivity.v1" + + ".PolicyBasedRoute.InterconnectAttachment" + + "B\003\340A\001H\000\022\036\n\017next_hop_ilb_ip\030\014 \001(\tB\003\340A\001H\001\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upda" + + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\022Q\n\006labels\030\004 \003(\0132A.google.cloud.ne" + + "tworkconnectivity.v1.PolicyBasedRoute.La" + + "belsEntry\022\030\n\013description\030\005 \001(\tB\003\340A\001\0227\n\007n" + + "etwork\030\006 \001(\tB&\340A\002\372A \n\036compute.googleapis" + + ".com/Network\022Q\n\006filter\030\n \001(\0132<.google.cl" + + "oud.networkconnectivity.v1.PolicyBasedRo" + + "ute.FilterB\003\340A\002\022\025\n\010priority\030\013 \001(\005B\003\340A\001\022U" + + "\n\010warnings\030\016 \003(\0132>.google.cloud.networkc" + + "onnectivity.v1.PolicyBasedRoute.Warnings" + + "B\003\340A\003\022\026\n\tself_link\030\017 \001(\tB\003\340A\003\022\021\n\004kind\030\020 " + + "\001(\tB\003\340A\003\032#\n\016VirtualMachine\022\021\n\004tags\030\001 \003(\t" + + "B\003\340A\001\032-\n\026InterconnectAttachment\022\023\n\006regio" + + "n\030\001 \001(\tB\003\340A\001\032\377\001\n\006Filter\022\030\n\013ip_protocol\030\001" + + " \001(\tB\003\340A\001\022\026\n\tsrc_range\030\002 \001(\tB\003\340A\001\022\027\n\ndes" + + "t_range\030\003 \001(\tB\003\340A\001\022k\n\020protocol_version\030\006" + + " \001(\0162L.google.cloud.networkconnectivity." + + "v1.PolicyBasedRoute.Filter.ProtocolVersi" + + "onB\003\340A\002\"=\n\017ProtocolVersion\022 \n\034PROTOCOL_V" + + "ERSION_UNSPECIFIED\020\000\022\010\n\004IPV4\020\001\032\341\002\n\010Warni" + + "ngs\022V\n\004code\030\001 \001(\0162C.google.cloud.network" + + "connectivity.v1.PolicyBasedRoute.Warning" + + "s.CodeB\003\340A\003\022[\n\004data\030\002 \003(\0132H.google.cloud" + + ".networkconnectivity.v1.PolicyBasedRoute" + + ".Warnings.DataEntryB\003\340A\003\022\034\n\017warning_mess" + + "age\030\003 \001(\tB\003\340A\003\032+\n\tDataEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\004Code\022\027\n\023WARNING_U" + + "NSPECIFIED\020\000\022\027\n\023RESOURCE_NOT_ACTIVE\020\001\022\033\n" + + "\027RESOURCE_BEING_MODIFIED\020\002\032-\n\013LabelsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\206\001\352A\202\001" + + "\n3networkconnectivity.googleapis.com/Pol" + + "icyBasedRoute\022Kprojects/{project}/{locat" + + "ion}/global/PolicyBasedRoutes/{policy_ba" + + "sed_route}B\010\n\006targetB\n\n\010next_hop\"\242\001\n\034Lis" + + "tPolicyBasedRoutesRequest\0229\n\006parent\030\001 \001(" + + "\tB)\340A\002\372A#\n!locations.googleapis.com/Loca" + + "tion\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\241\001" + + "\n\035ListPolicyBasedRoutesResponse\022R\n\023polic" + + "y_based_routes\030\001 \003(\01325.google.cloud.netw" + + "orkconnectivity.v1.PolicyBasedRoute\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(" + + "\t\"g\n\032GetPolicyBasedRouteRequest\022I\n\004name\030" + + "\001 \001(\tB;\340A\002\372A5\n3networkconnectivity.googl" + + "eapis.com/PolicyBasedRoute\"\357\001\n\035CreatePol" + + "icyBasedRouteRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "\"\n\025policy_based_route_id\030\002 \001(\tB\003\340A\001\022V\n\022p" + + "olicy_based_route\030\003 \001(\01325.google.cloud.n" + + "etworkconnectivity.v1.PolicyBasedRouteB\003" + + "\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\203\001\n\035DeleteP" + + "olicyBasedRouteRequest\022I\n\004name\030\001 \001(\tB;\340A" + + "\002\372A5\n3networkconnectivity.googleapis.com" + + "/PolicyBasedRoute\022\027\n\nrequest_id\030\002 \001(\tB\003\340" + + "A\0012\343\010\n\031PolicyBasedRoutingService\022\353\001\n\025Lis" + + "tPolicyBasedRoutes\022A.google.cloud.networ" + + "kconnectivity.v1.ListPolicyBasedRoutesRe" + + "quest\032B.google.cloud.networkconnectivity" + + ".v1.ListPolicyBasedRoutesResponse\"K\202\323\344\223\002" + + "<\022:/v1/{parent=projects/*/locations/glob" + + "al}/policyBasedRoutes\332A\006parent\022\330\001\n\023GetPo" + + "licyBasedRoute\022?.google.cloud.networkcon" + + "nectivity.v1.GetPolicyBasedRouteRequest\032" + + "5.google.cloud.networkconnectivity.v1.Po" + + "licyBasedRoute\"I\202\323\344\223\002<\022:/v1/{name=projec" + + "ts/*/locations/global/policyBasedRoutes/" + + "*}\332A\004name\022\256\002\n\026CreatePolicyBasedRoute\022B.g" + + "oogle.cloud.networkconnectivity.v1.Creat" + + "ePolicyBasedRouteRequest\032\035.google.longru" + + "nning.Operation\"\260\001\202\323\344\223\002P\":/v1/{parent=pr" + + "ojects/*/locations/global}/policyBasedRo" + + "utes:\022policy_based_route\332A/parent,policy" + + "_based_route,policy_based_route_id\312A%\n\020P" + + "olicyBasedRoute\022\021OperationMetadata\022\363\001\n\026D" + + "eletePolicyBasedRoute\022B.google.cloud.net" + + "workconnectivity.v1.DeletePolicyBasedRou" + + "teRequest\032\035.google.longrunning.Operation" + + "\"v\202\323\344\223\002<*:/v1/{name=projects/*/locations" + + "/global/policyBasedRoutes/*}\332A\004name\312A*\n\025" + + "google.protobuf.Empty\022\021OperationMetadata" + + "\032V\312A\"networkconnectivity.googleapis.com\322" + + "A.https://www.googleapis.com/auth/cloud-" + + "platformB\221\002\n\'com.google.cloud.networkcon" + + "nectivity.v1B\027PolicyBasedRoutingProtoP\001Z" + + "Vgoogle.golang.org/genproto/googleapis/c" + + "loud/networkconnectivity/v1;networkconne" + + "ctivity\252\002#Google.Cloud.NetworkConnectivi" + + "ty.V1\312\002#Google\\Cloud\\NetworkConnectivity" + + "\\V1\352\002&Google::Cloud::NetworkConnectivity" + + "::V1b\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.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor, + new java.lang.String[] { + "VirtualMachine", + "InterconnectAttachment", + "NextHopIlbIp", + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "Description", + "Network", + "Filter", + "Priority", + "Warnings", + "SelfLink", + "Kind", + "Target", + "NextHop", + }); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor = + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor, + new java.lang.String[] { + "Tags", + }); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor = + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor, + new java.lang.String[] { + "Region", + }); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor = + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor, + new java.lang.String[] { + "IpProtocol", "SrcRange", "DestRange", "ProtocolVersion", + }); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor = + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor, + new java.lang.String[] { + "Code", "Data", "WarningMessage", + }); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_descriptor = + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_descriptor = + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor, + new java.lang.String[] { + "PolicyBasedRoutes", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor, + new java.lang.String[] { + "Parent", "PolicyBasedRouteId", "PolicyBasedRoute", "RequestId", + }); + internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + 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.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java similarity index 65% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java index f5db4526d106..a7f89bd714c6 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * A router appliance instance is a Compute Engine virtual machine (VM) instance
  * that acts as a BGP speaker. A router appliance instance is specified by the
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.RouterApplianceInstance}
  */
-public final class RouterApplianceInstance extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RouterApplianceInstance extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.RouterApplianceInstance)
     RouterApplianceInstanceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RouterApplianceInstance.newBuilder() to construct.
   private RouterApplianceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RouterApplianceInstance() {
     virtualMachine_ = "";
     ipAddress_ = "";
@@ -29,38 +47,43 @@ private RouterApplianceInstance() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RouterApplianceInstance();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
+            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class,
+            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
   }
 
   public static final int VIRTUAL_MACHINE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object virtualMachine_ = "";
   /**
+   *
+   *
    * 
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The virtualMachine. */ @java.lang.Override @@ -69,29 +92,29 @@ public java.lang.String getVirtualMachine() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; } } /** + * + * *
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for virtualMachine. */ @java.lang.Override - public com.google.protobuf.ByteString - getVirtualMachineBytes() { + public com.google.protobuf.ByteString getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -100,14 +123,18 @@ public java.lang.String getVirtualMachine() { } public static final int IP_ADDRESS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object ipAddress_ = ""; /** + * + * *
    * The IP address on the VM to use for peering.
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ @java.lang.Override @@ -116,29 +143,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; } } /** + * + * *
    * The IP address on the VM to use for peering.
    * 
* * 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 { @@ -147,6 +174,7 @@ public java.lang.String getIpAddress() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -158,8 +186,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualMachine_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, virtualMachine_); } @@ -189,17 +216,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.networkconnectivity.v1.RouterApplianceInstance)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other = (com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) obj; + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other = + (com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) obj; - if (!getVirtualMachine() - .equals(other.getVirtualMachine())) return false; - if (!getIpAddress() - .equals(other.getIpAddress())) return false; + if (!getVirtualMachine().equals(other.getVirtualMachine())) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -221,96 +247,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 router appliance instance is a Compute Engine virtual machine (VM) instance
    * that acts as a BGP speaker. A router appliance instance is specified by the
@@ -320,33 +354,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.RouterApplianceInstance}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.RouterApplianceInstance)
       com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
+              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class,
+              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -357,13 +390,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getDefaultInstanceForType() {
+    public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance
+        getDefaultInstanceForType() {
       return com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance();
     }
 
@@ -378,13 +412,17 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance buildPartial() {
-      com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result = new com.google.cloud.networkconnectivity.v1.RouterApplianceInstance(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result =
+          new com.google.cloud.networkconnectivity.v1.RouterApplianceInstance(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result) {
+    private void buildPartial0(
+        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.virtualMachine_ = virtualMachine_;
@@ -398,46 +436,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.RouterApplian
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.RouterApplianceInstance)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other) {
-      if (other == com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other) {
+      if (other
+          == com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance())
+        return this;
       if (!other.getVirtualMachine().isEmpty()) {
         virtualMachine_ = other.virtualMachine_;
         bitField0_ |= 0x00000001;
@@ -474,22 +516,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              virtualMachine_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 26: {
-              ipAddress_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                virtualMachine_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 26:
+              {
+                ipAddress_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -499,22 +544,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object virtualMachine_ = "";
     /**
+     *
+     *
      * 
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The virtualMachine. */ public java.lang.String getVirtualMachine() { java.lang.Object ref = virtualMachine_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; @@ -523,20 +571,21 @@ public java.lang.String getVirtualMachine() { } } /** + * + * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for virtualMachine. */ - public com.google.protobuf.ByteString - getVirtualMachineBytes() { + public com.google.protobuf.ByteString getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -544,28 +593,35 @@ public java.lang.String getVirtualMachine() { } } /** + * + * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @param value The virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachine( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVirtualMachine(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } virtualMachine_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearVirtualMachine() { @@ -575,17 +631,21 @@ public Builder clearVirtualMachine() { return this; } /** + * + * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachineBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVirtualMachineBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); virtualMachine_ = value; bitField0_ |= 0x00000001; @@ -595,18 +655,20 @@ public Builder setVirtualMachineBytes( private java.lang.Object ipAddress_ = ""; /** + * + * *
      * The IP address on the VM to use for peering.
      * 
* * 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; @@ -615,20 +677,21 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The IP address on the VM to use for peering.
      * 
* * 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 { @@ -636,28 +699,35 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The IP address on the VM to use for peering.
      * 
* * 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(); } + public Builder setIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ipAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The IP address on the VM to use for peering.
      * 
* * string ip_address = 3; + * * @return This builder for chaining. */ public Builder clearIpAddress() { @@ -667,26 +737,30 @@ public Builder clearIpAddress() { return this; } /** + * + * *
      * The IP address on the VM to use for peering.
      * 
* * 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(); } + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ipAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -696,41 +770,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.RouterApplianceInstance) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.RouterApplianceInstance) - private static final com.google.cloud.networkconnectivity.v1.RouterApplianceInstance DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1.RouterApplianceInstance + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.RouterApplianceInstance(); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouterApplianceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouterApplianceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -742,9 +818,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java similarity index 57% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java index 1ea6f2cf0b21..e9f532da2fd6 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface RouterApplianceInstanceOrBuilder extends +public interface RouterApplianceInstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.RouterApplianceInstance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The virtualMachine. */ java.lang.String getVirtualMachine(); /** + * + * *
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for virtualMachine. */ - com.google.protobuf.ByteString - getVirtualMachineBytes(); + com.google.protobuf.ByteString getVirtualMachineBytes(); /** + * + * *
    * The IP address on the VM to use for peering.
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ java.lang.String getIpAddress(); /** + * + * *
    * The IP address on the VM to use for peering.
    * 
* * string ip_address = 3; + * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString - getIpAddressBytes(); + com.google.protobuf.ByteString getIpAddressBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java similarity index 66% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java index e5def3cec2cd..1834dbd61aab 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * RoutingVPC contains information about the VPC networks associated
  * with the spokes of a Network Connectivity Center hub.
@@ -11,53 +28,59 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.RoutingVPC}
  */
-public final class RoutingVPC extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RoutingVPC extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.RoutingVPC)
     RoutingVPCOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RoutingVPC.newBuilder() to construct.
   private RoutingVPC(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RoutingVPC() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RoutingVPC();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.RoutingVPC.class, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class);
+            com.google.cloud.networkconnectivity.v1.RoutingVPC.class,
+            com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class);
   }
 
   public static final int URI_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object uri_ = "";
   /**
+   *
+   *
    * 
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return The uri. */ @java.lang.Override @@ -66,29 +89,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -99,6 +122,8 @@ public java.lang.String getUri() { public static final int REQUIRED_FOR_NEW_SITE_TO_SITE_DATA_TRANSFER_SPOKES_FIELD_NUMBER = 2; private boolean requiredForNewSiteToSiteDataTransferSpokes_ = false; /** + * + * *
    * Output only. If true, indicates that this VPC network is currently
    * associated with spokes that use the data transfer feature (spokes where the
@@ -107,7 +132,10 @@ public java.lang.String getUri() {
    * most, one VPC network will have this field set to true.
    * 
* - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The requiredForNewSiteToSiteDataTransferSpokes. */ @java.lang.Override @@ -116,6 +144,7 @@ public boolean getRequiredForNewSiteToSiteDataTransferSpokes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,8 +156,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -148,8 +176,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (requiredForNewSiteToSiteDataTransferSpokes_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, requiredForNewSiteToSiteDataTransferSpokes_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 2, requiredForNewSiteToSiteDataTransferSpokes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -159,15 +188,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.networkconnectivity.v1.RoutingVPC)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.RoutingVPC other = (com.google.cloud.networkconnectivity.v1.RoutingVPC) obj; + com.google.cloud.networkconnectivity.v1.RoutingVPC other = + (com.google.cloud.networkconnectivity.v1.RoutingVPC) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (getRequiredForNewSiteToSiteDataTransferSpokes() != other.getRequiredForNewSiteToSiteDataTransferSpokes()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -184,104 +213,113 @@ public int hashCode() { hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + REQUIRED_FOR_NEW_SITE_TO_SITE_DATA_TRANSFER_SPOKES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequiredForNewSiteToSiteDataTransferSpokes()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getRequiredForNewSiteToSiteDataTransferSpokes()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.RoutingVPC prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * RoutingVPC contains information about the VPC networks associated
    * with the spokes of a Network Connectivity Center hub.
@@ -289,33 +327,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.RoutingVPC}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.RoutingVPC)
       com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.RoutingVPC.class, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class);
+              com.google.cloud.networkconnectivity.v1.RoutingVPC.class,
+              com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.RoutingVPC.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -326,9 +363,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
     }
 
     @java.lang.Override
@@ -347,8 +384,11 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.RoutingVPC buildPartial() {
-      com.google.cloud.networkconnectivity.v1.RoutingVPC result = new com.google.cloud.networkconnectivity.v1.RoutingVPC(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.RoutingVPC result =
+          new com.google.cloud.networkconnectivity.v1.RoutingVPC(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -359,7 +399,8 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.RoutingVPC re
         result.uri_ = uri_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.requiredForNewSiteToSiteDataTransferSpokes_ = requiredForNewSiteToSiteDataTransferSpokes_;
+        result.requiredForNewSiteToSiteDataTransferSpokes_ =
+            requiredForNewSiteToSiteDataTransferSpokes_;
       }
     }
 
@@ -367,38 +408,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.RoutingVPC re
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.RoutingVPC) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.RoutingVPC)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.RoutingVPC) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -406,14 +448,16 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.RoutingVPC other) {
-      if (other == com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance())
+        return this;
       if (!other.getUri().isEmpty()) {
         uri_ = other.uri_;
         bitField0_ |= 0x00000001;
         onChanged();
       }
       if (other.getRequiredForNewSiteToSiteDataTransferSpokes() != false) {
-        setRequiredForNewSiteToSiteDataTransferSpokes(other.getRequiredForNewSiteToSiteDataTransferSpokes());
+        setRequiredForNewSiteToSiteDataTransferSpokes(
+            other.getRequiredForNewSiteToSiteDataTransferSpokes());
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -441,22 +485,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              uri_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              requiredForNewSiteToSiteDataTransferSpokes_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                uri_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                requiredForNewSiteToSiteDataTransferSpokes_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -466,22 +513,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object uri_ = "";
     /**
+     *
+     *
      * 
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -490,20 +540,21 @@ public java.lang.String getUri() { } } /** + * + * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -511,28 +562,35 @@ public java.lang.String getUri() { } } /** + * + * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearUri() { @@ -542,17 +600,21 @@ public Builder clearUri() { return this; } /** + * + * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000001; @@ -560,8 +622,10 @@ public Builder setUriBytes( return this; } - private boolean requiredForNewSiteToSiteDataTransferSpokes_ ; + private boolean requiredForNewSiteToSiteDataTransferSpokes_; /** + * + * *
      * Output only. If true, indicates that this VPC network is currently
      * associated with spokes that use the data transfer feature (spokes where the
@@ -570,7 +634,10 @@ public Builder setUriBytes(
      * most, one VPC network will have this field set to true.
      * 
* - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The requiredForNewSiteToSiteDataTransferSpokes. */ @java.lang.Override @@ -578,6 +645,8 @@ public boolean getRequiredForNewSiteToSiteDataTransferSpokes() { return requiredForNewSiteToSiteDataTransferSpokes_; } /** + * + * *
      * Output only. If true, indicates that this VPC network is currently
      * associated with spokes that use the data transfer feature (spokes where the
@@ -586,18 +655,23 @@ public boolean getRequiredForNewSiteToSiteDataTransferSpokes() {
      * most, one VPC network will have this field set to true.
      * 
* - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The requiredForNewSiteToSiteDataTransferSpokes to set. * @return This builder for chaining. */ public Builder setRequiredForNewSiteToSiteDataTransferSpokes(boolean value) { - + requiredForNewSiteToSiteDataTransferSpokes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. If true, indicates that this VPC network is currently
      * associated with spokes that use the data transfer feature (spokes where the
@@ -606,7 +680,10 @@ public Builder setRequiredForNewSiteToSiteDataTransferSpokes(boolean value) {
      * most, one VPC network will have this field set to true.
      * 
* - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearRequiredForNewSiteToSiteDataTransferSpokes() { @@ -615,9 +692,9 @@ public Builder clearRequiredForNewSiteToSiteDataTransferSpokes() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,12 +704,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.RoutingVPC) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.RoutingVPC) private static final com.google.cloud.networkconnectivity.v1.RoutingVPC DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.RoutingVPC(); } @@ -641,27 +718,27 @@ public static com.google.cloud.networkconnectivity.v1.RoutingVPC getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RoutingVPC parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoutingVPC parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -676,6 +753,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.RoutingVPC getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java similarity index 58% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java index f14b5b005d03..51cdebc1c0c2 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface RoutingVPCOrBuilder extends +public interface RoutingVPCOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.RoutingVPC) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * Output only. If true, indicates that this VPC network is currently
    * associated with spokes that use the data transfer feature (spokes where the
@@ -36,7 +59,10 @@ public interface RoutingVPCOrBuilder extends
    * most, one VPC network will have this field set to true.
    * 
* - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The requiredForNewSiteToSiteDataTransferSpokes. */ boolean getRequiredForNewSiteToSiteDataTransferSpokes(); diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java similarity index 63% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java index cc0e0a96cb32..f583d301160c 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * A Network Connectivity Center spoke represents a connection between your
  * Google Cloud network resources and a non-Google-Cloud network.
@@ -16,15 +33,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.Spoke}
  */
-public final class Spoke extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Spoke extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.Spoke)
     SpokeOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Spoke.newBuilder() to construct.
   private Spoke(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Spoke() {
     name_ = "";
     description_ = "";
@@ -35,45 +53,48 @@ private Spoke() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Spoke();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.Spoke.class, com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
+            com.google.cloud.networkconnectivity.v1.Spoke.class,
+            com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -81,6 +102,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -89,14 +111,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; } } /** + * + * *
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -104,16 +127,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -124,11 +146,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the spoke was created.
    * 
* - * .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 @@ -136,11 +162,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the spoke was created.
    * 
* - * .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 @@ -148,11 +178,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the spoke was created.
    * 
* - * .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() { @@ -162,11 +195,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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 @@ -174,11 +211,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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 @@ -186,11 +227,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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() { @@ -198,32 +242,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_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.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - 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_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -233,20 +279,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 4;
    */
   @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();
   }
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -260,6 +307,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -269,17 +318,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      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;
   }
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -289,11 +340,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new 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();
     }
@@ -301,14 +352,18 @@ public java.lang.String getLabelsOrThrow(
   }
 
   public static final int DESCRIPTION_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object description_ = "";
   /**
+   *
+   *
    * 
    * An optional description of the spoke.
    * 
* * string description = 5; + * * @return The description. */ @java.lang.Override @@ -317,29 +372,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * An optional description of the spoke.
    * 
* * string description = 5; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -348,14 +403,20 @@ public java.lang.String getDescription() { } public static final int HUB_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object hub_ = ""; /** + * + * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The hub. */ @java.lang.Override @@ -364,29 +425,31 @@ public java.lang.String getHub() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; } } /** + * + * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for hub. */ @java.lang.Override - public com.google.protobuf.ByteString - getHubBytes() { + public com.google.protobuf.ByteString getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hub_ = b; return b; } else { @@ -397,11 +460,14 @@ public java.lang.String getHub() { public static final int LINKED_VPN_TUNNELS_FIELD_NUMBER = 17; private com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linkedVpnTunnels_; /** + * + * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; + * * @return Whether the linkedVpnTunnels field is set. */ @java.lang.Override @@ -409,18 +475,25 @@ public boolean hasLinkedVpnTunnels() { return linkedVpnTunnels_ != null; } /** + * + * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; + * * @return The linkedVpnTunnels. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunnels() { - return linkedVpnTunnels_ == null ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; + return linkedVpnTunnels_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() + : linkedVpnTunnels_; } /** + * + * *
    * VPN tunnels that are associated with the spoke.
    * 
@@ -428,18 +501,27 @@ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunn * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLinkedVpnTunnelsOrBuilder() { - return linkedVpnTunnels_ == null ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder + getLinkedVpnTunnelsOrBuilder() { + return linkedVpnTunnels_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() + : linkedVpnTunnels_; } public static final int LINKED_INTERCONNECT_ATTACHMENTS_FIELD_NUMBER = 18; - private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linkedInterconnectAttachments_; + private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + linkedInterconnectAttachments_; /** + * + * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * * @return Whether the linkedInterconnectAttachments field is set. */ @java.lang.Override @@ -447,37 +529,58 @@ public boolean hasLinkedInterconnectAttachments() { return linkedInterconnectAttachments_ != null; } /** + * + * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * * @return The linkedInterconnectAttachments. */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getLinkedInterconnectAttachments() { - return linkedInterconnectAttachments_ == null ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + getLinkedInterconnectAttachments() { + return linkedInterconnectAttachments_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() + : linkedInterconnectAttachments_; } /** + * + * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder getLinkedInterconnectAttachmentsOrBuilder() { - return linkedInterconnectAttachments_ == null ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder + getLinkedInterconnectAttachmentsOrBuilder() { + return linkedInterconnectAttachments_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() + : linkedInterconnectAttachments_; } public static final int LINKED_ROUTER_APPLIANCE_INSTANCES_FIELD_NUMBER = 19; - private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linkedRouterApplianceInstances_; + private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + linkedRouterApplianceInstances_; /** + * + * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * * @return Whether the linkedRouterApplianceInstances field is set. */ @java.lang.Override @@ -485,33 +588,53 @@ public boolean hasLinkedRouterApplianceInstances() { return linkedRouterApplianceInstances_ != null; } /** + * + * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * * @return The linkedRouterApplianceInstances. */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getLinkedRouterApplianceInstances() { - return linkedRouterApplianceInstances_ == null ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + getLinkedRouterApplianceInstances() { + return linkedRouterApplianceInstances_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + .getDefaultInstance() + : linkedRouterApplianceInstances_; } /** + * + * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder getLinkedRouterApplianceInstancesOrBuilder() { - return linkedRouterApplianceInstances_ == null ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder + getLinkedRouterApplianceInstancesOrBuilder() { + return linkedRouterApplianceInstances_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + .getDefaultInstance() + : linkedRouterApplianceInstances_; } public static final int UNIQUE_ID_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** + * + * *
    * Output only. The Google-generated UUID for the spoke. This value is unique
    * across all spoke resources. If a spoke is deleted and another with the same
@@ -519,6 +642,7 @@ public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrB
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ @java.lang.Override @@ -527,14 +651,15 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** + * + * *
    * Output only. The Google-generated UUID for the spoke. This value is unique
    * across all spoke resources. If a spoke is deleted and another with the same
@@ -542,16 +667,15 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -562,30 +686,44 @@ public java.lang.String getUniqueId() { public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** + * + * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.State getState() { + com.google.cloud.networkconnectivity.v1.State result = + com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -597,8 +735,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -608,12 +745,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -648,22 +781,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -675,20 +806,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, uniqueId_); } if (state_ != com.google.cloud.networkconnectivity.v1.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); } if (linkedVpnTunnels_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getLinkedVpnTunnels()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getLinkedVpnTunnels()); } if (linkedInterconnectAttachments_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getLinkedInterconnectAttachments()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, getLinkedInterconnectAttachments()); } if (linkedRouterApplianceInstances_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getLinkedRouterApplianceInstances()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 19, getLinkedRouterApplianceInstances()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -698,48 +829,43 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1.Spoke)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.Spoke other = (com.google.cloud.networkconnectivity.v1.Spoke) obj; + com.google.cloud.networkconnectivity.v1.Spoke other = + (com.google.cloud.networkconnectivity.v1.Spoke) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getHub() - .equals(other.getHub())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getHub().equals(other.getHub())) return false; if (hasLinkedVpnTunnels() != other.hasLinkedVpnTunnels()) return false; if (hasLinkedVpnTunnels()) { - if (!getLinkedVpnTunnels() - .equals(other.getLinkedVpnTunnels())) return false; + if (!getLinkedVpnTunnels().equals(other.getLinkedVpnTunnels())) return false; } - if (hasLinkedInterconnectAttachments() != other.hasLinkedInterconnectAttachments()) return false; + if (hasLinkedInterconnectAttachments() != other.hasLinkedInterconnectAttachments()) + return false; if (hasLinkedInterconnectAttachments()) { - if (!getLinkedInterconnectAttachments() - .equals(other.getLinkedInterconnectAttachments())) return false; + if (!getLinkedInterconnectAttachments().equals(other.getLinkedInterconnectAttachments())) + return false; } - if (hasLinkedRouterApplianceInstances() != other.hasLinkedRouterApplianceInstances()) return false; + if (hasLinkedRouterApplianceInstances() != other.hasLinkedRouterApplianceInstances()) + return false; if (hasLinkedRouterApplianceInstances()) { - if (!getLinkedRouterApplianceInstances() - .equals(other.getLinkedRouterApplianceInstances())) return false; + if (!getLinkedRouterApplianceInstances().equals(other.getLinkedRouterApplianceInstances())) + return false; } - if (!getUniqueId() - .equals(other.getUniqueId())) return false; + if (!getUniqueId().equals(other.getUniqueId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -791,97 +917,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.Spoke 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.networkconnectivity.v1.Spoke parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.Spoke parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.Spoke prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Connectivity Center spoke represents a connection between your
    * Google Cloud network resources and a non-Google-Cloud network.
@@ -894,55 +1027,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.Spoke}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.Spoke)
       com.google.cloud.networkconnectivity.v1.SpokeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.Spoke.class, com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
+              com.google.cloud.networkconnectivity.v1.Spoke.class,
+              com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.Spoke.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -982,9 +1112,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
     }
 
     @java.lang.Override
@@ -1003,8 +1133,11 @@ public com.google.cloud.networkconnectivity.v1.Spoke build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.Spoke buildPartial() {
-      com.google.cloud.networkconnectivity.v1.Spoke result = new com.google.cloud.networkconnectivity.v1.Spoke(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.Spoke result =
+          new com.google.cloud.networkconnectivity.v1.Spoke(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1015,14 +1148,10 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result)
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -1035,19 +1164,20 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result)
         result.hub_ = hub_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.linkedVpnTunnels_ = linkedVpnTunnelsBuilder_ == null
-            ? linkedVpnTunnels_
-            : linkedVpnTunnelsBuilder_.build();
+        result.linkedVpnTunnels_ =
+            linkedVpnTunnelsBuilder_ == null ? linkedVpnTunnels_ : linkedVpnTunnelsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.linkedInterconnectAttachments_ = linkedInterconnectAttachmentsBuilder_ == null
-            ? linkedInterconnectAttachments_
-            : linkedInterconnectAttachmentsBuilder_.build();
+        result.linkedInterconnectAttachments_ =
+            linkedInterconnectAttachmentsBuilder_ == null
+                ? linkedInterconnectAttachments_
+                : linkedInterconnectAttachmentsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.linkedRouterApplianceInstances_ = linkedRouterApplianceInstancesBuilder_ == null
-            ? linkedRouterApplianceInstances_
-            : linkedRouterApplianceInstancesBuilder_.build();
+        result.linkedRouterApplianceInstances_ =
+            linkedRouterApplianceInstancesBuilder_ == null
+                ? linkedRouterApplianceInstances_
+                : linkedRouterApplianceInstancesBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.uniqueId_ = uniqueId_;
@@ -1061,38 +1191,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.Spoke) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.Spoke)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.Spoke) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1112,8 +1243,7 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Spoke other) {
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -1168,81 +1298,89 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              hub_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 90: {
-              uniqueId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 90
-            case 120: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 120
-            case 138: {
-              input.readMessage(
-                  getLinkedVpnTunnelsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 138
-            case 146: {
-              input.readMessage(
-                  getLinkedInterconnectAttachmentsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 146
-            case 154: {
-              input.readMessage(
-                  getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 154
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                hub_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 90:
+              {
+                uniqueId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 90
+            case 120:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 120
+            case 138:
+              {
+                input.readMessage(
+                    getLinkedVpnTunnelsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 138
+            case 146:
+              {
+                input.readMessage(
+                    getLinkedInterconnectAttachmentsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 146
+            case 154:
+              {
+                input.readMessage(
+                    getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 154
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1252,10 +1390,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1263,13 +1404,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -1278,6 +1419,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1285,15 +1428,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -1301,6 +1443,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1308,18 +1452,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1327,6 +1475,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1336,6 +1485,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1343,12 +1494,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1358,39 +1511,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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) { @@ -1406,14 +1578,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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(); } else { @@ -1424,17 +1599,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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 (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1447,11 +1626,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1464,11 +1647,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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() { bitField0_ |= 0x00000002; @@ -1476,36 +1663,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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_; @@ -1513,39 +1712,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .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) { @@ -1561,14 +1779,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .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(); } else { @@ -1579,17 +1800,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .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 (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1602,11 +1827,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1619,11 +1848,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .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() { bitField0_ |= 0x00000004; @@ -1631,56 +1864,66 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1689,10 +1932,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1702,20 +1948,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 4;
      */
     @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();
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1729,6 +1976,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1738,17 +1987,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        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;
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1758,23 +2009,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new 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();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1783,23 +2036,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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() {
       bitField0_ |= 0x00000008;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1808,17 +2060,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4;
      */
-    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);
+    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);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1827,28 +2082,28 @@ public Builder putLabels(
      *
      * map<string, string> labels = 4;
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.lang.Object description_ = "";
     /**
+     *
+     *
      * 
      * An optional description of the spoke.
      * 
* * string description = 5; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1857,20 +2112,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * An optional description of the spoke.
      * 
* * string description = 5; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1878,28 +2134,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * An optional description of the spoke.
      * 
* * string description = 5; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * An optional description of the spoke.
      * 
* * string description = 5; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1909,17 +2172,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * An optional description of the spoke.
      * 
* * string description = 5; + * * @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(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -1929,18 +2196,22 @@ public Builder setDescriptionBytes( private java.lang.Object hub_ = ""; /** + * + * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The hub. */ public java.lang.String getHub() { java.lang.Object ref = hub_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; @@ -1949,20 +2220,23 @@ public java.lang.String getHub() { } } /** + * + * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for hub. */ - public com.google.protobuf.ByteString - getHubBytes() { + public com.google.protobuf.ByteString getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hub_ = b; return b; } else { @@ -1970,28 +2244,39 @@ public java.lang.String getHub() { } } /** + * + * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @param value The hub to set. * @return This builder for chaining. */ - public Builder setHub( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHub(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hub_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearHub() { @@ -2001,17 +2286,23 @@ public Builder clearHub() { return this; } /** + * + * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for hub to set. * @return This builder for chaining. */ - public Builder setHubBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHubBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hub_ = value; bitField0_ |= 0x00000020; @@ -2021,41 +2312,55 @@ public Builder setHubBytes( private com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linkedVpnTunnels_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> linkedVpnTunnelsBuilder_; + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> + linkedVpnTunnelsBuilder_; /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; + * * @return Whether the linkedVpnTunnels field is set. */ public boolean hasLinkedVpnTunnels() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; + * * @return The linkedVpnTunnels. */ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunnels() { if (linkedVpnTunnelsBuilder_ == null) { - return linkedVpnTunnels_ == null ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; + return linkedVpnTunnels_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() + : linkedVpnTunnels_; } else { return linkedVpnTunnelsBuilder_.getMessage(); } } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public Builder setLinkedVpnTunnels(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { + public Builder setLinkedVpnTunnels( + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { if (linkedVpnTunnelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2069,6 +2374,8 @@ public Builder setLinkedVpnTunnels(com.google.cloud.networkconnectivity.v1.Linke return this; } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
@@ -2087,17 +2394,21 @@ public Builder setLinkedVpnTunnels( return this; } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public Builder mergeLinkedVpnTunnels(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { + public Builder mergeLinkedVpnTunnels( + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { if (linkedVpnTunnelsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - linkedVpnTunnels_ != null && - linkedVpnTunnels_ != com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && linkedVpnTunnels_ != null + && linkedVpnTunnels_ + != com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) { getLinkedVpnTunnelsBuilder().mergeFrom(value); } else { linkedVpnTunnels_ = value; @@ -2110,6 +2421,8 @@ public Builder mergeLinkedVpnTunnels(com.google.cloud.networkconnectivity.v1.Lin return this; } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
@@ -2127,33 +2440,42 @@ public Builder clearLinkedVpnTunnels() { return this; } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder getLinkedVpnTunnelsBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder + getLinkedVpnTunnelsBuilder() { bitField0_ |= 0x00000040; onChanged(); return getLinkedVpnTunnelsFieldBuilder().getBuilder(); } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLinkedVpnTunnelsOrBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder + getLinkedVpnTunnelsOrBuilder() { if (linkedVpnTunnelsBuilder_ != null) { return linkedVpnTunnelsBuilder_.getMessageOrBuilder(); } else { - return linkedVpnTunnels_ == null ? - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; + return linkedVpnTunnels_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() + : linkedVpnTunnels_; } } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
@@ -2161,56 +2483,82 @@ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLink * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> getLinkedVpnTunnelsFieldBuilder() { if (linkedVpnTunnelsBuilder_ == null) { - linkedVpnTunnelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder>( - getLinkedVpnTunnels(), - getParentForChildren(), - isClean()); + linkedVpnTunnelsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder>( + getLinkedVpnTunnels(), getParentForChildren(), isClean()); linkedVpnTunnels_ = null; } return linkedVpnTunnelsBuilder_; } - private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linkedInterconnectAttachments_; + private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + linkedInterconnectAttachments_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> linkedInterconnectAttachmentsBuilder_; + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> + linkedInterconnectAttachmentsBuilder_; /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * * @return Whether the linkedInterconnectAttachments field is set. */ public boolean hasLinkedInterconnectAttachments() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * * @return The linkedInterconnectAttachments. */ - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getLinkedInterconnectAttachments() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + getLinkedInterconnectAttachments() { if (linkedInterconnectAttachmentsBuilder_ == null) { - return linkedInterconnectAttachments_ == null ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; + return linkedInterconnectAttachments_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + .getDefaultInstance() + : linkedInterconnectAttachments_; } else { return linkedInterconnectAttachmentsBuilder_.getMessage(); } } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ - public Builder setLinkedInterconnectAttachments(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { + public Builder setLinkedInterconnectAttachments( + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { if (linkedInterconnectAttachmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2224,14 +2572,19 @@ public Builder setLinkedInterconnectAttachments(com.google.cloud.networkconnecti return this; } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ public Builder setLinkedInterconnectAttachments( - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder builderForValue) { + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder + builderForValue) { if (linkedInterconnectAttachmentsBuilder_ == null) { linkedInterconnectAttachments_ = builderForValue.build(); } else { @@ -2242,17 +2595,24 @@ public Builder setLinkedInterconnectAttachments( return this; } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ - public Builder mergeLinkedInterconnectAttachments(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { + public Builder mergeLinkedInterconnectAttachments( + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { if (linkedInterconnectAttachmentsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - linkedInterconnectAttachments_ != null && - linkedInterconnectAttachments_ != com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && linkedInterconnectAttachments_ != null + && linkedInterconnectAttachments_ + != com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + .getDefaultInstance()) { getLinkedInterconnectAttachmentsBuilder().mergeFrom(value); } else { linkedInterconnectAttachments_ = value; @@ -2265,11 +2625,15 @@ public Builder mergeLinkedInterconnectAttachments(com.google.cloud.networkconnec return this; } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ public Builder clearLinkedInterconnectAttachments() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2282,90 +2646,132 @@ public Builder clearLinkedInterconnectAttachments() { return this; } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder getLinkedInterconnectAttachmentsBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder + getLinkedInterconnectAttachmentsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getLinkedInterconnectAttachmentsFieldBuilder().getBuilder(); } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder getLinkedInterconnectAttachmentsOrBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder + getLinkedInterconnectAttachmentsOrBuilder() { if (linkedInterconnectAttachmentsBuilder_ != null) { return linkedInterconnectAttachmentsBuilder_.getMessageOrBuilder(); } else { - return linkedInterconnectAttachments_ == null ? - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; + return linkedInterconnectAttachments_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + .getDefaultInstance() + : linkedInterconnectAttachments_; } } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> getLinkedInterconnectAttachmentsFieldBuilder() { if (linkedInterconnectAttachmentsBuilder_ == null) { - linkedInterconnectAttachmentsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder>( - getLinkedInterconnectAttachments(), - getParentForChildren(), - isClean()); + linkedInterconnectAttachmentsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder>( + getLinkedInterconnectAttachments(), getParentForChildren(), isClean()); linkedInterconnectAttachments_ = null; } return linkedInterconnectAttachmentsBuilder_; } - private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linkedRouterApplianceInstances_; + private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + linkedRouterApplianceInstances_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> linkedRouterApplianceInstancesBuilder_; + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> + linkedRouterApplianceInstancesBuilder_; /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * * @return Whether the linkedRouterApplianceInstances field is set. */ public boolean hasLinkedRouterApplianceInstances() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * * @return The linkedRouterApplianceInstances. */ - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getLinkedRouterApplianceInstances() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + getLinkedRouterApplianceInstances() { if (linkedRouterApplianceInstancesBuilder_ == null) { - return linkedRouterApplianceInstances_ == null ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; + return linkedRouterApplianceInstances_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + .getDefaultInstance() + : linkedRouterApplianceInstances_; } else { return linkedRouterApplianceInstancesBuilder_.getMessage(); } } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ - public Builder setLinkedRouterApplianceInstances(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { + public Builder setLinkedRouterApplianceInstances( + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { if (linkedRouterApplianceInstancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2379,14 +2785,19 @@ public Builder setLinkedRouterApplianceInstances(com.google.cloud.networkconnect return this; } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ public Builder setLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder builderForValue) { + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder + builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { linkedRouterApplianceInstances_ = builderForValue.build(); } else { @@ -2397,17 +2808,24 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ - public Builder mergeLinkedRouterApplianceInstances(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { + public Builder mergeLinkedRouterApplianceInstances( + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { if (linkedRouterApplianceInstancesBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - linkedRouterApplianceInstances_ != null && - linkedRouterApplianceInstances_ != com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && linkedRouterApplianceInstances_ != null + && linkedRouterApplianceInstances_ + != com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + .getDefaultInstance()) { getLinkedRouterApplianceInstancesBuilder().mergeFrom(value); } else { linkedRouterApplianceInstances_ = value; @@ -2420,11 +2838,15 @@ public Builder mergeLinkedRouterApplianceInstances(com.google.cloud.networkconne return this; } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ public Builder clearLinkedRouterApplianceInstances() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2437,48 +2859,67 @@ public Builder clearLinkedRouterApplianceInstances() { return this; } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder getLinkedRouterApplianceInstancesBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder + getLinkedRouterApplianceInstancesBuilder() { bitField0_ |= 0x00000100; onChanged(); return getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(); } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder getLinkedRouterApplianceInstancesOrBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder + getLinkedRouterApplianceInstancesOrBuilder() { if (linkedRouterApplianceInstancesBuilder_ != null) { return linkedRouterApplianceInstancesBuilder_.getMessageOrBuilder(); } else { - return linkedRouterApplianceInstances_ == null ? - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; + return linkedRouterApplianceInstances_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + .getDefaultInstance() + : linkedRouterApplianceInstances_; } } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> getLinkedRouterApplianceInstancesFieldBuilder() { if (linkedRouterApplianceInstancesBuilder_ == null) { - linkedRouterApplianceInstancesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder>( - getLinkedRouterApplianceInstances(), - getParentForChildren(), - isClean()); + linkedRouterApplianceInstancesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder>( + getLinkedRouterApplianceInstances(), getParentForChildren(), isClean()); linkedRouterApplianceInstances_ = null; } return linkedRouterApplianceInstancesBuilder_; @@ -2486,6 +2927,8 @@ public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrB private java.lang.Object uniqueId_ = ""; /** + * + * *
      * Output only. The Google-generated UUID for the spoke. This value is unique
      * across all spoke resources. If a spoke is deleted and another with the same
@@ -2493,13 +2936,13 @@ public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrB
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -2508,6 +2951,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. The Google-generated UUID for the spoke. This value is unique
      * across all spoke resources. If a spoke is deleted and another with the same
@@ -2515,15 +2960,14 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -2531,6 +2975,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. The Google-generated UUID for the spoke. This value is unique
      * across all spoke resources. If a spoke is deleted and another with the same
@@ -2538,18 +2984,22 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uniqueId_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Output only. The Google-generated UUID for the spoke. This value is unique
      * across all spoke resources. If a spoke is deleted and another with the same
@@ -2557,6 +3007,7 @@ public Builder setUniqueId(
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -2566,6 +3017,8 @@ public Builder clearUniqueId() { return this; } /** + * + * *
      * Output only. The Google-generated UUID for the spoke. This value is unique
      * across all spoke resources. If a spoke is deleted and another with the same
@@ -2573,12 +3026,14 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000200; @@ -2588,22 +3043,33 @@ public Builder setUniqueIdBytes( private int state_ = 0; /** + * + * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2614,24 +3080,35 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + com.google.cloud.networkconnectivity.v1.State result = + com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2645,11 +3122,16 @@ public Builder setState(com.google.cloud.networkconnectivity.v1.State value) { return this; } /** + * + * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2658,9 +3140,9 @@ public Builder clearState() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2670,12 +3152,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.Spoke) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.Spoke) private static final com.google.cloud.networkconnectivity.v1.Spoke DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.Spoke(); } @@ -2684,27 +3166,27 @@ public static com.google.cloud.networkconnectivity.v1.Spoke getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Spoke parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Spoke parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2719,6 +3201,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.Spoke getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java similarity index 69% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java index bed544f6a0a5..7447ac5ef375 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface SpokeOrBuilder extends +public interface SpokeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.Spoke) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -15,10 +33,13 @@ public interface SpokeOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -26,66 +47,90 @@ public interface SpokeOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The time the spoke was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the spoke was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the spoke was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the spoke was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time the spoke was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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(); /** + * + * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -96,6 +141,8 @@ public interface SpokeOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -104,15 +151,13 @@ public interface SpokeOrBuilder extends
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -121,9 +166,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -133,11 +179,13 @@ boolean containsLabels(
    * map<string, string> labels = 4;
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -146,68 +194,89 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * An optional description of the spoke.
    * 
* * string description = 5; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * An optional description of the spoke.
    * 
* * string description = 5; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The hub. */ java.lang.String getHub(); /** + * + * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for hub. */ - com.google.protobuf.ByteString - getHubBytes(); + com.google.protobuf.ByteString getHubBytes(); /** + * + * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; + * * @return Whether the linkedVpnTunnels field is set. */ boolean hasLinkedVpnTunnels(); /** + * + * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; + * * @return The linkedVpnTunnels. */ com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunnels(); /** + * + * *
    * VPN tunnels that are associated with the spoke.
    * 
@@ -217,60 +286,94 @@ java.lang.String getLabelsOrThrow( com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLinkedVpnTunnelsOrBuilder(); /** + * + * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * * @return Whether the linkedInterconnectAttachments field is set. */ boolean hasLinkedInterconnectAttachments(); /** + * + * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * * @return The linkedInterconnectAttachments. */ - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getLinkedInterconnectAttachments(); + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + getLinkedInterconnectAttachments(); /** + * + * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder getLinkedInterconnectAttachmentsOrBuilder(); + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder + getLinkedInterconnectAttachmentsOrBuilder(); /** + * + * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * * @return Whether the linkedRouterApplianceInstances field is set. */ boolean hasLinkedRouterApplianceInstances(); /** + * + * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * * @return The linkedRouterApplianceInstances. */ - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getLinkedRouterApplianceInstances(); + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + getLinkedRouterApplianceInstances(); /** + * + * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder getLinkedRouterApplianceInstancesOrBuilder(); + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder + getLinkedRouterApplianceInstancesOrBuilder(); /** + * + * *
    * Output only. The Google-generated UUID for the spoke. This value is unique
    * across all spoke resources. If a spoke is deleted and another with the same
@@ -278,10 +381,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ java.lang.String getUniqueId(); /** + * + * *
    * Output only. The Google-generated UUID for the spoke. This value is unique
    * across all spoke resources. If a spoke is deleted and another with the same
@@ -289,26 +395,36 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString - getUniqueIdBytes(); + com.google.protobuf.ByteString getUniqueIdBytes(); /** + * + * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.networkconnectivity.v1.State getState(); diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java similarity index 68% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java index ec2fa2252a84..1949da5a76c0 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The State enum represents the lifecycle stage of a Network Connectivity
  * Center resource.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.networkconnectivity.v1.State}
  */
-public enum State
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum State implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * No state information available
    * 
@@ -22,6 +40,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
    * The resource's create operation is in progress
    * 
@@ -30,6 +50,8 @@ public enum State */ CREATING(1), /** + * + * *
    * The resource is active
    * 
@@ -38,6 +60,8 @@ public enum State */ ACTIVE(2), /** + * + * *
    * The resource's Delete operation is in progress
    * 
@@ -46,6 +70,8 @@ public enum State */ DELETING(3), /** + * + * *
    * The resource's Update operation is in progress
    * 
@@ -57,6 +83,8 @@ public enum State ; /** + * + * *
    * No state information available
    * 
@@ -65,6 +93,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The resource's create operation is in progress
    * 
@@ -73,6 +103,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
    * The resource is active
    * 
@@ -81,6 +113,8 @@ public enum State */ public static final int ACTIVE_VALUE = 2; /** + * + * *
    * The resource's Delete operation is in progress
    * 
@@ -89,6 +123,8 @@ public enum State */ public static final int DELETING_VALUE = 3; /** + * + * *
    * The resource's Update operation is in progress
    * 
@@ -97,7 +133,6 @@ public enum State */ public static final int UPDATING_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -122,51 +157,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 ACTIVE; - case 3: return DELETING; - case 6: return UPDATING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + case 3: + return DELETING; + case 6: + return UPDATING; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.networkconnectivity.v1.HubProto.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; @@ -182,4 +219,3 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.State) } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java similarity index 72% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java index a48962bf885f..f082dcb6dd84 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Request for
  * [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub]
@@ -12,47 +29,51 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateHubRequest}
  */
-public final class UpdateHubRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateHubRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.UpdateHubRequest)
     UpdateHubRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateHubRequest.newBuilder() to construct.
   private UpdateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UpdateHubRequest() {
     requestId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateHubRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class,
+            com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class);
   }
 
   public static final int UPDATE_MASK_FIELD_NUMBER = 1;
   private com.google.protobuf.FieldMask updateMask_;
   /**
+   *
+   *
    * 
    * Optional. In the case of an update to an existing hub, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -61,7 +82,9 @@ protected java.lang.Object newInstance(
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -69,6 +92,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. In the case of an update to an existing hub, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -77,7 +102,9 @@ public boolean hasUpdateMask() {
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -85,6 +112,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. In the case of an update to an existing hub, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -93,7 +122,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -103,11 +133,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int HUB_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1.Hub hub_; /** + * + * *
    * Required. The state that the hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ @java.lang.Override @@ -115,11 +150,16 @@ public boolean hasHub() { return hub_ != null; } /** + * + * *
    * Required. The state that the hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ @java.lang.Override @@ -127,11 +167,15 @@ public com.google.cloud.networkconnectivity.v1.Hub getHub() { return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } /** + * + * *
    * Required. The state that the hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { @@ -139,9 +183,12 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { } public static final int REQUEST_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -158,6 +205,7 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -166,14 +214,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -190,16 +239,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -208,6 +256,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,8 +268,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -240,12 +288,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHub()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -258,25 +304,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.networkconnectivity.v1.UpdateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.UpdateHubRequest other = (com.google.cloud.networkconnectivity.v1.UpdateHubRequest) obj; + com.google.cloud.networkconnectivity.v1.UpdateHubRequest other = + (com.google.cloud.networkconnectivity.v1.UpdateHubRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub() - .equals(other.getHub())) return false; + if (!getHub().equals(other.getHub())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,96 +348,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.UpdateHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub]
@@ -402,33 +454,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateHubRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.UpdateHubRequest)
       com.google.cloud.networkconnectivity.v1.UpdateHubRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class,
+              com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.UpdateHubRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -448,9 +499,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
     }
 
     @java.lang.Override
@@ -469,8 +520,11 @@ public com.google.cloud.networkconnectivity.v1.UpdateHubRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.UpdateHubRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.UpdateHubRequest result = new com.google.cloud.networkconnectivity.v1.UpdateHubRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.UpdateHubRequest result =
+          new com.google.cloud.networkconnectivity.v1.UpdateHubRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -478,14 +532,10 @@ public com.google.cloud.networkconnectivity.v1.UpdateHubRequest buildPartial() {
     private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateHubRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.hub_ = hubBuilder_ == null
-            ? hub_
-            : hubBuilder_.build();
+        result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.requestId_ = requestId_;
@@ -496,38 +546,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateHubRequ
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.UpdateHubRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateHubRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateHubRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -535,7 +586,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.UpdateHubRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.UpdateHubRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.UpdateHubRequest.getDefaultInstance())
+        return this;
       if (other.hasUpdateMask()) {
         mergeUpdateMask(other.getUpdateMask());
       }
@@ -573,31 +625,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getHubFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              requestId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                requestId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -607,12 +659,18 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.FieldMask updateMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
+        updateMaskBuilder_;
     /**
+     *
+     *
      * 
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -621,13 +679,17 @@ public Builder mergeFrom(
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -636,17 +698,23 @@ public boolean hasUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -655,7 +723,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -671,6 +740,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -679,10 +750,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -693,6 +764,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -701,13 +774,14 @@ public Builder setUpdateMask(
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -720,6 +794,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -728,7 +804,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -741,6 +818,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -749,7 +828,8 @@ public Builder clearUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -757,6 +837,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -765,17 +847,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -784,17 +870,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -802,39 +892,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> hubBuilder_; + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder> + hubBuilder_; /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ public com.google.cloud.networkconnectivity.v1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() + : hub_; } else { return hubBuilder_.getMessage(); } } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { @@ -850,14 +959,17 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setHub( - com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { + public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { if (hubBuilder_ == null) { hub_ = builderForValue.build(); } else { @@ -868,17 +980,21 @@ public Builder setHub( return this; } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - hub_ != null && - hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && hub_ != null + && hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -891,11 +1007,15 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000002); @@ -908,11 +1028,15 @@ public Builder clearHub() { return this; } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000002; @@ -920,36 +1044,48 @@ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { return getHubFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null ? - com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() + : hub_; } } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder>( - getHub(), - getParentForChildren(), - isClean()); + hubBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder>( + getHub(), getParentForChildren(), isClean()); hub_ = null; } return hubBuilder_; @@ -957,6 +1093,8 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -973,13 +1111,13 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -988,6 +1126,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1004,15 +1144,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1020,6 +1159,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1036,18 +1177,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1064,6 +1209,7 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1073,6 +1219,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1089,21 +1237,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1113,12 +1263,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.UpdateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.UpdateHubRequest) private static final com.google.cloud.networkconnectivity.v1.UpdateHubRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.UpdateHubRequest(); } @@ -1127,27 +1277,27 @@ public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1162,6 +1312,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.UpdateHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java index 7aefcde1de11..7c84e91cbc36 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface UpdateHubRequestOrBuilder extends +public interface UpdateHubRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.UpdateHubRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. In the case of an update to an existing hub, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -16,11 +34,15 @@ public interface UpdateHubRequestOrBuilder extends
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. In the case of an update to an existing hub, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -29,11 +51,15 @@ public interface UpdateHubRequestOrBuilder extends
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. In the case of an update to an existing hub, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -42,38 +68,55 @@ public interface UpdateHubRequestOrBuilder extends
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The state that the hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ boolean hasHub(); /** + * + * *
    * Required. The state that the hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ com.google.cloud.networkconnectivity.v1.Hub getHub(); /** + * + * *
    * Required. The state that the hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -90,10 +133,13 @@ public interface UpdateHubRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -110,8 +156,8 @@ public interface UpdateHubRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java index 72ba4d317265..534117c8bac9 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Request for
  * [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke]
@@ -12,47 +29,51 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateSpokeRequest}
  */
-public final class UpdateSpokeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateSpokeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.UpdateSpokeRequest)
     UpdateSpokeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateSpokeRequest.newBuilder() to construct.
   private UpdateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UpdateSpokeRequest() {
     requestId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateSpokeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class,
+            com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class);
   }
 
   public static final int UPDATE_MASK_FIELD_NUMBER = 1;
   private com.google.protobuf.FieldMask updateMask_;
   /**
+   *
+   *
    * 
    * Optional. In the case of an update to an existing spoke, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -61,7 +82,9 @@ protected java.lang.Object newInstance(
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -69,6 +92,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. In the case of an update to an existing spoke, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -77,7 +102,9 @@ public boolean hasUpdateMask() {
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -85,6 +112,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. In the case of an update to an existing spoke, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -93,7 +122,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -103,11 +133,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int SPOKE_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1.Spoke spoke_; /** + * + * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ @java.lang.Override @@ -115,33 +150,49 @@ public boolean hasSpoke() { return spoke_ != null; } /** + * + * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } /** + * + * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -158,6 +209,7 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -166,14 +218,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -190,16 +243,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -208,6 +260,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,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 (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -240,12 +292,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpoke()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -258,25 +308,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.networkconnectivity.v1.UpdateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest other = (com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest other = + (com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke() - .equals(other.getSpoke())) return false; + if (!getSpoke().equals(other.getSpoke())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,96 +352,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke]
@@ -402,33 +458,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateSpokeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.UpdateSpokeRequest)
       com.google.cloud.networkconnectivity.v1.UpdateSpokeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class,
+              com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -448,9 +503,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -469,8 +524,11 @@ public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest result = new com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest result =
+          new com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -478,14 +536,10 @@ public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest buildPartial()
     private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.spoke_ = spokeBuilder_ == null
-            ? spoke_
-            : spokeBuilder_.build();
+        result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.requestId_ = requestId_;
@@ -496,38 +550,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateSpokeRe
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -535,7 +590,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.getDefaultInstance())
+        return this;
       if (other.hasUpdateMask()) {
         mergeUpdateMask(other.getUpdateMask());
       }
@@ -573,31 +629,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getSpokeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              requestId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                requestId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -607,12 +663,18 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.FieldMask updateMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
+        updateMaskBuilder_;
     /**
+     *
+     *
      * 
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -621,13 +683,17 @@ public Builder mergeFrom(
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -636,17 +702,23 @@ public boolean hasUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -655,7 +727,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -671,6 +744,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -679,10 +754,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -693,6 +768,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -701,13 +778,14 @@ public Builder setUpdateMask(
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -720,6 +798,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -728,7 +808,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -741,6 +822,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -749,7 +832,8 @@ public Builder clearUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -757,6 +841,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -765,17 +851,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -784,17 +874,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -802,39 +896,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> spokeBuilder_; + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + spokeBuilder_; /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } else { return spokeBuilder_.getMessage(); } } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { @@ -850,14 +963,17 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSpoke( - com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { + public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { if (spokeBuilder_ == null) { spoke_ = builderForValue.build(); } else { @@ -868,17 +984,21 @@ public Builder setSpoke( return this; } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - spoke_ != null && - spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && spoke_ != null + && spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -891,11 +1011,15 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000002); @@ -908,11 +1032,15 @@ public Builder clearSpoke() { return this; } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000002; @@ -920,36 +1048,48 @@ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { return getSpokeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null ? - com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( - getSpoke(), - getParentForChildren(), - isClean()); + spokeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( + getSpoke(), getParentForChildren(), isClean()); spoke_ = null; } return spokeBuilder_; @@ -957,6 +1097,8 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -973,13 +1115,13 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -988,6 +1130,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1004,15 +1148,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1020,6 +1163,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1036,18 +1181,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1064,6 +1213,7 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1073,6 +1223,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1089,21 +1241,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1113,12 +1267,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(); } @@ -1127,27 +1281,27 @@ public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1162,6 +1316,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java index ff21e1d7ea89..7531903678e0 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface UpdateSpokeRequestOrBuilder extends +public interface UpdateSpokeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. In the case of an update to an existing spoke, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -16,11 +34,15 @@ public interface UpdateSpokeRequestOrBuilder extends
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. In the case of an update to an existing spoke, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -29,11 +51,15 @@ public interface UpdateSpokeRequestOrBuilder extends
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. In the case of an update to an existing spoke, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -42,38 +68,55 @@ public interface UpdateSpokeRequestOrBuilder extends
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ boolean hasSpoke(); /** + * + * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ com.google.cloud.networkconnectivity.v1.Spoke getSpoke(); /** + * + * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -90,10 +133,13 @@ public interface UpdateSpokeRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -110,8 +156,8 @@ public interface UpdateSpokeRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/policy_based_routing.proto b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/policy_based_routing.proto similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/policy_based_routing.proto rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/policy_based_routing.proto diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java new file mode 100644 index 000000000000..e8e71eaf5f8b --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java @@ -0,0 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1alpha1/common.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public final class CommonProto { + private CommonProto() {} + + 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_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/networkconnectivity/v1alp" + + "ha1/common.proto\022)google.cloud.networkco" + + "nnectivity.v1alpha1\032\037google/api/field_be" + + "havior.proto\032\037google/protobuf/timestamp." + + "proto\"\200\002\n\021OperationMetadata\0224\n\013create_ti" + + "me\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004ver" + + "b\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\003B\243\002\n-com.google." + + "cloud.networkconnectivity.v1alpha1B\013Comm" + + "onProtoP\001Z\\google.golang.org/genproto/go" + + "ogleapis/cloud/networkconnectivity/v1alp" + + "ha1;networkconnectivity\252\002)Google.Cloud.N" + + "etworkConnectivity.V1Alpha1\312\002)Google\\Clo" + + "ud\\NetworkConnectivity\\V1alpha1\352\002,Google" + + "::Cloud::NetworkConnectivity::V1alpha1b\006" + + "proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java index b77dc1fda61b..ff4aaf180be5 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Request for [HubService.CreateHub][google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateHubRequest} */ -public final class CreateHubRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateHubRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) CreateHubRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateHubRequest.newBuilder() to construct. private CreateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateHubRequest() { parent_ = ""; hubId_ = ""; @@ -27,38 +45,45 @@ private CreateHubRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource's name of the Hub.
    * 
* - * string parent = 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 @@ -67,29 +92,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource's name of the Hub.
    * 
* - * string parent = 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 { @@ -98,14 +125,18 @@ public java.lang.String getParent() { } public static final int HUB_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object hubId_ = ""; /** + * + * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hubId. */ @java.lang.Override @@ -114,29 +145,29 @@ public java.lang.String getHubId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; } } /** + * + * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for hubId. */ @java.lang.Override - public com.google.protobuf.ByteString - getHubIdBytes() { + public com.google.protobuf.ByteString getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hubId_ = b; return b; } else { @@ -147,11 +178,16 @@ public java.lang.String getHubId() { public static final int HUB_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ @java.lang.Override @@ -159,33 +195,49 @@ public boolean hasHub() { return hub_ != null; } /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { - return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { - return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -201,6 +253,7 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -209,14 +262,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -232,16 +286,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -250,6 +303,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +315,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,8 +344,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hubId_); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHub()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -305,24 +357,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.networkconnectivity.v1alpha1.CreateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getHubId() - .equals(other.getHubId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getHubId().equals(other.getHubId())) return false; if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub() - .equals(other.getHub())) return false; + if (!getHub().equals(other.getHub())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,129 +399,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.CreateHub][google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateHubRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -489,13 +545,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance(); } @@ -510,13 +567,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -525,9 +586,7 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateH result.hubId_ = hubId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.hub_ = hubBuilder_ == null - ? hub_ - : hubBuilder_.build(); + result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -538,38 +597,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateH public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) other); } else { super.mergeFrom(other); return this; @@ -577,7 +637,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -622,34 +684,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - hubId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getHubFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + hubId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,22 +724,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource's name of the Hub.
      * 
* - * string parent = 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; @@ -683,20 +753,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name of the Hub.
      * 
* - * string parent = 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 { @@ -704,28 +777,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name of the Hub.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource's name of the Hub.
      * 
* - * string 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() { @@ -735,17 +819,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource's name of the Hub.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -755,18 +845,20 @@ public Builder setParentBytes( private java.lang.Object hubId_ = ""; /** + * + * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hubId. */ public java.lang.String getHubId() { java.lang.Object ref = hubId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; @@ -775,20 +867,21 @@ public java.lang.String getHubId() { } } /** + * + * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for hubId. */ - public com.google.protobuf.ByteString - getHubIdBytes() { + public com.google.protobuf.ByteString getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hubId_ = b; return b; } else { @@ -796,28 +889,35 @@ public java.lang.String getHubId() { } } /** + * + * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The hubId to set. * @return This builder for chaining. */ - public Builder setHubId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHubId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hubId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearHubId() { @@ -827,17 +927,21 @@ public Builder clearHubId() { return this; } /** + * + * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for hubId to set. * @return This builder for chaining. */ - public Builder setHubIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHubIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hubId_ = value; bitField0_ |= 0x00000002; @@ -847,39 +951,58 @@ public Builder setHubIdBytes( private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> hubBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + hubBuilder_; /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } else { return hubBuilder_.getMessage(); } } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { @@ -895,11 +1018,15 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setHub( com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder builderForValue) { @@ -913,17 +1040,21 @@ public Builder setHub( return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - hub_ != null && - hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && hub_ != null + && hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -936,11 +1067,15 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000004); @@ -953,11 +1088,15 @@ public Builder clearHub() { return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000004; @@ -965,36 +1104,48 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() return getHubFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null ? - com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( - getHub(), - getParentForChildren(), - isClean()); + hubBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( + getHub(), getParentForChildren(), isClean()); hub_ = null; } return hubBuilder_; @@ -1002,6 +1153,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1017,13 +1170,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1032,6 +1185,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1047,15 +1202,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1063,6 +1217,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1078,18 +1234,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1105,6 +1265,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1114,6 +1275,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1129,21 +1292,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1153,41 +1318,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1199,9 +1366,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java index 7ada53d7d300..fecd3ded33d5 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface CreateHubRequestOrBuilder extends +public interface CreateHubRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource's name of the Hub.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource's name of the Hub.
    * 
* - * string parent = 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(); /** + * + * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hubId. */ java.lang.String getHubId(); /** + * + * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for hubId. */ - com.google.protobuf.ByteString - getHubIdBytes(); + com.google.protobuf.ByteString getHubIdBytes(); /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ boolean hasHub(); /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ com.google.cloud.networkconnectivity.v1alpha1.Hub getHub(); /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -90,10 +136,13 @@ public interface CreateHubRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -109,8 +158,8 @@ public interface CreateHubRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java index da2748dcd13b..6f8e9420cec0 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest} */ -public final class CreateSpokeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateSpokeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) CreateSpokeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateSpokeRequest.newBuilder() to construct. private CreateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateSpokeRequest() { parent_ = ""; spokeId_ = ""; @@ -27,38 +45,45 @@ private CreateSpokeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * string parent = 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 @@ -67,29 +92,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * string parent = 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 { @@ -98,14 +125,18 @@ public java.lang.String getParent() { } public static final int SPOKE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object spokeId_ = ""; /** + * + * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The spokeId. */ @java.lang.Override @@ -114,29 +145,29 @@ public java.lang.String getSpokeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; } } /** + * + * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for spokeId. */ @java.lang.Override - public com.google.protobuf.ByteString - getSpokeIdBytes() { + public com.google.protobuf.ByteString getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); spokeId_ = b; return b; } else { @@ -147,11 +178,16 @@ public java.lang.String getSpokeId() { public static final int SPOKE_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ @java.lang.Override @@ -159,33 +195,49 @@ public boolean hasSpoke() { return spoke_ != null; } /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -201,6 +253,7 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -209,14 +262,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -232,16 +286,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -250,6 +303,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +315,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,8 +344,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, spokeId_); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSpoke()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -305,24 +357,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.networkconnectivity.v1alpha1.CreateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getSpokeId() - .equals(other.getSpokeId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getSpokeId().equals(other.getSpokeId())) return false; if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke() - .equals(other.getSpoke())) return false; + if (!getSpoke().equals(other.getSpoke())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,129 +399,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -489,13 +545,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance(); } @@ -510,13 +567,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -525,9 +586,7 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateS result.spokeId_ = spokeId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.spoke_ = spokeBuilder_ == null - ? spoke_ - : spokeBuilder_.build(); + result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -538,46 +597,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateS public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -622,34 +685,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - spokeId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getSpokeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + spokeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,22 +725,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * string parent = 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; @@ -683,20 +754,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * string parent = 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 { @@ -704,28 +778,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * string 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() { @@ -735,17 +820,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -755,18 +846,20 @@ public Builder setParentBytes( private java.lang.Object spokeId_ = ""; /** + * + * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The spokeId. */ public java.lang.String getSpokeId() { java.lang.Object ref = spokeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; @@ -775,20 +868,21 @@ public java.lang.String getSpokeId() { } } /** + * + * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for spokeId. */ - public com.google.protobuf.ByteString - getSpokeIdBytes() { + public com.google.protobuf.ByteString getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); spokeId_ = b; return b; } else { @@ -796,28 +890,35 @@ public java.lang.String getSpokeId() { } } /** + * + * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpokeId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } spokeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSpokeId() { @@ -827,17 +928,21 @@ public Builder clearSpokeId() { return this; } /** + * + * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpokeIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); spokeId_ = value; bitField0_ |= 0x00000002; @@ -847,39 +952,58 @@ public Builder setSpokeIdBytes( private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> spokeBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + spokeBuilder_; /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } else { return spokeBuilder_.getMessage(); } } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { @@ -895,11 +1019,15 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke valu return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSpoke( com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder builderForValue) { @@ -913,17 +1041,21 @@ public Builder setSpoke( return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - spoke_ != null && - spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && spoke_ != null + && spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -936,11 +1068,15 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke va return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000004); @@ -953,11 +1089,15 @@ public Builder clearSpoke() { return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000004; @@ -965,36 +1105,48 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuild return getSpokeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null ? - com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( - getSpoke(), - getParentForChildren(), - isClean()); + spokeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( + getSpoke(), getParentForChildren(), isClean()); spoke_ = null; } return spokeBuilder_; @@ -1002,6 +1154,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1017,13 +1171,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1032,6 +1186,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1047,15 +1203,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1063,6 +1218,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1078,18 +1235,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1105,6 +1266,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1114,6 +1276,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1129,21 +1293,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1153,41 +1319,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1199,9 +1367,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java index 7cdd693f7086..0acea62a3476 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface CreateSpokeRequestOrBuilder extends +public interface CreateSpokeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * string parent = 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(); /** + * + * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The spokeId. */ java.lang.String getSpokeId(); /** + * + * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for spokeId. */ - com.google.protobuf.ByteString - getSpokeIdBytes(); + com.google.protobuf.ByteString getSpokeIdBytes(); /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ boolean hasSpoke(); /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke(); /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -90,10 +136,13 @@ public interface CreateSpokeRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -109,8 +158,8 @@ public interface CreateSpokeRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java similarity index 69% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java index 64ea69b076e4..b12bad9a3b29 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest} */ -public final class DeleteHubRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteHubRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) DeleteHubRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteHubRequest.newBuilder() to construct. private DeleteHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteHubRequest() { name_ = ""; requestId_ = ""; @@ -26,38 +44,45 @@ private DeleteHubRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the Hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,29 +91,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the Hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,9 +124,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -115,6 +145,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -123,14 +154,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -146,16 +178,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -164,6 +195,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -206,17 +237,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.networkconnectivity.v1alpha1.DeleteHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,129 +268,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -371,13 +408,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance(); } @@ -392,13 +430,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -412,38 +454,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.DeleteH public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) other); } else { super.mergeFrom(other); return this; @@ -451,7 +494,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -488,22 +533,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -513,22 +561,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the Hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -537,20 +590,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -558,28 +614,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -589,17 +656,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the Hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -609,6 +682,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -624,13 +699,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -639,6 +714,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -654,15 +731,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -670,6 +746,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -685,18 +763,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -712,6 +794,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -721,6 +804,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -736,21 +821,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -760,41 +847,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -806,9 +895,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java index 861358b8374d..033fd24fc4b8 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface DeleteHubRequestOrBuilder extends +public interface DeleteHubRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the Hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -43,10 +70,13 @@ public interface DeleteHubRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -62,8 +92,8 @@ public interface DeleteHubRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java similarity index 69% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java index 5e99a2274873..1569d811fb22 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest} */ -public final class DeleteSpokeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteSpokeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) DeleteSpokeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteSpokeRequest.newBuilder() to construct. private DeleteSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteSpokeRequest() { name_ = ""; requestId_ = ""; @@ -26,38 +44,45 @@ private DeleteSpokeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the Spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,29 +91,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the Spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,9 +124,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -115,6 +145,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -123,14 +154,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -146,16 +178,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -164,6 +195,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -206,17 +237,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.networkconnectivity.v1alpha1.DeleteSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,129 +268,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -371,13 +408,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance(); } @@ -392,13 +430,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -412,46 +454,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.DeleteS public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -488,22 +534,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -513,22 +562,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the Spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -537,20 +591,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -558,28 +615,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -589,17 +657,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the Spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -609,6 +683,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -624,13 +700,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -639,6 +715,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -654,15 +732,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -670,6 +747,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -685,18 +764,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -712,6 +795,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -721,6 +805,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -736,21 +822,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -760,41 +848,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -806,9 +896,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java index 1be7096a8498..a1bef18bbd22 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface DeleteSpokeRequestOrBuilder extends +public interface DeleteSpokeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the Spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -43,10 +70,13 @@ public interface DeleteSpokeRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -62,8 +92,8 @@ public interface DeleteSpokeRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java similarity index 63% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java index 5ba1a3a7791d..f9b4ab4e5e6c 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java @@ -1,62 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Request for [HubService.GetHub][google.cloud.networkconnectivity.v1alpha1.HubService.GetHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetHubRequest} */ -public final class GetHubRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetHubRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) GetHubRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetHubRequest.newBuilder() to construct. private GetHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetHubRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the Hub resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +90,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 Hub resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -132,15 +159,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.networkconnectivity.v1alpha1.GetHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.GetHub][google.cloud.networkconnectivity.v1alpha1.HubService.GetHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetHubRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) com.google.cloud.networkconnectivity.v1alpha1.GetHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; } @java.lang.Override @@ -313,8 +347,11 @@ public com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +367,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.GetHubR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +462,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the Hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,20 +491,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the Hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -466,28 +515,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the Hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the Hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -497,26 +557,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the Hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) private static final com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest(); } @@ -540,27 +606,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java new file mode 100644 index 000000000000..f27e985b5766 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public interface GetHubRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the Hub resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the Hub resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java similarity index 61% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java index 6241282b9908..cf7d7735d223 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java @@ -1,62 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest} */ -public final class GetSpokeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSpokeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) GetSpokeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSpokeRequest.newBuilder() to construct. private GetSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSpokeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of Spoke resource.
    * 
* - * string name = 1 [(.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 @@ -65,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of Spoke resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -132,15 +159,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.networkconnectivity.v1alpha1.GetSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,13 +326,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance(); } @@ -313,13 +348,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -330,38 +369,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.GetSpok public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +409,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +443,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +465,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of Spoke resource.
      * 
* - * string name = 1 [(.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; @@ -445,20 +494,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of Spoke resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -466,28 +518,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of Spoke resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of Spoke resource.
      * 
* - * string 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() { @@ -497,26 +560,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of Spoke resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +595,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest(); } @@ -540,27 +610,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +645,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java new file mode 100644 index 000000000000..f96c9a120c67 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public interface GetSpokeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of Spoke resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of Spoke 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/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java similarity index 66% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java index 0785f0c3b51e..4f6053f779e0 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Network Connectivity Center is a hub-and-spoke abstraction for
  * network connectivity management in Google Cloud. It reduces
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Hub}
  */
-public final class Hub extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Hub extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.Hub)
     HubOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Hub.newBuilder() to construct.
   private Hub(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Hub() {
     name_ = "";
     description_ = "";
@@ -32,50 +50,54 @@ private Hub() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Hub();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1alpha1.Hub.class, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
+            com.google.cloud.networkconnectivity.v1alpha1.Hub.class,
+            com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -84,29 +106,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; } } /** + * + * *
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -117,11 +139,14 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -129,11 +154,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ @java.lang.Override @@ -141,6 +169,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Time when the Hub was created.
    * 
@@ -155,11 +185,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -167,11 +200,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ @java.lang.Override @@ -179,6 +215,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Time when the Hub was updated.
    * 
@@ -191,32 +229,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_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.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - 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_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * User-defined labels.
    * 
@@ -224,20 +264,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** + * + * *
    * User-defined labels.
    * 
@@ -249,6 +290,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * User-defined labels.
    * 
@@ -256,17 +299,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + 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; } /** + * + * *
    * User-defined labels.
    * 
@@ -274,11 +319,11 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new 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(); } @@ -286,14 +331,18 @@ public java.lang.String getLabelsOrThrow( } public static final int DESCRIPTION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Short description of the hub resource.
    * 
* * string description = 5; + * * @return The description. */ @java.lang.Override @@ -302,29 +351,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Short description of the hub resource.
    * 
* * string description = 5; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -333,37 +382,52 @@ public java.lang.String getDescription() { } public static final int SPOKES_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList spokes_; /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the spokes. */ - public com.google.protobuf.ProtocolStringList - getSpokesList() { + public com.google.protobuf.ProtocolStringList getSpokesList() { return spokes_; } /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The count of spokes. */ public int getSpokesCount() { return spokes_.size(); } /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The spokes at the given index. */ @@ -371,23 +435,30 @@ public java.lang.String getSpokes(int index) { return spokes_.get(index); } /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the spokes at the given index. */ - public com.google.protobuf.ByteString - getSpokesBytes(int index) { + public com.google.protobuf.ByteString getSpokesBytes(int index) { return spokes_.getByteString(index); } public static final int UNIQUE_ID_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -395,6 +466,7 @@ public java.lang.String getSpokes(int index) {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ @java.lang.Override @@ -403,14 +475,15 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -418,16 +491,15 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -438,30 +510,46 @@ public java.lang.String getUniqueId() { public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.networkconnectivity.v1alpha1.State getState() { + com.google.cloud.networkconnectivity.v1alpha1.State result = + com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null + ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -473,8 +561,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -484,12 +571,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -499,7 +582,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, uniqueId_); } - if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(9, state_); } getUnknownFields().writeTo(output); @@ -515,22 +599,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -546,9 +628,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, uniqueId_); } - if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, state_); + if (state_ + != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -558,33 +640,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.networkconnectivity.v1alpha1.Hub)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.Hub other = (com.google.cloud.networkconnectivity.v1alpha1.Hub) obj; + com.google.cloud.networkconnectivity.v1alpha1.Hub other = + (com.google.cloud.networkconnectivity.v1alpha1.Hub) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getSpokesList() - .equals(other.getSpokesList())) return false; - if (!getUniqueId() - .equals(other.getUniqueId())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getSpokesList().equals(other.getSpokesList())) return false; + if (!getUniqueId().equals(other.getUniqueId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -627,96 +703,103 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.Hub prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Connectivity Center is a hub-and-spoke abstraction for
    * network connectivity management in Google Cloud. It reduces
@@ -726,55 +809,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Hub}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.Hub)
       com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1alpha1.Hub.class, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
+              com.google.cloud.networkconnectivity.v1alpha1.Hub.class,
+              com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1alpha1.Hub.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -800,9 +880,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
     }
 
     @java.lang.Override
@@ -821,14 +901,18 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1alpha1.Hub buildPartial() {
-      com.google.cloud.networkconnectivity.v1alpha1.Hub result = new com.google.cloud.networkconnectivity.v1alpha1.Hub(this);
+      com.google.cloud.networkconnectivity.v1alpha1.Hub result =
+          new com.google.cloud.networkconnectivity.v1alpha1.Hub(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.Hub result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1alpha1.Hub result) {
       if (((bitField0_ & 0x00000020) != 0)) {
         spokes_ = spokes_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000020);
@@ -842,14 +926,10 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Hub res
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -870,38 +950,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Hub res
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.Hub) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Hub)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Hub) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -909,7 +990,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Hub other) {
-      if (other == com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -921,8 +1003,7 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Hub other
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -973,61 +1054,68 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureSpokesIsMutable();
-              spokes_.add(s);
-              break;
-            } // case 50
-            case 66: {
-              uniqueId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 66
-            case 72: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 72
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureSpokesIsMutable();
+                spokes_.add(s);
+                break;
+              } // case 50
+            case 66:
+              {
+                uniqueId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 66
+            case 72:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 72
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1037,22 +1125,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -1061,20 +1152,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -1082,28 +1174,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1113,17 +1212,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1133,34 +1236,47 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Time when the Hub was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Time when the Hub was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; + * * @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(); } } /** + * + * *
      * Time when the Hub was created.
      * 
@@ -1181,14 +1297,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the Hub was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1199,6 +1316,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Time when the Hub was created.
      * 
@@ -1207,9 +1326,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1222,6 +1341,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the Hub was created.
      * 
@@ -1239,6 +1360,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Time when the Hub was created.
      * 
@@ -1251,6 +1374,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the Hub was created.
      * 
@@ -1261,11 +1386,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Time when the Hub was created.
      * 
@@ -1273,14 +1401,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> 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_; @@ -1288,34 +1419,47 @@ 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_; /** + * + * *
      * Time when the Hub was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Time when the Hub was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @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(); } } /** + * + * *
      * Time when the Hub was updated.
      * 
@@ -1336,14 +1480,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the Hub was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1354,6 +1499,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Time when the Hub was updated.
      * 
@@ -1362,9 +1509,9 @@ public Builder setUpdateTime( */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1377,6 +1524,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the Hub was updated.
      * 
@@ -1394,6 +1543,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Time when the Hub was updated.
      * 
@@ -1406,6 +1557,8 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the Hub was updated.
      * 
@@ -1416,11 +1569,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Time when the Hub was updated.
      * 
@@ -1428,34 +1584,35 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1464,10 +1621,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * User-defined labels.
      * 
@@ -1475,20 +1635,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** + * + * *
      * User-defined labels.
      * 
@@ -1500,6 +1661,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * User-defined labels.
      * 
@@ -1507,17 +1670,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + 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; } /** + * + * *
      * User-defined labels.
      * 
@@ -1525,91 +1690,95 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new 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(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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); + 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); bitField0_ |= 0x00000008; return this; } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object description_ = ""; /** + * + * *
      * Short description of the hub resource.
      * 
* * string description = 5; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1618,20 +1787,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Short description of the hub resource.
      * 
* * string description = 5; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1639,28 +1809,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Short description of the hub resource.
      * 
* * string description = 5; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Short description of the hub resource.
      * 
* * string description = 5; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1670,17 +1847,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Short description of the hub resource.
      * 
* * string description = 5; + * * @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(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -1688,42 +1869,58 @@ public Builder setDescriptionBytes( return this; } - private com.google.protobuf.LazyStringList spokes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList spokes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSpokesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { spokes_ = new com.google.protobuf.LazyStringArrayList(spokes_); bitField0_ |= 0x00000020; - } + } } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the spokes. */ - public com.google.protobuf.ProtocolStringList - getSpokesList() { + public com.google.protobuf.ProtocolStringList getSpokesList() { return spokes_.getUnmodifiableView(); } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The count of spokes. */ public int getSpokesCount() { return spokes_.size(); } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The spokes at the given index. */ @@ -1731,76 +1928,100 @@ public java.lang.String getSpokes(int index) { return spokes_.get(index); } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the spokes at the given index. */ - public com.google.protobuf.ByteString - getSpokesBytes(int index) { + public com.google.protobuf.ByteString getSpokesBytes(int index) { return spokes_.getByteString(index); } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The spokes to set. * @return This builder for chaining. */ - public Builder setSpokes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpokes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSpokesIsMutable(); spokes_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The spokes to add. * @return This builder for chaining. */ - public Builder addSpokes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSpokes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSpokesIsMutable(); spokes_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param values The spokes to add. * @return This builder for chaining. */ - public Builder addAllSpokes( - java.lang.Iterable values) { + public Builder addAllSpokes(java.lang.Iterable values) { ensureSpokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, spokes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spokes_); onChanged(); return this; } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSpokes() { @@ -1810,17 +2031,23 @@ public Builder clearSpokes() { return this; } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the spokes to add. * @return This builder for chaining. */ - public Builder addSpokesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSpokesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureSpokesIsMutable(); spokes_.add(value); @@ -1830,6 +2057,8 @@ public Builder addSpokesBytes( private java.lang.Object uniqueId_ = ""; /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -1837,13 +2066,13 @@ public Builder addSpokesBytes(
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -1852,6 +2081,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -1859,15 +2090,14 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -1875,6 +2105,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -1882,18 +2114,22 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uniqueId_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -1901,6 +2137,7 @@ public Builder setUniqueId(
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -1910,6 +2147,8 @@ public Builder clearUniqueId() { return this; } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -1917,12 +2156,14 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000040; @@ -1932,22 +2173,33 @@ public Builder setUniqueIdBytes( private int state_ = 0; /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1958,24 +2210,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; + com.google.cloud.networkconnectivity.v1alpha1.State result = + com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null + ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1989,11 +2254,16 @@ public Builder setState(com.google.cloud.networkconnectivity.v1alpha1.State valu return this; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2002,9 +2272,9 @@ public Builder clearState() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2014,12 +2284,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.Hub) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.Hub) private static final com.google.cloud.networkconnectivity.v1alpha1.Hub DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.Hub(); } @@ -2028,27 +2298,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.Hub getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Hub parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Hub parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2063,6 +2333,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.Hub getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java index 710e35232205..598c124b3db5 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java @@ -1,51 +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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface HubOrBuilder extends +public interface HubOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.Hub) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Time when the Hub was created.
    * 
@@ -55,24 +84,32 @@ public interface HubOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Time when the Hub was updated.
    * 
@@ -82,6 +119,8 @@ public interface HubOrBuilder extends com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * User-defined labels.
    * 
@@ -90,30 +129,31 @@ public interface HubOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * User-defined labels.
    * 
@@ -121,82 +161,108 @@ boolean containsLabels( * map<string, string> labels = 4; */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Short description of the hub resource.
    * 
* * string description = 5; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Short description of the hub resource.
    * 
* * string description = 5; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the spokes. */ - java.util.List - getSpokesList(); + java.util.List getSpokesList(); /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The count of spokes. */ int getSpokesCount(); /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The spokes at the given index. */ java.lang.String getSpokes(int index); /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the spokes at the given index. */ - com.google.protobuf.ByteString - getSpokesBytes(int index); + com.google.protobuf.ByteString getSpokesBytes(int index); /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -204,10 +270,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ java.lang.String getUniqueId(); /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -215,26 +284,36 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString - getUniqueIdBytes(); + com.google.protobuf.ByteString getUniqueIdBytes(); /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.networkconnectivity.v1alpha1.State getState(); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java new file mode 100644 index 000000000000..4f2423ff81f4 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java @@ -0,0 +1,460 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1alpha1/hub.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public final class HubProto { + private HubProto() {} + + 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_networkconnectivity_v1alpha1_Hub_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/networkconnectivity/v1alp" + + "ha1/hub.proto\022)google.cloud.networkconne" + + "ctivity.v1alpha1\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\032\037google/" + + "api/field_behavior.proto\032\031google/api/res" + + "ource.proto\032#google/longrunning/operatio" + + "ns.proto\032 google/protobuf/field_mask.pro" + + "to\032\037google/protobuf/timestamp.proto\"\207\004\n\003" + + "Hub\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_time\030\002 " + + "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat" + + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "\022J\n\006labels\030\004 \003(\0132:.google.cloud.networkc" + + "onnectivity.v1alpha1.Hub.LabelsEntry\022\023\n\013" + + "description\030\005 \001(\t\022@\n\006spokes\030\006 \003(\tB0\340A\003\372A" + + "*\n(networkconnectivity.googleapis.com/Sp" + + "oke\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022D\n\005state\030\t \001" + + "(\01620.google.cloud.networkconnectivity.v1" + + "alpha1.StateB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:[\352AX\n&networkco" + + "nnectivity.googleapis.com/Hub\022.projects/" + + "{project}/locations/global/hubs/{hub}\"\234\006" + + "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_tim" + + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022/\n\013u" + + "pdate_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tamp\022L\n\006labels\030\004 \003(\0132<.google.cloud.netw" + + "orkconnectivity.v1alpha1.Spoke.LabelsEnt" + + "ry\022\023\n\013description\030\005 \001(\t\0228\n\003hub\030\006 \001(\tB+\372A" + + "(\n&networkconnectivity.googleapis.com/Hu" + + "b\022A\n\022linked_vpn_tunnels\030\014 \003(\tB%\372A\"\n comp" + + "ute.googleapis.com/VpnTunnel\022[\n\037linked_i" + + "nterconnect_attachments\030\r \003(\tB2\372A/\n-comp" + + "ute.googleapis.com/InterconnectAttachmen" + + "t\022m\n!linked_router_appliance_instances\030\016" + + " \003(\0132B.google.cloud.networkconnectivity." + + "v1alpha1.RouterApplianceInstance\022\026\n\tuniq" + + "ue_id\030\013 \001(\tB\003\340A\003\022D\n\005state\030\017 \001(\01620.google" + + ".cloud.networkconnectivity.v1alpha1.Stat" + + "eB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001:e\352Ab\n(networkconnectivity." + + "googleapis.com/Spoke\0226projects/{project}" + + "/locations/{location}/spokes/{spoke}\"\225\001\n" + + "\017ListHubsRequest\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\022\016\n\006fi" + + "lter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\020ListHubs" + + "Response\022<\n\004hubs\030\001 \003(\0132..google.cloud.ne" + + "tworkconnectivity.v1alpha1.Hub\022\027\n\017next_p" + + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\r" + + "GetHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" + + "workconnectivity.googleapis.com/Hub\"\275\001\n\020" + + "CreateHubRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\n!locations.googleapis.com/Location\022\023\n\006h" + + "ub_id\030\002 \001(\tB\003\340A\001\022@\n\003hub\030\003 \001(\0132..google.c" + + "loud.networkconnectivity.v1alpha1.HubB\003\340" + + "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\020UpdateHu" + + "bRequest\0224\n\013update_mask\030\001 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\003\340A\001\022@\n\003hub\030\002 \001(\0132..go" + + "ogle.cloud.networkconnectivity.v1alpha1." + + "HubB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"i\n\020Del" + + "eteHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" + + "workconnectivity.googleapis.com/Hub\022\027\n\nr" + + "equest_id\030\002 \001(\tB\003\340A\001\"\227\001\n\021ListSpokesReque" + + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + + "ogleapis.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\022\020\n\010" + + "order_by\030\005 \001(\t\"\204\001\n\022ListSpokesResponse\022@\n" + + "\006spokes\030\001 \003(\01320.google.cloud.networkconn" + + "ectivity.v1alpha1.Spoke\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\017GetSpok" + + "eRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(networkc" + + "onnectivity.googleapis.com/Spoke\"\305\001\n\022Cre" + + "ateSpokeRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\025\n\010sp" + + "oke_id\030\002 \001(\tB\003\340A\001\022D\n\005spoke\030\003 \001(\01320.googl" + + "e.cloud.networkconnectivity.v1alpha1.Spo" + + "keB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\251\001\n\022Upd" + + "ateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\003\340A\001\022D\n\005spoke\030\002" + + " \001(\01320.google.cloud.networkconnectivity." + + "v1alpha1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB" + + "\003\340A\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\t" + + "B0\340A\002\372A*\n(networkconnectivity.googleapis" + + ".com/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\213\001\n\027" + + "RouterApplianceInstance\022=\n\017virtual_machi" + + "ne\030\001 \001(\tB$\372A!\n\037compute.googleapis.com/In" + + "stance\022\022\n\nip_address\030\003 \001(\t\022\035\n\021network_in" + + "terface\030\002 \001(\tB\002\030\001*F\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010D" + + "ELETING\020\0032\255\021\n\nHubService\022\311\001\n\010ListHubs\022:." + + "google.cloud.networkconnectivity.v1alpha" + + "1.ListHubsRequest\032;.google.cloud.network" + + "connectivity.v1alpha1.ListHubsResponse\"D" + + "\202\323\344\223\0025\0223/v1alpha1/{parent=projects/*/loc" + + "ations/global}/hubs\332A\006parent\022\266\001\n\006GetHub\022" + + "8.google.cloud.networkconnectivity.v1alp" + + "ha1.GetHubRequest\032..google.cloud.network" + + "connectivity.v1alpha1.Hub\"B\202\323\344\223\0025\0223/v1al" + + "pha1/{name=projects/*/locations/global/h" + + "ubs/*}\332A\004name\022\330\001\n\tCreateHub\022;.google.clo" + + "ud.networkconnectivity.v1alpha1.CreateHu" + + "bRequest\032\035.google.longrunning.Operation\"" + + "o\202\323\344\223\002:\"3/v1alpha1/{parent=projects/*/lo" + + "cations/global}/hubs:\003hub\332A\021parent,hub,h" + + "ub_id\312A\030\n\003Hub\022\021OperationMetadata\022\332\001\n\tUpd" + + "ateHub\022;.google.cloud.networkconnectivit" + + "y.v1alpha1.UpdateHubRequest\032\035.google.lon" + + "grunning.Operation\"q\202\323\344\223\002>27/v1alpha1/{h" + + "ub.name=projects/*/locations/global/hubs" + + "/*}:\003hub\332A\017hub,update_mask\312A\030\n\003Hub\022\021Oper" + + "ationMetadata\022\330\001\n\tDeleteHub\022;.google.clo" + + "ud.networkconnectivity.v1alpha1.DeleteHu" + + "bRequest\032\035.google.longrunning.Operation\"" + + "o\202\323\344\223\0025*3/v1alpha1/{name=projects/*/loca" + + "tions/global/hubs/*}\332A\004name\312A*\n\025google.p" + + "rotobuf.Empty\022\021OperationMetadata\022\314\001\n\nLis" + + "tSpokes\022<.google.cloud.networkconnectivi" + + "ty.v1alpha1.ListSpokesRequest\032=.google.c" + + "loud.networkconnectivity.v1alpha1.ListSp" + + "okesResponse\"A\202\323\344\223\0022\0220/v1alpha1/{parent=" + + "projects/*/locations/*}/spokes\332A\006parent\022" + + "\271\001\n\010GetSpoke\022:.google.cloud.networkconne" + + "ctivity.v1alpha1.GetSpokeRequest\0320.googl" + + "e.cloud.networkconnectivity.v1alpha1.Spo" + + "ke\"?\202\323\344\223\0022\0220/v1alpha1/{name=projects/*/l" + + "ocations/*/spokes/*}\332A\004name\022\341\001\n\013CreateSp" + + "oke\022=.google.cloud.networkconnectivity.v" + + "1alpha1.CreateSpokeRequest\032\035.google.long" + + "running.Operation\"t\202\323\344\223\0029\"0/v1alpha1/{pa" + + "rent=projects/*/locations/*}/spokes:\005spo" + + "ke\332A\025parent,spoke,spoke_id\312A\032\n\005Spoke\022\021Op" + + "erationMetadata\022\343\001\n\013UpdateSpoke\022=.google" + + ".cloud.networkconnectivity.v1alpha1.Upda" + + "teSpokeRequest\032\035.google.longrunning.Oper" + + "ation\"v\202\323\344\223\002?26/v1alpha1/{spoke.name=pro" + + "jects/*/locations/*/spokes/*}:\005spoke\332A\021s" + + "poke,update_mask\312A\032\n\005Spoke\022\021OperationMet" + + "adata\022\331\001\n\013DeleteSpoke\022=.google.cloud.net" + + "workconnectivity.v1alpha1.DeleteSpokeReq" + + "uest\032\035.google.longrunning.Operation\"l\202\323\344" + + "\223\0022*0/v1alpha1/{name=projects/*/location" + + "s/*/spokes/*}\332A\004name\312A*\n\025google.protobuf" + + ".Empty\022\021OperationMetadata\032V\312A\"networkcon" + + "nectivity.googleapis.com\322A.https://www.g" + + "oogleapis.com/auth/cloud-platformB\332\004\n-co" + + "m.google.cloud.networkconnectivity.v1alp" + + "ha1B\010HubProtoP\001Z\\google.golang.org/genpr" + + "oto/googleapis/cloud/networkconnectivity" + + "/v1alpha1;networkconnectivity\252\002)Google.C" + + "loud.NetworkConnectivity.V1Alpha1\312\002)Goog" + + "le\\Cloud\\NetworkConnectivity\\V1alpha1\352\002," + + "Google::Cloud::NetworkConnectivity::V1al" + + "pha1\352A`\n compute.googleapis.com/VpnTunne" + + "l\022 * Request for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method. *
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsRequest} */ -public final class ListHubsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListHubsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) ListHubsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListHubsRequest.newBuilder() to construct. private ListHubsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListHubsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,38 +46,45 @@ private ListHubsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListHubsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 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 @@ -68,29 +93,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 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 { @@ -101,11 +128,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -114,14 +144,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -130,29 +164,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The page token.
    * 
* * 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 { @@ -161,14 +195,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -177,29 +215,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; } } /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * 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 { @@ -208,14 +246,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -224,29 +266,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -255,6 +297,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -296,8 +338,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_); @@ -316,23 +357,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.networkconnectivity.v1alpha1.ListHubsRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest other = (com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -360,129 +397,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,13 +540,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance(); } @@ -517,13 +562,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -546,38 +595,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListHub public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) other); } else { super.mergeFrom(other); return this; @@ -585,7 +635,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -635,37 +687,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -675,22 +733,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource's name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -699,20 +762,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * string parent = 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,28 +786,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * string 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() { @@ -751,17 +828,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -769,13 +852,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -783,27 +869,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -815,18 +907,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The page token.
      * 
* * 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; @@ -835,20 +929,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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 { @@ -856,28 +951,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The page token.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -887,17 +989,21 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -907,18 +1013,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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; @@ -927,20 +1035,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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 { @@ -948,28 +1057,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -979,17 +1095,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -999,18 +1119,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1019,20 +1141,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1040,28 +1163,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1071,26 +1201,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1100,12 +1234,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest(); } @@ -1114,27 +1249,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,6 +1284,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java index 18dcea236671..d04315d22cc4 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java @@ -1,99 +1,142 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListHubsRequestOrBuilder extends +public interface ListHubsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java index 38bda54f7ae1..f9b82a08d489 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsResponse} */ -public final class ListHubsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListHubsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) ListHubsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListHubsResponse.newBuilder() to construct. private ListHubsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListHubsResponse() { hubs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,33 +45,37 @@ private ListHubsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListHubsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); } public static final int HUBS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List hubs_; /** + * + * *
    * Hubs to be returned.
    * 
@@ -65,6 +87,8 @@ public java.util.List getHubs return hubs_; } /** + * + * *
    * Hubs to be returned.
    * 
@@ -72,11 +96,13 @@ public java.util.List getHubs * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getHubsOrBuilderList() { return hubs_; } /** + * + * *
    * Hubs to be returned.
    * 
@@ -88,6 +114,8 @@ public int getHubsCount() { return hubs_.size(); } /** + * + * *
    * Hubs to be returned.
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index) { return hubs_.get(index); } /** + * + * *
    * Hubs to be returned.
    * 
@@ -106,21 +136,24 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index) { * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder(int index) { return hubs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +162,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -161,37 +194,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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. */ @@ -199,20 +241,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; @@ -224,8 +269,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < hubs_.size(); i++) { output.writeMessage(1, hubs_.get(i)); } @@ -245,8 +289,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < hubs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, hubs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hubs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +310,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.networkconnectivity.v1alpha1.ListHubsResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse other = (com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) obj; + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse other = + (com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) obj; - if (!getHubsList() - .equals(other.getHubsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getHubsList().equals(other.getHubsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +348,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,13 +496,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance(); } @@ -469,14 +518,18 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse(this); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result = + new com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { if (hubsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { hubs_ = java.util.Collections.unmodifiableList(hubs_); @@ -493,7 +546,8 @@ private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1a result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -504,38 +558,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListHub public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) other); } else { super.mergeFrom(other); return this; @@ -543,7 +598,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance()) + return this; if (hubsBuilder_ == null) { if (!other.hubs_.isEmpty()) { if (hubs_.isEmpty()) { @@ -562,9 +619,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListHubsR hubsBuilder_ = null; hubs_ = other.hubs_; bitField0_ = (bitField0_ & ~0x00000001); - hubsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHubsFieldBuilder() : null; + hubsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHubsFieldBuilder() + : null; } else { hubsBuilder_.addAllMessages(other.hubs_); } @@ -611,36 +669,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.networkconnectivity.v1alpha1.Hub m = - input.readMessage( - com.google.cloud.networkconnectivity.v1alpha1.Hub.parser(), - extensionRegistry); - if (hubsBuilder_ == null) { - ensureHubsIsMutable(); - hubs_.add(m); - } else { - hubsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.networkconnectivity.v1alpha1.Hub m = + input.readMessage( + com.google.cloud.networkconnectivity.v1alpha1.Hub.parser(), + extensionRegistry); + if (hubsBuilder_ == null) { + ensureHubsIsMutable(); + hubs_.add(m); + } else { + hubsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,21 +712,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List hubs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureHubsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { hubs_ = new java.util.ArrayList(hubs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> hubsBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + hubsBuilder_; /** + * + * *
      * Hubs to be returned.
      * 
@@ -679,6 +748,8 @@ public java.util.List getHubs } } /** + * + * *
      * Hubs to be returned.
      * 
@@ -693,6 +764,8 @@ public int getHubsCount() { } } /** + * + * *
      * Hubs to be returned.
      * 
@@ -707,14 +780,15 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index) { } } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public Builder setHubs( - int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { + public Builder setHubs(int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -728,6 +802,8 @@ public Builder setHubs( return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -746,6 +822,8 @@ public Builder setHubs( return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -766,14 +844,15 @@ public Builder addHubs(com.google.cloud.networkconnectivity.v1alpha1.Hub value) return this; } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public Builder addHubs( - int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { + public Builder addHubs(int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -787,6 +866,8 @@ public Builder addHubs( return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -805,6 +886,8 @@ public Builder addHubs( return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -823,6 +906,8 @@ public Builder addHubs( return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -833,8 +918,7 @@ public Builder addAllHubs( java.lang.Iterable values) { if (hubsBuilder_ == null) { ensureHubsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, hubs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hubs_); onChanged(); } else { hubsBuilder_.addAllMessages(values); @@ -842,6 +926,8 @@ public Builder addAllHubs( return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -859,6 +945,8 @@ public Builder clearHubs() { return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -876,39 +964,44 @@ public Builder removeHubs(int index) { return this; } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubsBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubsBuilder(int index) { return getHubsFieldBuilder().getBuilder(index); } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder(int index) { if (hubsBuilder_ == null) { - return hubs_.get(index); } else { + return hubs_.get(index); + } else { return hubsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public java.util.List - getHubsOrBuilderList() { + public java.util.List + getHubsOrBuilderList() { if (hubsBuilder_ != null) { return hubsBuilder_.getMessageOrBuilderList(); } else { @@ -916,6 +1009,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuild } } /** + * + * *
      * Hubs to be returned.
      * 
@@ -923,42 +1018,49 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuild * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder() { - return getHubsFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); + return getHubsFieldBuilder() + .addBuilder(com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder( - int index) { - return getHubsFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder(int index) { + return getHubsFieldBuilder() + .addBuilder( + index, com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public java.util.List - getHubsBuilderList() { + public java.util.List + getHubsBuilderList() { return getHubsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> getHubsFieldBuilder() { if (hubsBuilder_ == null) { - hubsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( - hubs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + hubsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( + hubs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); hubs_ = null; } return hubsBuilder_; @@ -966,19 +1068,21 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -987,21 +1091,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1009,30 +1114,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1154,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1177,52 @@ public Builder setNextPageTokenBytes( 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * 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. */ @@ -1104,76 +1230,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) { - if (value == null) { throw new NullPointerException(); } + 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(); } + 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) { + 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() { @@ -1183,26 +1323,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) { - if (value == null) { throw new NullPointerException(); } + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1212,41 +1356,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse(); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1258,9 +1404,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java index 04585dd17478..0e7c350ae916 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListHubsResponseOrBuilder extends +public interface ListHubsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Hubs to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - java.util.List - getHubsList(); + java.util.List getHubsList(); /** + * + * *
    * Hubs to be returned.
    * 
@@ -25,6 +44,8 @@ public interface ListHubsResponseOrBuilder extends */ com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index); /** + * + * *
    * Hubs to be returned.
    * 
@@ -33,84 +54,102 @@ public interface ListHubsResponseOrBuilder extends */ int getHubsCount(); /** + * + * *
    * Hubs to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - java.util.List + java.util.List getHubsOrBuilderList(); /** + * + * *
    * Hubs to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder( - int index); + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder(int index); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java similarity index 66% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java index d02e80f4ce44..16ad2870ba59 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest} */ -public final class ListSpokesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSpokesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) ListSpokesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSpokesRequest.newBuilder() to construct. private ListSpokesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSpokesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,38 +46,45 @@ private ListSpokesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSpokesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent's resource name.
    * 
* - * string parent = 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 @@ -68,29 +93,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent's resource name.
    * 
* - * string parent = 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 { @@ -101,11 +128,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -114,14 +144,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -130,29 +164,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The page token.
    * 
* * 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 { @@ -161,14 +195,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -177,29 +215,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; } } /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * 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 { @@ -208,14 +246,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -224,29 +266,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -255,6 +297,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -296,8 +338,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_); @@ -316,23 +357,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.networkconnectivity.v1alpha1.ListSpokesRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other = (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -360,129 +397,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,13 +540,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance(); } @@ -517,13 +562,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -546,46 +595,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListSpo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -635,37 +688,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -675,22 +734,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent's resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -699,20 +763,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent's resource name.
      * 
* - * string parent = 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,28 +787,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent's resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent's resource name.
      * 
* - * string 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() { @@ -751,17 +829,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent's resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -769,13 +853,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -783,27 +870,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -815,18 +908,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The page token.
      * 
* * 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; @@ -835,20 +930,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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 { @@ -856,28 +952,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The page token.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -887,17 +990,21 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -907,18 +1014,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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; @@ -927,20 +1036,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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 { @@ -948,28 +1058,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -979,17 +1096,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -999,18 +1120,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1019,20 +1142,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1040,28 +1164,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1071,26 +1202,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1100,41 +1235,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1146,9 +1283,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java index ec02d876fd99..444a3f40fd43 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java @@ -1,99 +1,142 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListSpokesRequestOrBuilder extends +public interface ListSpokesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent's resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent's resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java index 9193ff955e1f..df099e099d9c 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse} */ -public final class ListSpokesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSpokesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) ListSpokesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSpokesResponse.newBuilder() to construct. private ListSpokesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSpokesResponse() { spokes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,33 +45,37 @@ private ListSpokesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSpokesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); } public static final int SPOKES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List spokes_; /** + * + * *
    * Spokes to be returned.
    * 
@@ -65,6 +87,8 @@ public java.util.List getSp return spokes_; } /** + * + * *
    * Spokes to be returned.
    * 
@@ -72,11 +96,13 @@ public java.util.List getSp * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSpokesOrBuilderList() { return spokes_; } /** + * + * *
    * Spokes to be returned.
    * 
@@ -88,6 +114,8 @@ public int getSpokesCount() { return spokes_.size(); } /** + * + * *
    * Spokes to be returned.
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpokes(int index) return spokes_.get(index); } /** + * + * *
    * Spokes to be returned.
    * 
@@ -112,15 +142,19 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrB } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +163,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -161,37 +195,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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. */ @@ -199,20 +242,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; @@ -224,8 +270,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < spokes_.size(); i++) { output.writeMessage(1, spokes_.get(i)); } @@ -245,8 +290,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < spokes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, spokes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, spokes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +311,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.networkconnectivity.v1alpha1.ListSpokesResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other = (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) obj; + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other = + (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) obj; - if (!getSpokesList() - .equals(other.getSpokesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getSpokesList().equals(other.getSpokesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +349,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,13 +497,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance(); } @@ -469,14 +519,18 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse(this); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result = + new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { if (spokesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { spokes_ = java.util.Collections.unmodifiableList(spokes_); @@ -493,7 +547,8 @@ private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1a result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -504,46 +559,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListSpo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other) { + if (other + == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance()) + return this; if (spokesBuilder_ == null) { if (!other.spokes_.isEmpty()) { if (spokes_.isEmpty()) { @@ -562,9 +621,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListSpoke spokesBuilder_ = null; spokes_ = other.spokes_; bitField0_ = (bitField0_ & ~0x00000001); - spokesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSpokesFieldBuilder() : null; + spokesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSpokesFieldBuilder() + : null; } else { spokesBuilder_.addAllMessages(other.spokes_); } @@ -611,36 +671,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.networkconnectivity.v1alpha1.Spoke m = - input.readMessage( - com.google.cloud.networkconnectivity.v1alpha1.Spoke.parser(), - extensionRegistry); - if (spokesBuilder_ == null) { - ensureSpokesIsMutable(); - spokes_.add(m); - } else { - spokesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.networkconnectivity.v1alpha1.Spoke m = + input.readMessage( + com.google.cloud.networkconnectivity.v1alpha1.Spoke.parser(), + extensionRegistry); + if (spokesBuilder_ == null) { + ensureSpokesIsMutable(); + spokes_.add(m); + } else { + spokesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,21 +714,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List spokes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSpokesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - spokes_ = new java.util.ArrayList(spokes_); + spokes_ = + new java.util.ArrayList(spokes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> spokesBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + spokesBuilder_; /** + * + * *
      * Spokes to be returned.
      * 
@@ -679,6 +751,8 @@ public java.util.List getSp } } /** + * + * *
      * Spokes to be returned.
      * 
@@ -693,6 +767,8 @@ public int getSpokesCount() { } } /** + * + * *
      * Spokes to be returned.
      * 
@@ -707,14 +783,15 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpokes(int index) } } /** + * + * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public Builder setSpokes( - int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { + public Builder setSpokes(int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -728,6 +805,8 @@ public Builder setSpokes( return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -746,6 +825,8 @@ public Builder setSpokes( return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -766,14 +847,15 @@ public Builder addSpokes(com.google.cloud.networkconnectivity.v1alpha1.Spoke val return this; } /** + * + * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public Builder addSpokes( - int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { + public Builder addSpokes(int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -787,6 +869,8 @@ public Builder addSpokes( return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -805,6 +889,8 @@ public Builder addSpokes( return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -823,6 +909,8 @@ public Builder addSpokes( return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -833,8 +921,7 @@ public Builder addAllSpokes( java.lang.Iterable values) { if (spokesBuilder_ == null) { ensureSpokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, spokes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spokes_); onChanged(); } else { spokesBuilder_.addAllMessages(values); @@ -842,6 +929,8 @@ public Builder addAllSpokes( return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -859,6 +948,8 @@ public Builder clearSpokes() { return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -876,17 +967,20 @@ public Builder removeSpokes(int index) { return this; } /** + * + * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokesBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokesBuilder(int index) { return getSpokesFieldBuilder().getBuilder(index); } /** + * + * *
      * Spokes to be returned.
      * 
@@ -896,19 +990,22 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokesBuil public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrBuilder( int index) { if (spokesBuilder_ == null) { - return spokes_.get(index); } else { + return spokes_.get(index); + } else { return spokesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public java.util.List - getSpokesOrBuilderList() { + public java.util.List + getSpokesOrBuilderList() { if (spokesBuilder_ != null) { return spokesBuilder_.getMessageOrBuilderList(); } else { @@ -916,6 +1013,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrB } } /** + * + * *
      * Spokes to be returned.
      * 
@@ -923,42 +1022,49 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrB * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuilder() { - return getSpokesFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); + return getSpokesFieldBuilder() + .addBuilder(com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); } /** + * + * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuilder( - int index) { - return getSpokesFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuilder(int index) { + return getSpokesFieldBuilder() + .addBuilder( + index, com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); } /** + * + * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public java.util.List - getSpokesBuilderList() { + public java.util.List + getSpokesBuilderList() { return getSpokesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> getSpokesFieldBuilder() { if (spokesBuilder_ == null) { - spokesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( - spokes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + spokesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( + spokes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); spokes_ = null; } return spokesBuilder_; @@ -966,19 +1072,21 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuil private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -987,21 +1095,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1009,30 +1118,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1158,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1181,52 @@ public Builder setNextPageTokenBytes( 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * 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. */ @@ -1104,76 +1234,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) { - if (value == null) { throw new NullPointerException(); } + 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(); } + 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) { + 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() { @@ -1183,26 +1327,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) { - if (value == null) { throw new NullPointerException(); } + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1212,41 +1360,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse(); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1258,9 +1408,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java index cd1aaeb8ddaf..f961b406b6ac 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListSpokesResponseOrBuilder extends +public interface ListSpokesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Spokes to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - java.util.List - getSpokesList(); + java.util.List getSpokesList(); /** + * + * *
    * Spokes to be returned.
    * 
@@ -25,6 +44,8 @@ public interface ListSpokesResponseOrBuilder extends */ com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpokes(int index); /** + * + * *
    * Spokes to be returned.
    * 
@@ -33,84 +54,102 @@ public interface ListSpokesResponseOrBuilder extends */ int getSpokesCount(); /** + * + * *
    * Spokes to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - java.util.List + java.util.List getSpokesOrBuilderList(); /** + * + * *
    * Spokes to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrBuilder( - int index); + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrBuilder(int index); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java index adc9f5345b26..e602957e7330 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/common.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,37 +46,42 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -66,11 +89,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -78,11 +105,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -92,11 +122,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -104,11 +138,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -116,11 +154,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -128,14 +169,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -144,29 +189,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -175,14 +220,18 @@ public java.lang.String getTarget() { } public static final int VERB_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -191,29 +240,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -222,14 +271,18 @@ public java.lang.String getVerb() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -238,29 +291,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -271,6 +324,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -279,6 +334,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -287,14 +343,18 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -303,29 +363,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -334,6 +394,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -345,8 +406,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -378,12 +438,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_); @@ -395,8 +453,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_); @@ -409,33 +466,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.networkconnectivity.v1alpha1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other = (com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) obj; + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other = + (com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -462,8 +513,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) + getUnknownFields().hashCode(); @@ -472,129 +522,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) com.google.cloud.networkconnectivity.v1alpha1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -618,13 +675,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.getDefaultInstance(); } @@ -639,23 +697,23 @@ public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result = new com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result = + new com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -678,46 +736,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Operati public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other) { + if (other + == com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -773,51 +835,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -827,43 +893,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time 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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -879,14 +965,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -897,17 +986,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -920,11 +1013,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -937,11 +1034,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -949,36 +1050,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -986,24 +1099,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1014,11 +1138,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1034,14 +1161,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1052,17 +1181,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1075,11 +1207,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1092,11 +1227,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1104,36 +1242,44 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1141,18 +1287,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1161,20 +1309,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1182,28 +1331,35 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1213,17 +1369,21 @@ public Builder clearTarget() { return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1233,18 +1393,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1253,20 +1415,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1274,28 +1437,35 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1305,17 +1475,21 @@ public Builder clearVerb() { return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1325,18 +1499,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1345,20 +1521,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1366,28 +1543,35 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1397,17 +1581,21 @@ public Builder clearStatusMessage() { return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1415,8 +1603,10 @@ public Builder setStatusMessageBytes( return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1425,6 +1615,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1432,6 +1623,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1440,17 +1633,20 @@ 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1459,6 +1655,7 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1470,18 +1667,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1490,20 +1689,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1511,28 +1711,35 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1542,26 +1749,30 @@ public Builder clearApiVersion() { return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1571,41 +1782,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) - private static final com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata(); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1617,9 +1830,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java index 9df65555334e..984bdadf0f01 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/common.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java similarity index 63% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java index a16aa2f28465..0b6f52d0e51d 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * RouterAppliance represents a Router appliance which is specified by a VM URI
  * and a NIC address.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance}
  */
-public final class RouterApplianceInstance extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RouterApplianceInstance extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance)
     RouterApplianceInstanceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RouterApplianceInstance.newBuilder() to construct.
   private RouterApplianceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RouterApplianceInstance() {
     virtualMachine_ = "";
     ipAddress_ = "";
@@ -28,38 +46,43 @@ private RouterApplianceInstance() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RouterApplianceInstance();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
+            com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class,
+            com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
   }
 
   public static final int VIRTUAL_MACHINE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object virtualMachine_ = "";
   /**
+   *
+   *
    * 
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The virtualMachine. */ @java.lang.Override @@ -68,29 +91,29 @@ public java.lang.String getVirtualMachine() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; } } /** + * + * *
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for virtualMachine. */ @java.lang.Override - public com.google.protobuf.ByteString - getVirtualMachineBytes() { + public com.google.protobuf.ByteString getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -99,14 +122,18 @@ public java.lang.String getVirtualMachine() { } public static final int IP_ADDRESS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object ipAddress_ = ""; /** + * + * *
    * The IP address of the network interface to use for peering.
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ @java.lang.Override @@ -115,29 +142,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; } } /** + * + * *
    * The IP address of the network interface to use for peering.
    * 
* * 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 { @@ -146,22 +173,24 @@ public java.lang.String getIpAddress() { } public static final int NETWORK_INTERFACE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object networkInterface_ = ""; /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface + * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The networkInterface. */ @java.lang.Override - @java.lang.Deprecated public java.lang.String getNetworkInterface() { + @java.lang.Deprecated + public java.lang.String getNetworkInterface() { java.lang.Object ref = networkInterface_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkInterface_ = s; return s; @@ -169,18 +198,18 @@ public java.lang.String getIpAddress() { } /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface + * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The bytes for networkInterface. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNetworkInterfaceBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getNetworkInterfaceBytes() { java.lang.Object ref = networkInterface_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); networkInterface_ = b; return b; } else { @@ -189,6 +218,7 @@ public java.lang.String getIpAddress() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +230,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualMachine_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, virtualMachine_); } @@ -237,19 +266,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.networkconnectivity.v1alpha1.RouterApplianceInstance)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other = (com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) obj; + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other = + (com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) obj; - if (!getVirtualMachine() - .equals(other.getVirtualMachine())) return false; - if (!getIpAddress() - .equals(other.getIpAddress())) return false; - if (!getNetworkInterface() - .equals(other.getNetworkInterface())) return false; + if (!getVirtualMachine().equals(other.getVirtualMachine())) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; + if (!getNetworkInterface().equals(other.getNetworkInterface())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -273,96 +300,105 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance 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.networkconnectivity.v1alpha1.RouterApplianceInstance + 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.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * RouterAppliance represents a Router appliance which is specified by a VM URI
    * and a NIC address.
@@ -370,33 +406,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance)
       com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
+              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class,
+              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
     }
 
-    // Construct using com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.newBuilder()
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -408,14 +444,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getDefaultInstanceForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance();
+    public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
+        getDefaultInstanceForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -429,13 +467,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance bui
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance buildPartial() {
-      com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result = new com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result =
+          new com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result) {
+    private void buildPartial0(
+        com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.virtualMachine_ = virtualMachine_;
@@ -452,46 +494,51 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.RouterA
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance)other);
+        return mergeFrom(
+            (com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other) {
-      if (other == com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other) {
+      if (other
+          == com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
+              .getDefaultInstance()) return this;
       if (!other.getVirtualMachine().isEmpty()) {
         virtualMachine_ = other.virtualMachine_;
         bitField0_ |= 0x00000001;
@@ -533,27 +580,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              virtualMachine_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              networkInterface_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 18
-            case 26: {
-              ipAddress_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                virtualMachine_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                networkInterface_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 18
+            case 26:
+              {
+                ipAddress_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -563,22 +614,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object virtualMachine_ = "";
     /**
+     *
+     *
      * 
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The virtualMachine. */ public java.lang.String getVirtualMachine() { java.lang.Object ref = virtualMachine_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; @@ -587,20 +641,21 @@ public java.lang.String getVirtualMachine() { } } /** + * + * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for virtualMachine. */ - public com.google.protobuf.ByteString - getVirtualMachineBytes() { + public com.google.protobuf.ByteString getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -608,28 +663,35 @@ public java.lang.String getVirtualMachine() { } } /** + * + * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @param value The virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachine( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVirtualMachine(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } virtualMachine_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearVirtualMachine() { @@ -639,17 +701,21 @@ public Builder clearVirtualMachine() { return this; } /** + * + * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachineBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVirtualMachineBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); virtualMachine_ = value; bitField0_ |= 0x00000001; @@ -659,18 +725,20 @@ public Builder setVirtualMachineBytes( private java.lang.Object ipAddress_ = ""; /** + * + * *
      * The IP address of the network interface to use for peering.
      * 
* * 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; @@ -679,20 +747,21 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The IP address of the network interface to use for peering.
      * 
* * 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 { @@ -700,28 +769,35 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The IP address of the network interface to use for peering.
      * 
* * 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(); } + public Builder setIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ipAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The IP address of the network interface to use for peering.
      * 
* * string ip_address = 3; + * * @return This builder for chaining. */ public Builder clearIpAddress() { @@ -731,17 +807,21 @@ public Builder clearIpAddress() { return this; } /** + * + * *
      * The IP address of the network interface to use for peering.
      * 
* * 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(); } + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ipAddress_ = value; bitField0_ |= 0x00000002; @@ -752,15 +832,17 @@ public Builder setIpAddressBytes( private java.lang.Object networkInterface_ = ""; /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated + * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is + * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The networkInterface. */ - @java.lang.Deprecated public java.lang.String getNetworkInterface() { + @java.lang.Deprecated + public java.lang.String getNetworkInterface() { java.lang.Object ref = networkInterface_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkInterface_ = s; return s; @@ -770,17 +852,18 @@ public Builder setIpAddressBytes( } /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated + * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is + * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The bytes for networkInterface. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getNetworkInterfaceBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getNetworkInterfaceBytes() { java.lang.Object ref = networkInterface_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); networkInterface_ = b; return b; } else { @@ -789,14 +872,18 @@ public Builder setIpAddressBytes( } /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated + * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is + * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @param value The networkInterface to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setNetworkInterface( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder setNetworkInterface(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } networkInterface_ = value; bitField0_ |= 0x00000004; onChanged(); @@ -804,11 +891,14 @@ public Builder setIpAddressBytes( } /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated + * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is + * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearNetworkInterface() { + @java.lang.Deprecated + public Builder clearNetworkInterface() { networkInterface_ = getDefaultInstance().getNetworkInterface(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); @@ -816,23 +906,27 @@ public Builder setIpAddressBytes( } /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated + * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is + * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @param value The bytes for networkInterface to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setNetworkInterfaceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder setNetworkInterfaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); networkInterface_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -842,41 +936,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) - private static final com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance(); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouterApplianceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouterApplianceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -888,9 +984,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java similarity index 55% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java index 09034b583365..9d10c38aef90 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java @@ -1,65 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface RouterApplianceInstanceOrBuilder extends +public interface RouterApplianceInstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The virtualMachine. */ java.lang.String getVirtualMachine(); /** + * + * *
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for virtualMachine. */ - com.google.protobuf.ByteString - getVirtualMachineBytes(); + com.google.protobuf.ByteString getVirtualMachineBytes(); /** + * + * *
    * The IP address of the network interface to use for peering.
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ java.lang.String getIpAddress(); /** + * + * *
    * The IP address of the network interface to use for peering.
    * 
* * string ip_address = 3; + * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString - getIpAddressBytes(); + com.google.protobuf.ByteString getIpAddressBytes(); /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface + * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The networkInterface. */ - @java.lang.Deprecated java.lang.String getNetworkInterface(); + @java.lang.Deprecated + java.lang.String getNetworkInterface(); /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface + * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The bytes for networkInterface. */ - @java.lang.Deprecated com.google.protobuf.ByteString - getNetworkInterfaceBytes(); + @java.lang.Deprecated + com.google.protobuf.ByteString getNetworkInterfaceBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java similarity index 66% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java index b425a46ccf5c..482de452ad94 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * A Spoke is an  abstraction of a network attachment being attached
  * to a Hub. A Spoke can be underlying a VPN tunnel, a
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Spoke}
  */
-public final class Spoke extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Spoke extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.Spoke)
     SpokeOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Spoke.newBuilder() to construct.
   private Spoke(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Spoke() {
     name_ = "";
     description_ = "";
@@ -34,50 +52,54 @@ private Spoke() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Spoke();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
+            com.google.cloud.networkconnectivity.v1alpha1.Spoke.class,
+            com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -86,29 +108,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; } } /** + * + * *
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -119,11 +141,14 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -131,11 +156,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ @java.lang.Override @@ -143,6 +171,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time when the Spoke was created.
    * 
@@ -157,11 +187,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -169,11 +202,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ @java.lang.Override @@ -181,6 +217,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The time when the Spoke was updated.
    * 
@@ -193,32 +231,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_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.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - 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_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * User-defined labels.
    * 
@@ -226,20 +266,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** + * + * *
    * User-defined labels.
    * 
@@ -251,6 +292,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * User-defined labels.
    * 
@@ -258,17 +301,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + 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; } /** + * + * *
    * User-defined labels.
    * 
@@ -276,11 +321,11 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new 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(); } @@ -288,14 +333,18 @@ public java.lang.String getLabelsOrThrow( } public static final int DESCRIPTION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Short description of the spoke resource
    * 
* * string description = 5; + * * @return The description. */ @java.lang.Override @@ -304,29 +353,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Short description of the spoke resource
    * 
* * string description = 5; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -335,14 +384,18 @@ public java.lang.String getDescription() { } public static final int HUB_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object hub_ = ""; /** + * + * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return The hub. */ @java.lang.Override @@ -351,29 +404,29 @@ public java.lang.String getHub() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; } } /** + * + * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for hub. */ @java.lang.Override - public com.google.protobuf.ByteString - getHubBytes() { + public com.google.protobuf.ByteString getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hub_ = b; return b; } else { @@ -382,37 +435,49 @@ public java.lang.String getHub() { } public static final int LINKED_VPN_TUNNELS_FIELD_NUMBER = 12; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList linkedVpnTunnels_; /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the linkedVpnTunnels. */ - public com.google.protobuf.ProtocolStringList - getLinkedVpnTunnelsList() { + public com.google.protobuf.ProtocolStringList getLinkedVpnTunnelsList() { return linkedVpnTunnels_; } /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return The count of linkedVpnTunnels. */ public int getLinkedVpnTunnelsCount() { return linkedVpnTunnels_.size(); } /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The linkedVpnTunnels at the given index. */ @@ -420,51 +485,69 @@ public java.lang.String getLinkedVpnTunnels(int index) { return linkedVpnTunnels_.get(index); } /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the linkedVpnTunnels at the given index. */ - public com.google.protobuf.ByteString - getLinkedVpnTunnelsBytes(int index) { + public com.google.protobuf.ByteString getLinkedVpnTunnelsBytes(int index) { return linkedVpnTunnels_.getByteString(index); } public static final int LINKED_INTERCONNECT_ATTACHMENTS_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList linkedInterconnectAttachments_; /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the linkedInterconnectAttachments. */ - public com.google.protobuf.ProtocolStringList - getLinkedInterconnectAttachmentsList() { + public com.google.protobuf.ProtocolStringList getLinkedInterconnectAttachmentsList() { return linkedInterconnectAttachments_; } /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return The count of linkedInterconnectAttachments. */ public int getLinkedInterconnectAttachmentsCount() { return linkedInterconnectAttachments_.size(); } /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The linkedInterconnectAttachments at the given index. */ @@ -472,84 +555,116 @@ public java.lang.String getLinkedInterconnectAttachments(int index) { return linkedInterconnectAttachments_.get(index); } /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the linkedInterconnectAttachments at the given index. */ - public com.google.protobuf.ByteString - getLinkedInterconnectAttachmentsBytes(int index) { + public com.google.protobuf.ByteString getLinkedInterconnectAttachmentsBytes(int index) { return linkedInterconnectAttachments_.getByteString(index); } public static final int LINKED_ROUTER_APPLIANCE_INSTANCES_FIELD_NUMBER = 14; + @SuppressWarnings("serial") - private java.util.List linkedRouterApplianceInstances_; + private java.util.List + linkedRouterApplianceInstances_; /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ @java.lang.Override - public java.util.List getLinkedRouterApplianceInstancesList() { + public java.util.List + getLinkedRouterApplianceInstancesList() { return linkedRouterApplianceInstances_; } /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> getLinkedRouterApplianceInstancesOrBuilderList() { return linkedRouterApplianceInstances_; } /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ @java.lang.Override public int getLinkedRouterApplianceInstancesCount() { return linkedRouterApplianceInstances_.size(); } /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getLinkedRouterApplianceInstances(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + getLinkedRouterApplianceInstances(int index) { return linkedRouterApplianceInstances_.get(index); } /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder getLinkedRouterApplianceInstancesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder + getLinkedRouterApplianceInstancesOrBuilder(int index) { return linkedRouterApplianceInstances_.get(index); } public static final int UNIQUE_ID_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -557,6 +672,7 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBu
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ @java.lang.Override @@ -565,14 +681,15 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -580,16 +697,15 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -600,30 +716,46 @@ public java.lang.String getUniqueId() { public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.networkconnectivity.v1alpha1.State getState() { + com.google.cloud.networkconnectivity.v1alpha1.State result = + com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null + ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -635,8 +767,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -646,12 +777,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -665,12 +792,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 12, linkedVpnTunnels_.getRaw(i)); } for (int i = 0; i < linkedInterconnectAttachments_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, linkedInterconnectAttachments_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 13, linkedInterconnectAttachments_.getRaw(i)); } for (int i = 0; i < linkedRouterApplianceInstances_.size(); i++) { output.writeMessage(14, linkedRouterApplianceInstances_.get(i)); } - if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(15, state_); } getUnknownFields().writeTo(output); @@ -686,22 +815,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -729,12 +856,13 @@ public int getSerializedSize() { size += 1 * getLinkedInterconnectAttachmentsList().size(); } for (int i = 0; i < linkedRouterApplianceInstances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, linkedRouterApplianceInstances_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, linkedRouterApplianceInstances_.get(i)); } - if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, state_); + if (state_ + != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -744,39 +872,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.networkconnectivity.v1alpha1.Spoke)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.Spoke other = (com.google.cloud.networkconnectivity.v1alpha1.Spoke) obj; + com.google.cloud.networkconnectivity.v1alpha1.Spoke other = + (com.google.cloud.networkconnectivity.v1alpha1.Spoke) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getHub() - .equals(other.getHub())) return false; - if (!getLinkedVpnTunnelsList() - .equals(other.getLinkedVpnTunnelsList())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getHub().equals(other.getHub())) return false; + if (!getLinkedVpnTunnelsList().equals(other.getLinkedVpnTunnelsList())) return false; if (!getLinkedInterconnectAttachmentsList() .equals(other.getLinkedInterconnectAttachmentsList())) return false; if (!getLinkedRouterApplianceInstancesList() .equals(other.getLinkedRouterApplianceInstancesList())) return false; - if (!getUniqueId() - .equals(other.getUniqueId())) return false; + if (!getUniqueId().equals(other.getUniqueId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -829,96 +950,103 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.Spoke prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Spoke is an  abstraction of a network attachment being attached
    * to a Hub. A Spoke can be underlying a VPN tunnel, a
@@ -927,55 +1055,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Spoke}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.Spoke)
       com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
+              com.google.cloud.networkconnectivity.v1alpha1.Spoke.class,
+              com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1alpha1.Spoke.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1011,9 +1136,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
     }
 
     @java.lang.Override
@@ -1032,14 +1157,18 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1alpha1.Spoke buildPartial() {
-      com.google.cloud.networkconnectivity.v1alpha1.Spoke result = new com.google.cloud.networkconnectivity.v1alpha1.Spoke(this);
+      com.google.cloud.networkconnectivity.v1alpha1.Spoke result =
+          new com.google.cloud.networkconnectivity.v1alpha1.Spoke(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.Spoke result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1alpha1.Spoke result) {
       if (((bitField0_ & 0x00000040) != 0)) {
         linkedVpnTunnels_ = linkedVpnTunnels_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000040);
@@ -1052,7 +1181,8 @@ private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1a
       result.linkedInterconnectAttachments_ = linkedInterconnectAttachments_;
       if (linkedRouterApplianceInstancesBuilder_ == null) {
         if (((bitField0_ & 0x00000100) != 0)) {
-          linkedRouterApplianceInstances_ = java.util.Collections.unmodifiableList(linkedRouterApplianceInstances_);
+          linkedRouterApplianceInstances_ =
+              java.util.Collections.unmodifiableList(linkedRouterApplianceInstances_);
           bitField0_ = (bitField0_ & ~0x00000100);
         }
         result.linkedRouterApplianceInstances_ = linkedRouterApplianceInstances_;
@@ -1067,14 +1197,10 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Spoke r
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -1098,38 +1224,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Spoke r
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.Spoke) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Spoke)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Spoke) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1137,7 +1264,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Spoke other) {
-      if (other == com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1149,8 +1277,7 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Spoke oth
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -1200,11 +1327,13 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Spoke oth
             linkedRouterApplianceInstancesBuilder_ = null;
             linkedRouterApplianceInstances_ = other.linkedRouterApplianceInstances_;
             bitField0_ = (bitField0_ & ~0x00000100);
-            linkedRouterApplianceInstancesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getLinkedRouterApplianceInstancesFieldBuilder() : null;
+            linkedRouterApplianceInstancesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getLinkedRouterApplianceInstancesFieldBuilder()
+                    : null;
           } else {
-            linkedRouterApplianceInstancesBuilder_.addAllMessages(other.linkedRouterApplianceInstances_);
+            linkedRouterApplianceInstancesBuilder_.addAllMessages(
+                other.linkedRouterApplianceInstances_);
           }
         }
       }
@@ -1242,85 +1371,96 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              hub_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 90: {
-              uniqueId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 90
-            case 98: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureLinkedVpnTunnelsIsMutable();
-              linkedVpnTunnels_.add(s);
-              break;
-            } // case 98
-            case 106: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureLinkedInterconnectAttachmentsIsMutable();
-              linkedInterconnectAttachments_.add(s);
-              break;
-            } // case 106
-            case 114: {
-              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance m =
-                  input.readMessage(
-                      com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.parser(),
-                      extensionRegistry);
-              if (linkedRouterApplianceInstancesBuilder_ == null) {
-                ensureLinkedRouterApplianceInstancesIsMutable();
-                linkedRouterApplianceInstances_.add(m);
-              } else {
-                linkedRouterApplianceInstancesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 114
-            case 120: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 120
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                hub_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 90:
+              {
+                uniqueId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 90
+            case 98:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureLinkedVpnTunnelsIsMutable();
+                linkedVpnTunnels_.add(s);
+                break;
+              } // case 98
+            case 106:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureLinkedInterconnectAttachmentsIsMutable();
+                linkedInterconnectAttachments_.add(s);
+                break;
+              } // case 106
+            case 114:
+              {
+                com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance m =
+                    input.readMessage(
+                        com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
+                            .parser(),
+                        extensionRegistry);
+                if (linkedRouterApplianceInstancesBuilder_ == null) {
+                  ensureLinkedRouterApplianceInstancesIsMutable();
+                  linkedRouterApplianceInstances_.add(m);
+                } else {
+                  linkedRouterApplianceInstancesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 114
+            case 120:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 120
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1330,22 +1470,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -1354,20 +1497,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -1375,28 +1519,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1406,17 +1557,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1426,34 +1581,47 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The time when the Spoke was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The time when the Spoke was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; + * * @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 when the Spoke was created.
      * 
@@ -1474,14 +1642,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the Spoke was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1492,6 +1661,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time when the Spoke was created.
      * 
@@ -1500,9 +1671,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1515,6 +1686,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the Spoke was created.
      * 
@@ -1532,6 +1705,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time when the Spoke was created.
      * 
@@ -1544,6 +1719,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the Spoke was created.
      * 
@@ -1554,11 +1731,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time when the Spoke was created.
      * 
@@ -1566,14 +1746,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> 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_; @@ -1581,34 +1764,47 @@ 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_; /** + * + * *
      * The time when the Spoke was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The time when the Spoke was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @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(); } } /** + * + * *
      * The time when the Spoke was updated.
      * 
@@ -1629,14 +1825,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the Spoke was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1647,6 +1844,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * The time when the Spoke was updated.
      * 
@@ -1655,9 +1854,9 @@ public Builder setUpdateTime( */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1670,6 +1869,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the Spoke was updated.
      * 
@@ -1687,6 +1888,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * The time when the Spoke was updated.
      * 
@@ -1699,6 +1902,8 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the Spoke was updated.
      * 
@@ -1709,11 +1914,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * The time when the Spoke was updated.
      * 
@@ -1721,34 +1929,35 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1757,10 +1966,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * User-defined labels.
      * 
@@ -1768,20 +1980,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** + * + * *
      * User-defined labels.
      * 
@@ -1793,6 +2006,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * User-defined labels.
      * 
@@ -1800,17 +2015,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + 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; } /** + * + * *
      * User-defined labels.
      * 
@@ -1818,91 +2035,95 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new 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(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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); + 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); bitField0_ |= 0x00000008; return this; } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object description_ = ""; /** + * + * *
      * Short description of the spoke resource
      * 
* * string description = 5; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1911,20 +2132,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Short description of the spoke resource
      * 
* * string description = 5; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1932,28 +2154,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Short description of the spoke resource
      * 
* * string description = 5; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Short description of the spoke resource
      * 
* * string description = 5; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1963,17 +2192,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Short description of the spoke resource
      * 
* * string description = 5; + * * @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(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -1983,18 +2216,20 @@ public Builder setDescriptionBytes( private java.lang.Object hub_ = ""; /** + * + * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return The hub. */ public java.lang.String getHub() { java.lang.Object ref = hub_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; @@ -2003,20 +2238,21 @@ public java.lang.String getHub() { } } /** + * + * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for hub. */ - public com.google.protobuf.ByteString - getHubBytes() { + public com.google.protobuf.ByteString getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hub_ = b; return b; } else { @@ -2024,28 +2260,35 @@ public java.lang.String getHub() { } } /** + * + * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @param value The hub to set. * @return This builder for chaining. */ - public Builder setHub( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHub(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hub_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearHub() { @@ -2055,17 +2298,21 @@ public Builder clearHub() { return this; } /** + * + * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for hub to set. * @return This builder for chaining. */ - public Builder setHubBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHubBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hub_ = value; bitField0_ |= 0x00000020; @@ -2073,42 +2320,55 @@ public Builder setHubBytes( return this; } - private com.google.protobuf.LazyStringList linkedVpnTunnels_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList linkedVpnTunnels_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLinkedVpnTunnelsIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { linkedVpnTunnels_ = new com.google.protobuf.LazyStringArrayList(linkedVpnTunnels_); bitField0_ |= 0x00000040; - } + } } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the linkedVpnTunnels. */ - public com.google.protobuf.ProtocolStringList - getLinkedVpnTunnelsList() { + public com.google.protobuf.ProtocolStringList getLinkedVpnTunnelsList() { return linkedVpnTunnels_.getUnmodifiableView(); } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return The count of linkedVpnTunnels. */ public int getLinkedVpnTunnelsCount() { return linkedVpnTunnels_.size(); } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The linkedVpnTunnels at the given index. */ @@ -2116,76 +2376,95 @@ public java.lang.String getLinkedVpnTunnels(int index) { return linkedVpnTunnels_.get(index); } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the linkedVpnTunnels at the given index. */ - public com.google.protobuf.ByteString - getLinkedVpnTunnelsBytes(int index) { + public com.google.protobuf.ByteString getLinkedVpnTunnelsBytes(int index) { return linkedVpnTunnels_.getByteString(index); } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The linkedVpnTunnels to set. * @return This builder for chaining. */ - public Builder setLinkedVpnTunnels( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLinkedVpnTunnels(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLinkedVpnTunnelsIsMutable(); linkedVpnTunnels_.set(index, value); onChanged(); return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param value The linkedVpnTunnels to add. * @return This builder for chaining. */ - public Builder addLinkedVpnTunnels( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLinkedVpnTunnels(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLinkedVpnTunnelsIsMutable(); linkedVpnTunnels_.add(value); onChanged(); return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param values The linkedVpnTunnels to add. * @return This builder for chaining. */ - public Builder addAllLinkedVpnTunnels( - java.lang.Iterable values) { + public Builder addAllLinkedVpnTunnels(java.lang.Iterable values) { ensureLinkedVpnTunnelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, linkedVpnTunnels_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, linkedVpnTunnels_); onChanged(); return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearLinkedVpnTunnels() { @@ -2195,17 +2474,22 @@ public Builder clearLinkedVpnTunnels() { return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the linkedVpnTunnels to add. * @return This builder for chaining. */ - public Builder addLinkedVpnTunnelsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLinkedVpnTunnelsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureLinkedVpnTunnelsIsMutable(); linkedVpnTunnels_.add(value); @@ -2213,42 +2497,59 @@ public Builder addLinkedVpnTunnelsBytes( return this; } - private com.google.protobuf.LazyStringList linkedInterconnectAttachments_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList linkedInterconnectAttachments_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLinkedInterconnectAttachmentsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - linkedInterconnectAttachments_ = new com.google.protobuf.LazyStringArrayList(linkedInterconnectAttachments_); + linkedInterconnectAttachments_ = + new com.google.protobuf.LazyStringArrayList(linkedInterconnectAttachments_); bitField0_ |= 0x00000080; - } + } } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the linkedInterconnectAttachments. */ - public com.google.protobuf.ProtocolStringList - getLinkedInterconnectAttachmentsList() { + public com.google.protobuf.ProtocolStringList getLinkedInterconnectAttachmentsList() { return linkedInterconnectAttachments_.getUnmodifiableView(); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return The count of linkedInterconnectAttachments. */ public int getLinkedInterconnectAttachmentsCount() { return linkedInterconnectAttachments_.size(); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The linkedInterconnectAttachments at the given index. */ @@ -2256,59 +2557,80 @@ public java.lang.String getLinkedInterconnectAttachments(int index) { return linkedInterconnectAttachments_.get(index); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the linkedInterconnectAttachments at the given index. */ - public com.google.protobuf.ByteString - getLinkedInterconnectAttachmentsBytes(int index) { + public com.google.protobuf.ByteString getLinkedInterconnectAttachmentsBytes(int index) { return linkedInterconnectAttachments_.getByteString(index); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The linkedInterconnectAttachments to set. * @return This builder for chaining. */ - public Builder setLinkedInterconnectAttachments( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLinkedInterconnectAttachments(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLinkedInterconnectAttachmentsIsMutable(); linkedInterconnectAttachments_.set(index, value); onChanged(); return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param value The linkedInterconnectAttachments to add. * @return This builder for chaining. */ - public Builder addLinkedInterconnectAttachments( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLinkedInterconnectAttachments(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLinkedInterconnectAttachmentsIsMutable(); linkedInterconnectAttachments_.add(value); onChanged(); return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param values The linkedInterconnectAttachments to add. * @return This builder for chaining. */ @@ -2321,11 +2643,16 @@ public Builder addAllLinkedInterconnectAttachments( return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearLinkedInterconnectAttachments() { @@ -2335,17 +2662,23 @@ public Builder clearLinkedInterconnectAttachments() { return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the linkedInterconnectAttachments to add. * @return This builder for chaining. */ - public Builder addLinkedInterconnectAttachmentsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLinkedInterconnectAttachmentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureLinkedInterconnectAttachmentsIsMutable(); linkedInterconnectAttachments_.add(value); @@ -2353,26 +2686,38 @@ public Builder addLinkedInterconnectAttachmentsBytes( return this; } - private java.util.List linkedRouterApplianceInstances_ = - java.util.Collections.emptyList(); + private java.util.List + linkedRouterApplianceInstances_ = java.util.Collections.emptyList(); + private void ensureLinkedRouterApplianceInstancesIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { - linkedRouterApplianceInstances_ = new java.util.ArrayList(linkedRouterApplianceInstances_); + linkedRouterApplianceInstances_ = + new java.util.ArrayList< + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance>( + linkedRouterApplianceInstances_); bitField0_ |= 0x00000100; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> linkedRouterApplianceInstancesBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> + linkedRouterApplianceInstancesBuilder_; /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public java.util.List getLinkedRouterApplianceInstancesList() { + public java.util.List + getLinkedRouterApplianceInstancesList() { if (linkedRouterApplianceInstancesBuilder_ == null) { return java.util.Collections.unmodifiableList(linkedRouterApplianceInstances_); } else { @@ -2380,11 +2725,15 @@ public java.util.List * The URIs of linked Router appliance resources *
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public int getLinkedRouterApplianceInstancesCount() { if (linkedRouterApplianceInstancesBuilder_ == null) { @@ -2394,13 +2743,18 @@ public int getLinkedRouterApplianceInstancesCount() { } } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getLinkedRouterApplianceInstances(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + getLinkedRouterApplianceInstances(int index) { if (linkedRouterApplianceInstancesBuilder_ == null) { return linkedRouterApplianceInstances_.get(index); } else { @@ -2408,11 +2762,15 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance get } } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder setLinkedRouterApplianceInstances( int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { @@ -2429,14 +2787,20 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder setLinkedRouterApplianceInstances( - int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder builderForValue) { + int index, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder + builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); linkedRouterApplianceInstances_.set(index, builderForValue.build()); @@ -2447,13 +2811,18 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public Builder addLinkedRouterApplianceInstances(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { + public Builder addLinkedRouterApplianceInstances( + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { if (linkedRouterApplianceInstancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2467,11 +2836,15 @@ public Builder addLinkedRouterApplianceInstances(com.google.cloud.networkconnect return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder addLinkedRouterApplianceInstances( int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { @@ -2488,14 +2861,19 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder addLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder builderForValue) { + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder + builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); linkedRouterApplianceInstances_.add(builderForValue.build()); @@ -2506,14 +2884,20 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder addLinkedRouterApplianceInstances( - int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder builderForValue) { + int index, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder + builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); linkedRouterApplianceInstances_.add(index, builderForValue.build()); @@ -2524,14 +2908,20 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder addAllLinkedRouterApplianceInstances( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance> + values) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -2543,11 +2933,15 @@ public Builder addAllLinkedRouterApplianceInstances( return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder clearLinkedRouterApplianceInstances() { if (linkedRouterApplianceInstancesBuilder_ == null) { @@ -2560,11 +2954,15 @@ public Builder clearLinkedRouterApplianceInstances() { return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder removeLinkedRouterApplianceInstances(int index) { if (linkedRouterApplianceInstancesBuilder_ == null) { @@ -2577,39 +2975,54 @@ public Builder removeLinkedRouterApplianceInstances(int index) { return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder getLinkedRouterApplianceInstancesBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder + getLinkedRouterApplianceInstancesBuilder(int index) { return getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(index); } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder getLinkedRouterApplianceInstancesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder + getLinkedRouterApplianceInstancesOrBuilder(int index) { if (linkedRouterApplianceInstancesBuilder_ == null) { - return linkedRouterApplianceInstances_.get(index); } else { + return linkedRouterApplianceInstances_.get(index); + } else { return linkedRouterApplianceInstancesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public java.util.List - getLinkedRouterApplianceInstancesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> + getLinkedRouterApplianceInstancesOrBuilderList() { if (linkedRouterApplianceInstancesBuilder_ != null) { return linkedRouterApplianceInstancesBuilder_.getMessageOrBuilderList(); } else { @@ -2617,45 +3030,70 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBu } } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder addLinkedRouterApplianceInstancesBuilder() { - return getLinkedRouterApplianceInstancesFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder + addLinkedRouterApplianceInstancesBuilder() { + return getLinkedRouterApplianceInstancesFieldBuilder() + .addBuilder( + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + .getDefaultInstance()); } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder addLinkedRouterApplianceInstancesBuilder( - int index) { - return getLinkedRouterApplianceInstancesFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder + addLinkedRouterApplianceInstancesBuilder(int index) { + return getLinkedRouterApplianceInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + .getDefaultInstance()); } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public java.util.List - getLinkedRouterApplianceInstancesBuilderList() { + public java.util.List< + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder> + getLinkedRouterApplianceInstancesBuilderList() { return getLinkedRouterApplianceInstancesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> getLinkedRouterApplianceInstancesFieldBuilder() { if (linkedRouterApplianceInstancesBuilder_ == null) { - linkedRouterApplianceInstancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder>( + linkedRouterApplianceInstancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder>( linkedRouterApplianceInstances_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), @@ -2667,6 +3105,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Bui private java.lang.Object uniqueId_ = ""; /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -2674,13 +3114,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Bui
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -2689,6 +3129,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -2696,15 +3138,14 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -2712,6 +3153,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -2719,18 +3162,22 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uniqueId_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -2738,6 +3185,7 @@ public Builder setUniqueId(
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -2747,6 +3195,8 @@ public Builder clearUniqueId() { return this; } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -2754,12 +3204,14 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000200; @@ -2769,22 +3221,33 @@ public Builder setUniqueIdBytes( private int state_ = 0; /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2795,24 +3258,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; + com.google.cloud.networkconnectivity.v1alpha1.State result = + com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null + ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2826,11 +3302,16 @@ public Builder setState(com.google.cloud.networkconnectivity.v1alpha1.State valu return this; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2839,9 +3320,9 @@ public Builder clearState() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2851,12 +3332,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.Spoke) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.Spoke) private static final com.google.cloud.networkconnectivity.v1alpha1.Spoke DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.Spoke(); } @@ -2865,27 +3346,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.Spoke getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Spoke parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Spoke parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2900,6 +3381,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.Spoke getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java similarity index 65% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java index eab4db8a11c2..2d619ff4a0d6 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java @@ -1,51 +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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface SpokeOrBuilder extends +public interface SpokeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.Spoke) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time when the Spoke was created.
    * 
@@ -55,24 +84,32 @@ public interface SpokeOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The time when the Spoke was updated.
    * 
@@ -82,6 +119,8 @@ public interface SpokeOrBuilder extends com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * User-defined labels.
    * 
@@ -90,30 +129,31 @@ public interface SpokeOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * User-defined labels.
    * 
@@ -121,187 +161,254 @@ boolean containsLabels( * map<string, string> labels = 4; */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Short description of the spoke resource
    * 
* * string description = 5; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Short description of the spoke resource
    * 
* * string description = 5; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return The hub. */ java.lang.String getHub(); /** + * + * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for hub. */ - com.google.protobuf.ByteString - getHubBytes(); + com.google.protobuf.ByteString getHubBytes(); /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the linkedVpnTunnels. */ - java.util.List - getLinkedVpnTunnelsList(); + java.util.List getLinkedVpnTunnelsList(); /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return The count of linkedVpnTunnels. */ int getLinkedVpnTunnelsCount(); /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The linkedVpnTunnels at the given index. */ java.lang.String getLinkedVpnTunnels(int index); /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the linkedVpnTunnels at the given index. */ - com.google.protobuf.ByteString - getLinkedVpnTunnelsBytes(int index); + com.google.protobuf.ByteString getLinkedVpnTunnelsBytes(int index); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the linkedInterconnectAttachments. */ - java.util.List - getLinkedInterconnectAttachmentsList(); + java.util.List getLinkedInterconnectAttachmentsList(); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return The count of linkedInterconnectAttachments. */ int getLinkedInterconnectAttachmentsCount(); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The linkedInterconnectAttachments at the given index. */ java.lang.String getLinkedInterconnectAttachments(int index); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the linkedInterconnectAttachments at the given index. */ - com.google.protobuf.ByteString - getLinkedInterconnectAttachmentsBytes(int index); + com.google.protobuf.ByteString getLinkedInterconnectAttachmentsBytes(int index); /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - java.util.List + java.util.List getLinkedRouterApplianceInstancesList(); /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getLinkedRouterApplianceInstances(int index); + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + getLinkedRouterApplianceInstances(int index); /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ int getLinkedRouterApplianceInstancesCount(); /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> getLinkedRouterApplianceInstancesOrBuilderList(); /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder getLinkedRouterApplianceInstancesOrBuilder( - int index); + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder + getLinkedRouterApplianceInstancesOrBuilder(int index); /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -309,10 +416,13 @@ com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder g
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ java.lang.String getUniqueId(); /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -320,26 +430,36 @@ com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder g
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString - getUniqueIdBytes(); + com.google.protobuf.ByteString getUniqueIdBytes(); /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.networkconnectivity.v1alpha1.State getState(); diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java similarity index 66% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java index 20edd63148a4..3b3ebc865572 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The State enum represents the lifecycle of a Network Connectivity Center
  * resource.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.networkconnectivity.v1alpha1.State}
  */
-public enum State
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum State implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * No state information available
    * 
@@ -22,6 +40,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
    * The resource's create operation is in progress
    * 
@@ -30,6 +50,8 @@ public enum State */ CREATING(1), /** + * + * *
    * The resource is active
    * 
@@ -38,6 +60,8 @@ public enum State */ ACTIVE(2), /** + * + * *
    * The resource's Delete operation is in progress
    * 
@@ -49,6 +73,8 @@ public enum State ; /** + * + * *
    * No state information available
    * 
@@ -57,6 +83,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The resource's create operation is in progress
    * 
@@ -65,6 +93,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
    * The resource is active
    * 
@@ -73,6 +103,8 @@ public enum State */ public static final int ACTIVE_VALUE = 2; /** + * + * *
    * The resource's Delete operation is in progress
    * 
@@ -81,7 +113,6 @@ public enum State */ public static final int DELETING_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -106,50 +137,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 ACTIVE; - case 3: return DELETING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + 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() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.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; @@ -165,4 +199,3 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1alpha1.State) } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java index af8c18df237a..6f3ae26bff5b 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Request for [HubService.UpdateHub][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest} */ -public final class UpdateHubRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateHubRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) UpdateHubRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateHubRequest.newBuilder() to construct. private UpdateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateHubRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -59,7 +80,9 @@ protected java.lang.Object newInstance(
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -67,6 +90,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -75,7 +100,9 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -83,6 +110,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -91,7 +120,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -101,11 +131,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int HUB_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; /** + * + * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ @java.lang.Override @@ -113,33 +148,49 @@ public boolean hasHub() { return hub_ != null; } /** + * + * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { - return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } /** + * + * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { - return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -155,6 +206,7 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -163,14 +215,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -186,16 +239,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -204,6 +256,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,8 +268,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -236,12 +288,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHub()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -254,25 +304,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.networkconnectivity.v1alpha1.UpdateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub() - .equals(other.getHub())) return false; + if (!getHub().equals(other.getHub())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,129 +348,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.UpdateHub][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -442,13 +497,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance(); } @@ -463,23 +519,23 @@ public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.hub_ = hubBuilder_ == null - ? hub_ - : hubBuilder_.build(); + result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -490,38 +546,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.UpdateH public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) other); } else { super.mergeFrom(other); return this; @@ -529,7 +586,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -567,31 +626,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getHubFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -601,12 +660,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -615,13 +680,17 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -630,17 +699,23 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -649,7 +724,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -665,6 +741,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -673,10 +751,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -687,6 +765,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -695,13 +775,14 @@ public Builder setUpdateMask(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -714,6 +795,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -722,7 +805,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -735,6 +819,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -743,7 +829,8 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -751,6 +838,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -759,17 +848,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -778,17 +871,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -796,39 +893,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> hubBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + hubBuilder_; /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } else { return hubBuilder_.getMessage(); } } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { @@ -844,11 +960,15 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { return this; } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setHub( com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder builderForValue) { @@ -862,17 +982,21 @@ public Builder setHub( return this; } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - hub_ != null && - hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && hub_ != null + && hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -885,11 +1009,15 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) return this; } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000002); @@ -902,11 +1030,15 @@ public Builder clearHub() { return this; } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000002; @@ -914,36 +1046,48 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() return getHubFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null ? - com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( - getHub(), - getParentForChildren(), - isClean()); + hubBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( + getHub(), getParentForChildren(), isClean()); hub_ = null; } return hubBuilder_; @@ -951,6 +1095,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -966,13 +1112,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -981,6 +1127,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -996,15 +1144,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1012,6 +1159,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1027,18 +1176,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1054,6 +1207,7 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1063,6 +1217,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1078,21 +1234,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1102,41 +1260,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1148,9 +1308,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java index 0646b5914e40..1a2cf0c696b7 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface UpdateHubRequestOrBuilder extends +public interface UpdateHubRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -16,11 +34,15 @@ public interface UpdateHubRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -29,11 +51,15 @@ public interface UpdateHubRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -42,38 +68,55 @@ public interface UpdateHubRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ boolean hasHub(); /** + * + * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ com.google.cloud.networkconnectivity.v1alpha1.Hub getHub(); /** + * + * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -89,10 +132,13 @@ public interface UpdateHubRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -108,8 +154,8 @@ public interface UpdateHubRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java index 9cf86439b9e7..649d740386b8 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Request for [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest} */ -public final class UpdateSpokeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateSpokeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) UpdateSpokeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateSpokeRequest.newBuilder() to construct. private UpdateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateSpokeRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -59,7 +80,9 @@ protected java.lang.Object newInstance(
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -67,6 +90,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -75,7 +100,9 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -83,6 +110,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -91,7 +120,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -101,11 +131,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int SPOKE_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; /** + * + * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ @java.lang.Override @@ -113,33 +148,49 @@ public boolean hasSpoke() { return spoke_ != null; } /** + * + * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } /** + * + * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -155,6 +206,7 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -163,14 +215,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -186,16 +239,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -204,6 +256,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,8 +268,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -236,12 +288,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpoke()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -254,25 +304,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.networkconnectivity.v1alpha1.UpdateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke() - .equals(other.getSpoke())) return false; + if (!getSpoke().equals(other.getSpoke())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,129 +348,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -442,13 +497,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance(); } @@ -463,23 +519,23 @@ public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.spoke_ = spokeBuilder_ == null - ? spoke_ - : spokeBuilder_.build(); + result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -490,46 +546,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.UpdateS public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -567,31 +627,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSpokeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -601,12 +661,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -615,13 +681,17 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -630,17 +700,23 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -649,7 +725,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -665,6 +742,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -673,10 +752,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -687,6 +766,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -695,13 +776,14 @@ public Builder setUpdateMask(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -714,6 +796,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -722,7 +806,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -735,6 +820,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -743,7 +830,8 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -751,6 +839,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -759,17 +849,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -778,17 +872,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -796,39 +894,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> spokeBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + spokeBuilder_; /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } else { return spokeBuilder_.getMessage(); } } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { @@ -844,11 +961,15 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke valu return this; } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSpoke( com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder builderForValue) { @@ -862,17 +983,21 @@ public Builder setSpoke( return this; } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - spoke_ != null && - spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && spoke_ != null + && spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -885,11 +1010,15 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke va return this; } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000002); @@ -902,11 +1031,15 @@ public Builder clearSpoke() { return this; } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000002; @@ -914,36 +1047,48 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuild return getSpokeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null ? - com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( - getSpoke(), - getParentForChildren(), - isClean()); + spokeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( + getSpoke(), getParentForChildren(), isClean()); spoke_ = null; } return spokeBuilder_; @@ -951,6 +1096,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -966,13 +1113,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -981,6 +1128,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -996,15 +1145,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1012,6 +1160,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1027,18 +1177,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1054,6 +1208,7 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1063,6 +1218,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1078,21 +1235,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1102,41 +1261,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1148,9 +1309,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java index 1d98b15275f3..122c9f806e3f 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface UpdateSpokeRequestOrBuilder extends +public interface UpdateSpokeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -16,11 +34,15 @@ public interface UpdateSpokeRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -29,11 +51,15 @@ public interface UpdateSpokeRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -42,38 +68,55 @@ public interface UpdateSpokeRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ boolean hasSpoke(); /** + * + * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke(); /** + * + * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -89,10 +132,13 @@ public interface UpdateSpokeRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -108,8 +154,8 @@ public interface UpdateSpokeRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetCredentialsProvider.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetCredentialsProvider.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetEndpoint.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetEndpoint.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRoute.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRoute.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRoute.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRouteLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRouteLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRouteLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRouteLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRoute.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRoute.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRoute.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteStringPolicybasedrouteString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteStringPolicybasedrouteString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteStringPolicybasedrouteString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteStringPolicybasedrouteString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRoute.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRoute.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRoute.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRouteLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRouteLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRouteLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRouteLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoute.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoute.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoute.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoutePolicybasedroutename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoutePolicybasedroutename.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoutePolicybasedroutename.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoutePolicybasedroutename.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRouteString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRouteString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRouteString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRouteString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/AsyncGetPolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/AsyncGetPolicyBasedRoute.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/AsyncGetPolicyBasedRoute.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/AsyncGetPolicyBasedRoute.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoute.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoute.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoute.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoutePolicybasedroutename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoutePolicybasedroutename.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoutePolicybasedroutename.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoutePolicybasedroutename.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRouteString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRouteString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRouteString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRouteString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutes.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutes.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutes.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutesPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutesPaged.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutesPaged.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutesPaged.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutes.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutes.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutes.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesLocationname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesLocationname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesLocationname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesLocationname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservicesettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservicesettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservicesettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservicesettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/policybasedroutingservicestubsettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/policybasedroutingservicestubsettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/policybasedroutingservicestubsettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/policybasedroutingservicestubsettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java b/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java deleted file mode 100644 index 111a08cb8271..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java +++ /dev/null @@ -1,1095 +0,0 @@ -package com.google.cloud.networkconnectivity.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Network Connectivity Center is a hub-and-spoke abstraction for network
- * connectivity management in Google Cloud. It reduces operational complexity
- * through a simple, centralized connectivity management model.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1/hub.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class HubServiceGrpc { - - private HubServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1.HubService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListHubsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListHubs", - requestType = com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListHubsMethod() { - io.grpc.MethodDescriptor getListHubsMethod; - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - HubServiceGrpc.getListHubsMethod = getListHubsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListHubsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListHubsResponse.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) - .build(); - } - } - } - return getListHubsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetHub", - requestType = com.google.cloud.networkconnectivity.v1.GetHubRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.Hub.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetHubMethod() { - io.grpc.MethodDescriptor getGetHubMethod; - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - HubServiceGrpc.getGetHubMethod = getGetHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.GetHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) - .build(); - } - } - } - return getGetHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateHub", - requestType = com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateHubMethod() { - io.grpc.MethodDescriptor getCreateHubMethod; - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - HubServiceGrpc.getCreateHubMethod = getCreateHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.CreateHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) - .build(); - } - } - } - return getCreateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateHub", - requestType = com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateHubMethod() { - io.grpc.MethodDescriptor getUpdateHubMethod; - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - HubServiceGrpc.getUpdateHubMethod = getUpdateHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) - .build(); - } - } - } - return getUpdateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteHub", - requestType = com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteHubMethod() { - io.grpc.MethodDescriptor getDeleteHubMethod; - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - HubServiceGrpc.getDeleteHubMethod = getDeleteHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) - .build(); - } - } - } - return getDeleteHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSpokesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSpokes", - requestType = com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSpokesMethod() { - io.grpc.MethodDescriptor getListSpokesMethod; - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - HubServiceGrpc.getListSpokesMethod = getListSpokesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListSpokesResponse.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) - .build(); - } - } - } - return getListSpokesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSpoke", - requestType = com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.Spoke.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSpokeMethod() { - io.grpc.MethodDescriptor getGetSpokeMethod; - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - HubServiceGrpc.getGetSpokeMethod = getGetSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) - .build(); - } - } - } - return getGetSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", - requestType = com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSpokeMethod() { - io.grpc.MethodDescriptor getCreateSpokeMethod; - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - HubServiceGrpc.getCreateSpokeMethod = getCreateSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) - .build(); - } - } - } - return getCreateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", - requestType = com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSpokeMethod() { - io.grpc.MethodDescriptor getUpdateSpokeMethod; - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - HubServiceGrpc.getUpdateSpokeMethod = getUpdateSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) - .build(); - } - } - } - return getUpdateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", - requestType = com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteSpokeMethod() { - io.grpc.MethodDescriptor getDeleteSpokeMethod; - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - HubServiceGrpc.getDeleteSpokeMethod = getDeleteSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) - .build(); - } - } - } - return getDeleteSpokeMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static HubServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - }; - return HubServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static HubServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - }; - return HubServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static HubServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - }; - return HubServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static abstract class HubServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists the Network Connectivity Center hubs associated with a given project.
-     * 
- */ - public void listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); - } - - /** - *
-     * Gets details about a Network Connectivity Center hub.
-     * 
- */ - public void getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); - } - - /** - *
-     * Creates a new Network Connectivity Center hub in the specified project.
-     * 
- */ - public void createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); - } - - /** - *
-     * Updates the description and/or labels of a Network Connectivity Center
-     * hub.
-     * 
- */ - public void updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); - } - - /** - *
-     * Deletes a Network Connectivity Center hub.
-     * 
- */ - public void deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); - } - - /** - *
-     * Lists the Network Connectivity Center spokes in a specified project and
-     * location.
-     * 
- */ - public void listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); - } - - /** - *
-     * Gets details about a Network Connectivity Center spoke.
-     * 
- */ - public void getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); - } - - /** - *
-     * Creates a Network Connectivity Center spoke.
-     * 
- */ - public void createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSpokeMethod(), responseObserver); - } - - /** - *
-     * Updates the parameters of a Network Connectivity Center spoke.
-     * 
- */ - public void updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSpokeMethod(), responseObserver); - } - - /** - *
-     * Deletes a Network Connectivity Center spoke.
-     * 
- */ - public void deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSpokeMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListHubsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1.ListHubsResponse>( - this, METHODID_LIST_HUBS))) - .addMethod( - getGetHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.GetHubRequest, - com.google.cloud.networkconnectivity.v1.Hub>( - this, METHODID_GET_HUB))) - .addMethod( - getCreateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.CreateHubRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_HUB))) - .addMethod( - getUpdateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.UpdateHubRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_HUB))) - .addMethod( - getDeleteHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.DeleteHubRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_HUB))) - .addMethod( - getListSpokesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1.ListSpokesResponse>( - this, METHODID_LIST_SPOKES))) - .addMethod( - getGetSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1.Spoke>( - this, METHODID_GET_SPOKE))) - .addMethod( - getCreateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_SPOKE))) - .addMethod( - getUpdateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_SPOKE))) - .addMethod( - getDeleteSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_SPOKE))) - .build(); - } - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { - private HubServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - - /** - *
-     * Lists the Network Connectivity Center hubs associated with a given project.
-     * 
- */ - public void listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details about a Network Connectivity Center hub.
-     * 
- */ - public void getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Network Connectivity Center hub in the specified project.
-     * 
- */ - public void createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the description and/or labels of a Network Connectivity Center
-     * hub.
-     * 
- */ - public void updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a Network Connectivity Center hub.
-     * 
- */ - public void deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists the Network Connectivity Center spokes in a specified project and
-     * location.
-     * 
- */ - public void listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details about a Network Connectivity Center spoke.
-     * 
- */ - public void getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a Network Connectivity Center spoke.
-     * 
- */ - public void createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the parameters of a Network Connectivity Center spoke.
-     * 
- */ - public void updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a Network Connectivity Center spoke.
-     * 
- */ - public void deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static final class HubServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private HubServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists the Network Connectivity Center hubs associated with a given project.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.ListHubsResponse listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListHubsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details about a Network Connectivity Center hub.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.Hub getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Network Connectivity Center hub in the specified project.
-     * 
- */ - public com.google.longrunning.Operation createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the description and/or labels of a Network Connectivity Center
-     * hub.
-     * 
- */ - public com.google.longrunning.Operation updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a Network Connectivity Center hub.
-     * 
- */ - public com.google.longrunning.Operation deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists the Network Connectivity Center spokes in a specified project and
-     * location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.ListSpokesResponse listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSpokesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details about a Network Connectivity Center spoke.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.Spoke getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSpokeMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a Network Connectivity Center spoke.
-     * 
- */ - public com.google.longrunning.Operation createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSpokeMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the parameters of a Network Connectivity Center spoke.
-     * 
- */ - public com.google.longrunning.Operation updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a Network Connectivity Center spoke.
-     * 
- */ - public com.google.longrunning.Operation deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static final class HubServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private HubServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lists the Network Connectivity Center hubs associated with a given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listHubs( - com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details about a Network Connectivity Center hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getHub( - com.google.cloud.networkconnectivity.v1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Network Connectivity Center hub in the specified project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createHub( - com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the description and/or labels of a Network Connectivity Center
-     * hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateHub( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a Network Connectivity Center hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteHub( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists the Network Connectivity Center spokes in a specified project and
-     * location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSpokes( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details about a Network Connectivity Center spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSpoke( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a Network Connectivity Center spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSpoke( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the parameters of a Network Connectivity Center spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSpoke( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a Network Connectivity Center spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteSpoke( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_HUBS = 0; - private static final int METHODID_GET_HUB = 1; - private static final int METHODID_CREATE_HUB = 2; - private static final int METHODID_UPDATE_HUB = 3; - private static final int METHODID_DELETE_HUB = 4; - private static final int METHODID_LIST_SPOKES = 5; - private static final int METHODID_GET_SPOKE = 6; - private static final int METHODID_CREATE_SPOKE = 7; - private static final int METHODID_UPDATE_SPOKE = 8; - private static final int METHODID_DELETE_SPOKE = 9; - - 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 HubServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(HubServiceImplBase 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_HUBS: - serviceImpl.listHubs((com.google.cloud.networkconnectivity.v1.ListHubsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_HUB: - serviceImpl.getHub((com.google.cloud.networkconnectivity.v1.GetHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_HUB: - serviceImpl.createHub((com.google.cloud.networkconnectivity.v1.CreateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_HUB: - serviceImpl.updateHub((com.google.cloud.networkconnectivity.v1.UpdateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_HUB: - serviceImpl.deleteHub((com.google.cloud.networkconnectivity.v1.DeleteHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SPOKES: - serviceImpl.listSpokes((com.google.cloud.networkconnectivity.v1.ListSpokesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SPOKE: - serviceImpl.getSpoke((com.google.cloud.networkconnectivity.v1.GetSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SPOKE: - serviceImpl.createSpoke((com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SPOKE: - serviceImpl.updateSpoke((com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SPOKE: - serviceImpl.deleteSpoke((com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - HubServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("HubService"); - } - } - - private static final class HubServiceFileDescriptorSupplier - extends HubServiceBaseDescriptorSupplier { - HubServiceFileDescriptorSupplier() {} - } - - private static final class HubServiceMethodDescriptorSupplier - extends HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) - .addMethod(getListHubsMethod()) - .addMethod(getGetHubMethod()) - .addMethod(getCreateHubMethod()) - .addMethod(getUpdateHubMethod()) - .addMethod(getDeleteHubMethod()) - .addMethod(getListSpokesMethod()) - .addMethod(getGetSpokeMethod()) - .addMethod(getCreateSpokeMethod()) - .addMethod(getUpdateSpokeMethod()) - .addMethod(getDeleteSpokeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java b/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java deleted file mode 100644 index 1080ea6c081c..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java +++ /dev/null @@ -1,566 +0,0 @@ -package com.google.cloud.networkconnectivity.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Policy-Based Routing allows GCP customers to specify flexibile routing
- * policies for Layer 4 traffic traversing through the connected service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1/policy_based_routing.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class PolicyBasedRoutingServiceGrpc { - - private PolicyBasedRoutingServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListPolicyBasedRoutesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPolicyBasedRoutes", - requestType = com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListPolicyBasedRoutesMethod() { - io.grpc.MethodDescriptor getListPolicyBasedRoutesMethod; - if ((getListPolicyBasedRoutesMethod = PolicyBasedRoutingServiceGrpc.getListPolicyBasedRoutesMethod) == null) { - synchronized (PolicyBasedRoutingServiceGrpc.class) { - if ((getListPolicyBasedRoutesMethod = PolicyBasedRoutingServiceGrpc.getListPolicyBasedRoutesMethod) == null) { - PolicyBasedRoutingServiceGrpc.getListPolicyBasedRoutesMethod = getListPolicyBasedRoutesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPolicyBasedRoutes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.getDefaultInstance())) - .setSchemaDescriptor(new PolicyBasedRoutingServiceMethodDescriptorSupplier("ListPolicyBasedRoutes")) - .build(); - } - } - } - return getListPolicyBasedRoutesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetPolicyBasedRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPolicyBasedRoute", - requestType = com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetPolicyBasedRouteMethod() { - io.grpc.MethodDescriptor getGetPolicyBasedRouteMethod; - if ((getGetPolicyBasedRouteMethod = PolicyBasedRoutingServiceGrpc.getGetPolicyBasedRouteMethod) == null) { - synchronized (PolicyBasedRoutingServiceGrpc.class) { - if ((getGetPolicyBasedRouteMethod = PolicyBasedRoutingServiceGrpc.getGetPolicyBasedRouteMethod) == null) { - PolicyBasedRoutingServiceGrpc.getGetPolicyBasedRouteMethod = getGetPolicyBasedRouteMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicyBasedRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance())) - .setSchemaDescriptor(new PolicyBasedRoutingServiceMethodDescriptorSupplier("GetPolicyBasedRoute")) - .build(); - } - } - } - return getGetPolicyBasedRouteMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreatePolicyBasedRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePolicyBasedRoute", - requestType = com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreatePolicyBasedRouteMethod() { - io.grpc.MethodDescriptor getCreatePolicyBasedRouteMethod; - if ((getCreatePolicyBasedRouteMethod = PolicyBasedRoutingServiceGrpc.getCreatePolicyBasedRouteMethod) == null) { - synchronized (PolicyBasedRoutingServiceGrpc.class) { - if ((getCreatePolicyBasedRouteMethod = PolicyBasedRoutingServiceGrpc.getCreatePolicyBasedRouteMethod) == null) { - PolicyBasedRoutingServiceGrpc.getCreatePolicyBasedRouteMethod = getCreatePolicyBasedRouteMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePolicyBasedRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new PolicyBasedRoutingServiceMethodDescriptorSupplier("CreatePolicyBasedRoute")) - .build(); - } - } - } - return getCreatePolicyBasedRouteMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeletePolicyBasedRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePolicyBasedRoute", - requestType = com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeletePolicyBasedRouteMethod() { - io.grpc.MethodDescriptor getDeletePolicyBasedRouteMethod; - if ((getDeletePolicyBasedRouteMethod = PolicyBasedRoutingServiceGrpc.getDeletePolicyBasedRouteMethod) == null) { - synchronized (PolicyBasedRoutingServiceGrpc.class) { - if ((getDeletePolicyBasedRouteMethod = PolicyBasedRoutingServiceGrpc.getDeletePolicyBasedRouteMethod) == null) { - PolicyBasedRoutingServiceGrpc.getDeletePolicyBasedRouteMethod = getDeletePolicyBasedRouteMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePolicyBasedRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new PolicyBasedRoutingServiceMethodDescriptorSupplier("DeletePolicyBasedRoute")) - .build(); - } - } - } - return getDeletePolicyBasedRouteMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static PolicyBasedRoutingServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyBasedRoutingServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyBasedRoutingServiceStub(channel, callOptions); - } - }; - return PolicyBasedRoutingServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static PolicyBasedRoutingServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyBasedRoutingServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyBasedRoutingServiceBlockingStub(channel, callOptions); - } - }; - return PolicyBasedRoutingServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static PolicyBasedRoutingServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyBasedRoutingServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyBasedRoutingServiceFutureStub(channel, callOptions); - } - }; - return PolicyBasedRoutingServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Policy-Based Routing allows GCP customers to specify flexibile routing
-   * policies for Layer 4 traffic traversing through the connected service.
-   * 
- */ - public static abstract class PolicyBasedRoutingServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists PolicyBasedRoutes in a given project and location.
-     * 
- */ - public void listPolicyBasedRoutes(com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPolicyBasedRoutesMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single PolicyBasedRoute.
-     * 
- */ - public void getPolicyBasedRoute(com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPolicyBasedRouteMethod(), responseObserver); - } - - /** - *
-     * Creates a new PolicyBasedRoute in a given project and location.
-     * 
- */ - public void createPolicyBasedRoute(com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePolicyBasedRouteMethod(), responseObserver); - } - - /** - *
-     * Deletes a single PolicyBasedRoute.
-     * 
- */ - public void deletePolicyBasedRoute(com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePolicyBasedRouteMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListPolicyBasedRoutesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest, - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse>( - this, METHODID_LIST_POLICY_BASED_ROUTES))) - .addMethod( - getGetPolicyBasedRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute>( - this, METHODID_GET_POLICY_BASED_ROUTE))) - .addMethod( - getCreatePolicyBasedRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_POLICY_BASED_ROUTE))) - .addMethod( - getDeletePolicyBasedRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_POLICY_BASED_ROUTE))) - .build(); - } - } - - /** - *
-   * Policy-Based Routing allows GCP customers to specify flexibile routing
-   * policies for Layer 4 traffic traversing through the connected service.
-   * 
- */ - public static final class PolicyBasedRoutingServiceStub extends io.grpc.stub.AbstractAsyncStub { - private PolicyBasedRoutingServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyBasedRoutingServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyBasedRoutingServiceStub(channel, callOptions); - } - - /** - *
-     * Lists PolicyBasedRoutes in a given project and location.
-     * 
- */ - public void listPolicyBasedRoutes(com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPolicyBasedRoutesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single PolicyBasedRoute.
-     * 
- */ - public void getPolicyBasedRoute(com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPolicyBasedRouteMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new PolicyBasedRoute in a given project and location.
-     * 
- */ - public void createPolicyBasedRoute(com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePolicyBasedRouteMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a single PolicyBasedRoute.
-     * 
- */ - public void deletePolicyBasedRoute(com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePolicyBasedRouteMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Policy-Based Routing allows GCP customers to specify flexibile routing
-   * policies for Layer 4 traffic traversing through the connected service.
-   * 
- */ - public static final class PolicyBasedRoutingServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private PolicyBasedRoutingServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyBasedRoutingServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyBasedRoutingServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists PolicyBasedRoutes in a given project and location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse listPolicyBasedRoutes(com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPolicyBasedRoutesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single PolicyBasedRoute.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoute(com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPolicyBasedRouteMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new PolicyBasedRoute in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createPolicyBasedRoute(com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePolicyBasedRouteMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a single PolicyBasedRoute.
-     * 
- */ - public com.google.longrunning.Operation deletePolicyBasedRoute(com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePolicyBasedRouteMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Policy-Based Routing allows GCP customers to specify flexibile routing
-   * policies for Layer 4 traffic traversing through the connected service.
-   * 
- */ - public static final class PolicyBasedRoutingServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private PolicyBasedRoutingServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyBasedRoutingServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyBasedRoutingServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lists PolicyBasedRoutes in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listPolicyBasedRoutes( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPolicyBasedRoutesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single PolicyBasedRoute.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPolicyBasedRouteMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new PolicyBasedRoute in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePolicyBasedRouteMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a single PolicyBasedRoute.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deletePolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePolicyBasedRouteMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_POLICY_BASED_ROUTES = 0; - private static final int METHODID_GET_POLICY_BASED_ROUTE = 1; - private static final int METHODID_CREATE_POLICY_BASED_ROUTE = 2; - private static final int METHODID_DELETE_POLICY_BASED_ROUTE = 3; - - 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 PolicyBasedRoutingServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(PolicyBasedRoutingServiceImplBase 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_POLICY_BASED_ROUTES: - serviceImpl.listPolicyBasedRoutes((com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_POLICY_BASED_ROUTE: - serviceImpl.getPolicyBasedRoute((com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_POLICY_BASED_ROUTE: - serviceImpl.createPolicyBasedRoute((com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_POLICY_BASED_ROUTE: - serviceImpl.deletePolicyBasedRoute((com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) 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 PolicyBasedRoutingServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - PolicyBasedRoutingServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("PolicyBasedRoutingService"); - } - } - - private static final class PolicyBasedRoutingServiceFileDescriptorSupplier - extends PolicyBasedRoutingServiceBaseDescriptorSupplier { - PolicyBasedRoutingServiceFileDescriptorSupplier() {} - } - - private static final class PolicyBasedRoutingServiceMethodDescriptorSupplier - extends PolicyBasedRoutingServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - PolicyBasedRoutingServiceMethodDescriptorSupplier(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 (PolicyBasedRoutingServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PolicyBasedRoutingServiceFileDescriptorSupplier()) - .addMethod(getListPolicyBasedRoutesMethod()) - .addMethod(getGetPolicyBasedRouteMethod()) - .addMethod(getCreatePolicyBasedRouteMethod()) - .addMethod(getDeletePolicyBasedRouteMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java deleted file mode 100644 index ea1de6f61b90..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1/common.proto - -package com.google.cloud.networkconnectivity.v1; - -public final class CommonProto { - private CommonProto() {} - 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_networkconnectivity_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/networkconnectivity/v1/co" + - "mmon.proto\022#google.cloud.networkconnecti" + - "vity.v1\032\037google/api/field_behavior.proto" + - "\032\031google/api/resource.proto\032\037google/prot" + - "obuf/timestamp.proto\"\200\002\n\021OperationMetada" + - "ta\0224\n\013create_time\030\001 \001(\0132\032.google.protobu" + - "f.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.goo" + - "gle.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_me" + - "ssage\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellati" + - "on\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003B" + - "\327\003\n\'com.google.cloud.networkconnectivity" + - ".v1B\013CommonProtoP\001ZVgoogle.golang.org/ge" + - "nproto/googleapis/cloud/networkconnectiv" + - "ity/v1;networkconnectivity\252\002#Google.Clou" + - "d.NetworkConnectivity.V1\312\002#Google\\Cloud\\" + - "NetworkConnectivity\\V1\352\002&Google::Cloud::" + - "NetworkConnectivity::V1\352Az\n-compute.goog" + - "leapis.com/InterconnectAttachment\022Iproje" + - "cts/{project}/regions/{region}/interconn" + - "ectAttachments/{resource_id}\352AR\n\036compute" + - ".googleapis.com/Network\0220projects/{proje" + - "ct}/global/networks/{resource_id}b\006proto" + - "3" - }; - 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.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resourceDefinition); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java deleted file mode 100644 index 4517f9b39e40..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1/hub.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface GetHubRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetHubRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the hub resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the hub resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.java deleted file mode 100644 index 06417084b704..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface GetPolicyBasedRouteRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the PolicyBasedRoute resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the PolicyBasedRoute resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java deleted file mode 100644 index 3293c5872324..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1/hub.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface GetSpokeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetSpokeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the spoke resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the spoke 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/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java deleted file mode 100644 index 2a88f7200aa9..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java +++ /dev/null @@ -1,477 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1/hub.proto - -package com.google.cloud.networkconnectivity.v1; - -public final class HubProto { - private HubProto() {} - 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_networkconnectivity_v1_Hub_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_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/networkconnectivity/v1/hu" + - "b.proto\022#google.cloud.networkconnectivit" + - "y.v1\032\034google/api/annotations.proto\032\027goog" + - "le/api/client.proto\032\037google/api/field_be" + - "havior.proto\032\031google/api/resource.proto\032" + - "#google/longrunning/operations.proto\032 go" + - "ogle/protobuf/field_mask.proto\032\037google/p" + - "rotobuf/timestamp.proto\"\212\004\n\003Hub\022\021\n\004name\030" + - "\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132\032.google" + - ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" + - "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022D" + - "\n\006labels\030\004 \003(\01324.google.cloud.networkcon" + - "nectivity.v1.Hub.LabelsEntry\022\023\n\013descript" + - "ion\030\005 \001(\t\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022>\n\005sta" + - "te\030\t \001(\0162*.google.cloud.networkconnectiv" + - "ity.v1.StateB\003\340A\003\022E\n\014routing_vpcs\030\n \003(\0132" + - "/.google.cloud.networkconnectivity.v1.Ro" + - "utingVPC\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001:[\352AX\n&networkconnectivit" + - "y.googleapis.com/Hub\022.projects/{project}" + - "/locations/global/hubs/{hub}\"\177\n\nRoutingV" + - "PC\0220\n\003uri\030\001 \001(\tB#\372A \n\036compute.googleapis" + - ".com/Network\022?\n2required_for_new_site_to" + - "_site_data_transfer_spokes\030\002 \001(\010B\003\340A\003\"\276\006" + - "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create_tim" + - "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + - "\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf." + - "TimestampB\003\340A\003\022F\n\006labels\030\004 \003(\01326.google." + - "cloud.networkconnectivity.v1.Spoke.Label" + - "sEntry\022\023\n\013description\030\005 \001(\t\022;\n\003hub\030\006 \001(\t" + - "B.\340A\005\372A(\n&networkconnectivity.googleapis" + - ".com/Hub\022Q\n\022linked_vpn_tunnels\030\021 \001(\01325.g" + - "oogle.cloud.networkconnectivity.v1.Linke" + - "dVpnTunnels\022k\n\037linked_interconnect_attac" + - "hments\030\022 \001(\0132B.google.cloud.networkconne" + - "ctivity.v1.LinkedInterconnectAttachments" + - "\022n\n!linked_router_appliance_instances\030\023 " + - "\001(\0132C.google.cloud.networkconnectivity.v" + - "1.LinkedRouterApplianceInstances\022\026\n\tuniq" + - "ue_id\030\013 \001(\tB\003\340A\003\022>\n\005state\030\017 \001(\0162*.google" + - ".cloud.networkconnectivity.v1.StateB\003\340A\003" + - "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001:e\352Ab\n(networkconnectivity.google" + - "apis.com/Spoke\0226projects/{project}/locat" + - "ions/{location}/spokes/{spoke}\"\225\001\n\017ListH" + - "ubsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" + - "tions.googleapis.com/Location\022\021\n\tpage_si" + - "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004" + - " \001(\t\022\020\n\010order_by\030\005 \001(\t\"x\n\020ListHubsRespon" + - "se\0226\n\004hubs\030\001 \003(\0132(.google.cloud.networkc" + - "onnectivity.v1.Hub\022\027\n\017next_page_token\030\002 " + - "\001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\rGetHubReques" + - "t\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&networkconnecti" + - "vity.googleapis.com/Hub\"\267\001\n\020CreateHubReq" + - "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." + - "googleapis.com/Location\022\023\n\006hub_id\030\002 \001(\tB" + - "\003\340A\002\022:\n\003hub\030\003 \001(\0132(.google.cloud.network" + - "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\004" + - " \001(\tB\003\340A\001\"\235\001\n\020UpdateHubRequest\0224\n\013update" + - "_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB" + - "\003\340A\001\022:\n\003hub\030\002 \001(\0132(.google.cloud.network" + - "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\003" + - " \001(\tB\003\340A\001\"i\n\020DeleteHubRequest\022<\n\004name\030\001 " + - "\001(\tB.\340A\002\372A(\n&networkconnectivity.googlea" + - "pis.com/Hub\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\227\001\n" + - "\021ListSpokesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" + - "A#\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\006" + - "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\022ListSp" + - "okesResponse\022:\n\006spokes\030\001 \003(\0132*.google.cl" + - "oud.networkconnectivity.v1.Spoke\022\027\n\017next" + - "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q" + - "\n\017GetSpokeRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n" + - "(networkconnectivity.googleapis.com/Spok" + - "e\"\277\001\n\022CreateSpokeRequest\0229\n\006parent\030\001 \001(\t" + - "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + - "ion\022\025\n\010spoke_id\030\002 \001(\tB\003\340A\002\022>\n\005spoke\030\003 \001(" + - "\0132*.google.cloud.networkconnectivity.v1." + - "SpokeB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\022" + - "UpdateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132" + - "\032.google.protobuf.FieldMaskB\003\340A\001\022>\n\005spok" + - "e\030\002 \001(\0132*.google.cloud.networkconnectivi" + - "ty.v1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A" + - "\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\tB0\340" + - "A\002\372A*\n(networkconnectivity.googleapis.co" + - "m/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\250\001\n\020Lin" + - "kedVpnTunnels\0223\n\004uris\030\001 \003(\tB%\372A\"\n comput" + - "e.googleapis.com/VpnTunnel\022\"\n\032site_to_si" + - "te_data_transfer\030\002 \001(\010\022;\n\013vpc_network\030\003 " + - "\001(\tB&\340A\003\372A \n\036compute.googleapis.com/Netw" + - "ork\"\302\001\n\035LinkedInterconnectAttachments\022@\n" + - "\004uris\030\001 \003(\tB2\372A/\n-compute.googleapis.com" + - "/InterconnectAttachment\022\"\n\032site_to_site_" + - "data_transfer\030\002 \001(\010\022;\n\013vpc_network\030\003 \001(\t" + - "B&\340A\003\372A \n\036compute.googleapis.com/Network" + - "\"\322\001\n\036LinkedRouterApplianceInstances\022O\n\ti" + - "nstances\030\001 \003(\0132<.google.cloud.networkcon" + - "nectivity.v1.RouterApplianceInstance\022\"\n\032" + - "site_to_site_data_transfer\030\002 \001(\010\022;\n\013vpc_" + - "network\030\003 \001(\tB&\340A\003\372A \n\036compute.googleapi" + - "s.com/Network\"l\n\027RouterApplianceInstance" + - "\022=\n\017virtual_machine\030\001 \001(\tB$\372A!\n\037compute." + - "googleapis.com/Instance\022\022\n\nip_address\030\003 " + - "\001(\t\"c\n\020LocationMetadata\022O\n\021location_feat" + - "ures\030\001 \003(\01624.google.cloud.networkconnect" + - "ivity.v1.LocationFeature*f\n\017LocationFeat" + - "ure\022 \n\034LOCATION_FEATURE_UNSPECIFIED\020\000\022\030\n" + - "\024SITE_TO_CLOUD_SPOKES\020\001\022\027\n\023SITE_TO_SITE_" + - "SPOKES\020\002*T\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" + - "\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003" + - "\022\014\n\010UPDATING\020\0062\235\020\n\nHubService\022\267\001\n\010ListHu" + - "bs\0224.google.cloud.networkconnectivity.v1" + - ".ListHubsRequest\0325.google.cloud.networkc" + - "onnectivity.v1.ListHubsResponse\">\202\323\344\223\002/\022" + - "-/v1/{parent=projects/*/locations/global" + - "}/hubs\332A\006parent\022\244\001\n\006GetHub\0222.google.clou" + - "d.networkconnectivity.v1.GetHubRequest\032(" + - ".google.cloud.networkconnectivity.v1.Hub" + - "\"<\202\323\344\223\002/\022-/v1/{name=projects/*/locations" + - "/global/hubs/*}\332A\004name\022\314\001\n\tCreateHub\0225.g" + - "oogle.cloud.networkconnectivity.v1.Creat" + - "eHubRequest\032\035.google.longrunning.Operati" + - "on\"i\202\323\344\223\0024\"-/v1/{parent=projects/*/locat" + - "ions/global}/hubs:\003hub\332A\021parent,hub,hub_" + - "id\312A\030\n\003Hub\022\021OperationMetadata\022\316\001\n\tUpdate" + - "Hub\0225.google.cloud.networkconnectivity.v" + - "1.UpdateHubRequest\032\035.google.longrunning." + - "Operation\"k\202\323\344\223\002821/v1/{hub.name=project" + - "s/*/locations/global/hubs/*}:\003hub\332A\017hub," + - "update_mask\312A\030\n\003Hub\022\021OperationMetadata\022\314" + - "\001\n\tDeleteHub\0225.google.cloud.networkconne" + - "ctivity.v1.DeleteHubRequest\032\035.google.lon" + - "grunning.Operation\"i\202\323\344\223\002/*-/v1/{name=pr" + - "ojects/*/locations/global/hubs/*}\332A\004name" + - "\312A*\n\025google.protobuf.Empty\022\021OperationMet" + - "adata\022\272\001\n\nListSpokes\0226.google.cloud.netw" + - "orkconnectivity.v1.ListSpokesRequest\0327.g" + - "oogle.cloud.networkconnectivity.v1.ListS" + - "pokesResponse\";\202\323\344\223\002,\022*/v1/{parent=proje" + - "cts/*/locations/*}/spokes\332A\006parent\022\247\001\n\010G" + - "etSpoke\0224.google.cloud.networkconnectivi" + - "ty.v1.GetSpokeRequest\032*.google.cloud.net" + - "workconnectivity.v1.Spoke\"9\202\323\344\223\002,\022*/v1/{" + - "name=projects/*/locations/*/spokes/*}\332A\004" + - "name\022\325\001\n\013CreateSpoke\0227.google.cloud.netw" + - "orkconnectivity.v1.CreateSpokeRequest\032\035." + - "google.longrunning.Operation\"n\202\323\344\223\0023\"*/v" + - "1/{parent=projects/*/locations/*}/spokes" + - ":\005spoke\332A\025parent,spoke,spoke_id\312A\032\n\005Spok" + - "e\022\021OperationMetadata\022\327\001\n\013UpdateSpoke\0227.g" + - "oogle.cloud.networkconnectivity.v1.Updat" + - "eSpokeRequest\032\035.google.longrunning.Opera" + - "tion\"p\202\323\344\223\002920/v1/{spoke.name=projects/*" + - "/locations/*/spokes/*}:\005spoke\332A\021spoke,up" + - "date_mask\312A\032\n\005Spoke\022\021OperationMetadata\022\315" + - "\001\n\013DeleteSpoke\0227.google.cloud.networkcon" + - "nectivity.v1.DeleteSpokeRequest\032\035.google" + - ".longrunning.Operation\"f\202\323\344\223\002,**/v1/{nam" + - "e=projects/*/locations/*/spokes/*}\332A\004nam" + - "e\312A*\n\025google.protobuf.Empty\022\021OperationMe" + - "tadata\032V\312A\"networkconnectivity.googleapi" + - "s.com\322A.https://www.googleapis.com/auth/" + - "cloud-platformB\277\003\n\'com.google.cloud.netw" + - "orkconnectivity.v1B\010HubProtoP\001ZVgoogle.g" + - "olang.org/genproto/googleapis/cloud/netw" + - "orkconnectivity/v1;networkconnectivity\252\002" + - "#Google.Cloud.NetworkConnectivity.V1\312\002#G" + - "oogle\\Cloud\\NetworkConnectivity\\V1\352\002&Goo" + - "gle::Cloud::NetworkConnectivity::V1\352A`\n " + - "compute.googleapis.com/VpnTunnel\022google/cloud/networkconnectivity/v1/po" + - "licy_based_routing.proto\022#google.cloud.n" + - "etworkconnectivity.v1\032\034google/api/annota" + - "tions.proto\032\027google/api/client.proto\032\037go" + - "ogle/api/field_behavior.proto\032\031google/ap" + - "i/resource.proto\032#google/longrunning/ope" + - "rations.proto\032\037google/protobuf/timestamp" + - ".proto\"\247\r\n\020PolicyBasedRoute\022d\n\017virtual_m" + - "achine\030\022 \001(\0132D.google.cloud.networkconne" + - "ctivity.v1.PolicyBasedRoute.VirtualMachi" + - "neB\003\340A\001H\000\022t\n\027interconnect_attachment\030\t \001" + - "(\0132L.google.cloud.networkconnectivity.v1" + - ".PolicyBasedRoute.InterconnectAttachment" + - "B\003\340A\001H\000\022\036\n\017next_hop_ilb_ip\030\014 \001(\tB\003\340A\001H\001\022" + - "\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132" + - "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upda" + - "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + - "pB\003\340A\003\022Q\n\006labels\030\004 \003(\0132A.google.cloud.ne" + - "tworkconnectivity.v1.PolicyBasedRoute.La" + - "belsEntry\022\030\n\013description\030\005 \001(\tB\003\340A\001\0227\n\007n" + - "etwork\030\006 \001(\tB&\340A\002\372A \n\036compute.googleapis" + - ".com/Network\022Q\n\006filter\030\n \001(\0132<.google.cl" + - "oud.networkconnectivity.v1.PolicyBasedRo" + - "ute.FilterB\003\340A\002\022\025\n\010priority\030\013 \001(\005B\003\340A\001\022U" + - "\n\010warnings\030\016 \003(\0132>.google.cloud.networkc" + - "onnectivity.v1.PolicyBasedRoute.Warnings" + - "B\003\340A\003\022\026\n\tself_link\030\017 \001(\tB\003\340A\003\022\021\n\004kind\030\020 " + - "\001(\tB\003\340A\003\032#\n\016VirtualMachine\022\021\n\004tags\030\001 \003(\t" + - "B\003\340A\001\032-\n\026InterconnectAttachment\022\023\n\006regio" + - "n\030\001 \001(\tB\003\340A\001\032\377\001\n\006Filter\022\030\n\013ip_protocol\030\001" + - " \001(\tB\003\340A\001\022\026\n\tsrc_range\030\002 \001(\tB\003\340A\001\022\027\n\ndes" + - "t_range\030\003 \001(\tB\003\340A\001\022k\n\020protocol_version\030\006" + - " \001(\0162L.google.cloud.networkconnectivity." + - "v1.PolicyBasedRoute.Filter.ProtocolVersi" + - "onB\003\340A\002\"=\n\017ProtocolVersion\022 \n\034PROTOCOL_V" + - "ERSION_UNSPECIFIED\020\000\022\010\n\004IPV4\020\001\032\341\002\n\010Warni" + - "ngs\022V\n\004code\030\001 \001(\0162C.google.cloud.network" + - "connectivity.v1.PolicyBasedRoute.Warning" + - "s.CodeB\003\340A\003\022[\n\004data\030\002 \003(\0132H.google.cloud" + - ".networkconnectivity.v1.PolicyBasedRoute" + - ".Warnings.DataEntryB\003\340A\003\022\034\n\017warning_mess" + - "age\030\003 \001(\tB\003\340A\003\032+\n\tDataEntry\022\013\n\003key\030\001 \001(\t" + - "\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\004Code\022\027\n\023WARNING_U" + - "NSPECIFIED\020\000\022\027\n\023RESOURCE_NOT_ACTIVE\020\001\022\033\n" + - "\027RESOURCE_BEING_MODIFIED\020\002\032-\n\013LabelsEntr" + - "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\206\001\352A\202\001" + - "\n3networkconnectivity.googleapis.com/Pol" + - "icyBasedRoute\022Kprojects/{project}/{locat" + - "ion}/global/PolicyBasedRoutes/{policy_ba" + - "sed_route}B\010\n\006targetB\n\n\010next_hop\"\242\001\n\034Lis" + - "tPolicyBasedRoutesRequest\0229\n\006parent\030\001 \001(" + - "\tB)\340A\002\372A#\n!locations.googleapis.com/Loca" + - "tion\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + - "\001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\241\001" + - "\n\035ListPolicyBasedRoutesResponse\022R\n\023polic" + - "y_based_routes\030\001 \003(\01325.google.cloud.netw" + - "orkconnectivity.v1.PolicyBasedRoute\022\027\n\017n" + - "ext_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(" + - "\t\"g\n\032GetPolicyBasedRouteRequest\022I\n\004name\030" + - "\001 \001(\tB;\340A\002\372A5\n3networkconnectivity.googl" + - "eapis.com/PolicyBasedRoute\"\357\001\n\035CreatePol" + - "icyBasedRouteRequest\0229\n\006parent\030\001 \001(\tB)\340A" + - "\002\372A#\n!locations.googleapis.com/Location\022" + - "\"\n\025policy_based_route_id\030\002 \001(\tB\003\340A\001\022V\n\022p" + - "olicy_based_route\030\003 \001(\01325.google.cloud.n" + - "etworkconnectivity.v1.PolicyBasedRouteB\003" + - "\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\203\001\n\035DeleteP" + - "olicyBasedRouteRequest\022I\n\004name\030\001 \001(\tB;\340A" + - "\002\372A5\n3networkconnectivity.googleapis.com" + - "/PolicyBasedRoute\022\027\n\nrequest_id\030\002 \001(\tB\003\340" + - "A\0012\343\010\n\031PolicyBasedRoutingService\022\353\001\n\025Lis" + - "tPolicyBasedRoutes\022A.google.cloud.networ" + - "kconnectivity.v1.ListPolicyBasedRoutesRe" + - "quest\032B.google.cloud.networkconnectivity" + - ".v1.ListPolicyBasedRoutesResponse\"K\202\323\344\223\002" + - "<\022:/v1/{parent=projects/*/locations/glob" + - "al}/policyBasedRoutes\332A\006parent\022\330\001\n\023GetPo" + - "licyBasedRoute\022?.google.cloud.networkcon" + - "nectivity.v1.GetPolicyBasedRouteRequest\032" + - "5.google.cloud.networkconnectivity.v1.Po" + - "licyBasedRoute\"I\202\323\344\223\002<\022:/v1/{name=projec" + - "ts/*/locations/global/policyBasedRoutes/" + - "*}\332A\004name\022\256\002\n\026CreatePolicyBasedRoute\022B.g" + - "oogle.cloud.networkconnectivity.v1.Creat" + - "ePolicyBasedRouteRequest\032\035.google.longru" + - "nning.Operation\"\260\001\202\323\344\223\002P\":/v1/{parent=pr" + - "ojects/*/locations/global}/policyBasedRo" + - "utes:\022policy_based_route\332A/parent,policy" + - "_based_route,policy_based_route_id\312A%\n\020P" + - "olicyBasedRoute\022\021OperationMetadata\022\363\001\n\026D" + - "eletePolicyBasedRoute\022B.google.cloud.net" + - "workconnectivity.v1.DeletePolicyBasedRou" + - "teRequest\032\035.google.longrunning.Operation" + - "\"v\202\323\344\223\002<*:/v1/{name=projects/*/locations" + - "/global/policyBasedRoutes/*}\332A\004name\312A*\n\025" + - "google.protobuf.Empty\022\021OperationMetadata" + - "\032V\312A\"networkconnectivity.googleapis.com\322" + - "A.https://www.googleapis.com/auth/cloud-" + - "platformB\221\002\n\'com.google.cloud.networkcon" + - "nectivity.v1B\027PolicyBasedRoutingProtoP\001Z" + - "Vgoogle.golang.org/genproto/googleapis/c" + - "loud/networkconnectivity/v1;networkconne" + - "ctivity\252\002#Google.Cloud.NetworkConnectivi" + - "ty.V1\312\002#Google\\Cloud\\NetworkConnectivity" + - "\\V1\352\002&Google::Cloud::NetworkConnectivity" + - "::V1b\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.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor, - new java.lang.String[] { "VirtualMachine", "InterconnectAttachment", "NextHopIlbIp", "Name", "CreateTime", "UpdateTime", "Labels", "Description", "Network", "Filter", "Priority", "Warnings", "SelfLink", "Kind", "Target", "NextHop", }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor = - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor, - new java.lang.String[] { "Tags", }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor = - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor, - new java.lang.String[] { "Region", }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor = - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor, - new java.lang.String[] { "IpProtocol", "SrcRange", "DestRange", "ProtocolVersion", }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor = - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor, - new java.lang.String[] { "Code", "Data", "WarningMessage", }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_descriptor = - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_descriptor = - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor.getNestedTypes().get(4); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor, - new java.lang.String[] { "PolicyBasedRoutes", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor, - new java.lang.String[] { "Parent", "PolicyBasedRouteId", "PolicyBasedRoute", "RequestId", }); - internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", }); - 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.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java deleted file mode 100644 index 013a0c0da196..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java +++ /dev/null @@ -1,1092 +0,0 @@ -package com.google.cloud.networkconnectivity.v1alpha1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Network Connectivity Center is a hub-and-spoke abstraction for
- * network connectivity management in Google Cloud. It reduces
- * operational complexity through a simple, centralized connectivity management
- * model.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1alpha1/hub.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class HubServiceGrpc { - - private HubServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1alpha1.HubService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListHubsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListHubs", - requestType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListHubsMethod() { - io.grpc.MethodDescriptor getListHubsMethod; - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - HubServiceGrpc.getListHubsMethod = getListHubsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) - .build(); - } - } - } - return getListHubsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.Hub.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetHubMethod() { - io.grpc.MethodDescriptor getGetHubMethod; - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - HubServiceGrpc.getGetHubMethod = getGetHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) - .build(); - } - } - } - return getGetHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateHubMethod() { - io.grpc.MethodDescriptor getCreateHubMethod; - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - HubServiceGrpc.getCreateHubMethod = getCreateHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) - .build(); - } - } - } - return getCreateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateHubMethod() { - io.grpc.MethodDescriptor getUpdateHubMethod; - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - HubServiceGrpc.getUpdateHubMethod = getUpdateHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) - .build(); - } - } - } - return getUpdateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteHubMethod() { - io.grpc.MethodDescriptor getDeleteHubMethod; - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - HubServiceGrpc.getDeleteHubMethod = getDeleteHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) - .build(); - } - } - } - return getDeleteHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSpokesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSpokes", - requestType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSpokesMethod() { - io.grpc.MethodDescriptor getListSpokesMethod; - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - HubServiceGrpc.getListSpokesMethod = getListSpokesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) - .build(); - } - } - } - return getListSpokesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSpokeMethod() { - io.grpc.MethodDescriptor getGetSpokeMethod; - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - HubServiceGrpc.getGetSpokeMethod = getGetSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) - .build(); - } - } - } - return getGetSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSpokeMethod() { - io.grpc.MethodDescriptor getCreateSpokeMethod; - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - HubServiceGrpc.getCreateSpokeMethod = getCreateSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) - .build(); - } - } - } - return getCreateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSpokeMethod() { - io.grpc.MethodDescriptor getUpdateSpokeMethod; - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - HubServiceGrpc.getUpdateSpokeMethod = getUpdateSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) - .build(); - } - } - } - return getUpdateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteSpokeMethod() { - io.grpc.MethodDescriptor getDeleteSpokeMethod; - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - HubServiceGrpc.getDeleteSpokeMethod = getDeleteSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) - .build(); - } - } - } - return getDeleteSpokeMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static HubServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - }; - return HubServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static HubServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - }; - return HubServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static HubServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - }; - return HubServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static abstract class HubServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public void listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single Hub.
-     * 
- */ - public void getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); - } - - /** - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public void createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); - } - - /** - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public void updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); - } - - /** - *
-     * Deletes a single Hub.
-     * 
- */ - public void deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); - } - - /** - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public void listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single Spoke.
-     * 
- */ - public void getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); - } - - /** - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public void createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSpokeMethod(), responseObserver); - } - - /** - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public void updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSpokeMethod(), responseObserver); - } - - /** - *
-     * Deletes a single Spoke.
-     * 
- */ - public void deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSpokeMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListHubsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>( - this, METHODID_LIST_HUBS))) - .addMethod( - getGetHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, - com.google.cloud.networkconnectivity.v1alpha1.Hub>( - this, METHODID_GET_HUB))) - .addMethod( - getCreateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_HUB))) - .addMethod( - getUpdateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_HUB))) - .addMethod( - getDeleteHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_HUB))) - .addMethod( - getListSpokesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>( - this, METHODID_LIST_SPOKES))) - .addMethod( - getGetSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1alpha1.Spoke>( - this, METHODID_GET_SPOKE))) - .addMethod( - getCreateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_SPOKE))) - .addMethod( - getUpdateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_SPOKE))) - .addMethod( - getDeleteSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_SPOKE))) - .build(); - } - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { - private HubServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - - /** - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public void listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single Hub.
-     * 
- */ - public void getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public void createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public void updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a single Hub.
-     * 
- */ - public void deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public void listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single Spoke.
-     * 
- */ - public void getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public void createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public void updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a single Spoke.
-     * 
- */ - public void deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static final class HubServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private HubServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListHubsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single Hub.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public com.google.longrunning.Operation updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a single Hub.
-     * 
- */ - public com.google.longrunning.Operation deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSpokesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single Spoke.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSpokeMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSpokeMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public com.google.longrunning.Operation updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a single Spoke.
-     * 
- */ - public com.google.longrunning.Operation deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static final class HubServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private HubServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listHubs( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single Hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getHub( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createHub( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateHub( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a single Hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteHub( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSpokes( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single Spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSpoke( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSpoke( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSpoke( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a single Spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteSpoke( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_HUBS = 0; - private static final int METHODID_GET_HUB = 1; - private static final int METHODID_CREATE_HUB = 2; - private static final int METHODID_UPDATE_HUB = 3; - private static final int METHODID_DELETE_HUB = 4; - private static final int METHODID_LIST_SPOKES = 5; - private static final int METHODID_GET_SPOKE = 6; - private static final int METHODID_CREATE_SPOKE = 7; - private static final int METHODID_UPDATE_SPOKE = 8; - private static final int METHODID_DELETE_SPOKE = 9; - - 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 HubServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(HubServiceImplBase 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_HUBS: - serviceImpl.listHubs((com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_HUB: - serviceImpl.getHub((com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_HUB: - serviceImpl.createHub((com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_HUB: - serviceImpl.updateHub((com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_HUB: - serviceImpl.deleteHub((com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SPOKES: - serviceImpl.listSpokes((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SPOKE: - serviceImpl.getSpoke((com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SPOKE: - serviceImpl.createSpoke((com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SPOKE: - serviceImpl.updateSpoke((com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SPOKE: - serviceImpl.deleteSpoke((com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - HubServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("HubService"); - } - } - - private static final class HubServiceFileDescriptorSupplier - extends HubServiceBaseDescriptorSupplier { - HubServiceFileDescriptorSupplier() {} - } - - private static final class HubServiceMethodDescriptorSupplier - extends HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) - .addMethod(getListHubsMethod()) - .addMethod(getGetHubMethod()) - .addMethod(getCreateHubMethod()) - .addMethod(getUpdateHubMethod()) - .addMethod(getDeleteHubMethod()) - .addMethod(getListSpokesMethod()) - .addMethod(getGetSpokeMethod()) - .addMethod(getCreateSpokeMethod()) - .addMethod(getUpdateSpokeMethod()) - .addMethod(getDeleteSpokeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java deleted file mode 100644 index 4bee516017a0..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java +++ /dev/null @@ -1,73 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1alpha1/common.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public final class CommonProto { - private CommonProto() {} - 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_networkconnectivity_v1alpha1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/networkconnectivity/v1alp" + - "ha1/common.proto\022)google.cloud.networkco" + - "nnectivity.v1alpha1\032\037google/api/field_be" + - "havior.proto\032\037google/protobuf/timestamp." + - "proto\"\200\002\n\021OperationMetadata\0224\n\013create_ti" + - "me\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A" + - "\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf.Ti" + - "mestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004ver" + - "b\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\003B\243\002\n-com.google." + - "cloud.networkconnectivity.v1alpha1B\013Comm" + - "onProtoP\001Z\\google.golang.org/genproto/go" + - "ogleapis/cloud/networkconnectivity/v1alp" + - "ha1;networkconnectivity\252\002)Google.Cloud.N" + - "etworkConnectivity.V1Alpha1\312\002)Google\\Clo" + - "ud\\NetworkConnectivity\\V1alpha1\352\002,Google" + - "::Cloud::NetworkConnectivity::V1alpha1b\006" + - "proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java deleted file mode 100644 index c6b8ae7dba4a..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1alpha1/hub.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public interface GetHubRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the Hub resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the Hub resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java deleted file mode 100644 index a34464f02bd3..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1alpha1/hub.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public interface GetSpokeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of Spoke resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of Spoke 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/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java deleted file mode 100644 index 3156d40d4846..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java +++ /dev/null @@ -1,408 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1alpha1/hub.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public final class HubProto { - private HubProto() {} - 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_networkconnectivity_v1alpha1_Hub_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/networkconnectivity/v1alp" + - "ha1/hub.proto\022)google.cloud.networkconne" + - "ctivity.v1alpha1\032\034google/api/annotations" + - ".proto\032\027google/api/client.proto\032\037google/" + - "api/field_behavior.proto\032\031google/api/res" + - "ource.proto\032#google/longrunning/operatio" + - "ns.proto\032 google/protobuf/field_mask.pro" + - "to\032\037google/protobuf/timestamp.proto\"\207\004\n\003" + - "Hub\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_time\030\002 " + - "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat" + - "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + - "\022J\n\006labels\030\004 \003(\0132:.google.cloud.networkc" + - "onnectivity.v1alpha1.Hub.LabelsEntry\022\023\n\013" + - "description\030\005 \001(\t\022@\n\006spokes\030\006 \003(\tB0\340A\003\372A" + - "*\n(networkconnectivity.googleapis.com/Sp" + - "oke\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022D\n\005state\030\t \001" + - "(\01620.google.cloud.networkconnectivity.v1" + - "alpha1.StateB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030" + - "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:[\352AX\n&networkco" + - "nnectivity.googleapis.com/Hub\022.projects/" + - "{project}/locations/global/hubs/{hub}\"\234\006" + - "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_tim" + - "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022/\n\013u" + - "pdate_time\030\003 \001(\0132\032.google.protobuf.Times" + - "tamp\022L\n\006labels\030\004 \003(\0132<.google.cloud.netw" + - "orkconnectivity.v1alpha1.Spoke.LabelsEnt" + - "ry\022\023\n\013description\030\005 \001(\t\0228\n\003hub\030\006 \001(\tB+\372A" + - "(\n&networkconnectivity.googleapis.com/Hu" + - "b\022A\n\022linked_vpn_tunnels\030\014 \003(\tB%\372A\"\n comp" + - "ute.googleapis.com/VpnTunnel\022[\n\037linked_i" + - "nterconnect_attachments\030\r \003(\tB2\372A/\n-comp" + - "ute.googleapis.com/InterconnectAttachmen" + - "t\022m\n!linked_router_appliance_instances\030\016" + - " \003(\0132B.google.cloud.networkconnectivity." + - "v1alpha1.RouterApplianceInstance\022\026\n\tuniq" + - "ue_id\030\013 \001(\tB\003\340A\003\022D\n\005state\030\017 \001(\01620.google" + - ".cloud.networkconnectivity.v1alpha1.Stat" + - "eB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + - "lue\030\002 \001(\t:\0028\001:e\352Ab\n(networkconnectivity." + - "googleapis.com/Spoke\0226projects/{project}" + - "/locations/{location}/spokes/{spoke}\"\225\001\n" + - "\017ListHubsRequest\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\022\016\n\006fi" + - "lter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\020ListHubs" + - "Response\022<\n\004hubs\030\001 \003(\0132..google.cloud.ne" + - "tworkconnectivity.v1alpha1.Hub\022\027\n\017next_p" + - "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\r" + - "GetHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" + - "workconnectivity.googleapis.com/Hub\"\275\001\n\020" + - "CreateHubRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + - "\n!locations.googleapis.com/Location\022\023\n\006h" + - "ub_id\030\002 \001(\tB\003\340A\001\022@\n\003hub\030\003 \001(\0132..google.c" + - "loud.networkconnectivity.v1alpha1.HubB\003\340" + - "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\020UpdateHu" + - "bRequest\0224\n\013update_mask\030\001 \001(\0132\032.google.p" + - "rotobuf.FieldMaskB\003\340A\001\022@\n\003hub\030\002 \001(\0132..go" + - "ogle.cloud.networkconnectivity.v1alpha1." + - "HubB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"i\n\020Del" + - "eteHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" + - "workconnectivity.googleapis.com/Hub\022\027\n\nr" + - "equest_id\030\002 \001(\tB\003\340A\001\"\227\001\n\021ListSpokesReque" + - "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + - "ogleapis.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\022\020\n\010" + - "order_by\030\005 \001(\t\"\204\001\n\022ListSpokesResponse\022@\n" + - "\006spokes\030\001 \003(\01320.google.cloud.networkconn" + - "ectivity.v1alpha1.Spoke\022\027\n\017next_page_tok" + - "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\017GetSpok" + - "eRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(networkc" + - "onnectivity.googleapis.com/Spoke\"\305\001\n\022Cre" + - "ateSpokeRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n" + - "!locations.googleapis.com/Location\022\025\n\010sp" + - "oke_id\030\002 \001(\tB\003\340A\001\022D\n\005spoke\030\003 \001(\01320.googl" + - "e.cloud.networkconnectivity.v1alpha1.Spo" + - "keB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\251\001\n\022Upd" + - "ateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132\032.g" + - "oogle.protobuf.FieldMaskB\003\340A\001\022D\n\005spoke\030\002" + - " \001(\01320.google.cloud.networkconnectivity." + - "v1alpha1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB" + - "\003\340A\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\t" + - "B0\340A\002\372A*\n(networkconnectivity.googleapis" + - ".com/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\213\001\n\027" + - "RouterApplianceInstance\022=\n\017virtual_machi" + - "ne\030\001 \001(\tB$\372A!\n\037compute.googleapis.com/In" + - "stance\022\022\n\nip_address\030\003 \001(\t\022\035\n\021network_in" + - "terface\030\002 \001(\tB\002\030\001*F\n\005State\022\025\n\021STATE_UNSP" + - "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010D" + - "ELETING\020\0032\255\021\n\nHubService\022\311\001\n\010ListHubs\022:." + - "google.cloud.networkconnectivity.v1alpha" + - "1.ListHubsRequest\032;.google.cloud.network" + - "connectivity.v1alpha1.ListHubsResponse\"D" + - "\202\323\344\223\0025\0223/v1alpha1/{parent=projects/*/loc" + - "ations/global}/hubs\332A\006parent\022\266\001\n\006GetHub\022" + - "8.google.cloud.networkconnectivity.v1alp" + - "ha1.GetHubRequest\032..google.cloud.network" + - "connectivity.v1alpha1.Hub\"B\202\323\344\223\0025\0223/v1al" + - "pha1/{name=projects/*/locations/global/h" + - "ubs/*}\332A\004name\022\330\001\n\tCreateHub\022;.google.clo" + - "ud.networkconnectivity.v1alpha1.CreateHu" + - "bRequest\032\035.google.longrunning.Operation\"" + - "o\202\323\344\223\002:\"3/v1alpha1/{parent=projects/*/lo" + - "cations/global}/hubs:\003hub\332A\021parent,hub,h" + - "ub_id\312A\030\n\003Hub\022\021OperationMetadata\022\332\001\n\tUpd" + - "ateHub\022;.google.cloud.networkconnectivit" + - "y.v1alpha1.UpdateHubRequest\032\035.google.lon" + - "grunning.Operation\"q\202\323\344\223\002>27/v1alpha1/{h" + - "ub.name=projects/*/locations/global/hubs" + - "/*}:\003hub\332A\017hub,update_mask\312A\030\n\003Hub\022\021Oper" + - "ationMetadata\022\330\001\n\tDeleteHub\022;.google.clo" + - "ud.networkconnectivity.v1alpha1.DeleteHu" + - "bRequest\032\035.google.longrunning.Operation\"" + - "o\202\323\344\223\0025*3/v1alpha1/{name=projects/*/loca" + - "tions/global/hubs/*}\332A\004name\312A*\n\025google.p" + - "rotobuf.Empty\022\021OperationMetadata\022\314\001\n\nLis" + - "tSpokes\022<.google.cloud.networkconnectivi" + - "ty.v1alpha1.ListSpokesRequest\032=.google.c" + - "loud.networkconnectivity.v1alpha1.ListSp" + - "okesResponse\"A\202\323\344\223\0022\0220/v1alpha1/{parent=" + - "projects/*/locations/*}/spokes\332A\006parent\022" + - "\271\001\n\010GetSpoke\022:.google.cloud.networkconne" + - "ctivity.v1alpha1.GetSpokeRequest\0320.googl" + - "e.cloud.networkconnectivity.v1alpha1.Spo" + - "ke\"?\202\323\344\223\0022\0220/v1alpha1/{name=projects/*/l" + - "ocations/*/spokes/*}\332A\004name\022\341\001\n\013CreateSp" + - "oke\022=.google.cloud.networkconnectivity.v" + - "1alpha1.CreateSpokeRequest\032\035.google.long" + - "running.Operation\"t\202\323\344\223\0029\"0/v1alpha1/{pa" + - "rent=projects/*/locations/*}/spokes:\005spo" + - "ke\332A\025parent,spoke,spoke_id\312A\032\n\005Spoke\022\021Op" + - "erationMetadata\022\343\001\n\013UpdateSpoke\022=.google" + - ".cloud.networkconnectivity.v1alpha1.Upda" + - "teSpokeRequest\032\035.google.longrunning.Oper" + - "ation\"v\202\323\344\223\002?26/v1alpha1/{spoke.name=pro" + - "jects/*/locations/*/spokes/*}:\005spoke\332A\021s" + - "poke,update_mask\312A\032\n\005Spoke\022\021OperationMet" + - "adata\022\331\001\n\013DeleteSpoke\022=.google.cloud.net" + - "workconnectivity.v1alpha1.DeleteSpokeReq" + - "uest\032\035.google.longrunning.Operation\"l\202\323\344" + - "\223\0022*0/v1alpha1/{name=projects/*/location" + - "s/*/spokes/*}\332A\004name\312A*\n\025google.protobuf" + - ".Empty\022\021OperationMetadata\032V\312A\"networkcon" + - "nectivity.googleapis.com\322A.https://www.g" + - "oogleapis.com/auth/cloud-platformB\332\004\n-co" + - "m.google.cloud.networkconnectivity.v1alp" + - "ha1B\010HubProtoP\001Z\\google.golang.org/genpr" + - "oto/googleapis/cloud/networkconnectivity" + - "/v1alpha1;networkconnectivity\252\002)Google.C" + - "loud.NetworkConnectivity.V1Alpha1\312\002)Goog" + - "le\\Cloud\\NetworkConnectivity\\V1alpha1\352\002," + - "Google::Cloud::NetworkConnectivity::V1al" + - "pha1\352A`\n compute.googleapis.com/VpnTunne" + - "l\022 Date: Fri, 27 Jan 2023 20:10:16 +0000 Subject: [PATCH 5/6] fix!: remove policy based routing API PiperOrigin-RevId: 505139690 Source-Link: https://github.com/googleapis/googleapis/commit/183d61a81691cb57a68d1d0f871414c1cc12d526 Source-Link: https://github.com/googleapis/googleapis-gen/commit/58af86ac496b5d1a0c0f5ba4019149f9d66b5663 Copy-Tag: eyJwIjoiamF2YS1uZXR3b3JrY29ubmVjdGl2aXR5Ly5Pd2xCb3QueWFtbCIsImgiOiI1OGFmODZhYzQ5NmI1ZDFhMGMwZjViYTQwMTkxNDlmOWQ2NmI1NjYzIn0= --- .../v1/PolicyBasedRoutingServiceClient.java | 944 -- .../v1/PolicyBasedRoutingServiceSettings.java | 271 - ...icyBasedRoutingServiceCallableFactory.java | 113 - .../GrpcPolicyBasedRoutingServiceStub.java | 325 - .../stub/PolicyBasedRoutingServiceStub.java | 86 - ...PolicyBasedRoutingServiceStubSettings.java | 572 -- .../v1/MockPolicyBasedRoutingService.java | 59 - .../v1/MockPolicyBasedRoutingServiceImpl.java | 146 - .../PolicyBasedRoutingServiceClientTest.java | 501 - .../v1/HubServiceGrpc.java | 1396 --- .../v1/PolicyBasedRoutingServiceGrpc.java | 757 -- .../v1alpha1/HubServiceGrpc.java | 1400 --- .../networkconnectivity/v1/CommonProto.java | 102 - .../v1/CreatePolicyBasedRouteRequest.java | 1386 --- ...reatePolicyBasedRouteRequestOrBuilder.java | 165 - .../v1/DeletePolicyBasedRouteRequest.java | 907 -- ...eletePolicyBasedRouteRequestOrBuilder.java | 99 - .../v1/GetHubRequestOrBuilder.java | 54 - .../v1/GetPolicyBasedRouteRequest.java | 655 -- .../GetPolicyBasedRouteRequestOrBuilder.java | 54 - .../v1/GetSpokeRequestOrBuilder.java | 54 - .../networkconnectivity/v1/HubProto.java | 532 - .../v1/ListPolicyBasedRoutesRequest.java | 1294 --- ...ListPolicyBasedRoutesRequestOrBuilder.java | 142 - .../v1/ListPolicyBasedRoutesResponse.java | 1462 --- ...istPolicyBasedRoutesResponseOrBuilder.java | 162 - .../v1/PolicyBasedRoute.java | 8859 ----------------- .../v1/PolicyBasedRouteName.java | 228 - .../v1/PolicyBasedRouteOrBuilder.java | 556 -- .../v1/PolicyBasedRoutingProto.java | 349 - .../v1/policy_based_routing.proto | 338 - .../v1alpha1/CommonProto.java | 94 - .../v1alpha1/GetHubRequestOrBuilder.java | 54 - .../v1alpha1/GetSpokeRequestOrBuilder.java | 54 - .../v1alpha1/HubProto.java | 460 - .../SyncCreateSetCredentialsProvider.java | 45 - .../create/SyncCreateSetEndpoint.java | 42 - .../AsyncCreatePolicyBasedRoute.java | 55 - .../AsyncCreatePolicyBasedRouteLRO.java | 57 - .../SyncCreatePolicyBasedRoute.java | 51 - ...uteLocationnamePolicybasedrouteString.java | 49 - ...asedRouteStringPolicybasedrouteString.java | 48 - .../AsyncDeletePolicyBasedRoute.java | 54 - .../AsyncDeletePolicyBasedRouteLRO.java | 57 - .../SyncDeletePolicyBasedRoute.java | 50 - ...ePolicyBasedRoutePolicybasedroutename.java | 44 - .../SyncDeletePolicyBasedRouteString.java | 44 - .../AsyncGetPolicyBasedRoute.java | 53 - .../SyncGetPolicyBasedRoute.java | 49 - ...tPolicyBasedRoutePolicybasedroutename.java | 44 - .../SyncGetPolicyBasedRouteString.java | 44 - .../AsyncListPolicyBasedRoutes.java | 57 - .../AsyncListPolicyBasedRoutesPaged.java | 65 - .../SyncListPolicyBasedRoutes.java | 54 - ...SyncListPolicyBasedRoutesLocationname.java | 46 - .../SyncListPolicyBasedRoutesString.java | 46 - .../SyncGetPolicyBasedRoute.java | 50 - .../SyncGetPolicyBasedRoute.java | 50 - .../v1/HubServiceClient.java | 0 .../v1/HubServiceSettings.java | 1 + .../v1/gapic_metadata.json | 21 - .../networkconnectivity/v1/package-info.java | 21 - .../stub/GrpcHubServiceCallableFactory.java | 0 .../v1/stub/GrpcHubServiceStub.java | 1 + .../v1/stub/HubServiceStub.java | 0 .../v1/stub/HubServiceStubSettings.java | 0 .../v1/HubServiceClientTest.java | 0 .../v1/MockHubService.java | 0 .../v1/MockHubServiceImpl.java | 0 .../v1/HubServiceGrpc.java | 1095 ++ .../networkconnectivity/v1/CommonProto.java | 81 + .../v1/CreateHubRequest.java | 637 +- .../v1/CreateHubRequestOrBuilder.java | 73 +- .../v1/CreateSpokeRequest.java | 645 +- .../v1/CreateSpokeRequestOrBuilder.java | 73 +- .../v1/DeleteHubRequest.java | 428 +- .../v1/DeleteHubRequestOrBuilder.java | 44 +- .../v1/DeleteSpokeRequest.java | 428 +- .../v1/DeleteSpokeRequestOrBuilder.java | 44 +- .../networkconnectivity/v1/GetHubRequest.java | 356 +- .../v1/GetHubRequestOrBuilder.java | 29 + .../v1/GetSpokeRequest.java | 356 +- .../v1/GetSpokeRequestOrBuilder.java | 29 + .../cloud/networkconnectivity/v1/Hub.java | 1204 +-- .../cloud/networkconnectivity/v1/HubName.java | 0 .../networkconnectivity/v1/HubOrBuilder.java | 141 +- .../networkconnectivity/v1/HubProto.java | 477 + .../v1/LinkedInterconnectAttachments.java | 531 +- ...inkedInterconnectAttachmentsOrBuilder.java | 56 +- .../v1/LinkedRouterApplianceInstances.java | 697 +- ...nkedRouterApplianceInstancesOrBuilder.java | 67 +- .../v1/LinkedVpnTunnels.java | 496 +- .../v1/LinkedVpnTunnelsOrBuilder.java | 56 +- .../v1/ListHubsRequest.java | 607 +- .../v1/ListHubsRequestOrBuilder.java | 65 +- .../v1/ListHubsResponse.java | 590 +- .../v1/ListHubsResponseOrBuilder.java | 63 +- .../v1/ListSpokesRequest.java | 607 +- .../v1/ListSpokesRequestOrBuilder.java | 65 +- .../v1/ListSpokesResponse.java | 587 +- .../v1/ListSpokesResponseOrBuilder.java | 63 +- .../v1/LocationFeature.java | 82 +- .../v1/LocationMetadata.java | 454 +- .../v1/LocationMetadataOrBuilder.java | 51 +- .../networkconnectivity/v1/LocationName.java | 0 .../v1/OperationMetadata.java | 835 +- .../v1/OperationMetadataOrBuilder.java | 91 +- .../v1/RouterApplianceInstance.java | 423 +- .../v1/RouterApplianceInstanceOrBuilder.java | 36 +- .../networkconnectivity/v1/RoutingVPC.java | 385 +- .../v1/RoutingVPCOrBuilder.java | 34 +- .../cloud/networkconnectivity/v1/Spoke.java | 1648 ++- .../networkconnectivity/v1/SpokeName.java | 0 .../v1/SpokeOrBuilder.java | 200 +- .../cloud/networkconnectivity/v1/State.java | 96 +- .../v1/UpdateHubRequest.java | 590 +- .../v1/UpdateHubRequestOrBuilder.java | 64 +- .../v1/UpdateSpokeRequest.java | 598 +- .../v1/UpdateSpokeRequestOrBuilder.java | 64 +- .../cloud/networkconnectivity/v1/common.proto | 0 .../cloud/networkconnectivity/v1/hub.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../hubservice/createhub/AsyncCreateHub.java | 0 .../createhub/AsyncCreateHubLRO.java | 0 .../hubservice/createhub/SyncCreateHub.java | 0 .../SyncCreateHubLocationnameHubString.java | 0 .../SyncCreateHubStringHubString.java | 0 .../createspoke/AsyncCreateSpoke.java | 0 .../createspoke/AsyncCreateSpokeLRO.java | 0 .../createspoke/SyncCreateSpoke.java | 0 ...yncCreateSpokeLocationnameSpokeString.java | 0 .../SyncCreateSpokeStringSpokeString.java | 0 .../hubservice/deletehub/AsyncDeleteHub.java | 0 .../deletehub/AsyncDeleteHubLRO.java | 0 .../hubservice/deletehub/SyncDeleteHub.java | 0 .../deletehub/SyncDeleteHubHubname.java | 0 .../deletehub/SyncDeleteHubString.java | 0 .../deletespoke/AsyncDeleteSpoke.java | 0 .../deletespoke/AsyncDeleteSpokeLRO.java | 0 .../deletespoke/SyncDeleteSpoke.java | 0 .../deletespoke/SyncDeleteSpokeSpokename.java | 0 .../deletespoke/SyncDeleteSpokeString.java | 0 .../v1/hubservice/gethub/AsyncGetHub.java | 0 .../v1/hubservice/gethub/SyncGetHub.java | 0 .../hubservice/gethub/SyncGetHubHubname.java | 0 .../hubservice/gethub/SyncGetHubString.java | 0 .../v1/hubservice/getspoke/AsyncGetSpoke.java | 0 .../v1/hubservice/getspoke/SyncGetSpoke.java | 0 .../getspoke/SyncGetSpokeSpokename.java | 0 .../getspoke/SyncGetSpokeString.java | 0 .../v1/hubservice/listhubs/AsyncListHubs.java | 0 .../listhubs/AsyncListHubsPaged.java | 0 .../v1/hubservice/listhubs/SyncListHubs.java | 0 .../listhubs/SyncListHubsLocationname.java | 0 .../listhubs/SyncListHubsString.java | 0 .../listspokes/AsyncListSpokes.java | 0 .../listspokes/AsyncListSpokesPaged.java | 0 .../hubservice/listspokes/SyncListSpokes.java | 0 .../SyncListSpokesLocationname.java | 0 .../listspokes/SyncListSpokesString.java | 0 .../hubservice/updatehub/AsyncUpdateHub.java | 0 .../updatehub/AsyncUpdateHubLRO.java | 0 .../hubservice/updatehub/SyncUpdateHub.java | 0 .../updatehub/SyncUpdateHubHubFieldmask.java | 0 .../updatespoke/AsyncUpdateSpoke.java | 0 .../updatespoke/AsyncUpdateSpokeLRO.java | 0 .../updatespoke/SyncUpdateSpoke.java | 0 .../SyncUpdateSpokeSpokeFieldmask.java | 0 .../hubservicesettings/gethub/SyncGetHub.java | 0 .../gethub/SyncGetHub.java | 0 .../v1alpha1/HubServiceClient.java | 0 .../v1alpha1/HubServiceSettings.java | 1 + .../v1alpha1/gapic_metadata.json | 0 .../v1alpha1/package-info.java | 0 .../stub/GrpcHubServiceCallableFactory.java | 0 .../v1alpha1/stub/GrpcHubServiceStub.java | 1 + .../v1alpha1/stub/HubServiceStub.java | 0 .../v1alpha1/stub/HubServiceStubSettings.java | 0 .../v1alpha1/HubServiceClientTest.java | 0 .../v1alpha1/MockHubService.java | 0 .../v1alpha1/MockHubServiceImpl.java | 0 .../v1alpha1/HubServiceGrpc.java | 1092 ++ .../v1alpha1/CommonProto.java | 73 + .../v1alpha1/CreateHubRequest.java | 662 +- .../v1alpha1/CreateHubRequestOrBuilder.java | 73 +- .../v1alpha1/CreateSpokeRequest.java | 665 +- .../v1alpha1/CreateSpokeRequestOrBuilder.java | 73 +- .../v1alpha1/DeleteHubRequest.java | 448 +- .../v1alpha1/DeleteHubRequestOrBuilder.java | 44 +- .../v1alpha1/DeleteSpokeRequest.java | 451 +- .../v1alpha1/DeleteSpokeRequestOrBuilder.java | 44 +- .../v1alpha1/GetHubRequest.java | 356 +- .../v1alpha1/GetHubRequestOrBuilder.java | 29 + .../v1alpha1/GetSpokeRequest.java | 366 +- .../v1alpha1/GetSpokeRequestOrBuilder.java | 29 + .../networkconnectivity/v1alpha1/Hub.java | 1148 +-- .../networkconnectivity/v1alpha1/HubName.java | 0 .../v1alpha1/HubOrBuilder.java | 139 +- .../v1alpha1/HubProto.java | 408 + .../v1alpha1/ListHubsRequest.java | 617 +- .../v1alpha1/ListHubsRequestOrBuilder.java | 65 +- .../v1alpha1/ListHubsResponse.java | 609 +- .../v1alpha1/ListHubsResponseOrBuilder.java | 63 +- .../v1alpha1/ListSpokesRequest.java | 630 +- .../v1alpha1/ListSpokesRequestOrBuilder.java | 65 +- .../v1alpha1/ListSpokesResponse.java | 609 +- .../v1alpha1/ListSpokesResponseOrBuilder.java | 63 +- .../v1alpha1/LocationName.java | 0 .../v1alpha1/OperationMetadata.java | 858 +- .../v1alpha1/OperationMetadataOrBuilder.java | 91 +- .../v1alpha1/RouterApplianceInstance.java | 539 +- .../RouterApplianceInstanceOrBuilder.java | 53 +- .../networkconnectivity/v1alpha1/Spoke.java | 1653 ++- .../v1alpha1/SpokeName.java | 0 .../v1alpha1/SpokeOrBuilder.java | 220 +- .../networkconnectivity/v1alpha1/State.java | 93 +- .../v1alpha1/UpdateHubRequest.java | 615 +- .../v1alpha1/UpdateHubRequestOrBuilder.java | 64 +- .../v1alpha1/UpdateSpokeRequest.java | 618 +- .../v1alpha1/UpdateSpokeRequestOrBuilder.java | 64 +- .../networkconnectivity/v1alpha1/common.proto | 0 .../networkconnectivity/v1alpha1/hub.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../hubservice/createhub/AsyncCreateHub.java | 0 .../createhub/AsyncCreateHubLRO.java | 0 .../hubservice/createhub/SyncCreateHub.java | 0 .../SyncCreateHubLocationnameHubString.java | 0 .../SyncCreateHubStringHubString.java | 0 .../createspoke/AsyncCreateSpoke.java | 0 .../createspoke/AsyncCreateSpokeLRO.java | 0 .../createspoke/SyncCreateSpoke.java | 0 ...yncCreateSpokeLocationnameSpokeString.java | 0 .../SyncCreateSpokeStringSpokeString.java | 0 .../hubservice/deletehub/AsyncDeleteHub.java | 0 .../deletehub/AsyncDeleteHubLRO.java | 0 .../hubservice/deletehub/SyncDeleteHub.java | 0 .../deletehub/SyncDeleteHubHubname.java | 0 .../deletehub/SyncDeleteHubString.java | 0 .../deletespoke/AsyncDeleteSpoke.java | 0 .../deletespoke/AsyncDeleteSpokeLRO.java | 0 .../deletespoke/SyncDeleteSpoke.java | 0 .../deletespoke/SyncDeleteSpokeSpokename.java | 0 .../deletespoke/SyncDeleteSpokeString.java | 0 .../hubservice/gethub/AsyncGetHub.java | 0 .../hubservice/gethub/SyncGetHub.java | 0 .../hubservice/gethub/SyncGetHubHubname.java | 0 .../hubservice/gethub/SyncGetHubString.java | 0 .../hubservice/getspoke/AsyncGetSpoke.java | 0 .../hubservice/getspoke/SyncGetSpoke.java | 0 .../getspoke/SyncGetSpokeSpokename.java | 0 .../getspoke/SyncGetSpokeString.java | 0 .../hubservice/listhubs/AsyncListHubs.java | 0 .../listhubs/AsyncListHubsPaged.java | 0 .../hubservice/listhubs/SyncListHubs.java | 0 .../listhubs/SyncListHubsLocationname.java | 0 .../listhubs/SyncListHubsString.java | 0 .../listspokes/AsyncListSpokes.java | 0 .../listspokes/AsyncListSpokesPaged.java | 0 .../hubservice/listspokes/SyncListSpokes.java | 0 .../SyncListSpokesLocationname.java | 0 .../listspokes/SyncListSpokesString.java | 0 .../hubservice/updatehub/AsyncUpdateHub.java | 0 .../updatehub/AsyncUpdateHubLRO.java | 0 .../hubservice/updatehub/SyncUpdateHub.java | 0 .../updatehub/SyncUpdateHubHubFieldmask.java | 0 .../updatespoke/AsyncUpdateSpoke.java | 0 .../updatespoke/AsyncUpdateSpokeLRO.java | 0 .../updatespoke/SyncUpdateSpoke.java | 0 .../SyncUpdateSpokeSpokeFieldmask.java | 0 .../hubservicesettings/gethub/SyncGetHub.java | 0 .../gethub/SyncGetHub.java | 0 273 files changed, 13016 insertions(+), 42844 deletions(-) delete mode 100644 java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java delete mode 100644 java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java delete mode 100644 java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceCallableFactory.java delete mode 100644 java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceStub.java delete mode 100644 java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java delete mode 100644 java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java delete mode 100644 java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingService.java delete mode 100644 java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingServiceImpl.java delete mode 100644 java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClientTest.java delete mode 100644 java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java delete mode 100644 java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java delete mode 100644 java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequest.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequest.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequest.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequest.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponse.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponseOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoute.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingProto.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/policy_based_routing.proto delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java delete mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetCredentialsProvider.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/create/SyncCreateSetEndpoint.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRoute.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRouteLRO.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRoute.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteStringPolicybasedrouteString.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRoute.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRouteLRO.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoute.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoutePolicybasedroutename.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRouteString.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/AsyncGetPolicyBasedRoute.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoute.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoutePolicybasedroutename.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRouteString.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutes.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutesPaged.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutes.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesLocationname.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesString.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservicesettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java delete mode 100644 java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/policybasedroutingservicestubsettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java (99%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json (64%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java (62%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java (99%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java (100%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java (69%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java (69%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java (68%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java (69%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java (71%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java (71%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java (71%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java (61%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java (61%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java (78%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachments.java (65%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java (64%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java (64%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java (62%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java (68%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java (63%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java (58%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java (72%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java (71%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java (58%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java (72%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java (73%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java (62%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java (75%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java (65%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java (57%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java (66%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java (58%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java (63%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java (69%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java (68%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java (72%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java (77%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java (71%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java (77%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java (99%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java (99%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java (100%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java create mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java (68%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java (68%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java (69%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java (69%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java (63%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java (61%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java (66%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java (67%) create mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequest.java (67%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java (59%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java (71%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java (73%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java (66%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java (59%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java (71%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java (73%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java (75%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java (63%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java (55%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java (66%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java (65%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java (66%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java (76%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java (70%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java (76%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java (100%) rename {java-networkconnectivity => owl-bot-staging/java-networkconnectivity/v1alpha1}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java (100%) diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java deleted file mode 100644 index c006579e4952..000000000000 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClient.java +++ /dev/null @@ -1,944 +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.networkconnectivity.v1; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.networkconnectivity.v1.stub.PolicyBasedRoutingServiceStub; -import com.google.cloud.networkconnectivity.v1.stub.PolicyBasedRoutingServiceStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Policy-Based Routing allows GCP customers to specify flexibile routing - * policies for Layer 4 traffic traversing through the connected service. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
- *     PolicyBasedRoutingServiceClient.create()) {
- *   PolicyBasedRouteName name =
- *       PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]");
- *   PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(name);
- * }
- * }
- * - *

Note: close() needs to be called on the PolicyBasedRoutingServiceClient object to clean up - * resources such as threads. In the example above, try-with-resources is used, which automatically - * calls close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. 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. - *
  2. 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. - *
  3. 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. - *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of - * PolicyBasedRoutingServiceSettings to create(). For example: - * - *

To customize credentials: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyBasedRoutingServiceSettings policyBasedRoutingServiceSettings =
- *     PolicyBasedRoutingServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
- *     PolicyBasedRoutingServiceClient.create(policyBasedRoutingServiceSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyBasedRoutingServiceSettings policyBasedRoutingServiceSettings =
- *     PolicyBasedRoutingServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
- *     PolicyBasedRoutingServiceClient.create(policyBasedRoutingServiceSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class PolicyBasedRoutingServiceClient implements BackgroundResource { - private final PolicyBasedRoutingServiceSettings settings; - private final PolicyBasedRoutingServiceStub stub; - private final OperationsClient operationsClient; - - /** Constructs an instance of PolicyBasedRoutingServiceClient with default settings. */ - public static final PolicyBasedRoutingServiceClient create() throws IOException { - return create(PolicyBasedRoutingServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of PolicyBasedRoutingServiceClient, using the given settings. The - * channels are created based on the settings passed in, or defaults for any settings that are not - * set. - */ - public static final PolicyBasedRoutingServiceClient create( - PolicyBasedRoutingServiceSettings settings) throws IOException { - return new PolicyBasedRoutingServiceClient(settings); - } - - /** - * Constructs an instance of PolicyBasedRoutingServiceClient, using the given stub for making - * calls. This is for advanced usage - prefer using create(PolicyBasedRoutingServiceSettings). - */ - public static final PolicyBasedRoutingServiceClient create(PolicyBasedRoutingServiceStub stub) { - return new PolicyBasedRoutingServiceClient(stub); - } - - /** - * Constructs an instance of PolicyBasedRoutingServiceClient, 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 PolicyBasedRoutingServiceClient(PolicyBasedRoutingServiceSettings settings) - throws IOException { - this.settings = settings; - this.stub = ((PolicyBasedRoutingServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - protected PolicyBasedRoutingServiceClient(PolicyBasedRoutingServiceStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - public final PolicyBasedRoutingServiceSettings getSettings() { - return settings; - } - - public PolicyBasedRoutingServiceStub getStub() { - return stub; - } - - /** - * 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() { - return operationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists PolicyBasedRoutes in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (PolicyBasedRoute element :
-   *       policyBasedRoutingServiceClient.listPolicyBasedRoutes(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListPolicyBasedRoutesPagedResponse listPolicyBasedRoutes(LocationName parent) { - ListPolicyBasedRoutesRequest request = - ListPolicyBasedRoutesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listPolicyBasedRoutes(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists PolicyBasedRoutes in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (PolicyBasedRoute element :
-   *       policyBasedRoutingServiceClient.listPolicyBasedRoutes(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource's name. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListPolicyBasedRoutesPagedResponse listPolicyBasedRoutes(String parent) { - ListPolicyBasedRoutesRequest request = - ListPolicyBasedRoutesRequest.newBuilder().setParent(parent).build(); - return listPolicyBasedRoutes(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists PolicyBasedRoutes in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   ListPolicyBasedRoutesRequest request =
-   *       ListPolicyBasedRoutesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   for (PolicyBasedRoute element :
-   *       policyBasedRoutingServiceClient.listPolicyBasedRoutes(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 ListPolicyBasedRoutesPagedResponse listPolicyBasedRoutes( - ListPolicyBasedRoutesRequest request) { - return listPolicyBasedRoutesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists PolicyBasedRoutes in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   ListPolicyBasedRoutesRequest request =
-   *       ListPolicyBasedRoutesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   ApiFuture future =
-   *       policyBasedRoutingServiceClient.listPolicyBasedRoutesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (PolicyBasedRoute element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listPolicyBasedRoutesPagedCallable() { - return stub.listPolicyBasedRoutesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists PolicyBasedRoutes in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   ListPolicyBasedRoutesRequest request =
-   *       ListPolicyBasedRoutesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   while (true) {
-   *     ListPolicyBasedRoutesResponse response =
-   *         policyBasedRoutingServiceClient.listPolicyBasedRoutesCallable().call(request);
-   *     for (PolicyBasedRoute element : response.getPolicyBasedRoutesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listPolicyBasedRoutesCallable() { - return stub.listPolicyBasedRoutesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single PolicyBasedRoute. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   PolicyBasedRouteName name =
-   *       PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]");
-   *   PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(name);
-   * }
-   * }
- * - * @param name Required. Name of the PolicyBasedRoute resource to get. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final PolicyBasedRoute getPolicyBasedRoute(PolicyBasedRouteName name) { - GetPolicyBasedRouteRequest request = - GetPolicyBasedRouteRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getPolicyBasedRoute(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single PolicyBasedRoute. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   String name =
-   *       PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]").toString();
-   *   PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(name);
-   * }
-   * }
- * - * @param name Required. Name of the PolicyBasedRoute resource to get. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final PolicyBasedRoute getPolicyBasedRoute(String name) { - GetPolicyBasedRouteRequest request = - GetPolicyBasedRouteRequest.newBuilder().setName(name).build(); - return getPolicyBasedRoute(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single PolicyBasedRoute. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   GetPolicyBasedRouteRequest request =
-   *       GetPolicyBasedRouteRequest.newBuilder()
-   *           .setName(
-   *               PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]")
-   *                   .toString())
-   *           .build();
-   *   PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(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 PolicyBasedRoute getPolicyBasedRoute(GetPolicyBasedRouteRequest request) { - return getPolicyBasedRouteCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single PolicyBasedRoute. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   GetPolicyBasedRouteRequest request =
-   *       GetPolicyBasedRouteRequest.newBuilder()
-   *           .setName(
-   *               PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       policyBasedRoutingServiceClient.getPolicyBasedRouteCallable().futureCall(request);
-   *   // Do something.
-   *   PolicyBasedRoute response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getPolicyBasedRouteCallable() { - return stub.getPolicyBasedRouteCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new PolicyBasedRoute in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build();
-   *   String policyBasedRouteId = "policyBasedRouteId-18034589";
-   *   PolicyBasedRoute response =
-   *       policyBasedRoutingServiceClient
-   *           .createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. The parent resource's name of the PolicyBasedRoute. - * @param policyBasedRoute Required. Initial values for a new Policy Based Route. - * @param policyBasedRouteId Optional. Unique id for the Policy Based Route to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createPolicyBasedRouteAsync( - LocationName parent, PolicyBasedRoute policyBasedRoute, String policyBasedRouteId) { - CreatePolicyBasedRouteRequest request = - CreatePolicyBasedRouteRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setPolicyBasedRoute(policyBasedRoute) - .setPolicyBasedRouteId(policyBasedRouteId) - .build(); - return createPolicyBasedRouteAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new PolicyBasedRoute in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build();
-   *   String policyBasedRouteId = "policyBasedRouteId-18034589";
-   *   PolicyBasedRoute response =
-   *       policyBasedRoutingServiceClient
-   *           .createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. The parent resource's name of the PolicyBasedRoute. - * @param policyBasedRoute Required. Initial values for a new Policy Based Route. - * @param policyBasedRouteId Optional. Unique id for the Policy Based Route to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createPolicyBasedRouteAsync( - String parent, PolicyBasedRoute policyBasedRoute, String policyBasedRouteId) { - CreatePolicyBasedRouteRequest request = - CreatePolicyBasedRouteRequest.newBuilder() - .setParent(parent) - .setPolicyBasedRoute(policyBasedRoute) - .setPolicyBasedRouteId(policyBasedRouteId) - .build(); - return createPolicyBasedRouteAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new PolicyBasedRoute in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   CreatePolicyBasedRouteRequest request =
-   *       CreatePolicyBasedRouteRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPolicyBasedRouteId("policyBasedRouteId-18034589")
-   *           .setPolicyBasedRoute(PolicyBasedRoute.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   PolicyBasedRoute response =
-   *       policyBasedRoutingServiceClient.createPolicyBasedRouteAsync(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 createPolicyBasedRouteAsync( - CreatePolicyBasedRouteRequest request) { - return createPolicyBasedRouteOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new PolicyBasedRoute in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   CreatePolicyBasedRouteRequest request =
-   *       CreatePolicyBasedRouteRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPolicyBasedRouteId("policyBasedRouteId-18034589")
-   *           .setPolicyBasedRoute(PolicyBasedRoute.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   OperationFuture future =
-   *       policyBasedRoutingServiceClient
-   *           .createPolicyBasedRouteOperationCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   PolicyBasedRoute response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - createPolicyBasedRouteOperationCallable() { - return stub.createPolicyBasedRouteOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new PolicyBasedRoute in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   CreatePolicyBasedRouteRequest request =
-   *       CreatePolicyBasedRouteRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPolicyBasedRouteId("policyBasedRouteId-18034589")
-   *           .setPolicyBasedRoute(PolicyBasedRoute.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future =
-   *       policyBasedRoutingServiceClient.createPolicyBasedRouteCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createPolicyBasedRouteCallable() { - return stub.createPolicyBasedRouteCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single PolicyBasedRoute. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   PolicyBasedRouteName name =
-   *       PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]");
-   *   policyBasedRoutingServiceClient.deletePolicyBasedRouteAsync(name).get();
-   * }
-   * }
- * - * @param name Required. Name of the PolicyBasedRoute resource to delete. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deletePolicyBasedRouteAsync( - PolicyBasedRouteName name) { - DeletePolicyBasedRouteRequest request = - DeletePolicyBasedRouteRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return deletePolicyBasedRouteAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single PolicyBasedRoute. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   String name =
-   *       PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]").toString();
-   *   policyBasedRoutingServiceClient.deletePolicyBasedRouteAsync(name).get();
-   * }
-   * }
- * - * @param name Required. Name of the PolicyBasedRoute resource to delete. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deletePolicyBasedRouteAsync(String name) { - DeletePolicyBasedRouteRequest request = - DeletePolicyBasedRouteRequest.newBuilder().setName(name).build(); - return deletePolicyBasedRouteAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single PolicyBasedRoute. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   DeletePolicyBasedRouteRequest request =
-   *       DeletePolicyBasedRouteRequest.newBuilder()
-   *           .setName(
-   *               PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]")
-   *                   .toString())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   policyBasedRoutingServiceClient.deletePolicyBasedRouteAsync(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 deletePolicyBasedRouteAsync( - DeletePolicyBasedRouteRequest request) { - return deletePolicyBasedRouteOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single PolicyBasedRoute. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   DeletePolicyBasedRouteRequest request =
-   *       DeletePolicyBasedRouteRequest.newBuilder()
-   *           .setName(
-   *               PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]")
-   *                   .toString())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   OperationFuture future =
-   *       policyBasedRoutingServiceClient
-   *           .deletePolicyBasedRouteOperationCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final OperationCallable - deletePolicyBasedRouteOperationCallable() { - return stub.deletePolicyBasedRouteOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single PolicyBasedRoute. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
-   *     PolicyBasedRoutingServiceClient.create()) {
-   *   DeletePolicyBasedRouteRequest request =
-   *       DeletePolicyBasedRouteRequest.newBuilder()
-   *           .setName(
-   *               PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]")
-   *                   .toString())
-   *           .setRequestId("requestId693933066")
-   *           .build();
-   *   ApiFuture future =
-   *       policyBasedRoutingServiceClient.deletePolicyBasedRouteCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - deletePolicyBasedRouteCallable() { - return stub.deletePolicyBasedRouteCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListPolicyBasedRoutesPagedResponse - extends AbstractPagedListResponse< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - PolicyBasedRoute, - ListPolicyBasedRoutesPage, - ListPolicyBasedRoutesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListPolicyBasedRoutesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListPolicyBasedRoutesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListPolicyBasedRoutesPagedResponse(ListPolicyBasedRoutesPage page) { - super(page, ListPolicyBasedRoutesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListPolicyBasedRoutesPage - extends AbstractPage< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - PolicyBasedRoute, - ListPolicyBasedRoutesPage> { - - private ListPolicyBasedRoutesPage( - PageContext - context, - ListPolicyBasedRoutesResponse response) { - super(context, response); - } - - private static ListPolicyBasedRoutesPage createEmptyPage() { - return new ListPolicyBasedRoutesPage(null, null); - } - - @Override - protected ListPolicyBasedRoutesPage createPage( - PageContext - context, - ListPolicyBasedRoutesResponse response) { - return new ListPolicyBasedRoutesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListPolicyBasedRoutesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - PolicyBasedRoute, - ListPolicyBasedRoutesPage, - ListPolicyBasedRoutesFixedSizeCollection> { - - private ListPolicyBasedRoutesFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListPolicyBasedRoutesFixedSizeCollection createEmptyCollection() { - return new ListPolicyBasedRoutesFixedSizeCollection(null, 0); - } - - @Override - protected ListPolicyBasedRoutesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListPolicyBasedRoutesFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java deleted file mode 100644 index b88372c68322..000000000000 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceSettings.java +++ /dev/null @@ -1,271 +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.networkconnectivity.v1; - -import static com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient.ListPolicyBasedRoutesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -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.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.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.networkconnectivity.v1.stub.PolicyBasedRoutingServiceStubSettings; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link PolicyBasedRoutingServiceClient}. - * - *

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

    - *
  • The default service address (networkconnectivity.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getPolicyBasedRoute to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyBasedRoutingServiceSettings.Builder policyBasedRoutingServiceSettingsBuilder =
- *     PolicyBasedRoutingServiceSettings.newBuilder();
- * policyBasedRoutingServiceSettingsBuilder
- *     .getPolicyBasedRouteSettings()
- *     .setRetrySettings(
- *         policyBasedRoutingServiceSettingsBuilder
- *             .getPolicyBasedRouteSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * PolicyBasedRoutingServiceSettings policyBasedRoutingServiceSettings =
- *     policyBasedRoutingServiceSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class PolicyBasedRoutingServiceSettings - extends ClientSettings { - - /** Returns the object with the settings used for calls to listPolicyBasedRoutes. */ - public PagedCallSettings< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - ListPolicyBasedRoutesPagedResponse> - listPolicyBasedRoutesSettings() { - return ((PolicyBasedRoutingServiceStubSettings) getStubSettings()) - .listPolicyBasedRoutesSettings(); - } - - /** Returns the object with the settings used for calls to getPolicyBasedRoute. */ - public UnaryCallSettings - getPolicyBasedRouteSettings() { - return ((PolicyBasedRoutingServiceStubSettings) getStubSettings()) - .getPolicyBasedRouteSettings(); - } - - /** Returns the object with the settings used for calls to createPolicyBasedRoute. */ - public UnaryCallSettings - createPolicyBasedRouteSettings() { - return ((PolicyBasedRoutingServiceStubSettings) getStubSettings()) - .createPolicyBasedRouteSettings(); - } - - /** Returns the object with the settings used for calls to createPolicyBasedRoute. */ - public OperationCallSettings - createPolicyBasedRouteOperationSettings() { - return ((PolicyBasedRoutingServiceStubSettings) getStubSettings()) - .createPolicyBasedRouteOperationSettings(); - } - - /** Returns the object with the settings used for calls to deletePolicyBasedRoute. */ - public UnaryCallSettings - deletePolicyBasedRouteSettings() { - return ((PolicyBasedRoutingServiceStubSettings) getStubSettings()) - .deletePolicyBasedRouteSettings(); - } - - /** Returns the object with the settings used for calls to deletePolicyBasedRoute. */ - public OperationCallSettings - deletePolicyBasedRouteOperationSettings() { - return ((PolicyBasedRoutingServiceStubSettings) getStubSettings()) - .deletePolicyBasedRouteOperationSettings(); - } - - public static final PolicyBasedRoutingServiceSettings create( - PolicyBasedRoutingServiceStubSettings stub) throws IOException { - return new PolicyBasedRoutingServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return PolicyBasedRoutingServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return PolicyBasedRoutingServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return PolicyBasedRoutingServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return PolicyBasedRoutingServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return PolicyBasedRoutingServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return PolicyBasedRoutingServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return PolicyBasedRoutingServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected PolicyBasedRoutingServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for PolicyBasedRoutingServiceSettings. */ - public static class Builder - extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(PolicyBasedRoutingServiceStubSettings.newBuilder(clientContext)); - } - - protected Builder(PolicyBasedRoutingServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(PolicyBasedRoutingServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(PolicyBasedRoutingServiceStubSettings.newBuilder()); - } - - public PolicyBasedRoutingServiceStubSettings.Builder getStubSettingsBuilder() { - return ((PolicyBasedRoutingServiceStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to listPolicyBasedRoutes. */ - public PagedCallSettings.Builder< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - ListPolicyBasedRoutesPagedResponse> - listPolicyBasedRoutesSettings() { - return getStubSettingsBuilder().listPolicyBasedRoutesSettings(); - } - - /** Returns the builder for the settings used for calls to getPolicyBasedRoute. */ - public UnaryCallSettings.Builder - getPolicyBasedRouteSettings() { - return getStubSettingsBuilder().getPolicyBasedRouteSettings(); - } - - /** Returns the builder for the settings used for calls to createPolicyBasedRoute. */ - public UnaryCallSettings.Builder - createPolicyBasedRouteSettings() { - return getStubSettingsBuilder().createPolicyBasedRouteSettings(); - } - - /** Returns the builder for the settings used for calls to createPolicyBasedRoute. */ - public OperationCallSettings.Builder< - CreatePolicyBasedRouteRequest, PolicyBasedRoute, OperationMetadata> - createPolicyBasedRouteOperationSettings() { - return getStubSettingsBuilder().createPolicyBasedRouteOperationSettings(); - } - - /** Returns the builder for the settings used for calls to deletePolicyBasedRoute. */ - public UnaryCallSettings.Builder - deletePolicyBasedRouteSettings() { - return getStubSettingsBuilder().deletePolicyBasedRouteSettings(); - } - - /** Returns the builder for the settings used for calls to deletePolicyBasedRoute. */ - public OperationCallSettings.Builder - deletePolicyBasedRouteOperationSettings() { - return getStubSettingsBuilder().deletePolicyBasedRouteOperationSettings(); - } - - @Override - public PolicyBasedRoutingServiceSettings build() throws IOException { - return new PolicyBasedRoutingServiceSettings(this); - } - } -} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceCallableFactory.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceCallableFactory.java deleted file mode 100644 index 30603bafc32f..000000000000 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceCallableFactory.java +++ /dev/null @@ -1,113 +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.networkconnectivity.v1.stub; - -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -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.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the PolicyBasedRoutingService service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -public class GrpcPolicyBasedRoutingServiceCallableFactory implements GrpcStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } -} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceStub.java deleted file mode 100644 index db36eab6cc86..000000000000 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcPolicyBasedRoutingServiceStub.java +++ /dev/null @@ -1,325 +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.networkconnectivity.v1.stub; - -import static com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient.ListPolicyBasedRoutesPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest; -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse; -import com.google.cloud.networkconnectivity.v1.OperationMetadata; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -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.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the PolicyBasedRoutingService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public class GrpcPolicyBasedRoutingServiceStub extends PolicyBasedRoutingServiceStub { - private static final MethodDescriptor - listPolicyBasedRoutesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService/ListPolicyBasedRoutes") - .setRequestMarshaller( - ProtoUtils.marshaller(ListPolicyBasedRoutesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListPolicyBasedRoutesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getPolicyBasedRouteMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService/GetPolicyBasedRoute") - .setRequestMarshaller( - ProtoUtils.marshaller(GetPolicyBasedRouteRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(PolicyBasedRoute.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createPolicyBasedRouteMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService/CreatePolicyBasedRoute") - .setRequestMarshaller( - ProtoUtils.marshaller(CreatePolicyBasedRouteRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deletePolicyBasedRouteMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService/DeletePolicyBasedRoute") - .setRequestMarshaller( - ProtoUtils.marshaller(DeletePolicyBasedRouteRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private final UnaryCallable - listPolicyBasedRoutesCallable; - private final UnaryCallable - listPolicyBasedRoutesPagedCallable; - private final UnaryCallable - getPolicyBasedRouteCallable; - private final UnaryCallable - createPolicyBasedRouteCallable; - private final OperationCallable< - CreatePolicyBasedRouteRequest, PolicyBasedRoute, OperationMetadata> - createPolicyBasedRouteOperationCallable; - private final UnaryCallable - deletePolicyBasedRouteCallable; - private final OperationCallable - deletePolicyBasedRouteOperationCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcPolicyBasedRoutingServiceStub create( - PolicyBasedRoutingServiceStubSettings settings) throws IOException { - return new GrpcPolicyBasedRoutingServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcPolicyBasedRoutingServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcPolicyBasedRoutingServiceStub( - PolicyBasedRoutingServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcPolicyBasedRoutingServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcPolicyBasedRoutingServiceStub( - PolicyBasedRoutingServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcPolicyBasedRoutingServiceStub, 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 GrpcPolicyBasedRoutingServiceStub( - PolicyBasedRoutingServiceStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcPolicyBasedRoutingServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcPolicyBasedRoutingServiceStub, 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 GrpcPolicyBasedRoutingServiceStub( - PolicyBasedRoutingServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings - listPolicyBasedRoutesTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listPolicyBasedRoutesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - getPolicyBasedRouteTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getPolicyBasedRouteMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - createPolicyBasedRouteTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createPolicyBasedRouteMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - deletePolicyBasedRouteTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deletePolicyBasedRouteMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - - this.listPolicyBasedRoutesCallable = - callableFactory.createUnaryCallable( - listPolicyBasedRoutesTransportSettings, - settings.listPolicyBasedRoutesSettings(), - clientContext); - this.listPolicyBasedRoutesPagedCallable = - callableFactory.createPagedCallable( - listPolicyBasedRoutesTransportSettings, - settings.listPolicyBasedRoutesSettings(), - clientContext); - this.getPolicyBasedRouteCallable = - callableFactory.createUnaryCallable( - getPolicyBasedRouteTransportSettings, - settings.getPolicyBasedRouteSettings(), - clientContext); - this.createPolicyBasedRouteCallable = - callableFactory.createUnaryCallable( - createPolicyBasedRouteTransportSettings, - settings.createPolicyBasedRouteSettings(), - clientContext); - this.createPolicyBasedRouteOperationCallable = - callableFactory.createOperationCallable( - createPolicyBasedRouteTransportSettings, - settings.createPolicyBasedRouteOperationSettings(), - clientContext, - operationsStub); - this.deletePolicyBasedRouteCallable = - callableFactory.createUnaryCallable( - deletePolicyBasedRouteTransportSettings, - settings.deletePolicyBasedRouteSettings(), - clientContext); - this.deletePolicyBasedRouteOperationCallable = - callableFactory.createOperationCallable( - deletePolicyBasedRouteTransportSettings, - settings.deletePolicyBasedRouteOperationSettings(), - clientContext, - operationsStub); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable - listPolicyBasedRoutesCallable() { - return listPolicyBasedRoutesCallable; - } - - @Override - public UnaryCallable - listPolicyBasedRoutesPagedCallable() { - return listPolicyBasedRoutesPagedCallable; - } - - @Override - public UnaryCallable getPolicyBasedRouteCallable() { - return getPolicyBasedRouteCallable; - } - - @Override - public UnaryCallable createPolicyBasedRouteCallable() { - return createPolicyBasedRouteCallable; - } - - @Override - public OperationCallable - createPolicyBasedRouteOperationCallable() { - return createPolicyBasedRouteOperationCallable; - } - - @Override - public UnaryCallable deletePolicyBasedRouteCallable() { - return deletePolicyBasedRouteCallable; - } - - @Override - public OperationCallable - deletePolicyBasedRouteOperationCallable() { - return deletePolicyBasedRouteOperationCallable; - } - - @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/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java deleted file mode 100644 index d1cb115a8e14..000000000000 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStub.java +++ /dev/null @@ -1,86 +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.networkconnectivity.v1.stub; - -import static com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient.ListPolicyBasedRoutesPagedResponse; - -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.networkconnectivity.v1.CreatePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest; -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse; -import com.google.cloud.networkconnectivity.v1.OperationMetadata; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -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. -/** - * Base stub class for the PolicyBasedRoutingService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public abstract class PolicyBasedRoutingServiceStub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); - } - - public UnaryCallable - listPolicyBasedRoutesPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listPolicyBasedRoutesPagedCallable()"); - } - - public UnaryCallable - listPolicyBasedRoutesCallable() { - throw new UnsupportedOperationException("Not implemented: listPolicyBasedRoutesCallable()"); - } - - public UnaryCallable getPolicyBasedRouteCallable() { - throw new UnsupportedOperationException("Not implemented: getPolicyBasedRouteCallable()"); - } - - public OperationCallable - createPolicyBasedRouteOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: createPolicyBasedRouteOperationCallable()"); - } - - public UnaryCallable createPolicyBasedRouteCallable() { - throw new UnsupportedOperationException("Not implemented: createPolicyBasedRouteCallable()"); - } - - public OperationCallable - deletePolicyBasedRouteOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: deletePolicyBasedRouteOperationCallable()"); - } - - public UnaryCallable deletePolicyBasedRouteCallable() { - throw new UnsupportedOperationException("Not implemented: deletePolicyBasedRouteCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java deleted file mode 100644 index e113fcb8d78d..000000000000 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/PolicyBasedRoutingServiceStubSettings.java +++ /dev/null @@ -1,572 +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.networkconnectivity.v1.stub; - -import static com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient.ListPolicyBasedRoutesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.grpc.ProtoOperationTransformers; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -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.networkconnectivity.v1.CreatePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest; -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse; -import com.google.cloud.networkconnectivity.v1.OperationMetadata; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -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; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link PolicyBasedRoutingServiceStub}. - * - *

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

    - *
  • The default service address (networkconnectivity.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getPolicyBasedRoute to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyBasedRoutingServiceStubSettings.Builder policyBasedRoutingServiceSettingsBuilder =
- *     PolicyBasedRoutingServiceStubSettings.newBuilder();
- * policyBasedRoutingServiceSettingsBuilder
- *     .getPolicyBasedRouteSettings()
- *     .setRetrySettings(
- *         policyBasedRoutingServiceSettingsBuilder
- *             .getPolicyBasedRouteSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * PolicyBasedRoutingServiceStubSettings policyBasedRoutingServiceSettings =
- *     policyBasedRoutingServiceSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class PolicyBasedRoutingServiceStubSettings - extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final PagedCallSettings< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - ListPolicyBasedRoutesPagedResponse> - listPolicyBasedRoutesSettings; - private final UnaryCallSettings - getPolicyBasedRouteSettings; - private final UnaryCallSettings - createPolicyBasedRouteSettings; - private final OperationCallSettings< - CreatePolicyBasedRouteRequest, PolicyBasedRoute, OperationMetadata> - createPolicyBasedRouteOperationSettings; - private final UnaryCallSettings - deletePolicyBasedRouteSettings; - private final OperationCallSettings - deletePolicyBasedRouteOperationSettings; - - private static final PagedListDescriptor< - ListPolicyBasedRoutesRequest, ListPolicyBasedRoutesResponse, PolicyBasedRoute> - LIST_POLICY_BASED_ROUTES_PAGE_STR_DESC = - new PagedListDescriptor< - ListPolicyBasedRoutesRequest, ListPolicyBasedRoutesResponse, PolicyBasedRoute>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListPolicyBasedRoutesRequest injectToken( - ListPolicyBasedRoutesRequest payload, String token) { - return ListPolicyBasedRoutesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListPolicyBasedRoutesRequest injectPageSize( - ListPolicyBasedRoutesRequest payload, int pageSize) { - return ListPolicyBasedRoutesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListPolicyBasedRoutesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListPolicyBasedRoutesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListPolicyBasedRoutesResponse payload) { - return payload.getPolicyBasedRoutesList() == null - ? ImmutableList.of() - : payload.getPolicyBasedRoutesList(); - } - }; - - private static final PagedListResponseFactory< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - ListPolicyBasedRoutesPagedResponse> - LIST_POLICY_BASED_ROUTES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - ListPolicyBasedRoutesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListPolicyBasedRoutesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListPolicyBasedRoutesRequest, ListPolicyBasedRoutesResponse, PolicyBasedRoute> - pageContext = - PageContext.create( - callable, LIST_POLICY_BASED_ROUTES_PAGE_STR_DESC, request, context); - return ListPolicyBasedRoutesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to listPolicyBasedRoutes. */ - public PagedCallSettings< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - ListPolicyBasedRoutesPagedResponse> - listPolicyBasedRoutesSettings() { - return listPolicyBasedRoutesSettings; - } - - /** Returns the object with the settings used for calls to getPolicyBasedRoute. */ - public UnaryCallSettings - getPolicyBasedRouteSettings() { - return getPolicyBasedRouteSettings; - } - - /** Returns the object with the settings used for calls to createPolicyBasedRoute. */ - public UnaryCallSettings - createPolicyBasedRouteSettings() { - return createPolicyBasedRouteSettings; - } - - /** Returns the object with the settings used for calls to createPolicyBasedRoute. */ - public OperationCallSettings - createPolicyBasedRouteOperationSettings() { - return createPolicyBasedRouteOperationSettings; - } - - /** Returns the object with the settings used for calls to deletePolicyBasedRoute. */ - public UnaryCallSettings - deletePolicyBasedRouteSettings() { - return deletePolicyBasedRouteSettings; - } - - /** Returns the object with the settings used for calls to deletePolicyBasedRoute. */ - public OperationCallSettings - deletePolicyBasedRouteOperationSettings() { - return deletePolicyBasedRouteOperationSettings; - } - - public PolicyBasedRoutingServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcPolicyBasedRoutingServiceStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "networkconnectivity.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "networkconnectivity.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - 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() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(PolicyBasedRoutingServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected PolicyBasedRoutingServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - listPolicyBasedRoutesSettings = settingsBuilder.listPolicyBasedRoutesSettings().build(); - getPolicyBasedRouteSettings = settingsBuilder.getPolicyBasedRouteSettings().build(); - createPolicyBasedRouteSettings = settingsBuilder.createPolicyBasedRouteSettings().build(); - createPolicyBasedRouteOperationSettings = - settingsBuilder.createPolicyBasedRouteOperationSettings().build(); - deletePolicyBasedRouteSettings = settingsBuilder.deletePolicyBasedRouteSettings().build(); - deletePolicyBasedRouteOperationSettings = - settingsBuilder.deletePolicyBasedRouteOperationSettings().build(); - } - - /** Builder for PolicyBasedRoutingServiceStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final PagedCallSettings.Builder< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - ListPolicyBasedRoutesPagedResponse> - listPolicyBasedRoutesSettings; - private final UnaryCallSettings.Builder - getPolicyBasedRouteSettings; - private final UnaryCallSettings.Builder - createPolicyBasedRouteSettings; - private final OperationCallSettings.Builder< - CreatePolicyBasedRouteRequest, PolicyBasedRoute, OperationMetadata> - createPolicyBasedRouteOperationSettings; - private final UnaryCallSettings.Builder - deletePolicyBasedRouteSettings; - private final OperationCallSettings.Builder< - DeletePolicyBasedRouteRequest, Empty, OperationMetadata> - deletePolicyBasedRouteOperationSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_0_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put( - "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("retry_policy_0_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("no_retry_1_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - listPolicyBasedRoutesSettings = - PagedCallSettings.newBuilder(LIST_POLICY_BASED_ROUTES_PAGE_STR_FACT); - getPolicyBasedRouteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createPolicyBasedRouteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createPolicyBasedRouteOperationSettings = OperationCallSettings.newBuilder(); - deletePolicyBasedRouteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deletePolicyBasedRouteOperationSettings = OperationCallSettings.newBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listPolicyBasedRoutesSettings, - getPolicyBasedRouteSettings, - createPolicyBasedRouteSettings, - deletePolicyBasedRouteSettings); - initDefaults(this); - } - - protected Builder(PolicyBasedRoutingServiceStubSettings settings) { - super(settings); - - listPolicyBasedRoutesSettings = settings.listPolicyBasedRoutesSettings.toBuilder(); - getPolicyBasedRouteSettings = settings.getPolicyBasedRouteSettings.toBuilder(); - createPolicyBasedRouteSettings = settings.createPolicyBasedRouteSettings.toBuilder(); - createPolicyBasedRouteOperationSettings = - settings.createPolicyBasedRouteOperationSettings.toBuilder(); - deletePolicyBasedRouteSettings = settings.deletePolicyBasedRouteSettings.toBuilder(); - deletePolicyBasedRouteOperationSettings = - settings.deletePolicyBasedRouteOperationSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listPolicyBasedRoutesSettings, - getPolicyBasedRouteSettings, - createPolicyBasedRouteSettings, - deletePolicyBasedRouteSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .listPolicyBasedRoutesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getPolicyBasedRouteSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createPolicyBasedRouteSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deletePolicyBasedRouteSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .createPolicyBasedRouteOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(PolicyBasedRoute.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 - .deletePolicyBasedRouteOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.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())); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to listPolicyBasedRoutes. */ - public PagedCallSettings.Builder< - ListPolicyBasedRoutesRequest, - ListPolicyBasedRoutesResponse, - ListPolicyBasedRoutesPagedResponse> - listPolicyBasedRoutesSettings() { - return listPolicyBasedRoutesSettings; - } - - /** Returns the builder for the settings used for calls to getPolicyBasedRoute. */ - public UnaryCallSettings.Builder - getPolicyBasedRouteSettings() { - return getPolicyBasedRouteSettings; - } - - /** Returns the builder for the settings used for calls to createPolicyBasedRoute. */ - public UnaryCallSettings.Builder - createPolicyBasedRouteSettings() { - return createPolicyBasedRouteSettings; - } - - /** Returns the builder for the settings used for calls to createPolicyBasedRoute. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - CreatePolicyBasedRouteRequest, PolicyBasedRoute, OperationMetadata> - createPolicyBasedRouteOperationSettings() { - return createPolicyBasedRouteOperationSettings; - } - - /** Returns the builder for the settings used for calls to deletePolicyBasedRoute. */ - public UnaryCallSettings.Builder - deletePolicyBasedRouteSettings() { - return deletePolicyBasedRouteSettings; - } - - /** Returns the builder for the settings used for calls to deletePolicyBasedRoute. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deletePolicyBasedRouteOperationSettings() { - return deletePolicyBasedRouteOperationSettings; - } - - @Override - public PolicyBasedRoutingServiceStubSettings build() throws IOException { - return new PolicyBasedRoutingServiceStubSettings(this); - } - } -} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingService.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingService.java deleted file mode 100644 index 14c65288159c..000000000000 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingService.java +++ /dev/null @@ -1,59 +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.networkconnectivity.v1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockPolicyBasedRoutingService implements MockGrpcService { - private final MockPolicyBasedRoutingServiceImpl serviceImpl; - - public MockPolicyBasedRoutingService() { - serviceImpl = new MockPolicyBasedRoutingServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingServiceImpl.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingServiceImpl.java deleted file mode 100644 index a57877e4d35a..000000000000 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockPolicyBasedRoutingServiceImpl.java +++ /dev/null @@ -1,146 +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.networkconnectivity.v1; - -import com.google.api.core.BetaApi; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceGrpc.PolicyBasedRoutingServiceImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockPolicyBasedRoutingServiceImpl extends PolicyBasedRoutingServiceImplBase { - private List requests; - private Queue responses; - - public MockPolicyBasedRoutingServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void listPolicyBasedRoutes( - ListPolicyBasedRoutesRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListPolicyBasedRoutesResponse) { - requests.add(request); - responseObserver.onNext(((ListPolicyBasedRoutesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListPolicyBasedRoutes, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListPolicyBasedRoutesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getPolicyBasedRoute( - GetPolicyBasedRouteRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof PolicyBasedRoute) { - requests.add(request); - responseObserver.onNext(((PolicyBasedRoute) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetPolicyBasedRoute, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - PolicyBasedRoute.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createPolicyBasedRoute( - CreatePolicyBasedRouteRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreatePolicyBasedRoute, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deletePolicyBasedRoute( - DeletePolicyBasedRouteRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeletePolicyBasedRoute, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClientTest.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClientTest.java deleted file mode 100644 index eb5fa73866eb..000000000000 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceClientTest.java +++ /dev/null @@ -1,501 +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.networkconnectivity.v1; - -import static com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient.ListPolicyBasedRoutesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -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 PolicyBasedRoutingServiceClientTest { - private static MockPolicyBasedRoutingService mockPolicyBasedRoutingService; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private PolicyBasedRoutingServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockPolicyBasedRoutingService = new MockPolicyBasedRoutingService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockPolicyBasedRoutingService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - PolicyBasedRoutingServiceSettings settings = - PolicyBasedRoutingServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = PolicyBasedRoutingServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void listPolicyBasedRoutesTest() throws Exception { - PolicyBasedRoute responsesElement = PolicyBasedRoute.newBuilder().build(); - ListPolicyBasedRoutesResponse expectedResponse = - ListPolicyBasedRoutesResponse.newBuilder() - .setNextPageToken("") - .addAllPolicyBasedRoutes(Arrays.asList(responsesElement)) - .build(); - mockPolicyBasedRoutingService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListPolicyBasedRoutesPagedResponse pagedListResponse = client.listPolicyBasedRoutes(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPolicyBasedRoutesList().get(0), resources.get(0)); - - List actualRequests = mockPolicyBasedRoutingService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListPolicyBasedRoutesRequest actualRequest = - ((ListPolicyBasedRoutesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listPolicyBasedRoutesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyBasedRoutingService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listPolicyBasedRoutes(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listPolicyBasedRoutesTest2() throws Exception { - PolicyBasedRoute responsesElement = PolicyBasedRoute.newBuilder().build(); - ListPolicyBasedRoutesResponse expectedResponse = - ListPolicyBasedRoutesResponse.newBuilder() - .setNextPageToken("") - .addAllPolicyBasedRoutes(Arrays.asList(responsesElement)) - .build(); - mockPolicyBasedRoutingService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListPolicyBasedRoutesPagedResponse pagedListResponse = client.listPolicyBasedRoutes(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPolicyBasedRoutesList().get(0), resources.get(0)); - - List actualRequests = mockPolicyBasedRoutingService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListPolicyBasedRoutesRequest actualRequest = - ((ListPolicyBasedRoutesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listPolicyBasedRoutesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyBasedRoutingService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listPolicyBasedRoutes(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPolicyBasedRouteTest() throws Exception { - PolicyBasedRoute expectedResponse = - PolicyBasedRoute.newBuilder() - .setName( - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") - .toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDescription("description-1724546052") - .setNetwork("network1843485230") - .setFilter(PolicyBasedRoute.Filter.newBuilder().build()) - .setPriority(-1165461084) - .addAllWarnings(new ArrayList()) - .setSelfLink("selfLink1191800166") - .setKind("kind3292052") - .build(); - mockPolicyBasedRoutingService.addResponse(expectedResponse); - - PolicyBasedRouteName name = - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]"); - - PolicyBasedRoute actualResponse = client.getPolicyBasedRoute(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyBasedRoutingService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetPolicyBasedRouteRequest actualRequest = ((GetPolicyBasedRouteRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getPolicyBasedRouteExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyBasedRoutingService.addException(exception); - - try { - PolicyBasedRouteName name = - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]"); - client.getPolicyBasedRoute(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPolicyBasedRouteTest2() throws Exception { - PolicyBasedRoute expectedResponse = - PolicyBasedRoute.newBuilder() - .setName( - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") - .toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDescription("description-1724546052") - .setNetwork("network1843485230") - .setFilter(PolicyBasedRoute.Filter.newBuilder().build()) - .setPriority(-1165461084) - .addAllWarnings(new ArrayList()) - .setSelfLink("selfLink1191800166") - .setKind("kind3292052") - .build(); - mockPolicyBasedRoutingService.addResponse(expectedResponse); - - String name = "name3373707"; - - PolicyBasedRoute actualResponse = client.getPolicyBasedRoute(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyBasedRoutingService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetPolicyBasedRouteRequest actualRequest = ((GetPolicyBasedRouteRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getPolicyBasedRouteExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyBasedRoutingService.addException(exception); - - try { - String name = "name3373707"; - client.getPolicyBasedRoute(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createPolicyBasedRouteTest() throws Exception { - PolicyBasedRoute expectedResponse = - PolicyBasedRoute.newBuilder() - .setName( - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") - .toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDescription("description-1724546052") - .setNetwork("network1843485230") - .setFilter(PolicyBasedRoute.Filter.newBuilder().build()) - .setPriority(-1165461084) - .addAllWarnings(new ArrayList()) - .setSelfLink("selfLink1191800166") - .setKind("kind3292052") - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createPolicyBasedRouteTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockPolicyBasedRoutingService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build(); - String policyBasedRouteId = "policyBasedRouteId-18034589"; - - PolicyBasedRoute actualResponse = - client.createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyBasedRoutingService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreatePolicyBasedRouteRequest actualRequest = - ((CreatePolicyBasedRouteRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(policyBasedRoute, actualRequest.getPolicyBasedRoute()); - Assert.assertEquals(policyBasedRouteId, actualRequest.getPolicyBasedRouteId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createPolicyBasedRouteExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyBasedRoutingService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build(); - String policyBasedRouteId = "policyBasedRouteId-18034589"; - client.createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId).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()); - } - } - - @Test - public void createPolicyBasedRouteTest2() throws Exception { - PolicyBasedRoute expectedResponse = - PolicyBasedRoute.newBuilder() - .setName( - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") - .toString()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDescription("description-1724546052") - .setNetwork("network1843485230") - .setFilter(PolicyBasedRoute.Filter.newBuilder().build()) - .setPriority(-1165461084) - .addAllWarnings(new ArrayList()) - .setSelfLink("selfLink1191800166") - .setKind("kind3292052") - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createPolicyBasedRouteTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockPolicyBasedRoutingService.addResponse(resultOperation); - - String parent = "parent-995424086"; - PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build(); - String policyBasedRouteId = "policyBasedRouteId-18034589"; - - PolicyBasedRoute actualResponse = - client.createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyBasedRoutingService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreatePolicyBasedRouteRequest actualRequest = - ((CreatePolicyBasedRouteRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(policyBasedRoute, actualRequest.getPolicyBasedRoute()); - Assert.assertEquals(policyBasedRouteId, actualRequest.getPolicyBasedRouteId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createPolicyBasedRouteExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyBasedRoutingService.addException(exception); - - try { - String parent = "parent-995424086"; - PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build(); - String policyBasedRouteId = "policyBasedRouteId-18034589"; - client.createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId).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()); - } - } - - @Test - public void deletePolicyBasedRouteTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deletePolicyBasedRouteTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockPolicyBasedRoutingService.addResponse(resultOperation); - - PolicyBasedRouteName name = - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]"); - - client.deletePolicyBasedRouteAsync(name).get(); - - List actualRequests = mockPolicyBasedRoutingService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeletePolicyBasedRouteRequest actualRequest = - ((DeletePolicyBasedRouteRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deletePolicyBasedRouteExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyBasedRoutingService.addException(exception); - - try { - PolicyBasedRouteName name = - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]"); - client.deletePolicyBasedRouteAsync(name).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()); - } - } - - @Test - public void deletePolicyBasedRouteTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deletePolicyBasedRouteTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockPolicyBasedRoutingService.addResponse(resultOperation); - - String name = "name3373707"; - - client.deletePolicyBasedRouteAsync(name).get(); - - List actualRequests = mockPolicyBasedRoutingService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeletePolicyBasedRouteRequest actualRequest = - ((DeletePolicyBasedRouteRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deletePolicyBasedRouteExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyBasedRoutingService.addException(exception); - - try { - String name = "name3373707"; - client.deletePolicyBasedRouteAsync(name).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/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java deleted file mode 100644 index 2c1620fb084e..000000000000 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java +++ /dev/null @@ -1,1396 +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.networkconnectivity.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Network Connectivity Center is a hub-and-spoke abstraction for network
- * connectivity management in Google Cloud. It reduces operational complexity
- * through a simple, centralized connectivity management model.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1/hub.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class HubServiceGrpc { - - private HubServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1.HubService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1.ListHubsResponse> - getListHubsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListHubs", - requestType = com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1.ListHubsResponse> - getListHubsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1.ListHubsResponse> - getListHubsMethod; - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - HubServiceGrpc.getListHubsMethod = - getListHubsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListHubsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListHubsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) - .build(); - } - } - } - return getListHubsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetHubRequest, - com.google.cloud.networkconnectivity.v1.Hub> - getGetHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetHub", - requestType = com.google.cloud.networkconnectivity.v1.GetHubRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.Hub.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetHubRequest, - com.google.cloud.networkconnectivity.v1.Hub> - getGetHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetHubRequest, - com.google.cloud.networkconnectivity.v1.Hub> - getGetHubMethod; - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - HubServiceGrpc.getGetHubMethod = - getGetHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.GetHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) - .build(); - } - } - } - return getGetHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreateHubRequest, - com.google.longrunning.Operation> - getCreateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateHub", - requestType = com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreateHubRequest, - com.google.longrunning.Operation> - getCreateHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreateHubRequest, - com.google.longrunning.Operation> - getCreateHubMethod; - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - HubServiceGrpc.getCreateHubMethod = - getCreateHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.CreateHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) - .build(); - } - } - } - return getCreateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.UpdateHubRequest, - com.google.longrunning.Operation> - getUpdateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateHub", - requestType = com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.UpdateHubRequest, - com.google.longrunning.Operation> - getUpdateHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.UpdateHubRequest, - com.google.longrunning.Operation> - getUpdateHubMethod; - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - HubServiceGrpc.getUpdateHubMethod = - getUpdateHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) - .build(); - } - } - } - return getUpdateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeleteHubRequest, - com.google.longrunning.Operation> - getDeleteHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteHub", - requestType = com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeleteHubRequest, - com.google.longrunning.Operation> - getDeleteHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeleteHubRequest, - com.google.longrunning.Operation> - getDeleteHubMethod; - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - HubServiceGrpc.getDeleteHubMethod = - getDeleteHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) - .build(); - } - } - } - return getDeleteHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1.ListSpokesResponse> - getListSpokesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSpokes", - requestType = com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1.ListSpokesResponse> - getListSpokesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1.ListSpokesResponse> - getListSpokesMethod; - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - HubServiceGrpc.getListSpokesMethod = - getListSpokesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListSpokesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) - .build(); - } - } - } - return getListSpokesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1.Spoke> - getGetSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSpoke", - requestType = com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.Spoke.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1.Spoke> - getGetSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1.Spoke> - getGetSpokeMethod; - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - HubServiceGrpc.getGetSpokeMethod = - getGetSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) - .build(); - } - } - } - return getGetSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, - com.google.longrunning.Operation> - getCreateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", - requestType = com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, - com.google.longrunning.Operation> - getCreateSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, - com.google.longrunning.Operation> - getCreateSpokeMethod; - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - HubServiceGrpc.getCreateSpokeMethod = - getCreateSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) - .build(); - } - } - } - return getCreateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, - com.google.longrunning.Operation> - getUpdateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", - requestType = com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, - com.google.longrunning.Operation> - getUpdateSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, - com.google.longrunning.Operation> - getUpdateSpokeMethod; - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - HubServiceGrpc.getUpdateSpokeMethod = - getUpdateSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) - .build(); - } - } - } - return getUpdateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, - com.google.longrunning.Operation> - getDeleteSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", - requestType = com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, - com.google.longrunning.Operation> - getDeleteSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, - com.google.longrunning.Operation> - getDeleteSpokeMethod; - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - HubServiceGrpc.getDeleteSpokeMethod = - getDeleteSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) - .build(); - } - } - } - return getDeleteSpokeMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static HubServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - }; - return HubServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static HubServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - }; - return HubServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static HubServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - }; - return HubServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public abstract static class HubServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists the Network Connectivity Center hubs associated with a given project.
-     * 
- */ - public void listHubs( - com.google.cloud.networkconnectivity.v1.ListHubsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details about a Network Connectivity Center hub.
-     * 
- */ - public void getHub( - com.google.cloud.networkconnectivity.v1.GetHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Network Connectivity Center hub in the specified project.
-     * 
- */ - public void createHub( - com.google.cloud.networkconnectivity.v1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the description and/or labels of a Network Connectivity Center
-     * hub.
-     * 
- */ - public void updateHub( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a Network Connectivity Center hub.
-     * 
- */ - public void deleteHub( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the Network Connectivity Center spokes in a specified project and
-     * location.
-     * 
- */ - public void listSpokes( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details about a Network Connectivity Center spoke.
-     * 
- */ - public void getSpoke( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a Network Connectivity Center spoke.
-     * 
- */ - public void createSpoke( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSpokeMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a Network Connectivity Center spoke.
-     * 
- */ - public void updateSpoke( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSpokeMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a Network Connectivity Center spoke.
-     * 
- */ - public void deleteSpoke( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSpokeMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListHubsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1.ListHubsResponse>( - this, METHODID_LIST_HUBS))) - .addMethod( - getGetHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.GetHubRequest, - com.google.cloud.networkconnectivity.v1.Hub>(this, METHODID_GET_HUB))) - .addMethod( - getCreateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.CreateHubRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_HUB))) - .addMethod( - getUpdateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.UpdateHubRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_HUB))) - .addMethod( - getDeleteHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.DeleteHubRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_HUB))) - .addMethod( - getListSpokesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1.ListSpokesResponse>( - this, METHODID_LIST_SPOKES))) - .addMethod( - getGetSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1.Spoke>(this, METHODID_GET_SPOKE))) - .addMethod( - getCreateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_SPOKE))) - .addMethod( - getUpdateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_SPOKE))) - .addMethod( - getDeleteSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_SPOKE))) - .build(); - } - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { - private HubServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists the Network Connectivity Center hubs associated with a given project.
-     * 
- */ - public void listHubs( - com.google.cloud.networkconnectivity.v1.ListHubsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets details about a Network Connectivity Center hub.
-     * 
- */ - public void getHub( - com.google.cloud.networkconnectivity.v1.GetHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a new Network Connectivity Center hub in the specified project.
-     * 
- */ - public void createHub( - com.google.cloud.networkconnectivity.v1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates the description and/or labels of a Network Connectivity Center
-     * hub.
-     * 
- */ - public void updateHub( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Deletes a Network Connectivity Center hub.
-     * 
- */ - public void deleteHub( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists the Network Connectivity Center spokes in a specified project and
-     * location.
-     * 
- */ - public void listSpokes( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets details about a Network Connectivity Center spoke.
-     * 
- */ - public void getSpoke( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a Network Connectivity Center spoke.
-     * 
- */ - public void createSpoke( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a Network Connectivity Center spoke.
-     * 
- */ - public void updateSpoke( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a Network Connectivity Center spoke.
-     * 
- */ - public void deleteSpoke( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static final class HubServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private HubServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists the Network Connectivity Center hubs associated with a given project.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.ListHubsResponse listHubs( - com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListHubsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details about a Network Connectivity Center hub.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.Hub getHub( - com.google.cloud.networkconnectivity.v1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Network Connectivity Center hub in the specified project.
-     * 
- */ - public com.google.longrunning.Operation createHub( - com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the description and/or labels of a Network Connectivity Center
-     * hub.
-     * 
- */ - public com.google.longrunning.Operation updateHub( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a Network Connectivity Center hub.
-     * 
- */ - public com.google.longrunning.Operation deleteHub( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the Network Connectivity Center spokes in a specified project and
-     * location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.ListSpokesResponse listSpokes( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSpokesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details about a Network Connectivity Center spoke.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.Spoke getSpoke( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSpokeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a Network Connectivity Center spoke.
-     * 
- */ - public com.google.longrunning.Operation createSpoke( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSpokeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a Network Connectivity Center spoke.
-     * 
- */ - public com.google.longrunning.Operation updateSpoke( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a Network Connectivity Center spoke.
-     * 
- */ - public com.google.longrunning.Operation deleteSpoke( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static final class HubServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private HubServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists the Network Connectivity Center hubs associated with a given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1.ListHubsResponse> - listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details about a Network Connectivity Center hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1.Hub> - getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Network Connectivity Center hub in the specified project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the description and/or labels of a Network Connectivity Center
-     * hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a Network Connectivity Center hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the Network Connectivity Center spokes in a specified project and
-     * location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1.ListSpokesResponse> - listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details about a Network Connectivity Center spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1.Spoke> - getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a Network Connectivity Center spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a Network Connectivity Center spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a Network Connectivity Center spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_HUBS = 0; - private static final int METHODID_GET_HUB = 1; - private static final int METHODID_CREATE_HUB = 2; - private static final int METHODID_UPDATE_HUB = 3; - private static final int METHODID_DELETE_HUB = 4; - private static final int METHODID_LIST_SPOKES = 5; - private static final int METHODID_GET_SPOKE = 6; - private static final int METHODID_CREATE_SPOKE = 7; - private static final int METHODID_UPDATE_SPOKE = 8; - private static final int METHODID_DELETE_SPOKE = 9; - - 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 HubServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(HubServiceImplBase 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_HUBS: - serviceImpl.listHubs( - (com.google.cloud.networkconnectivity.v1.ListHubsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1.ListHubsResponse>) - responseObserver); - break; - case METHODID_GET_HUB: - serviceImpl.getHub( - (com.google.cloud.networkconnectivity.v1.GetHubRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_HUB: - serviceImpl.createHub( - (com.google.cloud.networkconnectivity.v1.CreateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_HUB: - serviceImpl.updateHub( - (com.google.cloud.networkconnectivity.v1.UpdateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_HUB: - serviceImpl.deleteHub( - (com.google.cloud.networkconnectivity.v1.DeleteHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SPOKES: - serviceImpl.listSpokes( - (com.google.cloud.networkconnectivity.v1.ListSpokesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1.ListSpokesResponse>) - responseObserver); - break; - case METHODID_GET_SPOKE: - serviceImpl.getSpoke( - (com.google.cloud.networkconnectivity.v1.GetSpokeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_SPOKE: - serviceImpl.createSpoke( - (com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SPOKE: - serviceImpl.updateSpoke( - (com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SPOKE: - serviceImpl.deleteSpoke( - (com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - HubServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("HubService"); - } - } - - private static final class HubServiceFileDescriptorSupplier - extends HubServiceBaseDescriptorSupplier { - HubServiceFileDescriptorSupplier() {} - } - - private static final class HubServiceMethodDescriptorSupplier - extends HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) - .addMethod(getListHubsMethod()) - .addMethod(getGetHubMethod()) - .addMethod(getCreateHubMethod()) - .addMethod(getUpdateHubMethod()) - .addMethod(getDeleteHubMethod()) - .addMethod(getListSpokesMethod()) - .addMethod(getGetSpokeMethod()) - .addMethod(getCreateSpokeMethod()) - .addMethod(getUpdateSpokeMethod()) - .addMethod(getDeleteSpokeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java deleted file mode 100644 index 40eca2fa82af..000000000000 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingServiceGrpc.java +++ /dev/null @@ -1,757 +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.networkconnectivity.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Policy-Based Routing allows GCP customers to specify flexibile routing
- * policies for Layer 4 traffic traversing through the connected service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1/policy_based_routing.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class PolicyBasedRoutingServiceGrpc { - - private PolicyBasedRoutingServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest, - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> - getListPolicyBasedRoutesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPolicyBasedRoutes", - requestType = com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest, - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> - getListPolicyBasedRoutesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest, - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> - getListPolicyBasedRoutesMethod; - if ((getListPolicyBasedRoutesMethod = - PolicyBasedRoutingServiceGrpc.getListPolicyBasedRoutesMethod) - == null) { - synchronized (PolicyBasedRoutingServiceGrpc.class) { - if ((getListPolicyBasedRoutesMethod = - PolicyBasedRoutingServiceGrpc.getListPolicyBasedRoutesMethod) - == null) { - PolicyBasedRoutingServiceGrpc.getListPolicyBasedRoutesMethod = - getListPolicyBasedRoutesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListPolicyBasedRoutes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new PolicyBasedRoutingServiceMethodDescriptorSupplier( - "ListPolicyBasedRoutes")) - .build(); - } - } - } - return getListPolicyBasedRoutesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute> - getGetPolicyBasedRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPolicyBasedRoute", - requestType = com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute> - getGetPolicyBasedRouteMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute> - getGetPolicyBasedRouteMethod; - if ((getGetPolicyBasedRouteMethod = PolicyBasedRoutingServiceGrpc.getGetPolicyBasedRouteMethod) - == null) { - synchronized (PolicyBasedRoutingServiceGrpc.class) { - if ((getGetPolicyBasedRouteMethod = - PolicyBasedRoutingServiceGrpc.getGetPolicyBasedRouteMethod) - == null) { - PolicyBasedRoutingServiceGrpc.getGetPolicyBasedRouteMethod = - getGetPolicyBasedRouteMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetPolicyBasedRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute - .getDefaultInstance())) - .setSchemaDescriptor( - new PolicyBasedRoutingServiceMethodDescriptorSupplier( - "GetPolicyBasedRoute")) - .build(); - } - } - } - return getGetPolicyBasedRouteMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest, - com.google.longrunning.Operation> - getCreatePolicyBasedRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePolicyBasedRoute", - requestType = com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest, - com.google.longrunning.Operation> - getCreatePolicyBasedRouteMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest, - com.google.longrunning.Operation> - getCreatePolicyBasedRouteMethod; - if ((getCreatePolicyBasedRouteMethod = - PolicyBasedRoutingServiceGrpc.getCreatePolicyBasedRouteMethod) - == null) { - synchronized (PolicyBasedRoutingServiceGrpc.class) { - if ((getCreatePolicyBasedRouteMethod = - PolicyBasedRoutingServiceGrpc.getCreatePolicyBasedRouteMethod) - == null) { - PolicyBasedRoutingServiceGrpc.getCreatePolicyBasedRouteMethod = - getCreatePolicyBasedRouteMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreatePolicyBasedRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyBasedRoutingServiceMethodDescriptorSupplier( - "CreatePolicyBasedRoute")) - .build(); - } - } - } - return getCreatePolicyBasedRouteMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest, - com.google.longrunning.Operation> - getDeletePolicyBasedRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePolicyBasedRoute", - requestType = com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest, - com.google.longrunning.Operation> - getDeletePolicyBasedRouteMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest, - com.google.longrunning.Operation> - getDeletePolicyBasedRouteMethod; - if ((getDeletePolicyBasedRouteMethod = - PolicyBasedRoutingServiceGrpc.getDeletePolicyBasedRouteMethod) - == null) { - synchronized (PolicyBasedRoutingServiceGrpc.class) { - if ((getDeletePolicyBasedRouteMethod = - PolicyBasedRoutingServiceGrpc.getDeletePolicyBasedRouteMethod) - == null) { - PolicyBasedRoutingServiceGrpc.getDeletePolicyBasedRouteMethod = - getDeletePolicyBasedRouteMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeletePolicyBasedRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyBasedRoutingServiceMethodDescriptorSupplier( - "DeletePolicyBasedRoute")) - .build(); - } - } - } - return getDeletePolicyBasedRouteMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static PolicyBasedRoutingServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyBasedRoutingServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyBasedRoutingServiceStub(channel, callOptions); - } - }; - return PolicyBasedRoutingServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static PolicyBasedRoutingServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyBasedRoutingServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyBasedRoutingServiceBlockingStub(channel, callOptions); - } - }; - return PolicyBasedRoutingServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static PolicyBasedRoutingServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyBasedRoutingServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyBasedRoutingServiceFutureStub(channel, callOptions); - } - }; - return PolicyBasedRoutingServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Policy-Based Routing allows GCP customers to specify flexibile routing
-   * policies for Layer 4 traffic traversing through the connected service.
-   * 
- */ - public abstract static class PolicyBasedRoutingServiceImplBase - implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists PolicyBasedRoutes in a given project and location.
-     * 
- */ - public void listPolicyBasedRoutes( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPolicyBasedRoutesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single PolicyBasedRoute.
-     * 
- */ - public void getPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetPolicyBasedRouteMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new PolicyBasedRoute in a given project and location.
-     * 
- */ - public void createPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePolicyBasedRouteMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single PolicyBasedRoute.
-     * 
- */ - public void deletePolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePolicyBasedRouteMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListPolicyBasedRoutesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest, - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse>( - this, METHODID_LIST_POLICY_BASED_ROUTES))) - .addMethod( - getGetPolicyBasedRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute>( - this, METHODID_GET_POLICY_BASED_ROUTE))) - .addMethod( - getCreatePolicyBasedRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_POLICY_BASED_ROUTE))) - .addMethod( - getDeletePolicyBasedRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_POLICY_BASED_ROUTE))) - .build(); - } - } - - /** - * - * - *
-   * Policy-Based Routing allows GCP customers to specify flexibile routing
-   * policies for Layer 4 traffic traversing through the connected service.
-   * 
- */ - public static final class PolicyBasedRoutingServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private PolicyBasedRoutingServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyBasedRoutingServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyBasedRoutingServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists PolicyBasedRoutes in a given project and location.
-     * 
- */ - public void listPolicyBasedRoutes( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPolicyBasedRoutesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single PolicyBasedRoute.
-     * 
- */ - public void getPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPolicyBasedRouteMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new PolicyBasedRoute in a given project and location.
-     * 
- */ - public void createPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePolicyBasedRouteMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single PolicyBasedRoute.
-     * 
- */ - public void deletePolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePolicyBasedRouteMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Policy-Based Routing allows GCP customers to specify flexibile routing
-   * policies for Layer 4 traffic traversing through the connected service.
-   * 
- */ - public static final class PolicyBasedRoutingServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private PolicyBasedRoutingServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyBasedRoutingServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyBasedRoutingServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists PolicyBasedRoutes in a given project and location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse - listPolicyBasedRoutes( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPolicyBasedRoutesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single PolicyBasedRoute.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPolicyBasedRouteMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new PolicyBasedRoute in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePolicyBasedRouteMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single PolicyBasedRoute.
-     * 
- */ - public com.google.longrunning.Operation deletePolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePolicyBasedRouteMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Policy-Based Routing allows GCP customers to specify flexibile routing
-   * policies for Layer 4 traffic traversing through the connected service.
-   * 
- */ - public static final class PolicyBasedRoutingServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private PolicyBasedRoutingServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyBasedRoutingServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyBasedRoutingServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists PolicyBasedRoutes in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse> - listPolicyBasedRoutes( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPolicyBasedRoutesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single PolicyBasedRoute.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute> - getPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPolicyBasedRouteMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new PolicyBasedRoute in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePolicyBasedRouteMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single PolicyBasedRoute.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deletePolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePolicyBasedRouteMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_POLICY_BASED_ROUTES = 0; - private static final int METHODID_GET_POLICY_BASED_ROUTE = 1; - private static final int METHODID_CREATE_POLICY_BASED_ROUTE = 2; - private static final int METHODID_DELETE_POLICY_BASED_ROUTE = 3; - - 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 PolicyBasedRoutingServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(PolicyBasedRoutingServiceImplBase 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_POLICY_BASED_ROUTES: - serviceImpl.listPolicyBasedRoutes( - (com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse>) - responseObserver); - break; - case METHODID_GET_POLICY_BASED_ROUTE: - serviceImpl.getPolicyBasedRoute( - (com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute>) - responseObserver); - break; - case METHODID_CREATE_POLICY_BASED_ROUTE: - serviceImpl.createPolicyBasedRoute( - (com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_POLICY_BASED_ROUTE: - serviceImpl.deletePolicyBasedRoute( - (com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) 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 PolicyBasedRoutingServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - PolicyBasedRoutingServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("PolicyBasedRoutingService"); - } - } - - private static final class PolicyBasedRoutingServiceFileDescriptorSupplier - extends PolicyBasedRoutingServiceBaseDescriptorSupplier { - PolicyBasedRoutingServiceFileDescriptorSupplier() {} - } - - private static final class PolicyBasedRoutingServiceMethodDescriptorSupplier - extends PolicyBasedRoutingServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - PolicyBasedRoutingServiceMethodDescriptorSupplier(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 (PolicyBasedRoutingServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PolicyBasedRoutingServiceFileDescriptorSupplier()) - .addMethod(getListPolicyBasedRoutesMethod()) - .addMethod(getGetPolicyBasedRouteMethod()) - .addMethod(getCreatePolicyBasedRouteMethod()) - .addMethod(getDeletePolicyBasedRouteMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java deleted file mode 100644 index aae81be9d5c9..000000000000 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java +++ /dev/null @@ -1,1400 +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.networkconnectivity.v1alpha1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Network Connectivity Center is a hub-and-spoke abstraction for
- * network connectivity management in Google Cloud. It reduces
- * operational complexity through a simple, centralized connectivity management
- * model.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1alpha1/hub.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class HubServiceGrpc { - - private HubServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1alpha1.HubService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> - getListHubsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListHubs", - requestType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> - getListHubsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> - getListHubsMethod; - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - HubServiceGrpc.getListHubsMethod = - getListHubsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) - .build(); - } - } - } - return getListHubsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, - com.google.cloud.networkconnectivity.v1alpha1.Hub> - getGetHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.Hub.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, - com.google.cloud.networkconnectivity.v1alpha1.Hub> - getGetHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, - com.google.cloud.networkconnectivity.v1alpha1.Hub> - getGetHubMethod; - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - HubServiceGrpc.getGetHubMethod = - getGetHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.Hub - .getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) - .build(); - } - } - } - return getGetHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, - com.google.longrunning.Operation> - getCreateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, - com.google.longrunning.Operation> - getCreateHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, - com.google.longrunning.Operation> - getCreateHubMethod; - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - HubServiceGrpc.getCreateHubMethod = - getCreateHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) - .build(); - } - } - } - return getCreateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, - com.google.longrunning.Operation> - getUpdateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, - com.google.longrunning.Operation> - getUpdateHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, - com.google.longrunning.Operation> - getUpdateHubMethod; - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - HubServiceGrpc.getUpdateHubMethod = - getUpdateHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) - .build(); - } - } - } - return getUpdateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, - com.google.longrunning.Operation> - getDeleteHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, - com.google.longrunning.Operation> - getDeleteHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, - com.google.longrunning.Operation> - getDeleteHubMethod; - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - HubServiceGrpc.getDeleteHubMethod = - getDeleteHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) - .build(); - } - } - } - return getDeleteHubMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> - getListSpokesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSpokes", - requestType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> - getListSpokesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> - getListSpokesMethod; - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - HubServiceGrpc.getListSpokesMethod = - getListSpokesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) - .build(); - } - } - } - return getListSpokesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1alpha1.Spoke> - getGetSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1alpha1.Spoke> - getGetSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1alpha1.Spoke> - getGetSpokeMethod; - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - HubServiceGrpc.getGetSpokeMethod = - getGetSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.Spoke - .getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) - .build(); - } - } - } - return getGetSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, - com.google.longrunning.Operation> - getCreateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, - com.google.longrunning.Operation> - getCreateSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, - com.google.longrunning.Operation> - getCreateSpokeMethod; - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - HubServiceGrpc.getCreateSpokeMethod = - getCreateSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) - .build(); - } - } - } - return getCreateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, - com.google.longrunning.Operation> - getUpdateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, - com.google.longrunning.Operation> - getUpdateSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, - com.google.longrunning.Operation> - getUpdateSpokeMethod; - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - HubServiceGrpc.getUpdateSpokeMethod = - getUpdateSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) - .build(); - } - } - } - return getUpdateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, - com.google.longrunning.Operation> - getDeleteSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, - com.google.longrunning.Operation> - getDeleteSpokeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, - com.google.longrunning.Operation> - getDeleteSpokeMethod; - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - HubServiceGrpc.getDeleteSpokeMethod = - getDeleteSpokeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) - .build(); - } - } - } - return getDeleteSpokeMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static HubServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - }; - return HubServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static HubServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - }; - return HubServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static HubServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - }; - return HubServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public abstract static class HubServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public void listHubs( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Hub.
-     * 
- */ - public void getHub( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public void createHub( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public void updateHub( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single Hub.
-     * 
- */ - public void deleteHub( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public void listSpokes( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Spoke.
-     * 
- */ - public void getSpoke( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public void createSpoke( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSpokeMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public void updateSpoke( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSpokeMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single Spoke.
-     * 
- */ - public void deleteSpoke( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSpokeMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListHubsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>( - this, METHODID_LIST_HUBS))) - .addMethod( - getGetHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, - com.google.cloud.networkconnectivity.v1alpha1.Hub>(this, METHODID_GET_HUB))) - .addMethod( - getCreateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_HUB))) - .addMethod( - getUpdateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_HUB))) - .addMethod( - getDeleteHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_HUB))) - .addMethod( - getListSpokesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>( - this, METHODID_LIST_SPOKES))) - .addMethod( - getGetSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1alpha1.Spoke>( - this, METHODID_GET_SPOKE))) - .addMethod( - getCreateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_SPOKE))) - .addMethod( - getUpdateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_SPOKE))) - .addMethod( - getDeleteSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_SPOKE))) - .build(); - } - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { - private HubServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public void listHubs( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Hub.
-     * 
- */ - public void getHub( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public void createHub( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public void updateHub( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Deletes a single Hub.
-     * 
- */ - public void deleteHub( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public void listSpokes( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Spoke.
-     * 
- */ - public void getSpoke( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public void createSpoke( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public void updateSpoke( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single Spoke.
-     * 
- */ - public void deleteSpoke( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static final class HubServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private HubServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse listHubs( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListHubsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single Hub.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createHub( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public com.google.longrunning.Operation updateHub( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single Hub.
-     * 
- */ - public com.google.longrunning.Operation deleteHub( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteHubMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse listSpokes( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSpokesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single Spoke.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSpokeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createSpoke( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSpokeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public com.google.longrunning.Operation updateSpoke( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single Spoke.
-     * 
- */ - public com.google.longrunning.Operation deleteSpoke( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static final class HubServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private HubServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> - listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single Hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1alpha1.Hub> - getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single Hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> - listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single Spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.networkconnectivity.v1alpha1.Spoke> - getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single Spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_HUBS = 0; - private static final int METHODID_GET_HUB = 1; - private static final int METHODID_CREATE_HUB = 2; - private static final int METHODID_UPDATE_HUB = 3; - private static final int METHODID_DELETE_HUB = 4; - private static final int METHODID_LIST_SPOKES = 5; - private static final int METHODID_GET_SPOKE = 6; - private static final int METHODID_CREATE_SPOKE = 7; - private static final int METHODID_UPDATE_SPOKE = 8; - private static final int METHODID_DELETE_SPOKE = 9; - - 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 HubServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(HubServiceImplBase 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_HUBS: - serviceImpl.listHubs( - (com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>) - responseObserver); - break; - case METHODID_GET_HUB: - serviceImpl.getHub( - (com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_HUB: - serviceImpl.createHub( - (com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_HUB: - serviceImpl.updateHub( - (com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_HUB: - serviceImpl.deleteHub( - (com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SPOKES: - serviceImpl.listSpokes( - (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>) - responseObserver); - break; - case METHODID_GET_SPOKE: - serviceImpl.getSpoke( - (com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_SPOKE: - serviceImpl.createSpoke( - (com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SPOKE: - serviceImpl.updateSpoke( - (com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SPOKE: - serviceImpl.deleteSpoke( - (com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - HubServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("HubService"); - } - } - - private static final class HubServiceFileDescriptorSupplier - extends HubServiceBaseDescriptorSupplier { - HubServiceFileDescriptorSupplier() {} - } - - private static final class HubServiceMethodDescriptorSupplier - extends HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) - .addMethod(getListHubsMethod()) - .addMethod(getGetHubMethod()) - .addMethod(getCreateHubMethod()) - .addMethod(getUpdateHubMethod()) - .addMethod(getDeleteHubMethod()) - .addMethod(getListSpokesMethod()) - .addMethod(getGetSpokeMethod()) - .addMethod(getCreateSpokeMethod()) - .addMethod(getUpdateSpokeMethod()) - .addMethod(getDeleteSpokeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java deleted file mode 100644 index 721a7326cff4..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java +++ /dev/null @@ -1,102 +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/networkconnectivity/v1/common.proto - -package com.google.cloud.networkconnectivity.v1; - -public final class CommonProto { - private CommonProto() {} - - 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_networkconnectivity_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/networkconnectivity/v1/co" - + "mmon.proto\022#google.cloud.networkconnecti" - + "vity.v1\032\037google/api/field_behavior.proto" - + "\032\031google/api/resource.proto\032\037google/prot" - + "obuf/timestamp.proto\"\200\002\n\021OperationMetada" - + "ta\0224\n\013create_time\030\001 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.goo" - + "gle.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_me" - + "ssage\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellati" - + "on\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003B" - + "\327\003\n\'com.google.cloud.networkconnectivity" - + ".v1B\013CommonProtoP\001ZVgoogle.golang.org/ge" - + "nproto/googleapis/cloud/networkconnectiv" - + "ity/v1;networkconnectivity\252\002#Google.Clou" - + "d.NetworkConnectivity.V1\312\002#Google\\Cloud\\" - + "NetworkConnectivity\\V1\352\002&Google::Cloud::" - + "NetworkConnectivity::V1\352Az\n-compute.goog" - + "leapis.com/InterconnectAttachment\022Iproje" - + "cts/{project}/regions/{region}/interconn" - + "ectAttachments/{resource_id}\352AR\n\036compute" - + ".googleapis.com/Network\0220projects/{proje" - + "ct}/global/networks/{resource_id}b\006proto" - + "3" - }; - 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.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resourceDefinition); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequest.java deleted file mode 100644 index 655d49d58a4d..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequest.java +++ /dev/null @@ -1,1386 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -/** - * - * - *
- * Request for [PolicyBasedRouting.CreatePolicyBasedRoute][] method.
- * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest} - */ -public final class CreatePolicyBasedRouteRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) - CreatePolicyBasedRouteRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreatePolicyBasedRouteRequest.newBuilder() to construct. - private CreatePolicyBasedRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreatePolicyBasedRouteRequest() { - parent_ = ""; - policyBasedRouteId_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreatePolicyBasedRouteRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.class, - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * Required. The parent resource's name of the PolicyBasedRoute.
-   * 
- * - * - * 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 resource's name of the PolicyBasedRoute.
-   * 
- * - * - * 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 POLICY_BASED_ROUTE_ID_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object policyBasedRouteId_ = ""; - /** - * - * - *
-   * Optional. Unique id for the Policy Based Route to create.
-   * 
- * - * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The policyBasedRouteId. - */ - @java.lang.Override - public java.lang.String getPolicyBasedRouteId() { - java.lang.Object ref = policyBasedRouteId_; - 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(); - policyBasedRouteId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. Unique id for the Policy Based Route to create.
-   * 
- * - * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for policyBasedRouteId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPolicyBasedRouteIdBytes() { - java.lang.Object ref = policyBasedRouteId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - policyBasedRouteId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int POLICY_BASED_ROUTE_FIELD_NUMBER = 3; - private com.google.cloud.networkconnectivity.v1.PolicyBasedRoute policyBasedRoute_; - /** - * - * - *
-   * Required. Initial values for a new Policy Based Route.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the policyBasedRoute field is set. - */ - @java.lang.Override - public boolean hasPolicyBasedRoute() { - return policyBasedRoute_ != null; - } - /** - * - * - *
-   * Required. Initial values for a new Policy Based Route.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The policyBasedRoute. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoute() { - return policyBasedRoute_ == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() - : policyBasedRoute_; - } - /** - * - * - *
-   * Required. Initial values for a new Policy Based Route.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder - getPolicyBasedRouteOrBuilder() { - return policyBasedRoute_ == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() - : policyBasedRoute_; - } - - public static final int REQUEST_ID_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object requestId_ = ""; - /** - * - * - *
-   * Optional. An optional request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - 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(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. An optional request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyBasedRouteId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, policyBasedRouteId_); - } - if (policyBasedRoute_ != null) { - output.writeMessage(3, getPolicyBasedRoute()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); - } - getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyBasedRouteId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, policyBasedRouteId_); - } - if (policyBasedRoute_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPolicyBasedRoute()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); - } - size += getUnknownFields().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.networkconnectivity.v1.CreatePolicyBasedRouteRequest)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest other = - (com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getPolicyBasedRouteId().equals(other.getPolicyBasedRouteId())) return false; - if (hasPolicyBasedRoute() != other.hasPolicyBasedRoute()) return false; - if (hasPolicyBasedRoute()) { - if (!getPolicyBasedRoute().equals(other.getPolicyBasedRoute())) return false; - } - if (!getRequestId().equals(other.getRequestId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + POLICY_BASED_ROUTE_ID_FIELD_NUMBER; - hash = (53 * hash) + getPolicyBasedRouteId().hashCode(); - if (hasPolicyBasedRoute()) { - hash = (37 * hash) + POLICY_BASED_ROUTE_FIELD_NUMBER; - hash = (53 * hash) + getPolicyBasedRoute().hashCode(); - } - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest - 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest 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 [PolicyBasedRouting.CreatePolicyBasedRoute][] method.
-   * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.class, - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.Builder.class); - } - - // Construct using - // com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - policyBasedRouteId_ = ""; - policyBasedRoute_ = null; - if (policyBasedRouteBuilder_ != null) { - policyBasedRouteBuilder_.dispose(); - policyBasedRouteBuilder_ = null; - } - requestId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest build() { - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest result = - new com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.policyBasedRouteId_ = policyBasedRouteId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.policyBasedRoute_ = - policyBasedRouteBuilder_ == null ? policyBasedRoute_ : policyBasedRouteBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.requestId_ = requestId_; - } - } - - @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.networkconnectivity.v1.CreatePolicyBasedRouteRequest) { - return mergeFrom( - (com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest - .getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getPolicyBasedRouteId().isEmpty()) { - policyBasedRouteId_ = other.policyBasedRouteId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasPolicyBasedRoute()) { - mergePolicyBasedRoute(other.getPolicyBasedRoute()); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - policyBasedRouteId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getPolicyBasedRouteFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource's name of the PolicyBasedRoute.
-     * 
- * - * - * 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 resource's name of the PolicyBasedRoute.
-     * 
- * - * - * 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 resource's name of the PolicyBasedRoute.
-     * 
- * - * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource's name of the PolicyBasedRoute.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource's name of the PolicyBasedRoute.
-     * 
- * - * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object policyBasedRouteId_ = ""; - /** - * - * - *
-     * Optional. Unique id for the Policy Based Route to create.
-     * 
- * - * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The policyBasedRouteId. - */ - public java.lang.String getPolicyBasedRouteId() { - java.lang.Object ref = policyBasedRouteId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - policyBasedRouteId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Unique id for the Policy Based Route to create.
-     * 
- * - * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for policyBasedRouteId. - */ - public com.google.protobuf.ByteString getPolicyBasedRouteIdBytes() { - java.lang.Object ref = policyBasedRouteId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - policyBasedRouteId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Unique id for the Policy Based Route to create.
-     * 
- * - * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The policyBasedRouteId to set. - * @return This builder for chaining. - */ - public Builder setPolicyBasedRouteId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - policyBasedRouteId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Unique id for the Policy Based Route to create.
-     * 
- * - * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPolicyBasedRouteId() { - policyBasedRouteId_ = getDefaultInstance().getPolicyBasedRouteId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Unique id for the Policy Based Route to create.
-     * 
- * - * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for policyBasedRouteId to set. - * @return This builder for chaining. - */ - public Builder setPolicyBasedRouteIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - policyBasedRouteId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.cloud.networkconnectivity.v1.PolicyBasedRoute policyBasedRoute_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> - policyBasedRouteBuilder_; - /** - * - * - *
-     * Required. Initial values for a new Policy Based Route.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the policyBasedRoute field is set. - */ - public boolean hasPolicyBasedRoute() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Required. Initial values for a new Policy Based Route.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The policyBasedRoute. - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoute() { - if (policyBasedRouteBuilder_ == null) { - return policyBasedRoute_ == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() - : policyBasedRoute_; - } else { - return policyBasedRouteBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Initial values for a new Policy Based Route.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { - if (policyBasedRouteBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - policyBasedRoute_ = value; - } else { - policyBasedRouteBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Initial values for a new Policy Based Route.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setPolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder builderForValue) { - if (policyBasedRouteBuilder_ == null) { - policyBasedRoute_ = builderForValue.build(); - } else { - policyBasedRouteBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Initial values for a new Policy Based Route.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergePolicyBasedRoute( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { - if (policyBasedRouteBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && policyBasedRoute_ != null - && policyBasedRoute_ - != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance()) { - getPolicyBasedRouteBuilder().mergeFrom(value); - } else { - policyBasedRoute_ = value; - } - } else { - policyBasedRouteBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Initial values for a new Policy Based Route.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearPolicyBasedRoute() { - bitField0_ = (bitField0_ & ~0x00000004); - policyBasedRoute_ = null; - if (policyBasedRouteBuilder_ != null) { - policyBasedRouteBuilder_.dispose(); - policyBasedRouteBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Initial values for a new Policy Based Route.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder - getPolicyBasedRouteBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getPolicyBasedRouteFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Initial values for a new Policy Based Route.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder - getPolicyBasedRouteOrBuilder() { - if (policyBasedRouteBuilder_ != null) { - return policyBasedRouteBuilder_.getMessageOrBuilder(); - } else { - return policyBasedRoute_ == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance() - : policyBasedRoute_; - } - } - /** - * - * - *
-     * Required. Initial values for a new Policy Based Route.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> - getPolicyBasedRouteFieldBuilder() { - if (policyBasedRouteBuilder_ == null) { - policyBasedRouteBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder>( - getPolicyBasedRoute(), getParentForChildren(), isClean()); - policyBasedRoute_ = null; - } - return policyBasedRouteBuilder_; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - requestId_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - requestId_ = getDefaultInstance().getRequestId(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - requestId_ = value; - bitField0_ |= 0x00000008; - 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) - private static final com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest(); - } - - public static com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePolicyBasedRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.CreatePolicyBasedRouteRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequestOrBuilder.java deleted file mode 100644 index f67bf3a1716d..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreatePolicyBasedRouteRequestOrBuilder.java +++ /dev/null @@ -1,165 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface CreatePolicyBasedRouteRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource's name of the PolicyBasedRoute.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource's name of the PolicyBasedRoute.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Optional. Unique id for the Policy Based Route to create.
-   * 
- * - * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The policyBasedRouteId. - */ - java.lang.String getPolicyBasedRouteId(); - /** - * - * - *
-   * Optional. Unique id for the Policy Based Route to create.
-   * 
- * - * string policy_based_route_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for policyBasedRouteId. - */ - com.google.protobuf.ByteString getPolicyBasedRouteIdBytes(); - - /** - * - * - *
-   * Required. Initial values for a new Policy Based Route.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the policyBasedRoute field is set. - */ - boolean hasPolicyBasedRoute(); - /** - * - * - *
-   * Required. Initial values for a new Policy Based Route.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The policyBasedRoute. - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoute(); - /** - * - * - *
-   * Required. Initial values for a new Policy Based Route.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPolicyBasedRouteOrBuilder(); - - /** - * - * - *
-   * Optional. An optional request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. An optional request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequest.java deleted file mode 100644 index 02c6a215f7ff..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequest.java +++ /dev/null @@ -1,907 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -/** - * - * - *
- * Request for [PolicyBasedRouting.DeletePolicyBasedRoute][] method.
- * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest} - */ -public final class DeletePolicyBasedRouteRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) - DeletePolicyBasedRouteRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeletePolicyBasedRouteRequest.newBuilder() to construct. - private DeletePolicyBasedRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeletePolicyBasedRouteRequest() { - name_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeletePolicyBasedRouteRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.class, - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. Name of the PolicyBasedRoute resource 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. Name of the PolicyBasedRoute resource 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; - } - } - - public static final int REQUEST_ID_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object requestId_ = ""; - /** - * - * - *
-   * Optional. An optional request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes after the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - 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(); - requestId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional. An optional request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes after the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = 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(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); - } - getUnknownFields().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(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); - } - size += getUnknownFields().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.networkconnectivity.v1.DeletePolicyBasedRouteRequest)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest other = - (com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest - 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest 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 [PolicyBasedRouting.DeletePolicyBasedRoute][] method.
-   * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.class, - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.Builder.class); - } - - // Construct using - // com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - requestId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest build() { - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest result = - new com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.requestId_ = requestId_; - } - } - - @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.networkconnectivity.v1.DeletePolicyBasedRouteRequest) { - return mergeFrom( - (com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest - .getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. Name of the PolicyBasedRoute resource 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. Name of the PolicyBasedRoute resource 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. Name of the PolicyBasedRoute resource 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Name of the PolicyBasedRoute resource 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(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Name of the PolicyBasedRoute resource 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object requestId_ = ""; - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - requestId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequestId() { - requestId_ = getDefaultInstance().getRequestId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An optional request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and t
-     * he request times out. If you make the request again with the same request
-     * ID, the server can check if original operation with the same request ID
-     * was received, and if so, will ignore the second request. This prevents
-     * clients from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - requestId_ = value; - bitField0_ |= 0x00000002; - 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) - private static final com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest(); - } - - public static com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePolicyBasedRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.DeletePolicyBasedRouteRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequestOrBuilder.java deleted file mode 100644 index 829c45f69a4b..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeletePolicyBasedRouteRequestOrBuilder.java +++ /dev/null @@ -1,99 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface DeletePolicyBasedRouteRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the PolicyBasedRoute resource to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the PolicyBasedRoute resource to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Optional. An optional request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes after the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - * - * - *
-   * Optional. An optional request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes after the first request.
-   * For example, consider a situation where you make an initial request and t
-   * he request times out. If you make the request again with the same request
-   * ID, the server can check if original operation with the same request ID
-   * was received, and if so, will ignore the second request. This prevents
-   * clients from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString getRequestIdBytes(); -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java deleted file mode 100644 index 8ab3d81a3f94..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.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/networkconnectivity/v1/hub.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface GetHubRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetHubRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the hub resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the hub resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequest.java deleted file mode 100644 index 845b618e3a6f..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequest.java +++ /dev/null @@ -1,655 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -/** - * - * - *
- * Request for [PolicyBasedRouting.GetPolicyBasedRoute][] method.
- * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest} - */ -public final class GetPolicyBasedRouteRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) - GetPolicyBasedRouteRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetPolicyBasedRouteRequest.newBuilder() to construct. - private GetPolicyBasedRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetPolicyBasedRouteRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetPolicyBasedRouteRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.class, - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. Name of the PolicyBasedRoute resource to get.
-   * 
- * - * - * 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 PolicyBasedRoute resource to get.
-   * 
- * - * - * 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_); - } - getUnknownFields().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 += getUnknownFields().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.networkconnectivity.v1.GetPolicyBasedRouteRequest)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest other = - (com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest 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.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest 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.networkconnectivity.v1.GetPolicyBasedRouteRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest - 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.networkconnectivity.v1.GetPolicyBasedRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest 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.networkconnectivity.v1.GetPolicyBasedRouteRequest 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 [PolicyBasedRouting.GetPolicyBasedRoute][] method.
-   * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.class, - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.Builder.class); - } - - // Construct using - // com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest build() { - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest result = - new com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @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.networkconnectivity.v1.GetPolicyBasedRouteRequest) { - return mergeFrom( - (com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest - .getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. Name of the PolicyBasedRoute resource to get.
-     * 
- * - * - * 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 PolicyBasedRoute resource to get.
-     * 
- * - * - * 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 PolicyBasedRoute resource to get.
-     * 
- * - * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Name of the PolicyBasedRoute resource to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Name of the PolicyBasedRoute resource to get.
-     * 
- * - * - * 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; - bitField0_ |= 0x00000001; - 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.networkconnectivity.v1.GetPolicyBasedRouteRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) - private static final com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest(); - } - - public static com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPolicyBasedRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.GetPolicyBasedRouteRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.java deleted file mode 100644 index 6622d3957f44..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetPolicyBasedRouteRequestOrBuilder.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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface GetPolicyBasedRouteRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the PolicyBasedRoute resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the PolicyBasedRoute resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java deleted file mode 100644 index dda46174d3d7..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.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/networkconnectivity/v1/hub.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface GetSpokeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetSpokeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the spoke resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the spoke 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java deleted file mode 100644 index 961ad32eae1a..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java +++ /dev/null @@ -1,532 +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/networkconnectivity/v1/hub.proto - -package com.google.cloud.networkconnectivity.v1; - -public final class HubProto { - private HubProto() {} - - 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_networkconnectivity_v1_Hub_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_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/networkconnectivity/v1/hu" - + "b.proto\022#google.cloud.networkconnectivit" - + "y.v1\032\034google/api/annotations.proto\032\027goog" - + "le/api/client.proto\032\037google/api/field_be" - + "havior.proto\032\031google/api/resource.proto\032" - + "#google/longrunning/operations.proto\032 go" - + "ogle/protobuf/field_mask.proto\032\037google/p" - + "rotobuf/timestamp.proto\"\212\004\n\003Hub\022\021\n\004name\030" - + "\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" - + "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022D" - + "\n\006labels\030\004 \003(\01324.google.cloud.networkcon" - + "nectivity.v1.Hub.LabelsEntry\022\023\n\013descript" - + "ion\030\005 \001(\t\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022>\n\005sta" - + "te\030\t \001(\0162*.google.cloud.networkconnectiv" - + "ity.v1.StateB\003\340A\003\022E\n\014routing_vpcs\030\n \003(\0132" - + "/.google.cloud.networkconnectivity.v1.Ro" - + "utingVPC\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001:[\352AX\n&networkconnectivit" - + "y.googleapis.com/Hub\022.projects/{project}" - + "/locations/global/hubs/{hub}\"\177\n\nRoutingV" - + "PC\0220\n\003uri\030\001 \001(\tB#\372A \n\036compute.googleapis" - + ".com/Network\022?\n2required_for_new_site_to" - + "_site_data_transfer_spokes\030\002 \001(\010B\003\340A\003\"\276\006" - + "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create_tim" - + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\022F\n\006labels\030\004 \003(\01326.google." - + "cloud.networkconnectivity.v1.Spoke.Label" - + "sEntry\022\023\n\013description\030\005 \001(\t\022;\n\003hub\030\006 \001(\t" - + "B.\340A\005\372A(\n&networkconnectivity.googleapis" - + ".com/Hub\022Q\n\022linked_vpn_tunnels\030\021 \001(\01325.g" - + "oogle.cloud.networkconnectivity.v1.Linke" - + "dVpnTunnels\022k\n\037linked_interconnect_attac" - + "hments\030\022 \001(\0132B.google.cloud.networkconne" - + "ctivity.v1.LinkedInterconnectAttachments" - + "\022n\n!linked_router_appliance_instances\030\023 " - + "\001(\0132C.google.cloud.networkconnectivity.v" - + "1.LinkedRouterApplianceInstances\022\026\n\tuniq" - + "ue_id\030\013 \001(\tB\003\340A\003\022>\n\005state\030\017 \001(\0162*.google" - + ".cloud.networkconnectivity.v1.StateB\003\340A\003" - + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001:e\352Ab\n(networkconnectivity.google" - + "apis.com/Spoke\0226projects/{project}/locat" - + "ions/{location}/spokes/{spoke}\"\225\001\n\017ListH" - + "ubsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" - + "tions.googleapis.com/Location\022\021\n\tpage_si" - + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004" - + " \001(\t\022\020\n\010order_by\030\005 \001(\t\"x\n\020ListHubsRespon" - + "se\0226\n\004hubs\030\001 \003(\0132(.google.cloud.networkc" - + "onnectivity.v1.Hub\022\027\n\017next_page_token\030\002 " - + "\001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\rGetHubReques" - + "t\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&networkconnecti" - + "vity.googleapis.com/Hub\"\267\001\n\020CreateHubReq" - + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." - + "googleapis.com/Location\022\023\n\006hub_id\030\002 \001(\tB" - + "\003\340A\002\022:\n\003hub\030\003 \001(\0132(.google.cloud.network" - + "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\004" - + " \001(\tB\003\340A\001\"\235\001\n\020UpdateHubRequest\0224\n\013update" - + "_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB" - + "\003\340A\001\022:\n\003hub\030\002 \001(\0132(.google.cloud.network" - + "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\003" - + " \001(\tB\003\340A\001\"i\n\020DeleteHubRequest\022<\n\004name\030\001 " - + "\001(\tB.\340A\002\372A(\n&networkconnectivity.googlea" - + "pis.com/Hub\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\227\001\n" - + "\021ListSpokesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" - + "A#\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\006" - + "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\022ListSp" - + "okesResponse\022:\n\006spokes\030\001 \003(\0132*.google.cl" - + "oud.networkconnectivity.v1.Spoke\022\027\n\017next" - + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q" - + "\n\017GetSpokeRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n" - + "(networkconnectivity.googleapis.com/Spok" - + "e\"\277\001\n\022CreateSpokeRequest\0229\n\006parent\030\001 \001(\t" - + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" - + "ion\022\025\n\010spoke_id\030\002 \001(\tB\003\340A\002\022>\n\005spoke\030\003 \001(" - + "\0132*.google.cloud.networkconnectivity.v1." - + "SpokeB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\022" - + "UpdateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132" - + "\032.google.protobuf.FieldMaskB\003\340A\001\022>\n\005spok" - + "e\030\002 \001(\0132*.google.cloud.networkconnectivi" - + "ty.v1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A" - + "\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\tB0\340" - + "A\002\372A*\n(networkconnectivity.googleapis.co" - + "m/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\250\001\n\020Lin" - + "kedVpnTunnels\0223\n\004uris\030\001 \003(\tB%\372A\"\n comput" - + "e.googleapis.com/VpnTunnel\022\"\n\032site_to_si" - + "te_data_transfer\030\002 \001(\010\022;\n\013vpc_network\030\003 " - + "\001(\tB&\340A\003\372A \n\036compute.googleapis.com/Netw" - + "ork\"\302\001\n\035LinkedInterconnectAttachments\022@\n" - + "\004uris\030\001 \003(\tB2\372A/\n-compute.googleapis.com" - + "/InterconnectAttachment\022\"\n\032site_to_site_" - + "data_transfer\030\002 \001(\010\022;\n\013vpc_network\030\003 \001(\t" - + "B&\340A\003\372A \n\036compute.googleapis.com/Network" - + "\"\322\001\n\036LinkedRouterApplianceInstances\022O\n\ti" - + "nstances\030\001 \003(\0132<.google.cloud.networkcon" - + "nectivity.v1.RouterApplianceInstance\022\"\n\032" - + "site_to_site_data_transfer\030\002 \001(\010\022;\n\013vpc_" - + "network\030\003 \001(\tB&\340A\003\372A \n\036compute.googleapi" - + "s.com/Network\"l\n\027RouterApplianceInstance" - + "\022=\n\017virtual_machine\030\001 \001(\tB$\372A!\n\037compute." - + "googleapis.com/Instance\022\022\n\nip_address\030\003 " - + "\001(\t\"c\n\020LocationMetadata\022O\n\021location_feat" - + "ures\030\001 \003(\01624.google.cloud.networkconnect" - + "ivity.v1.LocationFeature*f\n\017LocationFeat" - + "ure\022 \n\034LOCATION_FEATURE_UNSPECIFIED\020\000\022\030\n" - + "\024SITE_TO_CLOUD_SPOKES\020\001\022\027\n\023SITE_TO_SITE_" - + "SPOKES\020\002*T\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" - + "\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003" - + "\022\014\n\010UPDATING\020\0062\235\020\n\nHubService\022\267\001\n\010ListHu" - + "bs\0224.google.cloud.networkconnectivity.v1" - + ".ListHubsRequest\0325.google.cloud.networkc" - + "onnectivity.v1.ListHubsResponse\">\202\323\344\223\002/\022" - + "-/v1/{parent=projects/*/locations/global" - + "}/hubs\332A\006parent\022\244\001\n\006GetHub\0222.google.clou" - + "d.networkconnectivity.v1.GetHubRequest\032(" - + ".google.cloud.networkconnectivity.v1.Hub" - + "\"<\202\323\344\223\002/\022-/v1/{name=projects/*/locations" - + "/global/hubs/*}\332A\004name\022\314\001\n\tCreateHub\0225.g" - + "oogle.cloud.networkconnectivity.v1.Creat" - + "eHubRequest\032\035.google.longrunning.Operati" - + "on\"i\202\323\344\223\0024\"-/v1/{parent=projects/*/locat" - + "ions/global}/hubs:\003hub\332A\021parent,hub,hub_" - + "id\312A\030\n\003Hub\022\021OperationMetadata\022\316\001\n\tUpdate" - + "Hub\0225.google.cloud.networkconnectivity.v" - + "1.UpdateHubRequest\032\035.google.longrunning." - + "Operation\"k\202\323\344\223\002821/v1/{hub.name=project" - + "s/*/locations/global/hubs/*}:\003hub\332A\017hub," - + "update_mask\312A\030\n\003Hub\022\021OperationMetadata\022\314" - + "\001\n\tDeleteHub\0225.google.cloud.networkconne" - + "ctivity.v1.DeleteHubRequest\032\035.google.lon" - + "grunning.Operation\"i\202\323\344\223\002/*-/v1/{name=pr" - + "ojects/*/locations/global/hubs/*}\332A\004name" - + "\312A*\n\025google.protobuf.Empty\022\021OperationMet" - + "adata\022\272\001\n\nListSpokes\0226.google.cloud.netw" - + "orkconnectivity.v1.ListSpokesRequest\0327.g" - + "oogle.cloud.networkconnectivity.v1.ListS" - + "pokesResponse\";\202\323\344\223\002,\022*/v1/{parent=proje" - + "cts/*/locations/*}/spokes\332A\006parent\022\247\001\n\010G" - + "etSpoke\0224.google.cloud.networkconnectivi" - + "ty.v1.GetSpokeRequest\032*.google.cloud.net" - + "workconnectivity.v1.Spoke\"9\202\323\344\223\002,\022*/v1/{" - + "name=projects/*/locations/*/spokes/*}\332A\004" - + "name\022\325\001\n\013CreateSpoke\0227.google.cloud.netw" - + "orkconnectivity.v1.CreateSpokeRequest\032\035." - + "google.longrunning.Operation\"n\202\323\344\223\0023\"*/v" - + "1/{parent=projects/*/locations/*}/spokes" - + ":\005spoke\332A\025parent,spoke,spoke_id\312A\032\n\005Spok" - + "e\022\021OperationMetadata\022\327\001\n\013UpdateSpoke\0227.g" - + "oogle.cloud.networkconnectivity.v1.Updat" - + "eSpokeRequest\032\035.google.longrunning.Opera" - + "tion\"p\202\323\344\223\002920/v1/{spoke.name=projects/*" - + "/locations/*/spokes/*}:\005spoke\332A\021spoke,up" - + "date_mask\312A\032\n\005Spoke\022\021OperationMetadata\022\315" - + "\001\n\013DeleteSpoke\0227.google.cloud.networkcon" - + "nectivity.v1.DeleteSpokeRequest\032\035.google" - + ".longrunning.Operation\"f\202\323\344\223\002,**/v1/{nam" - + "e=projects/*/locations/*/spokes/*}\332A\004nam" - + "e\312A*\n\025google.protobuf.Empty\022\021OperationMe" - + "tadata\032V\312A\"networkconnectivity.googleapi" - + "s.com\322A.https://www.googleapis.com/auth/" - + "cloud-platformB\277\003\n\'com.google.cloud.netw" - + "orkconnectivity.v1B\010HubProtoP\001ZVgoogle.g" - + "olang.org/genproto/googleapis/cloud/netw" - + "orkconnectivity/v1;networkconnectivity\252\002" - + "#Google.Cloud.NetworkConnectivity.V1\312\002#G" - + "oogle\\Cloud\\NetworkConnectivity\\V1\352\002&Goo" - + "gle::Cloud::NetworkConnectivity::V1\352A`\n " - + "compute.googleapis.com/VpnTunnel\022 - * Request for [PolicyBasedRouting.ListPolicyBasedRoutes][] method. - * - * - * Protobuf type {@code google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest} - */ -public final class ListPolicyBasedRoutesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) - ListPolicyBasedRoutesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListPolicyBasedRoutesRequest.newBuilder() to construct. - private ListPolicyBasedRoutesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListPolicyBasedRoutesRequest() { - parent_ = ""; - pageToken_ = ""; - filter_ = ""; - orderBy_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListPolicyBasedRoutesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.class, - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * Required. The parent resource's name.
-   * 
- * - * - * 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 resource's name.
-   * 
- * - * - * 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_ = 0; - /** - * - * - *
-   * The maximum number of results per page that should be returned.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - * - * - *
-   * The page token.
-   * 
- * - * 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 page token.
-   * 
- * - * 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; - - @SuppressWarnings("serial") - private volatile java.lang.Object filter_ = ""; - /** - * - * - *
-   * A filter expression that filters the results listed in the response.
-   * 
- * - * 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; - } - } - /** - * - * - *
-   * A filter expression that filters the results listed in the response.
-   * 
- * - * 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; - } - } - - public static final int ORDER_BY_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object orderBy_ = ""; - /** - * - * - *
-   * Sort the results by a certain order.
-   * 
- * - * string order_by = 5; - * - * @return The orderBy. - */ - @java.lang.Override - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - 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(); - orderBy_ = s; - return s; - } - } - /** - * - * - *
-   * Sort the results by a certain order.
-   * 
- * - * string order_by = 5; - * - * @return The bytes for orderBy. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = 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_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); - } - getUnknownFields().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_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); - } - size += getUnknownFields().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.networkconnectivity.v1.ListPolicyBasedRoutesRequest)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest other = - (com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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 = (37 * hash) + ORDER_BY_FIELD_NUMBER; - hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest - 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest 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 [PolicyBasedRouting.ListPolicyBasedRoutes][] method.
-   * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.class, - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.Builder.class); - } - - // Construct using - // com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - filter_ = ""; - orderBy_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest build() { - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest buildPartial() { - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest result = - new com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.filter_ = filter_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.orderBy_ = orderBy_; - } - } - - @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.networkconnectivity.v1.ListPolicyBasedRoutesRequest) { - return mergeFrom( - (com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest - .getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getOrderBy().isEmpty()) { - orderBy_ = other.orderBy_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource's name.
-     * 
- * - * - * 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 resource's name.
-     * 
- * - * - * 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 resource's name.
-     * 
- * - * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource's name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource's name.
-     * 
- * - * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of results per page that should be returned.
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of results per page that should be returned.
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of results per page that should be returned.
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * The page token.
-     * 
- * - * 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 page token.
-     * 
- * - * 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 page token.
-     * 
- * - * 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The page token.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * The page token.
-     * 
- * - * 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; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * A filter expression that filters the results listed in the response.
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * A filter expression that filters the results listed in the response.
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * A filter expression that filters the results listed in the response.
-     * 
- * - * 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * A filter expression that filters the results listed in the response.
-     * 
- * - * string filter = 4; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * A filter expression that filters the results listed in the response.
-     * 
- * - * 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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object orderBy_ = ""; - /** - * - * - *
-     * Sort the results by a certain order.
-     * 
- * - * string order_by = 5; - * - * @return The orderBy. - */ - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Sort the results by a certain order.
-     * 
- * - * string order_by = 5; - * - * @return The bytes for orderBy. - */ - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Sort the results by a certain order.
-     * 
- * - * string order_by = 5; - * - * @param value The orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - orderBy_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Sort the results by a certain order.
-     * 
- * - * string order_by = 5; - * - * @return This builder for chaining. - */ - public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * Sort the results by a certain order.
-     * 
- * - * string order_by = 5; - * - * @param value The bytes for orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - orderBy_ = value; - bitField0_ |= 0x00000010; - 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) - private static final com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest(); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPolicyBasedRoutesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.ListPolicyBasedRoutesRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequestOrBuilder.java deleted file mode 100644 index 40cc72dd34cc..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesRequestOrBuilder.java +++ /dev/null @@ -1,142 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface ListPolicyBasedRoutesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource's name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource's name.
-   * 
- * - * - * 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 results per page that should be returned.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * The page token.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * The page token.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * A filter expression that filters the results listed in the response.
-   * 
- * - * string filter = 4; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * A filter expression that filters the results listed in the response.
-   * 
- * - * string filter = 4; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); - - /** - * - * - *
-   * Sort the results by a certain order.
-   * 
- * - * string order_by = 5; - * - * @return The orderBy. - */ - java.lang.String getOrderBy(); - /** - * - * - *
-   * Sort the results by a certain order.
-   * 
- * - * string order_by = 5; - * - * @return The bytes for orderBy. - */ - com.google.protobuf.ByteString getOrderByBytes(); -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponse.java deleted file mode 100644 index 3d4543567852..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponse.java +++ /dev/null @@ -1,1462 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -/** - * - * - *
- * Response for [PolicyBasedRouting.ListPolicyBasedRoutes][] method.
- * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse} - */ -public final class ListPolicyBasedRoutesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) - ListPolicyBasedRoutesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListPolicyBasedRoutesResponse.newBuilder() to construct. - private ListPolicyBasedRoutesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListPolicyBasedRoutesResponse() { - policyBasedRoutes_ = 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 ListPolicyBasedRoutesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.class, - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.Builder.class); - } - - public static final int POLICY_BASED_ROUTES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List - policyBasedRoutes_; - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - @java.lang.Override - public java.util.List - getPolicyBasedRoutesList() { - return policyBasedRoutes_; - } - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - @java.lang.Override - public java.util.List - getPolicyBasedRoutesOrBuilderList() { - return policyBasedRoutes_; - } - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - @java.lang.Override - public int getPolicyBasedRoutesCount() { - return policyBasedRoutes_.size(); - } - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoutes(int index) { - return policyBasedRoutes_.get(index); - } - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder - getPolicyBasedRoutesOrBuilder(int index) { - return policyBasedRoutes_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-   * The next pagination token in the List response. It should be used as
-   * page_token for the following request. An empty value means no more result.
-   * 
- * - * 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; - } - } - /** - * - * - *
-   * The next pagination token in the List response. It should be used as
-   * page_token for the following request. An empty value means no more result.
-   * 
- * - * 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; - - @SuppressWarnings("serial") - 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 < policyBasedRoutes_.size(); i++) { - output.writeMessage(1, policyBasedRoutes_.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)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < policyBasedRoutes_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, policyBasedRoutes_.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 += getUnknownFields().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.networkconnectivity.v1.ListPolicyBasedRoutesResponse)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse other = - (com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) obj; - - if (!getPolicyBasedRoutesList().equals(other.getPolicyBasedRoutesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPolicyBasedRoutesCount() > 0) { - hash = (37 * hash) + POLICY_BASED_ROUTES_FIELD_NUMBER; - hash = (53 * hash) + getPolicyBasedRoutesList().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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse - 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse 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 for [PolicyBasedRouting.ListPolicyBasedRoutes][] method.
-   * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.class, - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.Builder.class); - } - - // Construct using - // com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (policyBasedRoutesBuilder_ == null) { - policyBasedRoutes_ = java.util.Collections.emptyList(); - } else { - policyBasedRoutes_ = null; - policyBasedRoutesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse build() { - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse buildPartial() { - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse result = - new com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse result) { - if (policyBasedRoutesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - policyBasedRoutes_ = java.util.Collections.unmodifiableList(policyBasedRoutes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.policyBasedRoutes_ = policyBasedRoutes_; - } else { - result.policyBasedRoutes_ = policyBasedRoutesBuilder_.build(); - } - if (((bitField0_ & 0x00000004) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.unreachable_ = unreachable_; - } - - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @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.networkconnectivity.v1.ListPolicyBasedRoutesResponse) { - return mergeFrom( - (com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse other) { - if (other - == com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse - .getDefaultInstance()) return this; - if (policyBasedRoutesBuilder_ == null) { - if (!other.policyBasedRoutes_.isEmpty()) { - if (policyBasedRoutes_.isEmpty()) { - policyBasedRoutes_ = other.policyBasedRoutes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePolicyBasedRoutesIsMutable(); - policyBasedRoutes_.addAll(other.policyBasedRoutes_); - } - onChanged(); - } - } else { - if (!other.policyBasedRoutes_.isEmpty()) { - if (policyBasedRoutesBuilder_.isEmpty()) { - policyBasedRoutesBuilder_.dispose(); - policyBasedRoutesBuilder_ = null; - policyBasedRoutes_ = other.policyBasedRoutes_; - bitField0_ = (bitField0_ & ~0x00000001); - policyBasedRoutesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPolicyBasedRoutesFieldBuilder() - : null; - } else { - policyBasedRoutesBuilder_.addAllMessages(other.policyBasedRoutes_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.unreachable_.isEmpty()) { - if (unreachable_.isEmpty()) { - unreachable_ = other.unreachable_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureUnreachableIsMutable(); - unreachable_.addAll(other.unreachable_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute m = - input.readMessage( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.parser(), - extensionRegistry); - if (policyBasedRoutesBuilder_ == null) { - ensurePolicyBasedRoutesIsMutable(); - policyBasedRoutes_.add(m); - } else { - policyBasedRoutesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List - policyBasedRoutes_ = java.util.Collections.emptyList(); - - private void ensurePolicyBasedRoutesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - policyBasedRoutes_ = - new java.util.ArrayList( - policyBasedRoutes_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> - policyBasedRoutesBuilder_; - - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public java.util.List - getPolicyBasedRoutesList() { - if (policyBasedRoutesBuilder_ == null) { - return java.util.Collections.unmodifiableList(policyBasedRoutes_); - } else { - return policyBasedRoutesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public int getPolicyBasedRoutesCount() { - if (policyBasedRoutesBuilder_ == null) { - return policyBasedRoutes_.size(); - } else { - return policyBasedRoutesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoutes( - int index) { - if (policyBasedRoutesBuilder_ == null) { - return policyBasedRoutes_.get(index); - } else { - return policyBasedRoutesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public Builder setPolicyBasedRoutes( - int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { - if (policyBasedRoutesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyBasedRoutesIsMutable(); - policyBasedRoutes_.set(index, value); - onChanged(); - } else { - policyBasedRoutesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public Builder setPolicyBasedRoutes( - int index, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder builderForValue) { - if (policyBasedRoutesBuilder_ == null) { - ensurePolicyBasedRoutesIsMutable(); - policyBasedRoutes_.set(index, builderForValue.build()); - onChanged(); - } else { - policyBasedRoutesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public Builder addPolicyBasedRoutes( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { - if (policyBasedRoutesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyBasedRoutesIsMutable(); - policyBasedRoutes_.add(value); - onChanged(); - } else { - policyBasedRoutesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public Builder addPolicyBasedRoutes( - int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute value) { - if (policyBasedRoutesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyBasedRoutesIsMutable(); - policyBasedRoutes_.add(index, value); - onChanged(); - } else { - policyBasedRoutesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public Builder addPolicyBasedRoutes( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder builderForValue) { - if (policyBasedRoutesBuilder_ == null) { - ensurePolicyBasedRoutesIsMutable(); - policyBasedRoutes_.add(builderForValue.build()); - onChanged(); - } else { - policyBasedRoutesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public Builder addPolicyBasedRoutes( - int index, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder builderForValue) { - if (policyBasedRoutesBuilder_ == null) { - ensurePolicyBasedRoutesIsMutable(); - policyBasedRoutes_.add(index, builderForValue.build()); - onChanged(); - } else { - policyBasedRoutesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public Builder addAllPolicyBasedRoutes( - java.lang.Iterable - values) { - if (policyBasedRoutesBuilder_ == null) { - ensurePolicyBasedRoutesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyBasedRoutes_); - onChanged(); - } else { - policyBasedRoutesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public Builder clearPolicyBasedRoutes() { - if (policyBasedRoutesBuilder_ == null) { - policyBasedRoutes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - policyBasedRoutesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public Builder removePolicyBasedRoutes(int index) { - if (policyBasedRoutesBuilder_ == null) { - ensurePolicyBasedRoutesIsMutable(); - policyBasedRoutes_.remove(index); - onChanged(); - } else { - policyBasedRoutesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder - getPolicyBasedRoutesBuilder(int index) { - return getPolicyBasedRoutesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder - getPolicyBasedRoutesOrBuilder(int index) { - if (policyBasedRoutesBuilder_ == null) { - return policyBasedRoutes_.get(index); - } else { - return policyBasedRoutesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public java.util.List< - ? extends com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> - getPolicyBasedRoutesOrBuilderList() { - if (policyBasedRoutesBuilder_ != null) { - return policyBasedRoutesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(policyBasedRoutes_); - } - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder - addPolicyBasedRoutesBuilder() { - return getPolicyBasedRoutesFieldBuilder() - .addBuilder( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance()); - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder - addPolicyBasedRoutesBuilder(int index) { - return getPolicyBasedRoutesFieldBuilder() - .addBuilder( - index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance()); - } - /** - * - * - *
-     * Policy based routes to be returned.
-     * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - public java.util.List - getPolicyBasedRoutesBuilderList() { - return getPolicyBasedRoutesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder> - getPolicyBasedRoutesFieldBuilder() { - if (policyBasedRoutesBuilder_ == null) { - policyBasedRoutesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder>( - policyBasedRoutes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - policyBasedRoutes_ = null; - } - return policyBasedRoutesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * The next pagination token in the List response. It should be used as
-     * page_token for the following request. An empty value means no more result.
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * The next pagination token in the List response. It should be used as
-     * page_token for the following request. An empty value means no more result.
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * The next pagination token in the List response. It should be used as
-     * page_token for the following request. An empty value means no more result.
-     * 
- * - * 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The next pagination token in the List response. It should be used as
-     * page_token for the following request. An empty value means no more result.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The next pagination token in the List response. It should be used as
-     * page_token for the following request. An empty value means no more result.
-     * 
- * - * 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureUnreachableIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * 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_ & ~0x00000004); - 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) - private static final com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse(); - } - - public static com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPolicyBasedRoutesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.ListPolicyBasedRoutesResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponseOrBuilder.java deleted file mode 100644 index 876654c552f5..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListPolicyBasedRoutesResponseOrBuilder.java +++ /dev/null @@ -1,162 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface ListPolicyBasedRoutesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - java.util.List - getPolicyBasedRoutesList(); - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getPolicyBasedRoutes(int index); - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - int getPolicyBasedRoutesCount(); - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - java.util.List - getPolicyBasedRoutesOrBuilderList(); - /** - * - * - *
-   * Policy based routes to be returned.
-   * 
- * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute policy_based_routes = 1; - * - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder getPolicyBasedRoutesOrBuilder( - int index); - - /** - * - * - *
-   * The next pagination token in the List response. It should be used as
-   * page_token for the following request. An empty value means no more result.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * The next pagination token in the List response. It should be used as
-   * page_token for the following request. An empty value means no more result.
-   * 
- * - * 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoute.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoute.java deleted file mode 100644 index 0d5216a57065..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoute.java +++ /dev/null @@ -1,8859 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -/** - * - * - *
- * Policy Based Routes (PBR) are more powerful routes that allows GCP customers
- * to route their L4 network traffic based on not just destination IP, but also
- * source IP, protocol and more. A PBR always take precedence when it conflicts
- * with other types of routes.
- * Next id: 19
- * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute} - */ -public final class PolicyBasedRoute extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute) - PolicyBasedRouteOrBuilder { - private static final long serialVersionUID = 0L; - // Use PolicyBasedRoute.newBuilder() to construct. - private PolicyBasedRoute(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PolicyBasedRoute() { - name_ = ""; - description_ = ""; - network_ = ""; - warnings_ = java.util.Collections.emptyList(); - selfLink_ = ""; - kind_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PolicyBasedRoute(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - 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.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder.class); - } - - public interface VirtualMachineOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Optional. A list of VM instance tags to which this policy based route applies to.
-     * VM instances that have ANY of tags specified here will install this
-     * PBR.
-     * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the tags. - */ - java.util.List getTagsList(); - /** - * - * - *
-     * Optional. A list of VM instance tags to which this policy based route applies to.
-     * VM instances that have ANY of tags specified here will install this
-     * PBR.
-     * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of tags. - */ - int getTagsCount(); - /** - * - * - *
-     * Optional. A list of VM instance tags to which this policy based route applies to.
-     * VM instances that have ANY of tags specified here will install this
-     * PBR.
-     * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - java.lang.String getTags(int index); - /** - * - * - *
-     * Optional. A list of VM instance tags to which this policy based route applies to.
-     * VM instances that have ANY of tags specified here will install this
-     * PBR.
-     * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - com.google.protobuf.ByteString getTagsBytes(int index); - } - /** - * - * - *
-   * VM instances to which this policy based route applies to.
-   * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine} - */ - public static final class VirtualMachine extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) - VirtualMachineOrBuilder { - private static final long serialVersionUID = 0L; - // Use VirtualMachine.newBuilder() to construct. - private VirtualMachine(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private VirtualMachine() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new VirtualMachine(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder - .class); - } - - public static final int TAGS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList tags_; - /** - * - * - *
-     * Optional. A list of VM instance tags to which this policy based route applies to.
-     * VM instances that have ANY of tags specified here will install this
-     * PBR.
-     * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - return tags_; - } - /** - * - * - *
-     * Optional. A list of VM instance tags to which this policy based route applies to.
-     * VM instances that have ANY of tags specified here will install this
-     * PBR.
-     * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-     * Optional. A list of VM instance tags to which this policy based route applies to.
-     * VM instances that have ANY of tags specified here will install this
-     * PBR.
-     * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * - * - *
-     * Optional. A list of VM instance tags to which this policy based route applies to.
-     * VM instances that have ANY of tags specified here will install this
-     * PBR.
-     * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString getTagsBytes(int index) { - return tags_.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 < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tags_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - size += getUnknownFields().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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine other = - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) obj; - - if (!getTagsList().equals(other.getTagsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine 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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine 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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - 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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine 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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine 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; - } - /** - * - * - *
-     * VM instances to which this policy based route applies to.
-     * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder - .class); - } - - // Construct using - // com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine build() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - buildPartial() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result = - new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result) { - if (((bitField0_ & 0x00000001) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tags_ = tags_; - } - - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine result) { - int from_bitField0_ = bitField0_; - } - - @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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) { - return mergeFrom( - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine other) { - if (other - == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - .getDefaultInstance()) return this; - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList tags_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-       * Optional. A list of VM instance tags to which this policy based route applies to.
-       * VM instances that have ANY of tags specified here will install this
-       * PBR.
-       * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - * - * - *
-       * Optional. A list of VM instance tags to which this policy based route applies to.
-       * VM instances that have ANY of tags specified here will install this
-       * PBR.
-       * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-       * Optional. A list of VM instance tags to which this policy based route applies to.
-       * VM instances that have ANY of tags specified here will install this
-       * PBR.
-       * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * - * - *
-       * Optional. A list of VM instance tags to which this policy based route applies to.
-       * VM instances that have ANY of tags specified here will install this
-       * PBR.
-       * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - * - * - *
-       * Optional. A list of VM instance tags to which this policy based route applies to.
-       * VM instances that have ANY of tags specified here will install this
-       * PBR.
-       * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The tags to set. - * @return This builder for chaining. - */ - public Builder setTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. A list of VM instance tags to which this policy based route applies to.
-       * VM instances that have ANY of tags specified here will install this
-       * PBR.
-       * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The tags to add. - * @return This builder for chaining. - */ - public Builder addTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. A list of VM instance tags to which this policy based route applies to.
-       * VM instances that have ANY of tags specified here will install this
-       * PBR.
-       * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The tags to add. - * @return This builder for chaining. - */ - public Builder addAllTags(java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. A list of VM instance tags to which this policy based route applies to.
-       * VM instances that have ANY of tags specified here will install this
-       * PBR.
-       * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. A list of VM instance tags to which this policy based route applies to.
-       * VM instances that have ANY of tags specified here will install this
-       * PBR.
-       * 
- * - * repeated string tags = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the tags to add. - * @return This builder for chaining. - */ - public Builder addTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) - private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine(); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VirtualMachine parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface InterconnectAttachmentOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Optional. Cloud region to install this policy based route on interconnect
-     * attachment. Use `all` to install it on all interconnect attachments.
-     * 
- * - * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The region. - */ - java.lang.String getRegion(); - /** - * - * - *
-     * Optional. Cloud region to install this policy based route on interconnect
-     * attachment. Use `all` to install it on all interconnect attachments.
-     * 
- * - * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); - } - /** - * - * - *
-   * InterconnectAttachment to which this route applies to.
-   * 
- * - * Protobuf type {@code - * google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment} - */ - public static final class InterconnectAttachment extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - InterconnectAttachmentOrBuilder { - private static final long serialVersionUID = 0L; - // Use InterconnectAttachment.newBuilder() to construct. - private InterconnectAttachment(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private InterconnectAttachment() { - region_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new InterconnectAttachment(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .Builder.class); - } - - public static final int REGION_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object region_ = ""; - /** - * - * - *
-     * Optional. Cloud region to install this policy based route on interconnect
-     * attachment. Use `all` to install it on all interconnect attachments.
-     * 
- * - * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - 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(); - region_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. Cloud region to install this policy based route on interconnect
-     * attachment. Use `all` to install it on all interconnect attachments.
-     * 
- * - * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = 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(region_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, region_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, region_); - } - size += getUnknownFields().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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment other = - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) obj; - - if (!getRegion().equals(other.getRegion())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment 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; - } - /** - * - * - *
-     * InterconnectAttachment to which this route applies to.
-     * 
- * - * Protobuf type {@code - * google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .Builder.class); - } - - // Construct using - // com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - region_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - build() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - buildPartial() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment result = - new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.region_ = region_; - } - } - - @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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) { - return mergeFrom( - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment other) { - if (other - == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .getDefaultInstance()) return this; - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - region_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object region_ = ""; - /** - * - * - *
-       * Optional. Cloud region to install this policy based route on interconnect
-       * attachment. Use `all` to install it on all interconnect attachments.
-       * 
- * - * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. Cloud region to install this policy based route on interconnect
-       * attachment. Use `all` to install it on all interconnect attachments.
-       * 
- * - * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for region. - */ - public com.google.protobuf.ByteString getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. Cloud region to install this policy based route on interconnect
-       * attachment. Use `all` to install it on all interconnect attachments.
-       * 
- * - * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - region_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. Cloud region to install this policy based route on interconnect
-       * attachment. Use `all` to install it on all interconnect attachments.
-       * 
- * - * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRegion() { - region_ = getDefaultInstance().getRegion(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. Cloud region to install this policy based route on interconnect
-       * attachment. Use `all` to install it on all interconnect attachments.
-       * 
- * - * string region = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - region_ = value; - bitField0_ |= 0x00000001; - 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute - .InterconnectAttachment - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment(); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InterconnectAttachment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface FilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Optional. The IP protocol that this policy based route applies to. Valid values are
-     * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
-     * 
- * - * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The ipProtocol. - */ - java.lang.String getIpProtocol(); - /** - * - * - *
-     * Optional. The IP protocol that this policy based route applies to. Valid values are
-     * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
-     * 
- * - * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for ipProtocol. - */ - com.google.protobuf.ByteString getIpProtocolBytes(); - - /** - * - * - *
-     * Optional. The source IP range of outgoing packets that this policy based route
-     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-     * 
- * - * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The srcRange. - */ - java.lang.String getSrcRange(); - /** - * - * - *
-     * Optional. The source IP range of outgoing packets that this policy based route
-     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-     * 
- * - * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for srcRange. - */ - com.google.protobuf.ByteString getSrcRangeBytes(); - - /** - * - * - *
-     * Optional. The destination IP range of outgoing packets that this policy based route
-     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-     * 
- * - * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The destRange. - */ - java.lang.String getDestRange(); - /** - * - * - *
-     * Optional. The destination IP range of outgoing packets that this policy based route
-     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-     * 
- * - * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for destRange. - */ - com.google.protobuf.ByteString getDestRangeBytes(); - - /** - * - * - *
-     * Required. Internet protocol versions this policy based route applies to. For this
-     * version, only IPV4 is supported.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for protocolVersion. - */ - int getProtocolVersionValue(); - /** - * - * - *
-     * Required. Internet protocol versions this policy based route applies to. For this
-     * version, only IPV4 is supported.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The protocolVersion. - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion - getProtocolVersion(); - } - /** - * - * - *
-   * Filter matches L4 traffic.
-   * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter} - */ - public static final class Filter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) - FilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use Filter.newBuilder() to construct. - private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Filter() { - ipProtocol_ = ""; - srcRange_ = ""; - destRange_ = ""; - protocolVersion_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Filter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder.class); - } - - /** - * - * - *
-     * The internet protocol version.
-     * 
- * - * Protobuf enum {@code - * google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion} - */ - public enum ProtocolVersion implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Default value.
-       * 
- * - * PROTOCOL_VERSION_UNSPECIFIED = 0; - */ - PROTOCOL_VERSION_UNSPECIFIED(0), - /** - * - * - *
-       * The PBR is for IPv4 internet protocol traffic.
-       * 
- * - * IPV4 = 1; - */ - IPV4(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * Default value.
-       * 
- * - * PROTOCOL_VERSION_UNSPECIFIED = 0; - */ - public static final int PROTOCOL_VERSION_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * The PBR is for IPv4 internet protocol traffic.
-       * 
- * - * IPV4 = 1; - */ - public static final int IPV4_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 ProtocolVersion 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 ProtocolVersion forNumber(int value) { - switch (value) { - case 0: - return PROTOCOL_VERSION_UNSPECIFIED; - case 1: - return IPV4; - 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 ProtocolVersion findValueByNumber(int number) { - return ProtocolVersion.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.networkconnectivity.v1.PolicyBasedRoute.Filter.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final ProtocolVersion[] VALUES = values(); - - public static ProtocolVersion 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 ProtocolVersion(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion) - } - - public static final int IP_PROTOCOL_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object ipProtocol_ = ""; - /** - * - * - *
-     * Optional. The IP protocol that this policy based route applies to. Valid values are
-     * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
-     * 
- * - * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The ipProtocol. - */ - @java.lang.Override - public java.lang.String getIpProtocol() { - java.lang.Object ref = ipProtocol_; - 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(); - ipProtocol_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. The IP protocol that this policy based route applies to. Valid values are
-     * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
-     * 
- * - * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for ipProtocol. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIpProtocolBytes() { - java.lang.Object ref = ipProtocol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - ipProtocol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SRC_RANGE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object srcRange_ = ""; - /** - * - * - *
-     * Optional. The source IP range of outgoing packets that this policy based route
-     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-     * 
- * - * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The srcRange. - */ - @java.lang.Override - public java.lang.String getSrcRange() { - java.lang.Object ref = srcRange_; - 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(); - srcRange_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. The source IP range of outgoing packets that this policy based route
-     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-     * 
- * - * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for srcRange. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSrcRangeBytes() { - java.lang.Object ref = srcRange_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - srcRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEST_RANGE_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object destRange_ = ""; - /** - * - * - *
-     * Optional. The destination IP range of outgoing packets that this policy based route
-     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-     * 
- * - * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The destRange. - */ - @java.lang.Override - public java.lang.String getDestRange() { - java.lang.Object ref = destRange_; - 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(); - destRange_ = s; - return s; - } - } - /** - * - * - *
-     * Optional. The destination IP range of outgoing packets that this policy based route
-     * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-     * 
- * - * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for destRange. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDestRangeBytes() { - java.lang.Object ref = destRange_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - destRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROTOCOL_VERSION_FIELD_NUMBER = 6; - private int protocolVersion_ = 0; - /** - * - * - *
-     * Required. Internet protocol versions this policy based route applies to. For this
-     * version, only IPV4 is supported.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for protocolVersion. - */ - @java.lang.Override - public int getProtocolVersionValue() { - return protocolVersion_; - } - /** - * - * - *
-     * Required. Internet protocol versions this policy based route applies to. For this
-     * version, only IPV4 is supported.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The protocolVersion. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion - getProtocolVersion() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion result = - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion.forNumber( - protocolVersion_); - return result == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion - .UNRECOGNIZED - : result; - } - - 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(ipProtocol_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipProtocol_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(srcRange_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, srcRange_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destRange_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, destRange_); - } - if (protocolVersion_ - != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion - .PROTOCOL_VERSION_UNSPECIFIED - .getNumber()) { - output.writeEnum(6, protocolVersion_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipProtocol_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ipProtocol_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(srcRange_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, srcRange_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destRange_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, destRange_); - } - if (protocolVersion_ - != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion - .PROTOCOL_VERSION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, protocolVersion_); - } - size += getUnknownFields().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.networkconnectivity.v1.PolicyBasedRoute.Filter)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter other = - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) obj; - - if (!getIpProtocol().equals(other.getIpProtocol())) return false; - if (!getSrcRange().equals(other.getSrcRange())) return false; - if (!getDestRange().equals(other.getDestRange())) return false; - if (protocolVersion_ != other.protocolVersion_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + IP_PROTOCOL_FIELD_NUMBER; - hash = (53 * hash) + getIpProtocol().hashCode(); - hash = (37 * hash) + SRC_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getSrcRange().hashCode(); - hash = (37 * hash) + DEST_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getDestRange().hashCode(); - hash = (37 * hash) + PROTOCOL_VERSION_FIELD_NUMBER; - hash = (53 * hash) + protocolVersion_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter 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.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter 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.networkconnectivity.v1.PolicyBasedRoute.Filter - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter - 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.networkconnectivity.v1.PolicyBasedRoute.Filter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter 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.networkconnectivity.v1.PolicyBasedRoute.Filter 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; - } - /** - * - * - *
-     * Filter matches L4 traffic.
-     * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder.class); - } - - // Construct using - // com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - ipProtocol_ = ""; - srcRange_ = ""; - destRange_ = ""; - protocolVersion_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter build() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter buildPartial() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter result = - new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.ipProtocol_ = ipProtocol_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.srcRange_ = srcRange_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.destRange_ = destRange_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.protocolVersion_ = protocolVersion_; - } - } - - @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.networkconnectivity.v1.PolicyBasedRoute.Filter) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter other) { - if (other - == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance()) - return this; - if (!other.getIpProtocol().isEmpty()) { - ipProtocol_ = other.ipProtocol_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getSrcRange().isEmpty()) { - srcRange_ = other.srcRange_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDestRange().isEmpty()) { - destRange_ = other.destRange_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.protocolVersion_ != 0) { - setProtocolVersionValue(other.getProtocolVersionValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - ipProtocol_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - srcRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - destRange_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 48: - { - protocolVersion_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 48 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object ipProtocol_ = ""; - /** - * - * - *
-       * Optional. The IP protocol that this policy based route applies to. Valid values are
-       * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
-       * 
- * - * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The ipProtocol. - */ - public java.lang.String getIpProtocol() { - java.lang.Object ref = ipProtocol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ipProtocol_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. The IP protocol that this policy based route applies to. Valid values are
-       * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
-       * 
- * - * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for ipProtocol. - */ - public com.google.protobuf.ByteString getIpProtocolBytes() { - java.lang.Object ref = ipProtocol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - ipProtocol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. The IP protocol that this policy based route applies to. Valid values are
-       * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
-       * 
- * - * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The ipProtocol to set. - * @return This builder for chaining. - */ - public Builder setIpProtocol(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ipProtocol_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The IP protocol that this policy based route applies to. Valid values are
-       * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
-       * 
- * - * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearIpProtocol() { - ipProtocol_ = getDefaultInstance().getIpProtocol(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The IP protocol that this policy based route applies to. Valid values are
-       * 'TCP', 'UDP', and 'ALL'. Default is 'ALL'.
-       * 
- * - * string ip_protocol = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for ipProtocol to set. - * @return This builder for chaining. - */ - public Builder setIpProtocolBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ipProtocol_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object srcRange_ = ""; - /** - * - * - *
-       * Optional. The source IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The srcRange. - */ - public java.lang.String getSrcRange() { - java.lang.Object ref = srcRange_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - srcRange_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. The source IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for srcRange. - */ - public com.google.protobuf.ByteString getSrcRangeBytes() { - java.lang.Object ref = srcRange_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - srcRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. The source IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The srcRange to set. - * @return This builder for chaining. - */ - public Builder setSrcRange(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - srcRange_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The source IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearSrcRange() { - srcRange_ = getDefaultInstance().getSrcRange(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The source IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string src_range = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for srcRange to set. - * @return This builder for chaining. - */ - public Builder setSrcRangeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - srcRange_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object destRange_ = ""; - /** - * - * - *
-       * Optional. The destination IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The destRange. - */ - public java.lang.String getDestRange() { - java.lang.Object ref = destRange_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - destRange_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Optional. The destination IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for destRange. - */ - public com.google.protobuf.ByteString getDestRangeBytes() { - java.lang.Object ref = destRange_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - destRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Optional. The destination IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The destRange to set. - * @return This builder for chaining. - */ - public Builder setDestRange(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - destRange_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The destination IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDestRange() { - destRange_ = getDefaultInstance().getDestRange(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-       * Optional. The destination IP range of outgoing packets that this policy based route
-       * applies to. Default is "0.0.0.0/0" if protocol version is IPv4.
-       * 
- * - * string dest_range = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for destRange to set. - * @return This builder for chaining. - */ - public Builder setDestRangeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - destRange_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private int protocolVersion_ = 0; - /** - * - * - *
-       * Required. Internet protocol versions this policy based route applies to. For this
-       * version, only IPV4 is supported.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for protocolVersion. - */ - @java.lang.Override - public int getProtocolVersionValue() { - return protocolVersion_; - } - /** - * - * - *
-       * Required. Internet protocol versions this policy based route applies to. For this
-       * version, only IPV4 is supported.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enum numeric value on the wire for protocolVersion to set. - * @return This builder for chaining. - */ - public Builder setProtocolVersionValue(int value) { - protocolVersion_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Internet protocol versions this policy based route applies to. For this
-       * version, only IPV4 is supported.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The protocolVersion. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion - getProtocolVersion() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion result = - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion - .forNumber(protocolVersion_); - return result == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion - .UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Required. Internet protocol versions this policy based route applies to. For this
-       * version, only IPV4 is supported.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The protocolVersion to set. - * @return This builder for chaining. - */ - public Builder setProtocolVersion( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - protocolVersion_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Internet protocol versions this policy based route applies to. For this
-       * version, only IPV4 is supported.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.ProtocolVersion protocol_version = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearProtocolVersion() { - bitField0_ = (bitField0_ & ~0x00000008); - protocolVersion_ = 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.networkconnectivity.v1.PolicyBasedRoute.Filter) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter) - private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter(); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Filter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.PolicyBasedRoute.Filter - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface WarningsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Output only. A warning code, if applicable.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for code. - */ - int getCodeValue(); - /** - * - * - *
-     * Output only. A warning code, if applicable.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The code. - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code getCode(); - - /** - * - * - *
-     * Output only. Metadata about this warning in key: value format. The key should provides
-     * more detail on the warning being returned. For example, for warnings
-     * where there are no results in a list request for a particular zone, this
-     * key might be scope and the key value might be the zone name. Other
-     * examples might be a key indicating a deprecated resource and a suggested
-     * replacement.
-     * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - int getDataCount(); - /** - * - * - *
-     * Output only. Metadata about this warning in key: value format. The key should provides
-     * more detail on the warning being returned. For example, for warnings
-     * where there are no results in a list request for a particular zone, this
-     * key might be scope and the key value might be the zone name. Other
-     * examples might be a key indicating a deprecated resource and a suggested
-     * replacement.
-     * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - boolean containsData(java.lang.String key); - /** Use {@link #getDataMap()} instead. */ - @java.lang.Deprecated - java.util.Map getData(); - /** - * - * - *
-     * Output only. Metadata about this warning in key: value format. The key should provides
-     * more detail on the warning being returned. For example, for warnings
-     * where there are no results in a list request for a particular zone, this
-     * key might be scope and the key value might be the zone name. Other
-     * examples might be a key indicating a deprecated resource and a suggested
-     * replacement.
-     * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - java.util.Map getDataMap(); - /** - * - * - *
-     * Output only. Metadata about this warning in key: value format. The key should provides
-     * more detail on the warning being returned. For example, for warnings
-     * where there are no results in a list request for a particular zone, this
-     * key might be scope and the key value might be the zone name. Other
-     * examples might be a key indicating a deprecated resource and a suggested
-     * replacement.
-     * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - /* nullable */ - java.lang.String getDataOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-     * Output only. Metadata about this warning in key: value format. The key should provides
-     * more detail on the warning being returned. For example, for warnings
-     * where there are no results in a list request for a particular zone, this
-     * key might be scope and the key value might be the zone name. Other
-     * examples might be a key indicating a deprecated resource and a suggested
-     * replacement.
-     * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - java.lang.String getDataOrThrow(java.lang.String key); - - /** - * - * - *
-     * Output only. A human-readable description of the warning code.
-     * 
- * - * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The warningMessage. - */ - java.lang.String getWarningMessage(); - /** - * - * - *
-     * Output only. A human-readable description of the warning code.
-     * 
- * - * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for warningMessage. - */ - com.google.protobuf.ByteString getWarningMessageBytes(); - } - /** - * - * - *
-   * Informational warning message.
-   * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings} - */ - public static final class Warnings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) - WarningsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Warnings.newBuilder() to construct. - private Warnings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Warnings() { - code_ = 0; - warningMessage_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Warnings(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetData(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder.class); - } - - /** - * - * - *
-     * Warning code for Policy Based Routing. Expect to add values in the
-     * future.
-     * 
- * - * Protobuf enum {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code} - */ - public enum Code implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Default value.
-       * 
- * - * WARNING_UNSPECIFIED = 0; - */ - WARNING_UNSPECIFIED(0), - /** - * - * - *
-       * The policy based route is not active and functioning. Common causes are
-       * the dependent network was deleted or the resource project was turned
-       * off.
-       * 
- * - * RESOURCE_NOT_ACTIVE = 1; - */ - RESOURCE_NOT_ACTIVE(1), - /** - * - * - *
-       * The policy based route is being modified (e.g. created/deleted) at this
-       * time.
-       * 
- * - * RESOURCE_BEING_MODIFIED = 2; - */ - RESOURCE_BEING_MODIFIED(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-       * Default value.
-       * 
- * - * WARNING_UNSPECIFIED = 0; - */ - public static final int WARNING_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-       * The policy based route is not active and functioning. Common causes are
-       * the dependent network was deleted or the resource project was turned
-       * off.
-       * 
- * - * RESOURCE_NOT_ACTIVE = 1; - */ - public static final int RESOURCE_NOT_ACTIVE_VALUE = 1; - /** - * - * - *
-       * The policy based route is being modified (e.g. created/deleted) at this
-       * time.
-       * 
- * - * RESOURCE_BEING_MODIFIED = 2; - */ - public static final int RESOURCE_BEING_MODIFIED_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 Code 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 Code forNumber(int value) { - switch (value) { - case 0: - return WARNING_UNSPECIFIED; - case 1: - return RESOURCE_NOT_ACTIVE; - case 2: - return RESOURCE_BEING_MODIFIED; - 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 Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Code[] VALUES = values(); - - public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Code(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code) - } - - public static final int CODE_FIELD_NUMBER = 1; - private int code_ = 0; - /** - * - * - *
-     * Output only. A warning code, if applicable.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for code. - */ - @java.lang.Override - public int getCodeValue() { - return code_; - } - /** - * - * - *
-     * Output only. A warning code, if applicable.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The code. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code getCode() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code result = - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.forNumber(code_); - return result == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.UNRECOGNIZED - : result; - } - - public static final int DATA_FIELD_NUMBER = 2; - - private static final class DataDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField data_; - - private com.google.protobuf.MapField internalGetData() { - if (data_ == null) { - return com.google.protobuf.MapField.emptyMapField(DataDefaultEntryHolder.defaultEntry); - } - return data_; - } - - public int getDataCount() { - return internalGetData().getMap().size(); - } - /** - * - * - *
-     * Output only. Metadata about this warning in key: value format. The key should provides
-     * more detail on the warning being returned. For example, for warnings
-     * where there are no results in a list request for a particular zone, this
-     * key might be scope and the key value might be the zone name. Other
-     * examples might be a key indicating a deprecated resource and a suggested
-     * replacement.
-     * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public boolean containsData(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetData().getMap().containsKey(key); - } - /** Use {@link #getDataMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getData() { - return getDataMap(); - } - /** - * - * - *
-     * Output only. Metadata about this warning in key: value format. The key should provides
-     * more detail on the warning being returned. For example, for warnings
-     * where there are no results in a list request for a particular zone, this
-     * key might be scope and the key value might be the zone name. Other
-     * examples might be a key indicating a deprecated resource and a suggested
-     * replacement.
-     * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public java.util.Map getDataMap() { - return internalGetData().getMap(); - } - /** - * - * - *
-     * Output only. Metadata about this warning in key: value format. The key should provides
-     * more detail on the warning being returned. For example, for warnings
-     * where there are no results in a list request for a particular zone, this
-     * key might be scope and the key value might be the zone name. Other
-     * examples might be a key indicating a deprecated resource and a suggested
-     * replacement.
-     * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public /* nullable */ java.lang.String getDataOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetData().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Output only. Metadata about this warning in key: value format. The key should provides
-     * more detail on the warning being returned. For example, for warnings
-     * where there are no results in a list request for a particular zone, this
-     * key might be scope and the key value might be the zone name. Other
-     * examples might be a key indicating a deprecated resource and a suggested
-     * replacement.
-     * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public java.lang.String getDataOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetData().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int WARNING_MESSAGE_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object warningMessage_ = ""; - /** - * - * - *
-     * Output only. A human-readable description of the warning code.
-     * 
- * - * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The warningMessage. - */ - @java.lang.Override - public java.lang.String getWarningMessage() { - java.lang.Object ref = warningMessage_; - 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(); - warningMessage_ = s; - return s; - } - } - /** - * - * - *
-     * Output only. A human-readable description of the warning code.
-     * 
- * - * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for warningMessage. - */ - @java.lang.Override - public com.google.protobuf.ByteString getWarningMessageBytes() { - java.lang.Object ref = warningMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - warningMessage_ = 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 (code_ - != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code - .WARNING_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, code_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetData(), DataDefaultEntryHolder.defaultEntry, 2); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warningMessage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, warningMessage_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (code_ - != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code - .WARNING_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); - } - for (java.util.Map.Entry entry : - internalGetData().getMap().entrySet()) { - com.google.protobuf.MapEntry data__ = - DataDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, data__); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warningMessage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, warningMessage_); - } - size += getUnknownFields().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.networkconnectivity.v1.PolicyBasedRoute.Warnings)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings other = - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) obj; - - if (code_ != other.code_) return false; - if (!internalGetData().equals(other.internalGetData())) return false; - if (!getWarningMessage().equals(other.getWarningMessage())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) 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) + CODE_FIELD_NUMBER; - hash = (53 * hash) + code_; - if (!internalGetData().getMap().isEmpty()) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + internalGetData().hashCode(); - } - hash = (37 * hash) + WARNING_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getWarningMessage().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings 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.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings 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.networkconnectivity.v1.PolicyBasedRoute.Warnings - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings - 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.networkconnectivity.v1.PolicyBasedRoute.Warnings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings 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.networkconnectivity.v1.PolicyBasedRoute.Warnings 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; - } - /** - * - * - *
-     * Informational warning message.
-     * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetData(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 2: - return internalGetMutableData(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder.class); - } - - // Construct using - // com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - code_ = 0; - internalGetMutableData().clear(); - warningMessage_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings - getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings build() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings buildPartial() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings result = - new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.code_ = code_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.data_ = internalGetData(); - result.data_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.warningMessage_ = warningMessage_; - } - } - - @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.networkconnectivity.v1.PolicyBasedRoute.Warnings) { - return mergeFrom( - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings other) { - if (other - == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings - .getDefaultInstance()) return this; - if (other.code_ != 0) { - setCodeValue(other.getCodeValue()); - } - internalGetMutableData().mergeFrom(other.internalGetData()); - bitField0_ |= 0x00000002; - if (!other.getWarningMessage().isEmpty()) { - warningMessage_ = other.warningMessage_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - code_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - com.google.protobuf.MapEntry data__ = - input.readMessage( - DataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableData().getMutableMap().put(data__.getKey(), data__.getValue()); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - warningMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int code_ = 0; - /** - * - * - *
-       * Output only. A warning code, if applicable.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for code. - */ - @java.lang.Override - public int getCodeValue() { - return code_; - } - /** - * - * - *
-       * Output only. A warning code, if applicable.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for code to set. - * @return This builder for chaining. - */ - public Builder setCodeValue(int value) { - code_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A warning code, if applicable.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The code. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code getCode() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code result = - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.forNumber(code_); - return result == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Output only. A warning code, if applicable.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The code to set. - * @return This builder for chaining. - */ - public Builder setCode( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - code_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A warning code, if applicable.
-       * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearCode() { - bitField0_ = (bitField0_ & ~0x00000001); - code_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField data_; - - private com.google.protobuf.MapField internalGetData() { - if (data_ == null) { - return com.google.protobuf.MapField.emptyMapField(DataDefaultEntryHolder.defaultEntry); - } - return data_; - } - - private com.google.protobuf.MapField - internalGetMutableData() { - if (data_ == null) { - data_ = com.google.protobuf.MapField.newMapField(DataDefaultEntryHolder.defaultEntry); - } - if (!data_.isMutable()) { - data_ = data_.copy(); - } - bitField0_ |= 0x00000002; - onChanged(); - return data_; - } - - public int getDataCount() { - return internalGetData().getMap().size(); - } - /** - * - * - *
-       * Output only. Metadata about this warning in key: value format. The key should provides
-       * more detail on the warning being returned. For example, for warnings
-       * where there are no results in a list request for a particular zone, this
-       * key might be scope and the key value might be the zone name. Other
-       * examples might be a key indicating a deprecated resource and a suggested
-       * replacement.
-       * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public boolean containsData(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetData().getMap().containsKey(key); - } - /** Use {@link #getDataMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getData() { - return getDataMap(); - } - /** - * - * - *
-       * Output only. Metadata about this warning in key: value format. The key should provides
-       * more detail on the warning being returned. For example, for warnings
-       * where there are no results in a list request for a particular zone, this
-       * key might be scope and the key value might be the zone name. Other
-       * examples might be a key indicating a deprecated resource and a suggested
-       * replacement.
-       * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.Map getDataMap() { - return internalGetData().getMap(); - } - /** - * - * - *
-       * Output only. Metadata about this warning in key: value format. The key should provides
-       * more detail on the warning being returned. For example, for warnings
-       * where there are no results in a list request for a particular zone, this
-       * key might be scope and the key value might be the zone name. Other
-       * examples might be a key indicating a deprecated resource and a suggested
-       * replacement.
-       * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public /* nullable */ java.lang.String getDataOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetData().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-       * Output only. Metadata about this warning in key: value format. The key should provides
-       * more detail on the warning being returned. For example, for warnings
-       * where there are no results in a list request for a particular zone, this
-       * key might be scope and the key value might be the zone name. Other
-       * examples might be a key indicating a deprecated resource and a suggested
-       * replacement.
-       * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.lang.String getDataOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetData().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearData() { - bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableData().getMutableMap().clear(); - return this; - } - /** - * - * - *
-       * Output only. Metadata about this warning in key: value format. The key should provides
-       * more detail on the warning being returned. For example, for warnings
-       * where there are no results in a list request for a particular zone, this
-       * key might be scope and the key value might be the zone name. Other
-       * examples might be a key indicating a deprecated resource and a suggested
-       * replacement.
-       * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeData(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableData().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableData() { - bitField0_ |= 0x00000002; - return internalGetMutableData().getMutableMap(); - } - /** - * - * - *
-       * Output only. Metadata about this warning in key: value format. The key should provides
-       * more detail on the warning being returned. For example, for warnings
-       * where there are no results in a list request for a particular zone, this
-       * key might be scope and the key value might be the zone name. Other
-       * examples might be a key indicating a deprecated resource and a suggested
-       * replacement.
-       * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder putData(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableData().getMutableMap().put(key, value); - bitField0_ |= 0x00000002; - return this; - } - /** - * - * - *
-       * Output only. Metadata about this warning in key: value format. The key should provides
-       * more detail on the warning being returned. For example, for warnings
-       * where there are no results in a list request for a particular zone, this
-       * key might be scope and the key value might be the zone name. Other
-       * examples might be a key indicating a deprecated resource and a suggested
-       * replacement.
-       * 
- * - * map<string, string> data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder putAllData(java.util.Map values) { - internalGetMutableData().getMutableMap().putAll(values); - bitField0_ |= 0x00000002; - return this; - } - - private java.lang.Object warningMessage_ = ""; - /** - * - * - *
-       * Output only. A human-readable description of the warning code.
-       * 
- * - * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The warningMessage. - */ - public java.lang.String getWarningMessage() { - java.lang.Object ref = warningMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - warningMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Output only. A human-readable description of the warning code.
-       * 
- * - * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for warningMessage. - */ - public com.google.protobuf.ByteString getWarningMessageBytes() { - java.lang.Object ref = warningMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - warningMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Output only. A human-readable description of the warning code.
-       * 
- * - * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The warningMessage to set. - * @return This builder for chaining. - */ - public Builder setWarningMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - warningMessage_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A human-readable description of the warning code.
-       * 
- * - * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearWarningMessage() { - warningMessage_ = getDefaultInstance().getWarningMessage(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. A human-readable description of the warning code.
-       * 
- * - * string warning_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for warningMessage to set. - * @return This builder for chaining. - */ - public Builder setWarningMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - warningMessage_ = value; - bitField0_ |= 0x00000004; - 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.networkconnectivity.v1.PolicyBasedRoute.Warnings) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings) - private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings(); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Warnings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.PolicyBasedRoute.Warnings - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int targetCase_ = 0; - private java.lang.Object target_; - - public enum TargetCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VIRTUAL_MACHINE(18), - INTERCONNECT_ATTACHMENT(9), - TARGET_NOT_SET(0); - private final int value; - - private TargetCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TargetCase valueOf(int value) { - return forNumber(value); - } - - public static TargetCase forNumber(int value) { - switch (value) { - case 18: - return VIRTUAL_MACHINE; - case 9: - return INTERCONNECT_ATTACHMENT; - case 0: - return TARGET_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public TargetCase getTargetCase() { - return TargetCase.forNumber(targetCase_); - } - - private int nextHopCase_ = 0; - private java.lang.Object nextHop_; - - public enum NextHopCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - NEXT_HOP_ILB_IP(12), - NEXTHOP_NOT_SET(0); - private final int value; - - private NextHopCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static NextHopCase valueOf(int value) { - return forNumber(value); - } - - public static NextHopCase forNumber(int value) { - switch (value) { - case 12: - return NEXT_HOP_ILB_IP; - case 0: - return NEXTHOP_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public NextHopCase getNextHopCase() { - return NextHopCase.forNumber(nextHopCase_); - } - - public static final int VIRTUAL_MACHINE_FIELD_NUMBER = 18; - /** - * - * - *
-   * Optional. VM instances to which this policy based route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the virtualMachine field is set. - */ - @java.lang.Override - public boolean hasVirtualMachine() { - return targetCase_ == 18; - } - /** - * - * - *
-   * Optional. VM instances to which this policy based route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The virtualMachine. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - getVirtualMachine() { - if (targetCase_ == 18) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_; - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - .getDefaultInstance(); - } - /** - * - * - *
-   * Optional. VM instances to which this policy based route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder - getVirtualMachineOrBuilder() { - if (targetCase_ == 18) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_; - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - .getDefaultInstance(); - } - - public static final int INTERCONNECT_ATTACHMENT_FIELD_NUMBER = 9; - /** - * - * - *
-   * Optional. The interconnect attachments to which this route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the interconnectAttachment field is set. - */ - @java.lang.Override - public boolean hasInterconnectAttachment() { - return targetCase_ == 9; - } - /** - * - * - *
-   * Optional. The interconnect attachments to which this route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The interconnectAttachment. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - getInterconnectAttachment() { - if (targetCase_ == 9) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - target_; - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .getDefaultInstance(); - } - /** - * - * - *
-   * Optional. The interconnect attachments to which this route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder - getInterconnectAttachmentOrBuilder() { - if (targetCase_ == 9) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - target_; - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .getDefaultInstance(); - } - - public static final int NEXT_HOP_ILB_IP_FIELD_NUMBER = 12; - /** - * - * - *
-   * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-   * handle matching packets. For this version, only next_hop_ilb_ip is
-   * supported.
-   * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the nextHopIlbIp field is set. - */ - public boolean hasNextHopIlbIp() { - return nextHopCase_ == 12; - } - /** - * - * - *
-   * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-   * handle matching packets. For this version, only next_hop_ilb_ip is
-   * supported.
-   * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The nextHopIlbIp. - */ - public java.lang.String getNextHopIlbIp() { - java.lang.Object ref = ""; - if (nextHopCase_ == 12) { - ref = nextHop_; - } - 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(); - if (nextHopCase_ == 12) { - nextHop_ = s; - } - return s; - } - } - /** - * - * - *
-   * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-   * handle matching packets. For this version, only next_hop_ilb_ip is
-   * supported.
-   * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for nextHopIlbIp. - */ - public com.google.protobuf.ByteString getNextHopIlbIpBytes() { - java.lang.Object ref = ""; - if (nextHopCase_ == 12) { - ref = nextHop_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (nextHopCase_ == 12) { - nextHop_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Immutable. A unique name of the resource in the form of
-   * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @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; - } - } - /** - * - * - *
-   * Immutable. A unique name of the resource in the form of
-   * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @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. Time when the PolicyBasedRoute was created.
-   * 
- * - * .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. Time when the PolicyBasedRoute was created.
-   * 
- * - * .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. Time when the PolicyBasedRoute was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. Time when the PolicyBasedRoute was updated.
-   * 
- * - * .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. Time when the PolicyBasedRoute was updated.
-   * 
- * - * .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. Time when the PolicyBasedRoute was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - - public static final int LABELS_FIELD_NUMBER = 4; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - 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(); - } - /** - * - * - *
-   * User-defined labels.
-   * 
- * - * map<string, string> labels = 4; - */ - @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(); - } - /** - * - * - *
-   * User-defined labels.
-   * 
- * - * map<string, string> labels = 4; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * User-defined labels.
-   * 
- * - * map<string, string> labels = 4; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - 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; - } - /** - * - * - *
-   * User-defined labels.
-   * 
- * - * map<string, string> labels = 4; - */ - @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 DESCRIPTION_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - * - * - *
-   * Optional. An optional description of this resource. Provide this field when you
-   * create the resource.
-   * 
- * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-   * Optional. An optional description of this resource. Provide this field when you
-   * create the resource.
-   * 
- * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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 NETWORK_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object network_ = ""; - /** - * - * - *
-   * Required. Fully-qualified URL of the network that this route applies to. e.g.
-   * projects/my-project/global/networks/my-network.
-   * 
- * - * - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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; - } - } - /** - * - * - *
-   * Required. Fully-qualified URL of the network that this route applies to. e.g.
-   * projects/my-project/global/networks/my-network.
-   * 
- * - * - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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 FILTER_FIELD_NUMBER = 10; - private com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter_; - /** - * - * - *
-   * Required. The filter to match L4 traffic.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the filter field is set. - */ - @java.lang.Override - public boolean hasFilter() { - return filter_ != null; - } - /** - * - * - *
-   * Required. The filter to match L4 traffic.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The filter. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter getFilter() { - return filter_ == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() - : filter_; - } - /** - * - * - *
-   * Required. The filter to match L4 traffic.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder - getFilterOrBuilder() { - return filter_ == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() - : filter_; - } - - public static final int PRIORITY_FIELD_NUMBER = 11; - private int priority_ = 0; - /** - * - * - *
-   * Optional. The priority of this policy based route. Priority is used to break ties in
-   * cases where there are more than one matching policy based routes found. In
-   * cases where multiple policy based routes are matched, the one with the
-   * lowest-numbered priority value wins. The default value is 1000. The
-   * priority value must be from 1 to 65535, inclusive.
-   * 
- * - * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The priority. - */ - @java.lang.Override - public int getPriority() { - return priority_; - } - - public static final int WARNINGS_FIELD_NUMBER = 14; - - @SuppressWarnings("serial") - private java.util.List - warnings_; - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getWarningsList() { - return warnings_; - } - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder> - getWarningsOrBuilderList() { - return warnings_; - } - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getWarningsCount() { - return warnings_.size(); - } - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings getWarnings(int index) { - return warnings_.get(index); - } - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder - getWarningsOrBuilder(int index) { - return warnings_.get(index); - } - - public static final int SELF_LINK_FIELD_NUMBER = 15; - - @SuppressWarnings("serial") - private volatile java.lang.Object selfLink_ = ""; - /** - * - * - *
-   * Output only. Server-defined fully-qualified URL for this resource.
-   * 
- * - * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The selfLink. - */ - @java.lang.Override - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - 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(); - selfLink_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Server-defined fully-qualified URL for this resource.
-   * 
- * - * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for selfLink. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - selfLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KIND_FIELD_NUMBER = 16; - - @SuppressWarnings("serial") - private volatile java.lang.Object kind_ = ""; - /** - * - * - *
-   * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
-   * Policy Based Route resources.
-   * 
- * - * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The kind. - */ - @java.lang.Override - public java.lang.String getKind() { - java.lang.Object ref = kind_; - 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(); - kind_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
-   * Policy Based Route resources.
-   * 
- * - * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for kind. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKindBytes() { - java.lang.Object ref = kind_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kind_ = 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 (createTime_ != null) { - output.writeMessage(2, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(3, getUpdateTime()); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, network_); - } - if (targetCase_ == 9) { - output.writeMessage( - 9, - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - target_); - } - if (filter_ != null) { - output.writeMessage(10, getFilter()); - } - if (priority_ != 0) { - output.writeInt32(11, priority_); - } - if (nextHopCase_ == 12) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, nextHop_); - } - for (int i = 0; i < warnings_.size(); i++) { - output.writeMessage(14, warnings_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 15, selfLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, kind_); - } - if (targetCase_ == 18) { - output.writeMessage( - 18, (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_); - } - getUnknownFields().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()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, network_); - } - if (targetCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - target_); - } - if (filter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getFilter()); - } - if (priority_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, priority_); - } - if (nextHopCase_ == 12) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, nextHop_); - } - for (int i = 0; i < warnings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, warnings_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(selfLink_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, selfLink_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, kind_); - } - if (targetCase_ == 18) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 18, - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_); - } - size += getUnknownFields().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.networkconnectivity.v1.PolicyBasedRoute)) { - return super.equals(obj); - } - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute other = - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute) 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 (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getNetwork().equals(other.getNetwork())) return false; - if (hasFilter() != other.hasFilter()) return false; - if (hasFilter()) { - if (!getFilter().equals(other.getFilter())) return false; - } - if (getPriority() != other.getPriority()) return false; - if (!getWarningsList().equals(other.getWarningsList())) return false; - if (!getSelfLink().equals(other.getSelfLink())) return false; - if (!getKind().equals(other.getKind())) return false; - if (!getTargetCase().equals(other.getTargetCase())) return false; - switch (targetCase_) { - case 18: - if (!getVirtualMachine().equals(other.getVirtualMachine())) return false; - break; - case 9: - if (!getInterconnectAttachment().equals(other.getInterconnectAttachment())) return false; - break; - case 0: - default: - } - if (!getNextHopCase().equals(other.getNextHopCase())) return false; - switch (nextHopCase_) { - case 12: - if (!getNextHopIlbIp().equals(other.getNextHopIlbIp())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) 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(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + NETWORK_FIELD_NUMBER; - hash = (53 * hash) + getNetwork().hashCode(); - if (hasFilter()) { - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - } - hash = (37 * hash) + PRIORITY_FIELD_NUMBER; - hash = (53 * hash) + getPriority(); - if (getWarningsCount() > 0) { - hash = (37 * hash) + WARNINGS_FIELD_NUMBER; - hash = (53 * hash) + getWarningsList().hashCode(); - } - hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; - hash = (53 * hash) + getSelfLink().hashCode(); - hash = (37 * hash) + KIND_FIELD_NUMBER; - hash = (53 * hash) + getKind().hashCode(); - switch (targetCase_) { - case 18: - hash = (37 * hash) + VIRTUAL_MACHINE_FIELD_NUMBER; - hash = (53 * hash) + getVirtualMachine().hashCode(); - break; - case 9: - hash = (37 * hash) + INTERCONNECT_ATTACHMENT_FIELD_NUMBER; - hash = (53 * hash) + getInterconnectAttachment().hashCode(); - break; - case 0: - default: - } - switch (nextHopCase_) { - case 12: - hash = (37 * hash) + NEXT_HOP_ILB_IP_FIELD_NUMBER; - hash = (53 * hash) + getNextHopIlbIp().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute 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.networkconnectivity.v1.PolicyBasedRoute parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute 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.networkconnectivity.v1.PolicyBasedRoute parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute 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.networkconnectivity.v1.PolicyBasedRoute parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute 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.networkconnectivity.v1.PolicyBasedRoute 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; - } - /** - * - * - *
-   * Policy Based Routes (PBR) are more powerful routes that allows GCP customers
-   * to route their L4 network traffic based on not just destination IP, but also
-   * source IP, protocol and more. A PBR always take precedence when it conflicts
-   * with other types of routes.
-   * Next id: 19
-   * 
- * - * Protobuf type {@code google.cloud.networkconnectivity.v1.PolicyBasedRoute} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.PolicyBasedRoute) - com.google.cloud.networkconnectivity.v1.PolicyBasedRouteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - 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.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.class, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Builder.class); - } - - // Construct using com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (virtualMachineBuilder_ != null) { - virtualMachineBuilder_.clear(); - } - if (interconnectAttachmentBuilder_ != null) { - interconnectAttachmentBuilder_.clear(); - } - name_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - internalGetMutableLabels().clear(); - description_ = ""; - network_ = ""; - filter_ = null; - if (filterBuilder_ != null) { - filterBuilder_.dispose(); - filterBuilder_ = null; - } - priority_ = 0; - if (warningsBuilder_ == null) { - warnings_ = java.util.Collections.emptyList(); - } else { - warnings_ = null; - warningsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - selfLink_ = ""; - kind_ = ""; - targetCase_ = 0; - target_ = null; - nextHopCase_ = 0; - nextHop_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingProto - .internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getDefaultInstanceForType() { - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute build() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute buildPartial() { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result = - new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result) { - if (warningsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { - warnings_ = java.util.Collections.unmodifiableList(warnings_); - bitField0_ = (bitField0_ & ~0x00000800); - } - result.warnings_ = warnings_; - } else { - result.warnings_ = warningsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.network_ = network_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.filter_ = filterBuilder_ == null ? filter_ : filterBuilder_.build(); - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.priority_ = priority_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.selfLink_ = selfLink_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.kind_ = kind_; - } - } - - private void buildPartialOneofs( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute result) { - result.targetCase_ = targetCase_; - result.target_ = this.target_; - if (targetCase_ == 18 && virtualMachineBuilder_ != null) { - result.target_ = virtualMachineBuilder_.build(); - } - if (targetCase_ == 9 && interconnectAttachmentBuilder_ != null) { - result.target_ = interconnectAttachmentBuilder_.build(); - } - result.nextHopCase_ = nextHopCase_; - result.nextHop_ = this.nextHop_; - } - - @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.networkconnectivity.v1.PolicyBasedRoute) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.PolicyBasedRoute) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.PolicyBasedRoute other) { - if (other == com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000040; - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (other.hasFilter()) { - mergeFilter(other.getFilter()); - } - if (other.getPriority() != 0) { - setPriority(other.getPriority()); - } - if (warningsBuilder_ == null) { - if (!other.warnings_.isEmpty()) { - if (warnings_.isEmpty()) { - warnings_ = other.warnings_; - bitField0_ = (bitField0_ & ~0x00000800); - } else { - ensureWarningsIsMutable(); - warnings_.addAll(other.warnings_); - } - onChanged(); - } - } else { - if (!other.warnings_.isEmpty()) { - if (warningsBuilder_.isEmpty()) { - warningsBuilder_.dispose(); - warningsBuilder_ = null; - warnings_ = other.warnings_; - bitField0_ = (bitField0_ & ~0x00000800); - warningsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWarningsFieldBuilder() - : null; - } else { - warningsBuilder_.addAllMessages(other.warnings_); - } - } - } - if (!other.getSelfLink().isEmpty()) { - selfLink_ = other.selfLink_; - bitField0_ |= 0x00001000; - onChanged(); - } - if (!other.getKind().isEmpty()) { - kind_ = other.kind_; - bitField0_ |= 0x00002000; - onChanged(); - } - switch (other.getTargetCase()) { - case VIRTUAL_MACHINE: - { - mergeVirtualMachine(other.getVirtualMachine()); - break; - } - case INTERCONNECT_ATTACHMENT: - { - mergeInterconnectAttachment(other.getInterconnectAttachment()); - break; - } - case TARGET_NOT_SET: - { - break; - } - } - switch (other.getNextHopCase()) { - case NEXT_HOP_ILB_IP: - { - nextHopCase_ = 12; - nextHop_ = other.nextHop_; - onChanged(); - break; - } - case NEXTHOP_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - 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 { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 10 - case 18: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 34 - case 42: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 42 - case 50: - { - network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 50 - case 74: - { - input.readMessage( - getInterconnectAttachmentFieldBuilder().getBuilder(), extensionRegistry); - targetCase_ = 9; - break; - } // case 74 - case 82: - { - input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 88: - { - priority_ = input.readInt32(); - bitField0_ |= 0x00000400; - break; - } // case 88 - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - nextHopCase_ = 12; - nextHop_ = s; - break; - } // case 98 - case 114: - { - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings m = - input.readMessage( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.parser(), - extensionRegistry); - if (warningsBuilder_ == null) { - ensureWarningsIsMutable(); - warnings_.add(m); - } else { - warningsBuilder_.addMessage(m); - } - break; - } // case 114 - case 122: - { - selfLink_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 122 - case 130: - { - kind_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; - break; - } // case 130 - case 146: - { - input.readMessage(getVirtualMachineFieldBuilder().getBuilder(), extensionRegistry); - targetCase_ = 18; - break; - } // case 146 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int targetCase_ = 0; - private java.lang.Object target_; - - public TargetCase getTargetCase() { - return TargetCase.forNumber(targetCase_); - } - - public Builder clearTarget() { - targetCase_ = 0; - target_ = null; - onChanged(); - return this; - } - - private int nextHopCase_ = 0; - private java.lang.Object nextHop_; - - public NextHopCase getNextHopCase() { - return NextHopCase.forNumber(nextHopCase_); - } - - public Builder clearNextHop() { - nextHopCase_ = 0; - nextHop_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder> - virtualMachineBuilder_; - /** - * - * - *
-     * Optional. VM instances to which this policy based route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the virtualMachine field is set. - */ - @java.lang.Override - public boolean hasVirtualMachine() { - return targetCase_ == 18; - } - /** - * - * - *
-     * Optional. VM instances to which this policy based route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The virtualMachine. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - getVirtualMachine() { - if (virtualMachineBuilder_ == null) { - if (targetCase_ == 18) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_; - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - .getDefaultInstance(); - } else { - if (targetCase_ == 18) { - return virtualMachineBuilder_.getMessage(); - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. VM instances to which this policy based route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setVirtualMachine( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine value) { - if (virtualMachineBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - virtualMachineBuilder_.setMessage(value); - } - targetCase_ = 18; - return this; - } - /** - * - * - *
-     * Optional. VM instances to which this policy based route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setVirtualMachine( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder - builderForValue) { - if (virtualMachineBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - virtualMachineBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 18; - return this; - } - /** - * - * - *
-     * Optional. VM instances to which this policy based route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeVirtualMachine( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine value) { - if (virtualMachineBuilder_ == null) { - if (targetCase_ == 18 - && target_ - != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - .getDefaultInstance()) { - target_ = - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.newBuilder( - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) - target_) - .mergeFrom(value) - .buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 18) { - virtualMachineBuilder_.mergeFrom(value); - } else { - virtualMachineBuilder_.setMessage(value); - } - } - targetCase_ = 18; - return this; - } - /** - * - * - *
-     * Optional. VM instances to which this policy based route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearVirtualMachine() { - if (virtualMachineBuilder_ == null) { - if (targetCase_ == 18) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 18) { - targetCase_ = 0; - target_ = null; - } - virtualMachineBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. VM instances to which this policy based route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder - getVirtualMachineBuilder() { - return getVirtualMachineFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. VM instances to which this policy based route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder - getVirtualMachineOrBuilder() { - if ((targetCase_ == 18) && (virtualMachineBuilder_ != null)) { - return virtualMachineBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 18) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_; - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. VM instances to which this policy based route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder> - getVirtualMachineFieldBuilder() { - if (virtualMachineBuilder_ == null) { - if (!(targetCase_ == 18)) { - target_ = - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine - .getDefaultInstance(); - } - virtualMachineBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder>( - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 18; - onChanged(); - return virtualMachineBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute - .InterconnectAttachmentOrBuilder> - interconnectAttachmentBuilder_; - /** - * - * - *
-     * Optional. The interconnect attachments to which this route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the interconnectAttachment field is set. - */ - @java.lang.Override - public boolean hasInterconnectAttachment() { - return targetCase_ == 9; - } - /** - * - * - *
-     * Optional. The interconnect attachments to which this route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The interconnectAttachment. - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - getInterconnectAttachment() { - if (interconnectAttachmentBuilder_ == null) { - if (targetCase_ == 9) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - target_; - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .getDefaultInstance(); - } else { - if (targetCase_ == 9) { - return interconnectAttachmentBuilder_.getMessage(); - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. The interconnect attachments to which this route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setInterconnectAttachment( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment value) { - if (interconnectAttachmentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - interconnectAttachmentBuilder_.setMessage(value); - } - targetCase_ = 9; - return this; - } - /** - * - * - *
-     * Optional. The interconnect attachments to which this route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setInterconnectAttachment( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder - builderForValue) { - if (interconnectAttachmentBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - interconnectAttachmentBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 9; - return this; - } - /** - * - * - *
-     * Optional. The interconnect attachments to which this route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeInterconnectAttachment( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment value) { - if (interconnectAttachmentBuilder_ == null) { - if (targetCase_ == 9 - && target_ - != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .getDefaultInstance()) { - target_ = - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .newBuilder( - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute - .InterconnectAttachment) - target_) - .mergeFrom(value) - .buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 9) { - interconnectAttachmentBuilder_.mergeFrom(value); - } else { - interconnectAttachmentBuilder_.setMessage(value); - } - } - targetCase_ = 9; - return this; - } - /** - * - * - *
-     * Optional. The interconnect attachments to which this route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearInterconnectAttachment() { - if (interconnectAttachmentBuilder_ == null) { - if (targetCase_ == 9) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 9) { - targetCase_ = 0; - target_ = null; - } - interconnectAttachmentBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. The interconnect attachments to which this route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder - getInterconnectAttachmentBuilder() { - return getInterconnectAttachmentFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The interconnect attachments to which this route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder - getInterconnectAttachmentOrBuilder() { - if ((targetCase_ == 9) && (interconnectAttachmentBuilder_ != null)) { - return interconnectAttachmentBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 9) { - return (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - target_; - } - return com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. The interconnect attachments to which this route applies to.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute - .InterconnectAttachmentOrBuilder> - getInterconnectAttachmentFieldBuilder() { - if (interconnectAttachmentBuilder_ == null) { - if (!(targetCase_ == 9)) { - target_ = - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .getDefaultInstance(); - } - interconnectAttachmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - .Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute - .InterconnectAttachmentOrBuilder>( - (com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment) - target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 9; - onChanged(); - return interconnectAttachmentBuilder_; - } - - /** - * - * - *
-     * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-     * handle matching packets. For this version, only next_hop_ilb_ip is
-     * supported.
-     * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the nextHopIlbIp field is set. - */ - @java.lang.Override - public boolean hasNextHopIlbIp() { - return nextHopCase_ == 12; - } - /** - * - * - *
-     * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-     * handle matching packets. For this version, only next_hop_ilb_ip is
-     * supported.
-     * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The nextHopIlbIp. - */ - @java.lang.Override - public java.lang.String getNextHopIlbIp() { - java.lang.Object ref = ""; - if (nextHopCase_ == 12) { - ref = nextHop_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (nextHopCase_ == 12) { - nextHop_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-     * handle matching packets. For this version, only next_hop_ilb_ip is
-     * supported.
-     * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for nextHopIlbIp. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextHopIlbIpBytes() { - java.lang.Object ref = ""; - if (nextHopCase_ == 12) { - ref = nextHop_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (nextHopCase_ == 12) { - nextHop_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-     * handle matching packets. For this version, only next_hop_ilb_ip is
-     * supported.
-     * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The nextHopIlbIp to set. - * @return This builder for chaining. - */ - public Builder setNextHopIlbIp(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - nextHopCase_ = 12; - nextHop_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-     * handle matching packets. For this version, only next_hop_ilb_ip is
-     * supported.
-     * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearNextHopIlbIp() { - if (nextHopCase_ == 12) { - nextHopCase_ = 0; - nextHop_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-     * handle matching packets. For this version, only next_hop_ilb_ip is
-     * supported.
-     * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for nextHopIlbIp to set. - * @return This builder for chaining. - */ - public Builder setNextHopIlbIpBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - nextHopCase_ = 12; - nextHop_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Immutable. A unique name of the resource in the form of
-     * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @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; - } - } - /** - * - * - *
-     * Immutable. A unique name of the resource in the form of
-     * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @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; - } - } - /** - * - * - *
-     * Immutable. A unique name of the resource in the form of
-     * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @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; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. A unique name of the resource in the form of
-     * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. A unique name of the resource in the form of
-     * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @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; - bitField0_ |= 0x00000008; - 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. Time when the PolicyBasedRoute was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was created.
-     * 
- * - * - * .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. Time when the PolicyBasedRoute was created.
-     * 
- * - * - * .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; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was created.
-     * 
- * - * - * .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(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000010); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was created.
-     * 
- * - * - * .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. Time when the PolicyBasedRoute was created.
-     * 
- * - * - * .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. Time when the PolicyBasedRoute was updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was updated.
-     * 
- * - * - * .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. Time when the PolicyBasedRoute was updated.
-     * 
- * - * - * .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; - } else { - updateTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was updated.
-     * 
- * - * - * .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(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000020); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Time when the PolicyBasedRoute was updated.
-     * 
- * - * - * .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. Time when the PolicyBasedRoute was updated.
-     * 
- * - * - * .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 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() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - bitField0_ |= 0x00000040; - onChanged(); - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-     * User-defined labels.
-     * 
- * - * map<string, string> labels = 4; - */ - @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(); - } - /** - * - * - *
-     * User-defined labels.
-     * 
- * - * map<string, string> labels = 4; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * User-defined labels.
-     * 
- * - * map<string, string> labels = 4; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - 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; - } - /** - * - * - *
-     * User-defined labels.
-     * 
- * - * map<string, string> labels = 4; - */ - @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() { - bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * User-defined labels.
-     * 
- * - * map<string, string> labels = 4; - */ - 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() { - bitField0_ |= 0x00000040; - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * User-defined labels.
-     * 
- * - * map<string, string> labels = 4; - */ - 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); - bitField0_ |= 0x00000040; - return this; - } - /** - * - * - *
-     * User-defined labels.
-     * 
- * - * map<string, string> labels = 4; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000040; - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * Optional. An optional description of this resource. Provide this field when you
-     * create the resource.
-     * 
- * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. An optional description of this resource. Provide this field when you
-     * create the resource.
-     * 
- * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - /** - * - * - *
-     * Optional. An optional description of this resource. Provide this field when you
-     * create the resource.
-     * 
- * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An optional description of this resource. Provide this field when you
-     * create the resource.
-     * 
- * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. An optional description of this resource. Provide this field when you
-     * create the resource.
-     * 
- * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - private java.lang.Object network_ = ""; - /** - * - * - *
-     * Required. Fully-qualified URL of the network that this route applies to. e.g.
-     * projects/my-project/global/networks/my-network.
-     * 
- * - * - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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; - } - } - /** - * - * - *
-     * Required. Fully-qualified URL of the network that this route applies to. e.g.
-     * projects/my-project/global/networks/my-network.
-     * 
- * - * - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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; - } - } - /** - * - * - *
-     * Required. Fully-qualified URL of the network that this route applies to. e.g.
-     * projects/my-project/global/networks/my-network.
-     * 
- * - * - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Fully-qualified URL of the network that this route applies to. e.g.
-     * projects/my-project/global/networks/my-network.
-     * 
- * - * - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearNetwork() { - network_ = getDefaultInstance().getNetwork(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Fully-qualified URL of the network that this route applies to. e.g.
-     * projects/my-project/global/networks/my-network.
-     * 
- * - * - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.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; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - - private com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder> - filterBuilder_; - /** - * - * - *
-     * Required. The filter to match L4 traffic.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the filter field is set. - */ - public boolean hasFilter() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-     * Required. The filter to match L4 traffic.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The filter. - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter getFilter() { - if (filterBuilder_ == null) { - return filter_ == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() - : filter_; - } else { - return filterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The filter to match L4 traffic.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setFilter( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter value) { - if (filterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filter_ = value; - } else { - filterBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The filter to match L4 traffic.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setFilter( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder builderForValue) { - if (filterBuilder_ == null) { - filter_ = builderForValue.build(); - } else { - filterBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The filter to match L4 traffic.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeFilter( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter value) { - if (filterBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && filter_ != null - && filter_ - != com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter - .getDefaultInstance()) { - getFilterBuilder().mergeFrom(value); - } else { - filter_ = value; - } - } else { - filterBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The filter to match L4 traffic.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearFilter() { - bitField0_ = (bitField0_ & ~0x00000200); - filter_ = null; - if (filterBuilder_ != null) { - filterBuilder_.dispose(); - filterBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The filter to match L4 traffic.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder - getFilterBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The filter to match L4 traffic.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder - getFilterOrBuilder() { - if (filterBuilder_ != null) { - return filterBuilder_.getMessageOrBuilder(); - } else { - return filter_ == null - ? com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.getDefaultInstance() - : filter_; - } - } - /** - * - * - *
-     * Required. The filter to match L4 traffic.
-     * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder> - getFilterFieldBuilder() { - if (filterBuilder_ == null) { - filterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder>( - getFilter(), getParentForChildren(), isClean()); - filter_ = null; - } - return filterBuilder_; - } - - private int priority_; - /** - * - * - *
-     * Optional. The priority of this policy based route. Priority is used to break ties in
-     * cases where there are more than one matching policy based routes found. In
-     * cases where multiple policy based routes are matched, the one with the
-     * lowest-numbered priority value wins. The default value is 1000. The
-     * priority value must be from 1 to 65535, inclusive.
-     * 
- * - * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The priority. - */ - @java.lang.Override - public int getPriority() { - return priority_; - } - /** - * - * - *
-     * Optional. The priority of this policy based route. Priority is used to break ties in
-     * cases where there are more than one matching policy based routes found. In
-     * cases where multiple policy based routes are matched, the one with the
-     * lowest-numbered priority value wins. The default value is 1000. The
-     * priority value must be from 1 to 65535, inclusive.
-     * 
- * - * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The priority to set. - * @return This builder for chaining. - */ - public Builder setPriority(int value) { - - priority_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The priority of this policy based route. Priority is used to break ties in
-     * cases where there are more than one matching policy based routes found. In
-     * cases where multiple policy based routes are matched, the one with the
-     * lowest-numbered priority value wins. The default value is 1000. The
-     * priority value must be from 1 to 65535, inclusive.
-     * 
- * - * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPriority() { - bitField0_ = (bitField0_ & ~0x00000400); - priority_ = 0; - onChanged(); - return this; - } - - private java.util.List - warnings_ = java.util.Collections.emptyList(); - - private void ensureWarningsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { - warnings_ = - new java.util.ArrayList< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings>(warnings_); - bitField0_ |= 0x00000800; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder> - warningsBuilder_; - - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getWarningsList() { - if (warningsBuilder_ == null) { - return java.util.Collections.unmodifiableList(warnings_); - } else { - return warningsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getWarningsCount() { - if (warningsBuilder_ == null) { - return warnings_.size(); - } else { - return warningsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings getWarnings( - int index) { - if (warningsBuilder_ == null) { - return warnings_.get(index); - } else { - return warningsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setWarnings( - int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings value) { - if (warningsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); - warnings_.set(index, value); - onChanged(); - } else { - warningsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setWarnings( - int index, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder builderForValue) { - if (warningsBuilder_ == null) { - ensureWarningsIsMutable(); - warnings_.set(index, builderForValue.build()); - onChanged(); - } else { - warningsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addWarnings( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings value) { - if (warningsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); - warnings_.add(value); - onChanged(); - } else { - warningsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addWarnings( - int index, com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings value) { - if (warningsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); - warnings_.add(index, value); - onChanged(); - } else { - warningsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addWarnings( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder builderForValue) { - if (warningsBuilder_ == null) { - ensureWarningsIsMutable(); - warnings_.add(builderForValue.build()); - onChanged(); - } else { - warningsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addWarnings( - int index, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder builderForValue) { - if (warningsBuilder_ == null) { - ensureWarningsIsMutable(); - warnings_.add(index, builderForValue.build()); - onChanged(); - } else { - warningsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllWarnings( - java.lang.Iterable< - ? extends com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings> - values) { - if (warningsBuilder_ == null) { - ensureWarningsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); - onChanged(); - } else { - warningsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearWarnings() { - if (warningsBuilder_ == null) { - warnings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - } else { - warningsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeWarnings(int index) { - if (warningsBuilder_ == null) { - ensureWarningsIsMutable(); - warnings_.remove(index); - onChanged(); - } else { - warningsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder - getWarningsBuilder(int index) { - return getWarningsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder - getWarningsOrBuilder(int index) { - if (warningsBuilder_ == null) { - return warnings_.get(index); - } else { - return warningsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List< - ? extends com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder> - getWarningsOrBuilderList() { - if (warningsBuilder_ != null) { - return warningsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(warnings_); - } - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder - addWarningsBuilder() { - return getWarningsFieldBuilder() - .addBuilder( - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings - .getDefaultInstance()); - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder - addWarningsBuilder(int index) { - return getWarningsFieldBuilder() - .addBuilder( - index, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings - .getDefaultInstance()); - } - /** - * - * - *
-     * Output only. If potential misconfigurations are detected for this route,
-     * this field will be populated with warning messages.
-     * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getWarningsBuilderList() { - return getWarningsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder> - getWarningsFieldBuilder() { - if (warningsBuilder_ == null) { - warningsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings.Builder, - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder>( - warnings_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); - warnings_ = null; - } - return warningsBuilder_; - } - - private java.lang.Object selfLink_ = ""; - /** - * - * - *
-     * Output only. Server-defined fully-qualified URL for this resource.
-     * 
- * - * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The selfLink. - */ - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selfLink_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Server-defined fully-qualified URL for this resource.
-     * 
- * - * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for selfLink. - */ - public com.google.protobuf.ByteString getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - selfLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Server-defined fully-qualified URL for this resource.
-     * 
- * - * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The selfLink to set. - * @return This builder for chaining. - */ - public Builder setSelfLink(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - selfLink_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Server-defined fully-qualified URL for this resource.
-     * 
- * - * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearSelfLink() { - selfLink_ = getDefaultInstance().getSelfLink(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Server-defined fully-qualified URL for this resource.
-     * 
- * - * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for selfLink to set. - * @return This builder for chaining. - */ - public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - selfLink_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - private java.lang.Object kind_ = ""; - /** - * - * - *
-     * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
-     * Policy Based Route resources.
-     * 
- * - * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The kind. - */ - public java.lang.String getKind() { - java.lang.Object ref = kind_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kind_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
-     * Policy Based Route resources.
-     * 
- * - * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for kind. - */ - public com.google.protobuf.ByteString getKindBytes() { - java.lang.Object ref = kind_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kind_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
-     * Policy Based Route resources.
-     * 
- * - * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The kind to set. - * @return This builder for chaining. - */ - public Builder setKind(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
-     * Policy Based Route resources.
-     * 
- * - * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearKind() { - kind_ = getDefaultInstance().getKind(); - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
-     * Policy Based Route resources.
-     * 
- * - * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for kind to set. - * @return This builder for chaining. - */ - public Builder setKindBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - kind_ = value; - bitField0_ |= 0x00002000; - 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.networkconnectivity.v1.PolicyBasedRoute) - } - - // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.PolicyBasedRoute) - private static final com.google.cloud.networkconnectivity.v1.PolicyBasedRoute DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.PolicyBasedRoute(); - } - - public static com.google.cloud.networkconnectivity.v1.PolicyBasedRoute getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyBasedRoute parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - 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.networkconnectivity.v1.PolicyBasedRoute getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java deleted file mode 100644 index 653b1a5507d8..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteName.java +++ /dev/null @@ -1,228 +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.networkconnectivity.v1; - -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 PolicyBasedRouteName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_POLICY_BASED_ROUTE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/{location}/global/PolicyBasedRoutes/{policy_based_route}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String policyBasedRoute; - - @Deprecated - protected PolicyBasedRouteName() { - project = null; - location = null; - policyBasedRoute = null; - } - - private PolicyBasedRouteName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - policyBasedRoute = Preconditions.checkNotNull(builder.getPolicyBasedRoute()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getPolicyBasedRoute() { - return policyBasedRoute; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static PolicyBasedRouteName of(String project, String location, String policyBasedRoute) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setPolicyBasedRoute(policyBasedRoute) - .build(); - } - - public static String format(String project, String location, String policyBasedRoute) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setPolicyBasedRoute(policyBasedRoute) - .build() - .toString(); - } - - public static PolicyBasedRouteName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_POLICY_BASED_ROUTE.validatedMatch( - formattedString, "PolicyBasedRouteName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), matchMap.get("location"), matchMap.get("policy_based_route")); - } - - 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 (PolicyBasedRouteName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_POLICY_BASED_ROUTE.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 (policyBasedRoute != null) { - fieldMapBuilder.put("policy_based_route", policyBasedRoute); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_POLICY_BASED_ROUTE.instantiate( - "project", project, "location", location, "policy_based_route", policyBasedRoute); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - PolicyBasedRouteName that = ((PolicyBasedRouteName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.policyBasedRoute, that.policyBasedRoute); - } - 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(policyBasedRoute); - return h; - } - - /** Builder for projects/{project}/{location}/global/PolicyBasedRoutes/{policy_based_route}. */ - public static class Builder { - private String project; - private String location; - private String policyBasedRoute; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getPolicyBasedRoute() { - return policyBasedRoute; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setPolicyBasedRoute(String policyBasedRoute) { - this.policyBasedRoute = policyBasedRoute; - return this; - } - - private Builder(PolicyBasedRouteName policyBasedRouteName) { - this.project = policyBasedRouteName.project; - this.location = policyBasedRouteName.location; - this.policyBasedRoute = policyBasedRouteName.policyBasedRoute; - } - - public PolicyBasedRouteName build() { - return new PolicyBasedRouteName(this); - } - } -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteOrBuilder.java deleted file mode 100644 index 86836923ee85..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRouteOrBuilder.java +++ /dev/null @@ -1,556 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface PolicyBasedRouteOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.PolicyBasedRoute) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. VM instances to which this policy based route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the virtualMachine field is set. - */ - boolean hasVirtualMachine(); - /** - * - * - *
-   * Optional. VM instances to which this policy based route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The virtualMachine. - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine getVirtualMachine(); - /** - * - * - *
-   * Optional. VM instances to which this policy based route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachine virtual_machine = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.VirtualMachineOrBuilder - getVirtualMachineOrBuilder(); - - /** - * - * - *
-   * Optional. The interconnect attachments to which this route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the interconnectAttachment field is set. - */ - boolean hasInterconnectAttachment(); - /** - * - * - *
-   * Optional. The interconnect attachments to which this route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The interconnectAttachment. - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment - getInterconnectAttachment(); - /** - * - * - *
-   * Optional. The interconnect attachments to which this route applies to.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachment interconnect_attachment = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.InterconnectAttachmentOrBuilder - getInterconnectAttachmentOrBuilder(); - - /** - * - * - *
-   * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-   * handle matching packets. For this version, only next_hop_ilb_ip is
-   * supported.
-   * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the nextHopIlbIp field is set. - */ - boolean hasNextHopIlbIp(); - /** - * - * - *
-   * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-   * handle matching packets. For this version, only next_hop_ilb_ip is
-   * supported.
-   * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The nextHopIlbIp. - */ - java.lang.String getNextHopIlbIp(); - /** - * - * - *
-   * Optional. The IP of a global access enabled L4 ILB that should be the next hop to
-   * handle matching packets. For this version, only next_hop_ilb_ip is
-   * supported.
-   * 
- * - * string next_hop_ilb_ip = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for nextHopIlbIp. - */ - com.google.protobuf.ByteString getNextHopIlbIpBytes(); - - /** - * - * - *
-   * Immutable. A unique name of the resource in the form of
-   * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Immutable. A unique name of the resource in the form of
-   * `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Output only. Time when the PolicyBasedRoute was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. Time when the PolicyBasedRoute was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. Time when the PolicyBasedRoute was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. Time when the PolicyBasedRoute was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - * - * - *
-   * Output only. Time when the PolicyBasedRoute was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - * - * - *
-   * Output only. Time when the PolicyBasedRoute was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - * - * - *
-   * User-defined labels.
-   * 
- * - * map<string, string> labels = 4; - */ - int getLabelsCount(); - /** - * - * - *
-   * User-defined labels.
-   * 
- * - * map<string, string> labels = 4; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * User-defined labels.
-   * 
- * - * map<string, string> labels = 4; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * User-defined labels.
-   * 
- * - * map<string, string> labels = 4; - */ - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * User-defined labels.
-   * 
- * - * map<string, string> labels = 4; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. An optional description of this resource. Provide this field when you
-   * create the resource.
-   * 
- * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * Optional. An optional description of this resource. Provide this field when you
-   * create the resource.
-   * 
- * - * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Required. Fully-qualified URL of the network that this route applies to. e.g.
-   * projects/my-project/global/networks/my-network.
-   * 
- * - * - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The network. - */ - java.lang.String getNetwork(); - /** - * - * - *
-   * Required. Fully-qualified URL of the network that this route applies to. e.g.
-   * projects/my-project/global/networks/my-network.
-   * 
- * - * - * string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for network. - */ - com.google.protobuf.ByteString getNetworkBytes(); - - /** - * - * - *
-   * Required. The filter to match L4 traffic.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the filter field is set. - */ - boolean hasFilter(); - /** - * - * - *
-   * Required. The filter to match L4 traffic.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The filter. - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter getFilter(); - /** - * - * - *
-   * Required. The filter to match L4 traffic.
-   * 
- * - * - * .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Filter filter = 10 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.FilterOrBuilder getFilterOrBuilder(); - - /** - * - * - *
-   * Optional. The priority of this policy based route. Priority is used to break ties in
-   * cases where there are more than one matching policy based routes found. In
-   * cases where multiple policy based routes are matched, the one with the
-   * lowest-numbered priority value wins. The default value is 1000. The
-   * priority value must be from 1 to 65535, inclusive.
-   * 
- * - * int32 priority = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The priority. - */ - int getPriority(); - - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getWarningsList(); - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings getWarnings(int index); - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getWarningsCount(); - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List< - ? extends com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder> - getWarningsOrBuilderList(); - /** - * - * - *
-   * Output only. If potential misconfigurations are detected for this route,
-   * this field will be populated with warning messages.
-   * 
- * - * - * repeated .google.cloud.networkconnectivity.v1.PolicyBasedRoute.Warnings warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.WarningsOrBuilder getWarningsOrBuilder( - int index); - - /** - * - * - *
-   * Output only. Server-defined fully-qualified URL for this resource.
-   * 
- * - * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The selfLink. - */ - java.lang.String getSelfLink(); - /** - * - * - *
-   * Output only. Server-defined fully-qualified URL for this resource.
-   * 
- * - * string self_link = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for selfLink. - */ - com.google.protobuf.ByteString getSelfLinkBytes(); - - /** - * - * - *
-   * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
-   * Policy Based Route resources.
-   * 
- * - * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The kind. - */ - java.lang.String getKind(); - /** - * - * - *
-   * Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for
-   * Policy Based Route resources.
-   * 
- * - * string kind = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for kind. - */ - com.google.protobuf.ByteString getKindBytes(); - - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.TargetCase getTargetCase(); - - public com.google.cloud.networkconnectivity.v1.PolicyBasedRoute.NextHopCase getNextHopCase(); -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingProto.java deleted file mode 100644 index 35f1499abf05..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/PolicyBasedRoutingProto.java +++ /dev/null @@ -1,349 +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/networkconnectivity/v1/policy_based_routing.proto - -package com.google.cloud.networkconnectivity.v1; - -public final class PolicyBasedRoutingProto { - private PolicyBasedRoutingProto() {} - - 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_networkconnectivity_v1_PolicyBasedRoute_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_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/networkconnectivity/v1/po" - + "licy_based_routing.proto\022#google.cloud.n" - + "etworkconnectivity.v1\032\034google/api/annota" - + "tions.proto\032\027google/api/client.proto\032\037go" - + "ogle/api/field_behavior.proto\032\031google/ap" - + "i/resource.proto\032#google/longrunning/ope" - + "rations.proto\032\037google/protobuf/timestamp" - + ".proto\"\247\r\n\020PolicyBasedRoute\022d\n\017virtual_m" - + "achine\030\022 \001(\0132D.google.cloud.networkconne" - + "ctivity.v1.PolicyBasedRoute.VirtualMachi" - + "neB\003\340A\001H\000\022t\n\027interconnect_attachment\030\t \001" - + "(\0132L.google.cloud.networkconnectivity.v1" - + ".PolicyBasedRoute.InterconnectAttachment" - + "B\003\340A\001H\000\022\036\n\017next_hop_ilb_ip\030\014 \001(\tB\003\340A\001H\001\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upda" - + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003\022Q\n\006labels\030\004 \003(\0132A.google.cloud.ne" - + "tworkconnectivity.v1.PolicyBasedRoute.La" - + "belsEntry\022\030\n\013description\030\005 \001(\tB\003\340A\001\0227\n\007n" - + "etwork\030\006 \001(\tB&\340A\002\372A \n\036compute.googleapis" - + ".com/Network\022Q\n\006filter\030\n \001(\0132<.google.cl" - + "oud.networkconnectivity.v1.PolicyBasedRo" - + "ute.FilterB\003\340A\002\022\025\n\010priority\030\013 \001(\005B\003\340A\001\022U" - + "\n\010warnings\030\016 \003(\0132>.google.cloud.networkc" - + "onnectivity.v1.PolicyBasedRoute.Warnings" - + "B\003\340A\003\022\026\n\tself_link\030\017 \001(\tB\003\340A\003\022\021\n\004kind\030\020 " - + "\001(\tB\003\340A\003\032#\n\016VirtualMachine\022\021\n\004tags\030\001 \003(\t" - + "B\003\340A\001\032-\n\026InterconnectAttachment\022\023\n\006regio" - + "n\030\001 \001(\tB\003\340A\001\032\377\001\n\006Filter\022\030\n\013ip_protocol\030\001" - + " \001(\tB\003\340A\001\022\026\n\tsrc_range\030\002 \001(\tB\003\340A\001\022\027\n\ndes" - + "t_range\030\003 \001(\tB\003\340A\001\022k\n\020protocol_version\030\006" - + " \001(\0162L.google.cloud.networkconnectivity." - + "v1.PolicyBasedRoute.Filter.ProtocolVersi" - + "onB\003\340A\002\"=\n\017ProtocolVersion\022 \n\034PROTOCOL_V" - + "ERSION_UNSPECIFIED\020\000\022\010\n\004IPV4\020\001\032\341\002\n\010Warni" - + "ngs\022V\n\004code\030\001 \001(\0162C.google.cloud.network" - + "connectivity.v1.PolicyBasedRoute.Warning" - + "s.CodeB\003\340A\003\022[\n\004data\030\002 \003(\0132H.google.cloud" - + ".networkconnectivity.v1.PolicyBasedRoute" - + ".Warnings.DataEntryB\003\340A\003\022\034\n\017warning_mess" - + "age\030\003 \001(\tB\003\340A\003\032+\n\tDataEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\004Code\022\027\n\023WARNING_U" - + "NSPECIFIED\020\000\022\027\n\023RESOURCE_NOT_ACTIVE\020\001\022\033\n" - + "\027RESOURCE_BEING_MODIFIED\020\002\032-\n\013LabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\206\001\352A\202\001" - + "\n3networkconnectivity.googleapis.com/Pol" - + "icyBasedRoute\022Kprojects/{project}/{locat" - + "ion}/global/PolicyBasedRoutes/{policy_ba" - + "sed_route}B\010\n\006targetB\n\n\010next_hop\"\242\001\n\034Lis" - + "tPolicyBasedRoutesRequest\0229\n\006parent\030\001 \001(" - + "\tB)\340A\002\372A#\n!locations.googleapis.com/Loca" - + "tion\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\241\001" - + "\n\035ListPolicyBasedRoutesResponse\022R\n\023polic" - + "y_based_routes\030\001 \003(\01325.google.cloud.netw" - + "orkconnectivity.v1.PolicyBasedRoute\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(" - + "\t\"g\n\032GetPolicyBasedRouteRequest\022I\n\004name\030" - + "\001 \001(\tB;\340A\002\372A5\n3networkconnectivity.googl" - + "eapis.com/PolicyBasedRoute\"\357\001\n\035CreatePol" - + "icyBasedRouteRequest\0229\n\006parent\030\001 \001(\tB)\340A" - + "\002\372A#\n!locations.googleapis.com/Location\022" - + "\"\n\025policy_based_route_id\030\002 \001(\tB\003\340A\001\022V\n\022p" - + "olicy_based_route\030\003 \001(\01325.google.cloud.n" - + "etworkconnectivity.v1.PolicyBasedRouteB\003" - + "\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\203\001\n\035DeleteP" - + "olicyBasedRouteRequest\022I\n\004name\030\001 \001(\tB;\340A" - + "\002\372A5\n3networkconnectivity.googleapis.com" - + "/PolicyBasedRoute\022\027\n\nrequest_id\030\002 \001(\tB\003\340" - + "A\0012\343\010\n\031PolicyBasedRoutingService\022\353\001\n\025Lis" - + "tPolicyBasedRoutes\022A.google.cloud.networ" - + "kconnectivity.v1.ListPolicyBasedRoutesRe" - + "quest\032B.google.cloud.networkconnectivity" - + ".v1.ListPolicyBasedRoutesResponse\"K\202\323\344\223\002" - + "<\022:/v1/{parent=projects/*/locations/glob" - + "al}/policyBasedRoutes\332A\006parent\022\330\001\n\023GetPo" - + "licyBasedRoute\022?.google.cloud.networkcon" - + "nectivity.v1.GetPolicyBasedRouteRequest\032" - + "5.google.cloud.networkconnectivity.v1.Po" - + "licyBasedRoute\"I\202\323\344\223\002<\022:/v1/{name=projec" - + "ts/*/locations/global/policyBasedRoutes/" - + "*}\332A\004name\022\256\002\n\026CreatePolicyBasedRoute\022B.g" - + "oogle.cloud.networkconnectivity.v1.Creat" - + "ePolicyBasedRouteRequest\032\035.google.longru" - + "nning.Operation\"\260\001\202\323\344\223\002P\":/v1/{parent=pr" - + "ojects/*/locations/global}/policyBasedRo" - + "utes:\022policy_based_route\332A/parent,policy" - + "_based_route,policy_based_route_id\312A%\n\020P" - + "olicyBasedRoute\022\021OperationMetadata\022\363\001\n\026D" - + "eletePolicyBasedRoute\022B.google.cloud.net" - + "workconnectivity.v1.DeletePolicyBasedRou" - + "teRequest\032\035.google.longrunning.Operation" - + "\"v\202\323\344\223\002<*:/v1/{name=projects/*/locations" - + "/global/policyBasedRoutes/*}\332A\004name\312A*\n\025" - + "google.protobuf.Empty\022\021OperationMetadata" - + "\032V\312A\"networkconnectivity.googleapis.com\322" - + "A.https://www.googleapis.com/auth/cloud-" - + "platformB\221\002\n\'com.google.cloud.networkcon" - + "nectivity.v1B\027PolicyBasedRoutingProtoP\001Z" - + "Vgoogle.golang.org/genproto/googleapis/c" - + "loud/networkconnectivity/v1;networkconne" - + "ctivity\252\002#Google.Cloud.NetworkConnectivi" - + "ty.V1\312\002#Google\\Cloud\\NetworkConnectivity" - + "\\V1\352\002&Google::Cloud::NetworkConnectivity" - + "::V1b\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.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor, - new java.lang.String[] { - "VirtualMachine", - "InterconnectAttachment", - "NextHopIlbIp", - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "Description", - "Network", - "Filter", - "Priority", - "Warnings", - "SelfLink", - "Kind", - "Target", - "NextHop", - }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor = - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_VirtualMachine_descriptor, - new java.lang.String[] { - "Tags", - }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor = - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_InterconnectAttachment_descriptor, - new java.lang.String[] { - "Region", - }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor = - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Filter_descriptor, - new java.lang.String[] { - "IpProtocol", "SrcRange", "DestRange", "ProtocolVersion", - }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor = - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor, - new java.lang.String[] { - "Code", "Data", "WarningMessage", - }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_descriptor = - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_Warnings_DataEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_descriptor = - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_descriptor - .getNestedTypes() - .get(4); - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_PolicyBasedRoute_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_ListPolicyBasedRoutesResponse_descriptor, - new java.lang.String[] { - "PolicyBasedRoutes", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_GetPolicyBasedRouteRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_CreatePolicyBasedRouteRequest_descriptor, - new java.lang.String[] { - "Parent", "PolicyBasedRouteId", "PolicyBasedRoute", "RequestId", - }); - internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_DeletePolicyBasedRouteRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", - }); - 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.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/policy_based_routing.proto b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/policy_based_routing.proto deleted file mode 100644 index 74c24bd39710..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/policy_based_routing.proto +++ /dev/null @@ -1,338 +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 -// -// 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.networkconnectivity.v1; - -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/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.NetworkConnectivity.V1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1;networkconnectivity"; -option java_multiple_files = true; -option java_outer_classname = "PolicyBasedRoutingProto"; -option java_package = "com.google.cloud.networkconnectivity.v1"; -option php_namespace = "Google\\Cloud\\NetworkConnectivity\\V1"; -option ruby_package = "Google::Cloud::NetworkConnectivity::V1"; - -// Policy-Based Routing allows GCP customers to specify flexibile routing -// policies for Layer 4 traffic traversing through the connected service. -service PolicyBasedRoutingService { - option (google.api.default_host) = "networkconnectivity.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Lists PolicyBasedRoutes in a given project and location. - rpc ListPolicyBasedRoutes(ListPolicyBasedRoutesRequest) returns (ListPolicyBasedRoutesResponse) { - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/global}/policyBasedRoutes" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets details of a single PolicyBasedRoute. - rpc GetPolicyBasedRoute(GetPolicyBasedRouteRequest) returns (PolicyBasedRoute) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/global/policyBasedRoutes/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a new PolicyBasedRoute in a given project and location. - rpc CreatePolicyBasedRoute(CreatePolicyBasedRouteRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/global}/policyBasedRoutes" - body: "policy_based_route" - }; - option (google.api.method_signature) = "parent,policy_based_route,policy_based_route_id"; - option (google.longrunning.operation_info) = { - response_type: "PolicyBasedRoute" - metadata_type: "OperationMetadata" - }; - } - - // Deletes a single PolicyBasedRoute. - rpc DeletePolicyBasedRoute(DeletePolicyBasedRouteRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/global/policyBasedRoutes/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "OperationMetadata" - }; - } -} - -// Policy Based Routes (PBR) are more powerful routes that allows GCP customers -// to route their L4 network traffic based on not just destination IP, but also -// source IP, protocol and more. A PBR always take precedence when it conflicts -// with other types of routes. -// Next id: 19 -message PolicyBasedRoute { - option (google.api.resource) = { - type: "networkconnectivity.googleapis.com/PolicyBasedRoute" - pattern: "projects/{project}/{location}/global/PolicyBasedRoutes/{policy_based_route}" - }; - - // VM instances to which this policy based route applies to. - message VirtualMachine { - // Optional. A list of VM instance tags to which this policy based route applies to. - // VM instances that have ANY of tags specified here will install this - // PBR. - repeated string tags = 1 [(google.api.field_behavior) = OPTIONAL]; - } - - // InterconnectAttachment to which this route applies to. - message InterconnectAttachment { - // Optional. Cloud region to install this policy based route on interconnect - // attachment. Use `all` to install it on all interconnect attachments. - string region = 1 [(google.api.field_behavior) = OPTIONAL]; - } - - // Filter matches L4 traffic. - message Filter { - // The internet protocol version. - enum ProtocolVersion { - // Default value. - PROTOCOL_VERSION_UNSPECIFIED = 0; - - // The PBR is for IPv4 internet protocol traffic. - IPV4 = 1; - } - - // Optional. The IP protocol that this policy based route applies to. Valid values are - // 'TCP', 'UDP', and 'ALL'. Default is 'ALL'. - string ip_protocol = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The source IP range of outgoing packets that this policy based route - // applies to. Default is "0.0.0.0/0" if protocol version is IPv4. - string src_range = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The destination IP range of outgoing packets that this policy based route - // applies to. Default is "0.0.0.0/0" if protocol version is IPv4. - string dest_range = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Required. Internet protocol versions this policy based route applies to. For this - // version, only IPV4 is supported. - ProtocolVersion protocol_version = 6 [(google.api.field_behavior) = REQUIRED]; - } - - // Informational warning message. - message Warnings { - // Warning code for Policy Based Routing. Expect to add values in the - // future. - enum Code { - // Default value. - WARNING_UNSPECIFIED = 0; - - // The policy based route is not active and functioning. Common causes are - // the dependent network was deleted or the resource project was turned - // off. - RESOURCE_NOT_ACTIVE = 1; - - // The policy based route is being modified (e.g. created/deleted) at this - // time. - RESOURCE_BEING_MODIFIED = 2; - } - - // Output only. A warning code, if applicable. - Code code = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Metadata about this warning in key: value format. The key should provides - // more detail on the warning being returned. For example, for warnings - // where there are no results in a list request for a particular zone, this - // key might be scope and the key value might be the zone name. Other - // examples might be a key indicating a deprecated resource and a suggested - // replacement. - map data = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A human-readable description of the warning code. - string warning_message = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Target specifies network endpoints to which this policy based route applies - // to. If none of the target is specified, the PBR will be installed on all - // network endpoints (e.g. VMs, VPNs, and Interconnects) in the VPC. - oneof target { - // Optional. VM instances to which this policy based route applies to. - VirtualMachine virtual_machine = 18 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The interconnect attachments to which this route applies to. - InterconnectAttachment interconnect_attachment = 9 [(google.api.field_behavior) = OPTIONAL]; - } - - oneof next_hop { - // Optional. The IP of a global access enabled L4 ILB that should be the next hop to - // handle matching packets. For this version, only next_hop_ilb_ip is - // supported. - string next_hop_ilb_ip = 12 [(google.api.field_behavior) = OPTIONAL]; - } - - // Immutable. A unique name of the resource in the form of - // `projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}` - string name = 1 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. Time when the PolicyBasedRoute was created. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when the PolicyBasedRoute was updated. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // User-defined labels. - map labels = 4; - - // Optional. An optional description of this resource. Provide this field when you - // create the resource. - string description = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Required. Fully-qualified URL of the network that this route applies to. e.g. - // projects/my-project/global/networks/my-network. - string network = 6 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "compute.googleapis.com/Network" - } - ]; - - // Required. The filter to match L4 traffic. - Filter filter = 10 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The priority of this policy based route. Priority is used to break ties in - // cases where there are more than one matching policy based routes found. In - // cases where multiple policy based routes are matched, the one with the - // lowest-numbered priority value wins. The default value is 1000. The - // priority value must be from 1 to 65535, inclusive. - int32 priority = 11 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. If potential misconfigurations are detected for this route, - // this field will be populated with warning messages. - repeated Warnings warnings = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Server-defined fully-qualified URL for this resource. - string self_link = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for - // Policy Based Route resources. - string kind = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request for [PolicyBasedRouting.ListPolicyBasedRoutes][] method. -message ListPolicyBasedRoutesRequest { - // Required. The parent resource's name. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // The maximum number of results per page that should be returned. - int32 page_size = 2; - - // The page token. - string page_token = 3; - - // A filter expression that filters the results listed in the response. - string filter = 4; - - // Sort the results by a certain order. - string order_by = 5; -} - -// Response for [PolicyBasedRouting.ListPolicyBasedRoutes][] method. -message ListPolicyBasedRoutesResponse { - // Policy based routes to be returned. - repeated PolicyBasedRoute policy_based_routes = 1; - - // The next pagination token in the List response. It should be used as - // page_token for the following request. An empty value means no more result. - string next_page_token = 2; - - // Locations that could not be reached. - repeated string unreachable = 3; -} - -// Request for [PolicyBasedRouting.GetPolicyBasedRoute][] method. -message GetPolicyBasedRouteRequest { - // Required. Name of the PolicyBasedRoute resource to get. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "networkconnectivity.googleapis.com/PolicyBasedRoute" - } - ]; -} - -// Request for [PolicyBasedRouting.CreatePolicyBasedRoute][] method. -message CreatePolicyBasedRouteRequest { - // Required. The parent resource's name of the PolicyBasedRoute. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; - - // Optional. Unique id for the Policy Based Route to create. - string policy_based_route_id = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Required. Initial values for a new Policy Based Route. - PolicyBasedRoute policy_based_route = 3 [(google.api.field_behavior) = REQUIRED]; - - // Optional. An optional request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes since the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// Request for [PolicyBasedRouting.DeletePolicyBasedRoute][] method. -message DeletePolicyBasedRouteRequest { - // Required. Name of the PolicyBasedRoute resource to delete. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "networkconnectivity.googleapis.com/PolicyBasedRoute" - } - ]; - - // Optional. An optional request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes after the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java deleted file mode 100644 index e8e71eaf5f8b..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java +++ /dev/null @@ -1,94 +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/networkconnectivity/v1alpha1/common.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public final class CommonProto { - private CommonProto() {} - - 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_networkconnectivity_v1alpha1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/networkconnectivity/v1alp" - + "ha1/common.proto\022)google.cloud.networkco" - + "nnectivity.v1alpha1\032\037google/api/field_be" - + "havior.proto\032\037google/protobuf/timestamp." - + "proto\"\200\002\n\021OperationMetadata\0224\n\013create_ti" - + "me\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004ver" - + "b\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\003B\243\002\n-com.google." - + "cloud.networkconnectivity.v1alpha1B\013Comm" - + "onProtoP\001Z\\google.golang.org/genproto/go" - + "ogleapis/cloud/networkconnectivity/v1alp" - + "ha1;networkconnectivity\252\002)Google.Cloud.N" - + "etworkConnectivity.V1Alpha1\312\002)Google\\Clo" - + "ud\\NetworkConnectivity\\V1alpha1\352\002,Google" - + "::Cloud::NetworkConnectivity::V1alpha1b\006" - + "proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java deleted file mode 100644 index f27e985b5766..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public interface GetHubRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the Hub resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the Hub resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java deleted file mode 100644 index f96c9a120c67..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public interface GetSpokeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of Spoke resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of Spoke 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java deleted file mode 100644 index 4f2423ff81f4..000000000000 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java +++ /dev/null @@ -1,460 +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/networkconnectivity/v1alpha1/hub.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public final class HubProto { - private HubProto() {} - - 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_networkconnectivity_v1alpha1_Hub_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/networkconnectivity/v1alp" - + "ha1/hub.proto\022)google.cloud.networkconne" - + "ctivity.v1alpha1\032\034google/api/annotations" - + ".proto\032\027google/api/client.proto\032\037google/" - + "api/field_behavior.proto\032\031google/api/res" - + "ource.proto\032#google/longrunning/operatio" - + "ns.proto\032 google/protobuf/field_mask.pro" - + "to\032\037google/protobuf/timestamp.proto\"\207\004\n\003" - + "Hub\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_time\030\002 " - + "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat" - + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" - + "\022J\n\006labels\030\004 \003(\0132:.google.cloud.networkc" - + "onnectivity.v1alpha1.Hub.LabelsEntry\022\023\n\013" - + "description\030\005 \001(\t\022@\n\006spokes\030\006 \003(\tB0\340A\003\372A" - + "*\n(networkconnectivity.googleapis.com/Sp" - + "oke\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022D\n\005state\030\t \001" - + "(\01620.google.cloud.networkconnectivity.v1" - + "alpha1.StateB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:[\352AX\n&networkco" - + "nnectivity.googleapis.com/Hub\022.projects/" - + "{project}/locations/global/hubs/{hub}\"\234\006" - + "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_tim" - + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022/\n\013u" - + "pdate_time\030\003 \001(\0132\032.google.protobuf.Times" - + "tamp\022L\n\006labels\030\004 \003(\0132<.google.cloud.netw" - + "orkconnectivity.v1alpha1.Spoke.LabelsEnt" - + "ry\022\023\n\013description\030\005 \001(\t\0228\n\003hub\030\006 \001(\tB+\372A" - + "(\n&networkconnectivity.googleapis.com/Hu" - + "b\022A\n\022linked_vpn_tunnels\030\014 \003(\tB%\372A\"\n comp" - + "ute.googleapis.com/VpnTunnel\022[\n\037linked_i" - + "nterconnect_attachments\030\r \003(\tB2\372A/\n-comp" - + "ute.googleapis.com/InterconnectAttachmen" - + "t\022m\n!linked_router_appliance_instances\030\016" - + " \003(\0132B.google.cloud.networkconnectivity." - + "v1alpha1.RouterApplianceInstance\022\026\n\tuniq" - + "ue_id\030\013 \001(\tB\003\340A\003\022D\n\005state\030\017 \001(\01620.google" - + ".cloud.networkconnectivity.v1alpha1.Stat" - + "eB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001:e\352Ab\n(networkconnectivity." - + "googleapis.com/Spoke\0226projects/{project}" - + "/locations/{location}/spokes/{spoke}\"\225\001\n" - + "\017ListHubsRequest\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\022\016\n\006fi" - + "lter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\020ListHubs" - + "Response\022<\n\004hubs\030\001 \003(\0132..google.cloud.ne" - + "tworkconnectivity.v1alpha1.Hub\022\027\n\017next_p" - + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\r" - + "GetHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" - + "workconnectivity.googleapis.com/Hub\"\275\001\n\020" - + "CreateHubRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" - + "\n!locations.googleapis.com/Location\022\023\n\006h" - + "ub_id\030\002 \001(\tB\003\340A\001\022@\n\003hub\030\003 \001(\0132..google.c" - + "loud.networkconnectivity.v1alpha1.HubB\003\340" - + "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\020UpdateHu" - + "bRequest\0224\n\013update_mask\030\001 \001(\0132\032.google.p" - + "rotobuf.FieldMaskB\003\340A\001\022@\n\003hub\030\002 \001(\0132..go" - + "ogle.cloud.networkconnectivity.v1alpha1." - + "HubB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"i\n\020Del" - + "eteHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" - + "workconnectivity.googleapis.com/Hub\022\027\n\nr" - + "equest_id\030\002 \001(\tB\003\340A\001\"\227\001\n\021ListSpokesReque" - + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" - + "ogleapis.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\022\020\n\010" - + "order_by\030\005 \001(\t\"\204\001\n\022ListSpokesResponse\022@\n" - + "\006spokes\030\001 \003(\01320.google.cloud.networkconn" - + "ectivity.v1alpha1.Spoke\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\017GetSpok" - + "eRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(networkc" - + "onnectivity.googleapis.com/Spoke\"\305\001\n\022Cre" - + "ateSpokeRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n" - + "!locations.googleapis.com/Location\022\025\n\010sp" - + "oke_id\030\002 \001(\tB\003\340A\001\022D\n\005spoke\030\003 \001(\01320.googl" - + "e.cloud.networkconnectivity.v1alpha1.Spo" - + "keB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\251\001\n\022Upd" - + "ateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\003\340A\001\022D\n\005spoke\030\002" - + " \001(\01320.google.cloud.networkconnectivity." - + "v1alpha1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB" - + "\003\340A\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\t" - + "B0\340A\002\372A*\n(networkconnectivity.googleapis" - + ".com/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\213\001\n\027" - + "RouterApplianceInstance\022=\n\017virtual_machi" - + "ne\030\001 \001(\tB$\372A!\n\037compute.googleapis.com/In" - + "stance\022\022\n\nip_address\030\003 \001(\t\022\035\n\021network_in" - + "terface\030\002 \001(\tB\002\030\001*F\n\005State\022\025\n\021STATE_UNSP" - + "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010D" - + "ELETING\020\0032\255\021\n\nHubService\022\311\001\n\010ListHubs\022:." - + "google.cloud.networkconnectivity.v1alpha" - + "1.ListHubsRequest\032;.google.cloud.network" - + "connectivity.v1alpha1.ListHubsResponse\"D" - + "\202\323\344\223\0025\0223/v1alpha1/{parent=projects/*/loc" - + "ations/global}/hubs\332A\006parent\022\266\001\n\006GetHub\022" - + "8.google.cloud.networkconnectivity.v1alp" - + "ha1.GetHubRequest\032..google.cloud.network" - + "connectivity.v1alpha1.Hub\"B\202\323\344\223\0025\0223/v1al" - + "pha1/{name=projects/*/locations/global/h" - + "ubs/*}\332A\004name\022\330\001\n\tCreateHub\022;.google.clo" - + "ud.networkconnectivity.v1alpha1.CreateHu" - + "bRequest\032\035.google.longrunning.Operation\"" - + "o\202\323\344\223\002:\"3/v1alpha1/{parent=projects/*/lo" - + "cations/global}/hubs:\003hub\332A\021parent,hub,h" - + "ub_id\312A\030\n\003Hub\022\021OperationMetadata\022\332\001\n\tUpd" - + "ateHub\022;.google.cloud.networkconnectivit" - + "y.v1alpha1.UpdateHubRequest\032\035.google.lon" - + "grunning.Operation\"q\202\323\344\223\002>27/v1alpha1/{h" - + "ub.name=projects/*/locations/global/hubs" - + "/*}:\003hub\332A\017hub,update_mask\312A\030\n\003Hub\022\021Oper" - + "ationMetadata\022\330\001\n\tDeleteHub\022;.google.clo" - + "ud.networkconnectivity.v1alpha1.DeleteHu" - + "bRequest\032\035.google.longrunning.Operation\"" - + "o\202\323\344\223\0025*3/v1alpha1/{name=projects/*/loca" - + "tions/global/hubs/*}\332A\004name\312A*\n\025google.p" - + "rotobuf.Empty\022\021OperationMetadata\022\314\001\n\nLis" - + "tSpokes\022<.google.cloud.networkconnectivi" - + "ty.v1alpha1.ListSpokesRequest\032=.google.c" - + "loud.networkconnectivity.v1alpha1.ListSp" - + "okesResponse\"A\202\323\344\223\0022\0220/v1alpha1/{parent=" - + "projects/*/locations/*}/spokes\332A\006parent\022" - + "\271\001\n\010GetSpoke\022:.google.cloud.networkconne" - + "ctivity.v1alpha1.GetSpokeRequest\0320.googl" - + "e.cloud.networkconnectivity.v1alpha1.Spo" - + "ke\"?\202\323\344\223\0022\0220/v1alpha1/{name=projects/*/l" - + "ocations/*/spokes/*}\332A\004name\022\341\001\n\013CreateSp" - + "oke\022=.google.cloud.networkconnectivity.v" - + "1alpha1.CreateSpokeRequest\032\035.google.long" - + "running.Operation\"t\202\323\344\223\0029\"0/v1alpha1/{pa" - + "rent=projects/*/locations/*}/spokes:\005spo" - + "ke\332A\025parent,spoke,spoke_id\312A\032\n\005Spoke\022\021Op" - + "erationMetadata\022\343\001\n\013UpdateSpoke\022=.google" - + ".cloud.networkconnectivity.v1alpha1.Upda" - + "teSpokeRequest\032\035.google.longrunning.Oper" - + "ation\"v\202\323\344\223\002?26/v1alpha1/{spoke.name=pro" - + "jects/*/locations/*/spokes/*}:\005spoke\332A\021s" - + "poke,update_mask\312A\032\n\005Spoke\022\021OperationMet" - + "adata\022\331\001\n\013DeleteSpoke\022=.google.cloud.net" - + "workconnectivity.v1alpha1.DeleteSpokeReq" - + "uest\032\035.google.longrunning.Operation\"l\202\323\344" - + "\223\0022*0/v1alpha1/{name=projects/*/location" - + "s/*/spokes/*}\332A\004name\312A*\n\025google.protobuf" - + ".Empty\022\021OperationMetadata\032V\312A\"networkcon" - + "nectivity.googleapis.com\322A.https://www.g" - + "oogleapis.com/auth/cloud-platformB\332\004\n-co" - + "m.google.cloud.networkconnectivity.v1alp" - + "ha1B\010HubProtoP\001Z\\google.golang.org/genpr" - + "oto/googleapis/cloud/networkconnectivity" - + "/v1alpha1;networkconnectivity\252\002)Google.C" - + "loud.NetworkConnectivity.V1Alpha1\312\002)Goog" - + "le\\Cloud\\NetworkConnectivity\\V1alpha1\352\002," - + "Google::Cloud::NetworkConnectivity::V1al" - + "pha1\352A`\n compute.googleapis.com/VpnTunne" - + "l\022 future = - policyBasedRoutingServiceClient.createPolicyBasedRouteCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRouteLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRouteLRO.java deleted file mode 100644 index cd0c58c53a5b..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/AsyncCreatePolicyBasedRouteLRO.java +++ /dev/null @@ -1,57 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_LRO_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.LocationName; -import com.google.cloud.networkconnectivity.v1.OperationMetadata; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class AsyncCreatePolicyBasedRouteLRO { - - public static void main(String[] args) throws Exception { - asyncCreatePolicyBasedRouteLRO(); - } - - public static void asyncCreatePolicyBasedRouteLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - CreatePolicyBasedRouteRequest request = - CreatePolicyBasedRouteRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPolicyBasedRouteId("policyBasedRouteId-18034589") - .setPolicyBasedRoute(PolicyBasedRoute.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - OperationFuture future = - policyBasedRoutingServiceClient - .createPolicyBasedRouteOperationCallable() - .futureCall(request); - // Do something. - PolicyBasedRoute response = future.get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_LRO_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRoute.java deleted file mode 100644 index c38346f59456..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRoute.java +++ /dev/null @@ -1,51 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_sync] -import com.google.cloud.networkconnectivity.v1.CreatePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.LocationName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class SyncCreatePolicyBasedRoute { - - public static void main(String[] args) throws Exception { - syncCreatePolicyBasedRoute(); - } - - public static void syncCreatePolicyBasedRoute() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - CreatePolicyBasedRouteRequest request = - CreatePolicyBasedRouteRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPolicyBasedRouteId("policyBasedRouteId-18034589") - .setPolicyBasedRoute(PolicyBasedRoute.newBuilder().build()) - .setRequestId("requestId693933066") - .build(); - PolicyBasedRoute response = - policyBasedRoutingServiceClient.createPolicyBasedRouteAsync(request).get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString.java deleted file mode 100644 index a6c175209bab..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString.java +++ /dev/null @@ -1,49 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_LocationnamePolicybasedrouteString_sync] -import com.google.cloud.networkconnectivity.v1.LocationName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class SyncCreatePolicyBasedRouteLocationnamePolicybasedrouteString { - - public static void main(String[] args) throws Exception { - syncCreatePolicyBasedRouteLocationnamePolicybasedrouteString(); - } - - public static void syncCreatePolicyBasedRouteLocationnamePolicybasedrouteString() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build(); - String policyBasedRouteId = "policyBasedRouteId-18034589"; - PolicyBasedRoute response = - policyBasedRoutingServiceClient - .createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId) - .get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_LocationnamePolicybasedrouteString_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteStringPolicybasedrouteString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteStringPolicybasedrouteString.java deleted file mode 100644 index 4b9e769b8ff3..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/createpolicybasedroute/SyncCreatePolicyBasedRouteStringPolicybasedrouteString.java +++ /dev/null @@ -1,48 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_StringPolicybasedrouteString_sync] -import com.google.cloud.networkconnectivity.v1.LocationName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class SyncCreatePolicyBasedRouteStringPolicybasedrouteString { - - public static void main(String[] args) throws Exception { - syncCreatePolicyBasedRouteStringPolicybasedrouteString(); - } - - public static void syncCreatePolicyBasedRouteStringPolicybasedrouteString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - PolicyBasedRoute policyBasedRoute = PolicyBasedRoute.newBuilder().build(); - String policyBasedRouteId = "policyBasedRouteId-18034589"; - PolicyBasedRoute response = - policyBasedRoutingServiceClient - .createPolicyBasedRouteAsync(parent, policyBasedRoute, policyBasedRouteId) - .get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_StringPolicybasedrouteString_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRoute.java deleted file mode 100644 index 0bff00a01f98..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRoute.java +++ /dev/null @@ -1,54 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; -import com.google.longrunning.Operation; - -public class AsyncDeletePolicyBasedRoute { - - public static void main(String[] args) throws Exception { - asyncDeletePolicyBasedRoute(); - } - - public static void asyncDeletePolicyBasedRoute() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - DeletePolicyBasedRouteRequest request = - DeletePolicyBasedRouteRequest.newBuilder() - .setName( - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") - .toString()) - .setRequestId("requestId693933066") - .build(); - ApiFuture future = - policyBasedRoutingServiceClient.deletePolicyBasedRouteCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRouteLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRouteLRO.java deleted file mode 100644 index 0f2ed3f57753..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/AsyncDeletePolicyBasedRouteLRO.java +++ /dev/null @@ -1,57 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_LRO_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.OperationMetadata; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; -import com.google.protobuf.Empty; - -public class AsyncDeletePolicyBasedRouteLRO { - - public static void main(String[] args) throws Exception { - asyncDeletePolicyBasedRouteLRO(); - } - - public static void asyncDeletePolicyBasedRouteLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - DeletePolicyBasedRouteRequest request = - DeletePolicyBasedRouteRequest.newBuilder() - .setName( - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") - .toString()) - .setRequestId("requestId693933066") - .build(); - OperationFuture future = - policyBasedRoutingServiceClient - .deletePolicyBasedRouteOperationCallable() - .futureCall(request); - // Do something. - future.get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_LRO_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoute.java deleted file mode 100644 index e827f253b362..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoute.java +++ /dev/null @@ -1,50 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_sync] -import com.google.cloud.networkconnectivity.v1.DeletePolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; -import com.google.protobuf.Empty; - -public class SyncDeletePolicyBasedRoute { - - public static void main(String[] args) throws Exception { - syncDeletePolicyBasedRoute(); - } - - public static void syncDeletePolicyBasedRoute() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - DeletePolicyBasedRouteRequest request = - DeletePolicyBasedRouteRequest.newBuilder() - .setName( - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") - .toString()) - .setRequestId("requestId693933066") - .build(); - policyBasedRoutingServiceClient.deletePolicyBasedRouteAsync(request).get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoutePolicybasedroutename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoutePolicybasedroutename.java deleted file mode 100644 index d319ba4559c5..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRoutePolicybasedroutename.java +++ /dev/null @@ -1,44 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_Policybasedroutename_sync] -import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; -import com.google.protobuf.Empty; - -public class SyncDeletePolicyBasedRoutePolicybasedroutename { - - public static void main(String[] args) throws Exception { - syncDeletePolicyBasedRoutePolicybasedroutename(); - } - - public static void syncDeletePolicyBasedRoutePolicybasedroutename() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - PolicyBasedRouteName name = - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]"); - policyBasedRoutingServiceClient.deletePolicyBasedRouteAsync(name).get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_Policybasedroutename_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRouteString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRouteString.java deleted file mode 100644 index f11380a6868b..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/deletepolicybasedroute/SyncDeletePolicyBasedRouteString.java +++ /dev/null @@ -1,44 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_String_sync] -import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; -import com.google.protobuf.Empty; - -public class SyncDeletePolicyBasedRouteString { - - public static void main(String[] args) throws Exception { - syncDeletePolicyBasedRouteString(); - } - - public static void syncDeletePolicyBasedRouteString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - String name = - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]").toString(); - policyBasedRoutingServiceClient.deletePolicyBasedRouteAsync(name).get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_String_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/AsyncGetPolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/AsyncGetPolicyBasedRoute.java deleted file mode 100644 index d635942640e1..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/AsyncGetPolicyBasedRoute.java +++ /dev/null @@ -1,53 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class AsyncGetPolicyBasedRoute { - - public static void main(String[] args) throws Exception { - asyncGetPolicyBasedRoute(); - } - - public static void asyncGetPolicyBasedRoute() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - GetPolicyBasedRouteRequest request = - GetPolicyBasedRouteRequest.newBuilder() - .setName( - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") - .toString()) - .build(); - ApiFuture future = - policyBasedRoutingServiceClient.getPolicyBasedRouteCallable().futureCall(request); - // Do something. - PolicyBasedRoute response = future.get(); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoute.java deleted file mode 100644 index 16c3941ea7c8..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoute.java +++ /dev/null @@ -1,49 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_sync] -import com.google.cloud.networkconnectivity.v1.GetPolicyBasedRouteRequest; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class SyncGetPolicyBasedRoute { - - public static void main(String[] args) throws Exception { - syncGetPolicyBasedRoute(); - } - - public static void syncGetPolicyBasedRoute() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - GetPolicyBasedRouteRequest request = - GetPolicyBasedRouteRequest.newBuilder() - .setName( - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]") - .toString()) - .build(); - PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(request); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoutePolicybasedroutename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoutePolicybasedroutename.java deleted file mode 100644 index dc7b9b61a3ef..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRoutePolicybasedroutename.java +++ /dev/null @@ -1,44 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_Policybasedroutename_sync] -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class SyncGetPolicyBasedRoutePolicybasedroutename { - - public static void main(String[] args) throws Exception { - syncGetPolicyBasedRoutePolicybasedroutename(); - } - - public static void syncGetPolicyBasedRoutePolicybasedroutename() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - PolicyBasedRouteName name = - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]"); - PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(name); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_Policybasedroutename_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRouteString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRouteString.java deleted file mode 100644 index 46bdd59470d5..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/getpolicybasedroute/SyncGetPolicyBasedRouteString.java +++ /dev/null @@ -1,44 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_String_sync] -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRouteName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class SyncGetPolicyBasedRouteString { - - public static void main(String[] args) throws Exception { - syncGetPolicyBasedRouteString(); - } - - public static void syncGetPolicyBasedRouteString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - String name = - PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]").toString(); - PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(name); - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_String_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutes.java deleted file mode 100644 index eb8cc1abef51..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutes.java +++ /dev/null @@ -1,57 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest; -import com.google.cloud.networkconnectivity.v1.LocationName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class AsyncListPolicyBasedRoutes { - - public static void main(String[] args) throws Exception { - asyncListPolicyBasedRoutes(); - } - - public static void asyncListPolicyBasedRoutes() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - ListPolicyBasedRoutesRequest request = - ListPolicyBasedRoutesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .build(); - ApiFuture future = - policyBasedRoutingServiceClient.listPolicyBasedRoutesPagedCallable().futureCall(request); - // Do something. - for (PolicyBasedRoute element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutesPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutesPaged.java deleted file mode 100644 index a0c7ac9eb18b..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/AsyncListPolicyBasedRoutesPaged.java +++ /dev/null @@ -1,65 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_Paged_async] -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest; -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse; -import com.google.cloud.networkconnectivity.v1.LocationName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; -import com.google.common.base.Strings; - -public class AsyncListPolicyBasedRoutesPaged { - - public static void main(String[] args) throws Exception { - asyncListPolicyBasedRoutesPaged(); - } - - public static void asyncListPolicyBasedRoutesPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - ListPolicyBasedRoutesRequest request = - ListPolicyBasedRoutesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .build(); - while (true) { - ListPolicyBasedRoutesResponse response = - policyBasedRoutingServiceClient.listPolicyBasedRoutesCallable().call(request); - for (PolicyBasedRoute element : response.getPolicyBasedRoutesList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_Paged_async] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutes.java deleted file mode 100644 index 3b39b2b51744..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutes.java +++ /dev/null @@ -1,54 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_sync] -import com.google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesRequest; -import com.google.cloud.networkconnectivity.v1.LocationName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class SyncListPolicyBasedRoutes { - - public static void main(String[] args) throws Exception { - syncListPolicyBasedRoutes(); - } - - public static void syncListPolicyBasedRoutes() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - ListPolicyBasedRoutesRequest request = - ListPolicyBasedRoutesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .build(); - for (PolicyBasedRoute element : - policyBasedRoutingServiceClient.listPolicyBasedRoutes(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesLocationname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesLocationname.java deleted file mode 100644 index 24af9caa5beb..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesLocationname.java +++ /dev/null @@ -1,46 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_Locationname_sync] -import com.google.cloud.networkconnectivity.v1.LocationName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class SyncListPolicyBasedRoutesLocationname { - - public static void main(String[] args) throws Exception { - syncListPolicyBasedRoutesLocationname(); - } - - public static void syncListPolicyBasedRoutesLocationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (PolicyBasedRoute element : - policyBasedRoutingServiceClient.listPolicyBasedRoutes(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_Locationname_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesString.java deleted file mode 100644 index ee527aedb77a..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservice/listpolicybasedroutes/SyncListPolicyBasedRoutesString.java +++ /dev/null @@ -1,46 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_String_sync] -import com.google.cloud.networkconnectivity.v1.LocationName; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoute; -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient; - -public class SyncListPolicyBasedRoutesString { - - public static void main(String[] args) throws Exception { - syncListPolicyBasedRoutesString(); - } - - public static void syncListPolicyBasedRoutesString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient = - PolicyBasedRoutingServiceClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - for (PolicyBasedRoute element : - policyBasedRoutingServiceClient.listPolicyBasedRoutes(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_String_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservicesettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservicesettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java deleted file mode 100644 index d48c4e1b12c2..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/policybasedroutingservicesettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java +++ /dev/null @@ -1,50 +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.networkconnectivity.v1.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingServiceSettings_GetPolicyBasedRoute_sync] -import com.google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceSettings; -import java.time.Duration; - -public class SyncGetPolicyBasedRoute { - - public static void main(String[] args) throws Exception { - syncGetPolicyBasedRoute(); - } - - public static void syncGetPolicyBasedRoute() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PolicyBasedRoutingServiceSettings.Builder policyBasedRoutingServiceSettingsBuilder = - PolicyBasedRoutingServiceSettings.newBuilder(); - policyBasedRoutingServiceSettingsBuilder - .getPolicyBasedRouteSettings() - .setRetrySettings( - policyBasedRoutingServiceSettingsBuilder - .getPolicyBasedRouteSettings() - .getRetrySettings() - .toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - PolicyBasedRoutingServiceSettings policyBasedRoutingServiceSettings = - policyBasedRoutingServiceSettingsBuilder.build(); - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingServiceSettings_GetPolicyBasedRoute_sync] diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/policybasedroutingservicestubsettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/policybasedroutingservicestubsettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java deleted file mode 100644 index 7a68c4310f48..000000000000 --- a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/policybasedroutingservicestubsettings/getpolicybasedroute/SyncGetPolicyBasedRoute.java +++ /dev/null @@ -1,50 +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.networkconnectivity.v1.stub.samples; - -// [START networkconnectivity_v1_generated_PolicyBasedRoutingServiceStubSettings_GetPolicyBasedRoute_sync] -import com.google.cloud.networkconnectivity.v1.stub.PolicyBasedRoutingServiceStubSettings; -import java.time.Duration; - -public class SyncGetPolicyBasedRoute { - - public static void main(String[] args) throws Exception { - syncGetPolicyBasedRoute(); - } - - public static void syncGetPolicyBasedRoute() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PolicyBasedRoutingServiceStubSettings.Builder policyBasedRoutingServiceSettingsBuilder = - PolicyBasedRoutingServiceStubSettings.newBuilder(); - policyBasedRoutingServiceSettingsBuilder - .getPolicyBasedRouteSettings() - .setRetrySettings( - policyBasedRoutingServiceSettingsBuilder - .getPolicyBasedRouteSettings() - .getRetrySettings() - .toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - PolicyBasedRoutingServiceStubSettings policyBasedRoutingServiceSettings = - policyBasedRoutingServiceSettingsBuilder.build(); - } -} -// [END networkconnectivity_v1_generated_PolicyBasedRoutingServiceStubSettings_GetPolicyBasedRoute_sync] diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java similarity index 99% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java index 8602b8d3a73f..0f54d6e73b8d 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.networkconnectivity.v1.stub.HubServiceStubSettings; diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json similarity index 64% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json index c2a68318d1b1..466ca6374aa6 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json @@ -43,27 +43,6 @@ } } } - }, - "PolicyBasedRoutingService": { - "clients": { - "grpc": { - "libraryClient": "PolicyBasedRoutingServiceClient", - "rpcs": { - "CreatePolicyBasedRoute": { - "methods": ["createPolicyBasedRouteAsync", "createPolicyBasedRouteAsync", "createPolicyBasedRouteAsync", "createPolicyBasedRouteOperationCallable", "createPolicyBasedRouteCallable"] - }, - "DeletePolicyBasedRoute": { - "methods": ["deletePolicyBasedRouteAsync", "deletePolicyBasedRouteAsync", "deletePolicyBasedRouteAsync", "deletePolicyBasedRouteOperationCallable", "deletePolicyBasedRouteCallable"] - }, - "GetPolicyBasedRoute": { - "methods": ["getPolicyBasedRoute", "getPolicyBasedRoute", "getPolicyBasedRoute", "getPolicyBasedRouteCallable"] - }, - "ListPolicyBasedRoutes": { - "methods": ["listPolicyBasedRoutes", "listPolicyBasedRoutes", "listPolicyBasedRoutes", "listPolicyBasedRoutesPagedCallable", "listPolicyBasedRoutesCallable"] - } - } - } - } } } } \ No newline at end of file diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java similarity index 62% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java index daeb8017fa34..0aa0afcf4e1a 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java @@ -38,27 +38,6 @@ * Hub response = hubServiceClient.getHub(name); * } * } - * - *

======================= PolicyBasedRoutingServiceClient ======================= - * - *

Service Description: Policy-Based Routing allows GCP customers to specify flexibile routing - * policies for Layer 4 traffic traversing through the connected service. - * - *

Sample for PolicyBasedRoutingServiceClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (PolicyBasedRoutingServiceClient policyBasedRoutingServiceClient =
- *     PolicyBasedRoutingServiceClient.create()) {
- *   PolicyBasedRouteName name =
- *       PolicyBasedRouteName.of("[PROJECT]", "[LOCATION]", "[POLICY_BASED_ROUTE]");
- *   PolicyBasedRoute response = policyBasedRoutingServiceClient.getPolicyBasedRoute(name);
- * }
- * }
*/ @Generated("by gapic-generator-java") package com.google.cloud.networkconnectivity.v1; diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java similarity index 99% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java index 91b811c5fc87..a4c973ff1360 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java +++ b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java @@ -48,6 +48,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java b/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java rename to owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java b/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java new file mode 100644 index 000000000000..111a08cb8271 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java @@ -0,0 +1,1095 @@ +package com.google.cloud.networkconnectivity.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Network Connectivity Center is a hub-and-spoke abstraction for network
+ * connectivity management in Google Cloud. It reduces operational complexity
+ * through a simple, centralized connectivity management model.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networkconnectivity/v1/hub.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class HubServiceGrpc { + + private HubServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1.HubService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListHubsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListHubs", + requestType = com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListHubsMethod() { + io.grpc.MethodDescriptor getListHubsMethod; + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + HubServiceGrpc.getListHubsMethod = getListHubsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListHubsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListHubsResponse.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) + .build(); + } + } + } + return getListHubsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetHub", + requestType = com.google.cloud.networkconnectivity.v1.GetHubRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.Hub.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetHubMethod() { + io.grpc.MethodDescriptor getGetHubMethod; + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + HubServiceGrpc.getGetHubMethod = getGetHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.GetHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) + .build(); + } + } + } + return getGetHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateHub", + requestType = com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateHubMethod() { + io.grpc.MethodDescriptor getCreateHubMethod; + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + HubServiceGrpc.getCreateHubMethod = getCreateHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.CreateHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) + .build(); + } + } + } + return getCreateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateHub", + requestType = com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateHubMethod() { + io.grpc.MethodDescriptor getUpdateHubMethod; + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + HubServiceGrpc.getUpdateHubMethod = getUpdateHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) + .build(); + } + } + } + return getUpdateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteHub", + requestType = com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteHubMethod() { + io.grpc.MethodDescriptor getDeleteHubMethod; + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + HubServiceGrpc.getDeleteHubMethod = getDeleteHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) + .build(); + } + } + } + return getDeleteHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSpokesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSpokes", + requestType = com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSpokesMethod() { + io.grpc.MethodDescriptor getListSpokesMethod; + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + HubServiceGrpc.getListSpokesMethod = getListSpokesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListSpokesResponse.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) + .build(); + } + } + } + return getListSpokesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSpoke", + requestType = com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.Spoke.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSpokeMethod() { + io.grpc.MethodDescriptor getGetSpokeMethod; + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + HubServiceGrpc.getGetSpokeMethod = getGetSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) + .build(); + } + } + } + return getGetSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", + requestType = com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSpokeMethod() { + io.grpc.MethodDescriptor getCreateSpokeMethod; + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + HubServiceGrpc.getCreateSpokeMethod = getCreateSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) + .build(); + } + } + } + return getCreateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", + requestType = com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSpokeMethod() { + io.grpc.MethodDescriptor getUpdateSpokeMethod; + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + HubServiceGrpc.getUpdateSpokeMethod = getUpdateSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) + .build(); + } + } + } + return getUpdateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", + requestType = com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSpokeMethod() { + io.grpc.MethodDescriptor getDeleteSpokeMethod; + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + HubServiceGrpc.getDeleteSpokeMethod = getDeleteSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) + .build(); + } + } + } + return getDeleteSpokeMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static HubServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + }; + return HubServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static HubServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + }; + return HubServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static HubServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + }; + return HubServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static abstract class HubServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists the Network Connectivity Center hubs associated with a given project.
+     * 
+ */ + public void listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); + } + + /** + *
+     * Gets details about a Network Connectivity Center hub.
+     * 
+ */ + public void getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); + } + + /** + *
+     * Creates a new Network Connectivity Center hub in the specified project.
+     * 
+ */ + public void createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); + } + + /** + *
+     * Updates the description and/or labels of a Network Connectivity Center
+     * hub.
+     * 
+ */ + public void updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); + } + + /** + *
+     * Deletes a Network Connectivity Center hub.
+     * 
+ */ + public void deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); + } + + /** + *
+     * Lists the Network Connectivity Center spokes in a specified project and
+     * location.
+     * 
+ */ + public void listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); + } + + /** + *
+     * Gets details about a Network Connectivity Center spoke.
+     * 
+ */ + public void getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); + } + + /** + *
+     * Creates a Network Connectivity Center spoke.
+     * 
+ */ + public void createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSpokeMethod(), responseObserver); + } + + /** + *
+     * Updates the parameters of a Network Connectivity Center spoke.
+     * 
+ */ + public void updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSpokeMethod(), responseObserver); + } + + /** + *
+     * Deletes a Network Connectivity Center spoke.
+     * 
+ */ + public void deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSpokeMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListHubsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1.ListHubsResponse>( + this, METHODID_LIST_HUBS))) + .addMethod( + getGetHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.GetHubRequest, + com.google.cloud.networkconnectivity.v1.Hub>( + this, METHODID_GET_HUB))) + .addMethod( + getCreateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.CreateHubRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_HUB))) + .addMethod( + getUpdateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.UpdateHubRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_HUB))) + .addMethod( + getDeleteHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.DeleteHubRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_HUB))) + .addMethod( + getListSpokesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1.ListSpokesResponse>( + this, METHODID_LIST_SPOKES))) + .addMethod( + getGetSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1.Spoke>( + this, METHODID_GET_SPOKE))) + .addMethod( + getCreateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_SPOKE))) + .addMethod( + getUpdateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_SPOKE))) + .addMethod( + getDeleteSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_SPOKE))) + .build(); + } + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { + private HubServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + + /** + *
+     * Lists the Network Connectivity Center hubs associated with a given project.
+     * 
+ */ + public void listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details about a Network Connectivity Center hub.
+     * 
+ */ + public void getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new Network Connectivity Center hub in the specified project.
+     * 
+ */ + public void createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the description and/or labels of a Network Connectivity Center
+     * hub.
+     * 
+ */ + public void updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a Network Connectivity Center hub.
+     * 
+ */ + public void deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the Network Connectivity Center spokes in a specified project and
+     * location.
+     * 
+ */ + public void listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details about a Network Connectivity Center spoke.
+     * 
+ */ + public void getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a Network Connectivity Center spoke.
+     * 
+ */ + public void createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the parameters of a Network Connectivity Center spoke.
+     * 
+ */ + public void updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a Network Connectivity Center spoke.
+     * 
+ */ + public void deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static final class HubServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private HubServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists the Network Connectivity Center hubs associated with a given project.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.ListHubsResponse listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListHubsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details about a Network Connectivity Center hub.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.Hub getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new Network Connectivity Center hub in the specified project.
+     * 
+ */ + public com.google.longrunning.Operation createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the description and/or labels of a Network Connectivity Center
+     * hub.
+     * 
+ */ + public com.google.longrunning.Operation updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a Network Connectivity Center hub.
+     * 
+ */ + public com.google.longrunning.Operation deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists the Network Connectivity Center spokes in a specified project and
+     * location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.ListSpokesResponse listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSpokesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details about a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.Spoke getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSpokeMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.longrunning.Operation createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSpokeMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the parameters of a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.longrunning.Operation updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.longrunning.Operation deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static final class HubServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private HubServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Lists the Network Connectivity Center hubs associated with a given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listHubs( + com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details about a Network Connectivity Center hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getHub( + com.google.cloud.networkconnectivity.v1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new Network Connectivity Center hub in the specified project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createHub( + com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the description and/or labels of a Network Connectivity Center
+     * hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateHub( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a Network Connectivity Center hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteHub( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists the Network Connectivity Center spokes in a specified project and
+     * location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSpokes( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details about a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSpoke( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSpoke( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the parameters of a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSpoke( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSpoke( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_HUBS = 0; + private static final int METHODID_GET_HUB = 1; + private static final int METHODID_CREATE_HUB = 2; + private static final int METHODID_UPDATE_HUB = 3; + private static final int METHODID_DELETE_HUB = 4; + private static final int METHODID_LIST_SPOKES = 5; + private static final int METHODID_GET_SPOKE = 6; + private static final int METHODID_CREATE_SPOKE = 7; + private static final int METHODID_UPDATE_SPOKE = 8; + private static final int METHODID_DELETE_SPOKE = 9; + + 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 HubServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(HubServiceImplBase 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_HUBS: + serviceImpl.listHubs((com.google.cloud.networkconnectivity.v1.ListHubsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_HUB: + serviceImpl.getHub((com.google.cloud.networkconnectivity.v1.GetHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_HUB: + serviceImpl.createHub((com.google.cloud.networkconnectivity.v1.CreateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_HUB: + serviceImpl.updateHub((com.google.cloud.networkconnectivity.v1.UpdateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_HUB: + serviceImpl.deleteHub((com.google.cloud.networkconnectivity.v1.DeleteHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SPOKES: + serviceImpl.listSpokes((com.google.cloud.networkconnectivity.v1.ListSpokesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SPOKE: + serviceImpl.getSpoke((com.google.cloud.networkconnectivity.v1.GetSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SPOKE: + serviceImpl.createSpoke((com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SPOKE: + serviceImpl.updateSpoke((com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SPOKE: + serviceImpl.deleteSpoke((com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + HubServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("HubService"); + } + } + + private static final class HubServiceFileDescriptorSupplier + extends HubServiceBaseDescriptorSupplier { + HubServiceFileDescriptorSupplier() {} + } + + private static final class HubServiceMethodDescriptorSupplier + extends HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) + .addMethod(getListHubsMethod()) + .addMethod(getGetHubMethod()) + .addMethod(getCreateHubMethod()) + .addMethod(getUpdateHubMethod()) + .addMethod(getDeleteHubMethod()) + .addMethod(getListSpokesMethod()) + .addMethod(getGetSpokeMethod()) + .addMethod(getCreateSpokeMethod()) + .addMethod(getUpdateSpokeMethod()) + .addMethod(getDeleteSpokeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java new file mode 100644 index 000000000000..ea1de6f61b90 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java @@ -0,0 +1,81 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/common.proto + +package com.google.cloud.networkconnectivity.v1; + +public final class CommonProto { + private CommonProto() {} + 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_networkconnectivity_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/networkconnectivity/v1/co" + + "mmon.proto\022#google.cloud.networkconnecti" + + "vity.v1\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\032\037google/prot" + + "obuf/timestamp.proto\"\200\002\n\021OperationMetada" + + "ta\0224\n\013create_time\030\001 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.goo" + + "gle.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_me" + + "ssage\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellati" + + "on\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003B" + + "\327\003\n\'com.google.cloud.networkconnectivity" + + ".v1B\013CommonProtoP\001ZVgoogle.golang.org/ge" + + "nproto/googleapis/cloud/networkconnectiv" + + "ity/v1;networkconnectivity\252\002#Google.Clou" + + "d.NetworkConnectivity.V1\312\002#Google\\Cloud\\" + + "NetworkConnectivity\\V1\352\002&Google::Cloud::" + + "NetworkConnectivity::V1\352Az\n-compute.goog" + + "leapis.com/InterconnectAttachment\022Iproje" + + "cts/{project}/regions/{region}/interconn" + + "ectAttachments/{resource_id}\352AR\n\036compute" + + ".googleapis.com/Network\0220projects/{proje" + + "ct}/global/networks/{resource_id}b\006proto" + + "3" + }; + 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.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceDefinition); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java similarity index 69% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java index 4ed8eff83002..0cc58883b141 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * Request for
  * [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateHubRequest}
  */
-public final class CreateHubRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateHubRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.CreateHubRequest)
     CreateHubRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateHubRequest.newBuilder() to construct.
   private CreateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateHubRequest() {
     parent_ = "";
     hubId_ = "";
@@ -47,45 +29,38 @@ private CreateHubRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateHubRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.CreateHubRequest.class,
-            com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The parent resource.
    * 
* - * - * string parent = 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 @@ -94,31 +69,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 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 { @@ -127,18 +100,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int HUB_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object hubId_ = ""; /** - * - * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hubId. */ @java.lang.Override @@ -147,29 +116,29 @@ public java.lang.String getHubId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; } } /** - * - * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hubId. */ @java.lang.Override - public com.google.protobuf.ByteString getHubIdBytes() { + public com.google.protobuf.ByteString + getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hubId_ = b; return b; } else { @@ -180,16 +149,11 @@ public com.google.protobuf.ByteString getHubIdBytes() { public static final int HUB_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1.Hub hub_; /** - * - * *
    * Required. The initial values for a new hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ @java.lang.Override @@ -197,16 +161,11 @@ public boolean hasHub() { return hub_ != null; } /** - * - * *
    * Required. The initial values for a new hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ @java.lang.Override @@ -214,15 +173,11 @@ public com.google.cloud.networkconnectivity.v1.Hub getHub() { return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } /** - * - * *
    * Required. The initial values for a new hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { @@ -230,12 +185,9 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -252,7 +204,6 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -261,15 +212,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -286,15 +236,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -303,7 +254,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,7 +265,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -344,7 +295,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hubId_); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHub()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -357,21 +309,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.networkconnectivity.v1.CreateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.CreateHubRequest other = - (com.google.cloud.networkconnectivity.v1.CreateHubRequest) obj; + com.google.cloud.networkconnectivity.v1.CreateHubRequest other = (com.google.cloud.networkconnectivity.v1.CreateHubRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getHubId().equals(other.getHubId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getHubId() + .equals(other.getHubId())) return false; if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub().equals(other.getHub())) return false; + if (!getHub() + .equals(other.getHub())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -399,104 +354,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.CreateHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.CreateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub]
@@ -505,32 +452,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateHubRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.CreateHubRequest)
       com.google.cloud.networkconnectivity.v1.CreateHubRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.CreateHubRequest.class,
-              com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.CreateHubRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -547,9 +495,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
     }
 
     @java.lang.Override
@@ -568,11 +516,8 @@ public com.google.cloud.networkconnectivity.v1.CreateHubRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.CreateHubRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.CreateHubRequest result =
-          new com.google.cloud.networkconnectivity.v1.CreateHubRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1.CreateHubRequest result = new com.google.cloud.networkconnectivity.v1.CreateHubRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -586,7 +531,9 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateHubRequ
         result.hubId_ = hubId_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build();
+        result.hub_ = hubBuilder_ == null
+            ? hub_
+            : hubBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.requestId_ = requestId_;
@@ -597,39 +544,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateHubRequ
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.CreateHubRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateHubRequest) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateHubRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -637,8 +583,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.CreateHubRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.CreateHubRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1.CreateHubRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -683,37 +628,34 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                hubId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                requestId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              hubId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getHubFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              requestId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -723,27 +665,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent resource.
      * 
* - * - * string parent = 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; @@ -752,23 +689,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string parent = 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 { @@ -776,39 +710,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string 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() { @@ -818,23 +741,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -844,20 +761,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object hubId_ = ""; /** - * - * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hubId. */ public java.lang.String getHubId() { java.lang.Object ref = hubId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; @@ -866,21 +781,20 @@ public java.lang.String getHubId() { } } /** - * - * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hubId. */ - public com.google.protobuf.ByteString getHubIdBytes() { + public com.google.protobuf.ByteString + getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hubId_ = b; return b; } else { @@ -888,35 +802,28 @@ public com.google.protobuf.ByteString getHubIdBytes() { } } /** - * - * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The hubId to set. * @return This builder for chaining. */ - public Builder setHubId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHubId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hubId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearHubId() { @@ -926,21 +833,17 @@ public Builder clearHubId() { return this; } /** - * - * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for hubId to set. * @return This builder for chaining. */ - public Builder setHubIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHubIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hubId_ = value; bitField0_ |= 0x00000002; @@ -950,58 +853,39 @@ public Builder setHubIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networkconnectivity.v1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder> - hubBuilder_; + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> hubBuilder_; /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ public com.google.cloud.networkconnectivity.v1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } else { return hubBuilder_.getMessage(); } } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { @@ -1017,17 +901,14 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { + public Builder setHub( + com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { if (hubBuilder_ == null) { hub_ = builderForValue.build(); } else { @@ -1038,21 +919,17 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub.Builder builde return this; } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && hub_ != null - && hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + hub_ != null && + hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -1065,15 +942,11 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1086,15 +959,11 @@ public Builder clearHub() { return this; } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000004; @@ -1102,48 +971,36 @@ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { return getHubFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? + com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } } /** - * - * *
      * Required. The initial values for a new hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder>( - getHub(), getParentForChildren(), isClean()); + hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder>( + getHub(), + getParentForChildren(), + isClean()); hub_ = null; } return hubBuilder_; @@ -1151,8 +1008,6 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1169,13 +1024,13 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1184,8 +1039,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1202,14 +1055,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1217,8 +1071,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1235,22 +1087,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1267,7 +1115,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1277,8 +1124,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1295,23 +1140,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1321,12 +1164,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.CreateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.CreateHubRequest) private static final com.google.cloud.networkconnectivity.v1.CreateHubRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.CreateHubRequest(); } @@ -1335,27 +1178,27 @@ public static com.google.cloud.networkconnectivity.v1.CreateHubRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1370,4 +1213,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.CreateHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java similarity index 69% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java index 1147de9a80e2..a186543f7ef5 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java @@ -1,126 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface CreateHubRequestOrBuilder - extends +public interface CreateHubRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.CreateHubRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hubId. */ java.lang.String getHubId(); /** - * - * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hubId. */ - com.google.protobuf.ByteString getHubIdBytes(); + com.google.protobuf.ByteString + getHubIdBytes(); /** - * - * *
    * Required. The initial values for a new hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ boolean hasHub(); /** - * - * *
    * Required. The initial values for a new hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ com.google.cloud.networkconnectivity.v1.Hub getHub(); /** - * - * *
    * Required. The initial values for a new hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder(); /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -137,13 +91,10 @@ public interface CreateHubRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -160,8 +111,8 @@ public interface CreateHubRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java similarity index 68% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java index 873790ebef0c..60ed284ffeda 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * The request for
  * [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateSpokeRequest}
  */
-public final class CreateSpokeRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateSpokeRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.CreateSpokeRequest)
     CreateSpokeRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateSpokeRequest.newBuilder() to construct.
   private CreateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateSpokeRequest() {
     parent_ = "";
     spokeId_ = "";
@@ -46,45 +28,38 @@ private CreateSpokeRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateSpokeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class,
-            com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The parent resource.
    * 
* - * - * string parent = 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 @@ -93,31 +68,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 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 { @@ -126,18 +99,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SPOKE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object spokeId_ = ""; /** - * - * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The spokeId. */ @java.lang.Override @@ -146,29 +115,29 @@ public java.lang.String getSpokeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; } } /** - * - * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for spokeId. */ @java.lang.Override - public com.google.protobuf.ByteString getSpokeIdBytes() { + public com.google.protobuf.ByteString + getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); spokeId_ = b; return b; } else { @@ -179,16 +148,11 @@ public com.google.protobuf.ByteString getSpokeIdBytes() { public static final int SPOKE_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1.Spoke spoke_; /** - * - * *
    * Required. The initial values for a new spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ @java.lang.Override @@ -196,49 +160,33 @@ public boolean hasSpoke() { return spoke_ != null; } /** - * - * *
    * Required. The initial values for a new spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } /** - * - * *
    * Required. The initial values for a new spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -255,7 +203,6 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -264,15 +211,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -289,15 +235,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -306,7 +253,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -318,7 +264,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -347,7 +294,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, spokeId_); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSpoke()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -360,21 +308,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.networkconnectivity.v1.CreateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest other = - (com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest other = (com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getSpokeId().equals(other.getSpokeId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getSpokeId() + .equals(other.getSpokeId())) return false; if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke().equals(other.getSpoke())) return false; + if (!getSpoke() + .equals(other.getSpoke())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -402,104 +353,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for
    * [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke].
@@ -507,32 +450,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateSpokeRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.CreateSpokeRequest)
       com.google.cloud.networkconnectivity.v1.CreateSpokeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class,
-              com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -549,9 +493,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -570,11 +514,8 @@ public com.google.cloud.networkconnectivity.v1.CreateSpokeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.CreateSpokeRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.CreateSpokeRequest result =
-          new com.google.cloud.networkconnectivity.v1.CreateSpokeRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1.CreateSpokeRequest result = new com.google.cloud.networkconnectivity.v1.CreateSpokeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -588,7 +529,9 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateSpokeRe
         result.spokeId_ = spokeId_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build();
+        result.spoke_ = spokeBuilder_ == null
+            ? spoke_
+            : spokeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.requestId_ = requestId_;
@@ -599,39 +542,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateSpokeRe
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateSpokeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -639,8 +581,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -685,37 +626,34 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                spokeId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                requestId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              spokeId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getSpokeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              requestId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -725,27 +663,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent resource.
      * 
* - * - * string parent = 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; @@ -754,23 +687,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string parent = 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 { @@ -778,39 +708,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string 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() { @@ -820,23 +739,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -846,20 +759,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object spokeId_ = ""; /** - * - * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The spokeId. */ public java.lang.String getSpokeId() { java.lang.Object ref = spokeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; @@ -868,21 +779,20 @@ public java.lang.String getSpokeId() { } } /** - * - * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for spokeId. */ - public com.google.protobuf.ByteString getSpokeIdBytes() { + public com.google.protobuf.ByteString + getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); spokeId_ = b; return b; } else { @@ -890,35 +800,28 @@ public com.google.protobuf.ByteString getSpokeIdBytes() { } } /** - * - * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpokeId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } spokeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSpokeId() { @@ -928,21 +831,17 @@ public Builder clearSpokeId() { return this; } /** - * - * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpokeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); spokeId_ = value; bitField0_ |= 0x00000002; @@ -952,58 +851,39 @@ public Builder setSpokeIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networkconnectivity.v1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> - spokeBuilder_; + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> spokeBuilder_; /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } else { return spokeBuilder_.getMessage(); } } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { @@ -1019,17 +899,14 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { + public Builder setSpoke( + com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { if (spokeBuilder_ == null) { spoke_ = builderForValue.build(); } else { @@ -1040,21 +917,17 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke.Builder bu return this; } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && spoke_ != null - && spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + spoke_ != null && + spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -1067,15 +940,11 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1088,15 +957,11 @@ public Builder clearSpoke() { return this; } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000004; @@ -1104,48 +969,36 @@ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { return getSpokeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? + com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } } /** - * - * *
      * Required. The initial values for a new spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( - getSpoke(), getParentForChildren(), isClean()); + spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( + getSpoke(), + getParentForChildren(), + isClean()); spoke_ = null; } return spokeBuilder_; @@ -1153,8 +1006,6 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder( private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1171,13 +1022,13 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1186,8 +1037,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1204,14 +1053,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1219,8 +1069,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1237,22 +1085,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1269,7 +1113,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1279,8 +1122,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1297,23 +1138,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1323,12 +1162,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.CreateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.CreateSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.CreateSpokeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.CreateSpokeRequest(); } @@ -1337,27 +1176,27 @@ public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1372,4 +1211,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.CreateSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java similarity index 69% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java index 338f9447116a..3a19585101aa 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java @@ -1,126 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface CreateSpokeRequestOrBuilder - extends +public interface CreateSpokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.CreateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The spokeId. */ java.lang.String getSpokeId(); /** - * - * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for spokeId. */ - com.google.protobuf.ByteString getSpokeIdBytes(); + com.google.protobuf.ByteString + getSpokeIdBytes(); /** - * - * *
    * Required. The initial values for a new spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ boolean hasSpoke(); /** - * - * *
    * Required. The initial values for a new spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ com.google.cloud.networkconnectivity.v1.Spoke getSpoke(); /** - * - * *
    * Required. The initial values for a new spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(); /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -137,13 +91,10 @@ public interface CreateSpokeRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -160,8 +111,8 @@ public interface CreateSpokeRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java index a28e0d689c24..7cf1f77cac25 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * The request for
  * [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteHubRequest}
  */
-public final class DeleteHubRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteHubRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.DeleteHubRequest)
     DeleteHubRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteHubRequest.newBuilder() to construct.
   private DeleteHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteHubRequest() {
     name_ = "";
     requestId_ = "";
@@ -45,45 +27,38 @@ private DeleteHubRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteHubRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class,
-            com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,31 +67,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,12 +98,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -147,7 +117,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -156,15 +125,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -181,15 +149,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -198,7 +167,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +178,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -240,16 +209,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1.DeleteHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.DeleteHubRequest other = - (com.google.cloud.networkconnectivity.v1.DeleteHubRequest) obj; + com.google.cloud.networkconnectivity.v1.DeleteHubRequest other = (com.google.cloud.networkconnectivity.v1.DeleteHubRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -271,104 +241,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.DeleteHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for
    * [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub].
@@ -376,32 +338,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteHubRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.DeleteHubRequest)
       com.google.cloud.networkconnectivity.v1.DeleteHubRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class,
-              com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.DeleteHubRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -412,9 +375,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
     }
 
     @java.lang.Override
@@ -433,11 +396,8 @@ public com.google.cloud.networkconnectivity.v1.DeleteHubRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.DeleteHubRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.DeleteHubRequest result =
-          new com.google.cloud.networkconnectivity.v1.DeleteHubRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1.DeleteHubRequest result = new com.google.cloud.networkconnectivity.v1.DeleteHubRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -456,39 +416,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.DeleteHubRequ
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.DeleteHubRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteHubRequest) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteHubRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -496,8 +455,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.DeleteHubRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.DeleteHubRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1.DeleteHubRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -534,25 +492,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                requestId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              requestId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -562,27 +517,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -591,23 +541,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -615,39 +562,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -657,23 +593,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -683,8 +613,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -701,13 +629,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -716,8 +644,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -734,14 +660,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -749,8 +676,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -767,22 +692,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -799,7 +720,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -809,8 +729,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -827,23 +745,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -853,12 +769,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.DeleteHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.DeleteHubRequest) private static final com.google.cloud.networkconnectivity.v1.DeleteHubRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.DeleteHubRequest(); } @@ -867,27 +783,27 @@ public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -902,4 +818,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.DeleteHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java similarity index 71% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java index 3a53452ec2c6..926e1844c73f 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface DeleteHubRequestOrBuilder - extends +public interface DeleteHubRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.DeleteHubRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -71,13 +44,10 @@ public interface DeleteHubRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -94,8 +64,8 @@ public interface DeleteHubRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java similarity index 71% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java index d78f1befbd1a..bde74b026fa3 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * The request for
  * [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteSpokeRequest}
  */
-public final class DeleteSpokeRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteSpokeRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.DeleteSpokeRequest)
     DeleteSpokeRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteSpokeRequest.newBuilder() to construct.
   private DeleteSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteSpokeRequest() {
     name_ = "";
     requestId_ = "";
@@ -45,45 +27,38 @@ private DeleteSpokeRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteSpokeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class,
-            com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,31 +67,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,12 +98,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -147,7 +117,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -156,15 +125,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -181,15 +149,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -198,7 +167,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +178,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -240,16 +209,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest other = - (com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest other = (com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -271,104 +241,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for
    * [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke].
@@ -376,32 +338,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteSpokeRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.DeleteSpokeRequest)
       com.google.cloud.networkconnectivity.v1.DeleteSpokeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class,
-              com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -412,9 +375,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -433,11 +396,8 @@ public com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest result =
-          new com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest result = new com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -456,39 +416,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.DeleteSpokeRe
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -496,8 +455,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -534,25 +492,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                requestId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              requestId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -562,27 +517,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -591,23 +541,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -615,39 +562,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -657,23 +593,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -683,8 +613,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -701,13 +629,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -716,8 +644,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -734,14 +660,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -749,8 +676,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -767,22 +692,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -799,7 +720,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -809,8 +729,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -827,23 +745,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -853,12 +769,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(); } @@ -867,27 +783,27 @@ public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -902,4 +818,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java similarity index 71% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java index 60ff849c2aea..7e5685f9491b 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface DeleteSpokeRequestOrBuilder - extends +public interface DeleteSpokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -71,13 +44,10 @@ public interface DeleteSpokeRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -94,8 +64,8 @@ public interface DeleteSpokeRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java similarity index 61% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java index ca2d6281af30..09dd53c08e9c 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * Request for
  * [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub]
@@ -29,61 +12,53 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.GetHubRequest}
  */
-public final class GetHubRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetHubRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetHubRequest)
     GetHubRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetHubRequest.newBuilder() to construct.
   private GetHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetHubRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetHubRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.GetHubRequest.class,
-            com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the hub resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,31 +67,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the hub resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -161,15 +134,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.networkconnectivity.v1.GetHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.GetHubRequest other = - (com.google.cloud.networkconnectivity.v1.GetHubRequest) obj; + com.google.cloud.networkconnectivity.v1.GetHubRequest other = (com.google.cloud.networkconnectivity.v1.GetHubRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,104 +162,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.GetHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.GetHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub]
@@ -295,32 +260,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.GetHubRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetHubRequest)
       com.google.cloud.networkconnectivity.v1.GetHubRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.GetHubRequest.class,
-              com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.GetHubRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -330,9 +296,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
     }
 
     @java.lang.Override
@@ -351,11 +317,8 @@ public com.google.cloud.networkconnectivity.v1.GetHubRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.GetHubRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.GetHubRequest result =
-          new com.google.cloud.networkconnectivity.v1.GetHubRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1.GetHubRequest result = new com.google.cloud.networkconnectivity.v1.GetHubRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -371,39 +334,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.GetHubRequest
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.GetHubRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.GetHubRequest) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.GetHubRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -411,8 +373,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.GetHubRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.GetHubRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1.GetHubRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -444,19 +405,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -466,27 +425,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -495,23 +449,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -519,39 +470,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -561,32 +501,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -596,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.GetHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetHubRequest) private static final com.google.cloud.networkconnectivity.v1.GetHubRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.GetHubRequest(); } @@ -610,27 +544,27 @@ public static com.google.cloud.networkconnectivity.v1.GetHubRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -645,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.GetHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java new file mode 100644 index 000000000000..4517f9b39e40 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/hub.proto + +package com.google.cloud.networkconnectivity.v1; + +public interface GetHubRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetHubRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the hub resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the hub resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java similarity index 61% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java index 7fc42f029d5d..10f760e5129d 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * The request for
  * [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke].
@@ -28,61 +11,53 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.GetSpokeRequest}
  */
-public final class GetSpokeRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetSpokeRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetSpokeRequest)
     GetSpokeRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetSpokeRequest.newBuilder() to construct.
   private GetSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetSpokeRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetSpokeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class,
-            com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the spoke resource.
    * 
* - * - * string name = 1 [(.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 @@ -91,31 +66,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the spoke resource.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -124,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,7 +108,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -160,15 +133,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.networkconnectivity.v1.GetSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.GetSpokeRequest other = - (com.google.cloud.networkconnectivity.v1.GetSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.GetSpokeRequest other = (com.google.cloud.networkconnectivity.v1.GetSpokeRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -188,104 +161,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.GetSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for
    * [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke].
@@ -293,32 +258,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.GetSpokeRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetSpokeRequest)
       com.google.cloud.networkconnectivity.v1.GetSpokeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class,
-              com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.GetSpokeRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -328,9 +294,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -349,11 +315,8 @@ public com.google.cloud.networkconnectivity.v1.GetSpokeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.GetSpokeRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.GetSpokeRequest result =
-          new com.google.cloud.networkconnectivity.v1.GetSpokeRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1.GetSpokeRequest result = new com.google.cloud.networkconnectivity.v1.GetSpokeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -369,39 +332,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.GetSpokeReque
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.GetSpokeRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.GetSpokeRequest) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.GetSpokeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -409,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.GetSpokeRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.GetSpokeRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1.GetSpokeRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -442,19 +403,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -464,27 +423,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the spoke resource.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -493,23 +447,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the spoke resource.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -517,39 +468,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the spoke resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the spoke resource.
      * 
* - * - * string 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() { @@ -559,32 +499,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the spoke resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +528,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.GetSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.GetSpokeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.GetSpokeRequest(); } @@ -608,27 +542,27 @@ public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +577,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.GetSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java new file mode 100644 index 000000000000..3293c5872324 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/hub.proto + +package com.google.cloud.networkconnectivity.v1; + +public interface GetSpokeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetSpokeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the spoke resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the spoke 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java index 846ccda2f133..d6abae1373af 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * A Network Connectivity Center hub is a collection of spokes. A single hub
  * can contain spokes from multiple regions. However, if any of a hub's spokes
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.Hub}
  */
-public final class Hub extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Hub extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.Hub)
     HubOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Hub.newBuilder() to construct.
   private Hub(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Hub() {
     name_ = "";
     description_ = "";
@@ -51,48 +33,45 @@ private Hub() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Hub();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.Hub.class,
-            com.google.cloud.networkconnectivity.v1.Hub.Builder.class);
+            com.google.cloud.networkconnectivity.v1.Hub.class, com.google.cloud.networkconnectivity.v1.Hub.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -100,7 +79,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -109,15 +87,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; } } /** - * - * *
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -125,15 +102,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -144,15 +122,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the hub was created.
    * 
* - * .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 @@ -160,15 +134,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the hub was created.
    * 
* - * .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 @@ -176,14 +146,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the hub was created.
    * 
* - * .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() { @@ -193,15 +160,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time the hub was last updated.
    * 
* - * .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 @@ -209,15 +172,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time the hub was last updated.
    * 
* - * .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 @@ -225,14 +184,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time the hub was last updated.
    * 
* - * .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() { @@ -240,34 +196,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_Hub_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.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - 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_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -277,21 +231,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 4;
    */
   @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();
   }
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -305,8 +258,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -316,19 +267,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+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;
   }
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -338,11 +287,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @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();
     }
@@ -350,18 +299,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   public static final int DESCRIPTION_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object description_ = "";
   /**
-   *
-   *
    * 
    * An optional description of the hub.
    * 
* * string description = 5; - * * @return The description. */ @java.lang.Override @@ -370,29 +315,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * An optional description of the hub.
    * 
* * string description = 5; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -401,12 +346,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int UNIQUE_ID_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** - * - * *
    * Output only. The Google-generated UUID for the hub. This value is unique
    * across all hub resources. If a hub is deleted and another with the same
@@ -414,7 +356,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ @java.lang.Override @@ -423,15 +364,14 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** - * - * *
    * Output only. The Google-generated UUID for the hub. This value is unique
    * across all hub resources. If a hub is deleted and another with the same
@@ -439,15 +379,16 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -458,49 +399,33 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; /** - * - * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = - com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { + com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } public static final int ROUTING_VPCS_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private java.util.List routingVpcs_; /** - * - * *
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -514,8 +439,6 @@ public java.util.List getRou
     return routingVpcs_;
   }
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -525,13 +448,11 @@ public java.util.List getRou
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getRoutingVpcsOrBuilderList() {
     return routingVpcs_;
   }
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -545,8 +466,6 @@ public int getRoutingVpcsCount() {
     return routingVpcs_.size();
   }
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -560,8 +479,6 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int ind
     return routingVpcs_.get(index);
   }
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -577,7 +494,6 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -589,7 +505,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.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_);
     }
@@ -599,8 +516,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (updateTime_ != null) {
       output.writeMessage(3, getUpdateTime());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        4);
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_);
     }
@@ -626,20 +547,22 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime());
-    }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getUpdateTime());
+    }
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(4, labels__);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_);
@@ -648,10 +571,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, uniqueId_);
     }
     if (state_ != com.google.cloud.networkconnectivity.v1.State.STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(9, state_);
     }
     for (int i = 0; i < routingVpcs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, routingVpcs_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(10, routingVpcs_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -661,28 +586,34 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.networkconnectivity.v1.Hub)) {
       return super.equals(obj);
     }
-    com.google.cloud.networkconnectivity.v1.Hub other =
-        (com.google.cloud.networkconnectivity.v1.Hub) obj;
+    com.google.cloud.networkconnectivity.v1.Hub other = (com.google.cloud.networkconnectivity.v1.Hub) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime().equals(other.getCreateTime())) return false;
+      if (!getCreateTime()
+          .equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
-    }
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
-    if (!getDescription().equals(other.getDescription())) return false;
-    if (!getUniqueId().equals(other.getUniqueId())) return false;
+      if (!getUpdateTime()
+          .equals(other.getUpdateTime())) return false;
+    }
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
+    if (!getDescription()
+        .equals(other.getDescription())) return false;
+    if (!getUniqueId()
+        .equals(other.getUniqueId())) return false;
     if (state_ != other.state_) return false;
-    if (!getRoutingVpcsList().equals(other.getRoutingVpcsList())) return false;
+    if (!getRoutingVpcsList()
+        .equals(other.getRoutingVpcsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -723,104 +654,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub 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.networkconnectivity.v1.Hub parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.networkconnectivity.v1.Hub parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.networkconnectivity.v1.Hub parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.Hub prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 Connectivity Center hub is a collection of spokes. A single hub
    * can contain spokes from multiple regions. However, if any of a hub's spokes
@@ -831,52 +755,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.Hub}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.Hub)
       com.google.cloud.networkconnectivity.v1.HubOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.Hub.class,
-              com.google.cloud.networkconnectivity.v1.Hub.Builder.class);
+              com.google.cloud.networkconnectivity.v1.Hub.class, com.google.cloud.networkconnectivity.v1.Hub.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.Hub.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -907,9 +834,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
     }
 
     @java.lang.Override
@@ -928,12 +855,9 @@ public com.google.cloud.networkconnectivity.v1.Hub build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.Hub buildPartial() {
-      com.google.cloud.networkconnectivity.v1.Hub result =
-          new com.google.cloud.networkconnectivity.v1.Hub(this);
+      com.google.cloud.networkconnectivity.v1.Hub result = new com.google.cloud.networkconnectivity.v1.Hub(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -956,10 +880,14 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Hub result) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -980,39 +908,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Hub result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.Hub) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.Hub) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.Hub)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1032,7 +959,8 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Hub other) {
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -1065,10 +993,9 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Hub other) {
             routingVpcsBuilder_ = null;
             routingVpcs_ = other.routingVpcs_;
             bitField0_ = (bitField0_ & ~0x00000080);
-            routingVpcsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getRoutingVpcsFieldBuilder()
-                    : null;
+            routingVpcsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getRoutingVpcsFieldBuilder() : null;
           } else {
             routingVpcsBuilder_.addAllMessages(other.routingVpcs_);
           }
@@ -1100,75 +1027,68 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 66:
-              {
-                uniqueId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 66
-            case 72:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 72
-            case 82:
-              {
-                com.google.cloud.networkconnectivity.v1.RoutingVPC m =
-                    input.readMessage(
-                        com.google.cloud.networkconnectivity.v1.RoutingVPC.parser(),
-                        extensionRegistry);
-                if (routingVpcsBuilder_ == null) {
-                  ensureRoutingVpcsIsMutable();
-                  routingVpcs_.add(m);
-                } else {
-                  routingVpcsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 82
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 66: {
+              uniqueId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 66
+            case 72: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 72
+            case 82: {
+              com.google.cloud.networkconnectivity.v1.RoutingVPC m =
+                  input.readMessage(
+                      com.google.cloud.networkconnectivity.v1.RoutingVPC.parser(),
+                      extensionRegistry);
+              if (routingVpcsBuilder_ == null) {
+                ensureRoutingVpcsIsMutable();
+                routingVpcs_.add(m);
+              } else {
+                routingVpcsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 82
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1178,13 +1098,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1192,13 +1109,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1207,8 +1124,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1216,14 +1131,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1231,8 +1147,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1240,22 +1154,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1263,7 +1173,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1273,8 +1182,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1282,14 +1189,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1299,58 +1204,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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) { @@ -1366,17 +1252,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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(); } else { @@ -1387,21 +1270,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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 (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1414,15 +1293,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1435,15 +1310,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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() { bitField0_ |= 0x00000002; @@ -1451,48 +1322,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the hub was created.
      * 
* - * - * .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_; @@ -1500,58 +1359,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .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) { @@ -1567,17 +1407,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .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(); } else { @@ -1588,21 +1425,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .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 (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1615,15 +1448,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1636,15 +1465,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .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() { bitField0_ |= 0x00000004; @@ -1652,66 +1477,56 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time the hub was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1720,13 +1535,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1736,21 +1548,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 4;
      */
     @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();
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1764,8 +1575,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1775,19 +1584,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+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;
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1797,25 +1604,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @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();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1824,22 +1629,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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() {
       bitField0_ |= 0x00000008;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1848,20 +1654,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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);
+    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);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1870,28 +1673,28 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 4;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.lang.Object description_ = "";
     /**
-     *
-     *
      * 
      * An optional description of the hub.
      * 
* * string description = 5; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1900,21 +1703,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * An optional description of the hub.
      * 
* * string description = 5; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1922,35 +1724,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * An optional description of the hub.
      * 
* * string description = 5; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * An optional description of the hub.
      * 
* * string description = 5; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1960,21 +1755,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * An optional description of the hub.
      * 
* * string description = 5; - * * @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(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -1984,8 +1775,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object uniqueId_ = ""; /** - * - * *
      * Output only. The Google-generated UUID for the hub. This value is unique
      * across all hub resources. If a hub is deleted and another with the same
@@ -1993,13 +1782,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -2008,8 +1797,6 @@ public java.lang.String getUniqueId() { } } /** - * - * *
      * Output only. The Google-generated UUID for the hub. This value is unique
      * across all hub resources. If a hub is deleted and another with the same
@@ -2017,14 +1804,15 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -2032,8 +1820,6 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { } } /** - * - * *
      * Output only. The Google-generated UUID for the hub. This value is unique
      * across all hub resources. If a hub is deleted and another with the same
@@ -2041,22 +1827,18 @@ public com.google.protobuf.ByteString getUniqueIdBytes() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uniqueId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Output only. The Google-generated UUID for the hub. This value is unique
      * across all hub resources. If a hub is deleted and another with the same
@@ -2064,7 +1846,6 @@ public Builder setUniqueId(java.lang.String value) {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -2074,8 +1855,6 @@ public Builder clearUniqueId() { return this; } /** - * - * *
      * Output only. The Google-generated UUID for the hub. This value is unique
      * across all hub resources. If a hub is deleted and another with the same
@@ -2083,14 +1862,12 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000020; @@ -2100,33 +1877,22 @@ public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2137,35 +1903,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = - com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2179,16 +1934,11 @@ public Builder setState(com.google.cloud.networkconnectivity.v1.State value) { return this; } /** - * - * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -2199,26 +1949,18 @@ public Builder clearState() { } private java.util.List routingVpcs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRoutingVpcsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - routingVpcs_ = - new java.util.ArrayList( - routingVpcs_); + routingVpcs_ = new java.util.ArrayList(routingVpcs_); bitField0_ |= 0x00000080; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.RoutingVPC, - com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, - com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder> - routingVpcsBuilder_; + com.google.cloud.networkconnectivity.v1.RoutingVPC, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder> routingVpcsBuilder_; /** - * - * *
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2235,8 +1977,6 @@ public java.util.List getRou
       }
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2253,8 +1993,6 @@ public int getRoutingVpcsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2271,8 +2009,6 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int ind
       }
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2296,8 +2032,6 @@ public Builder setRoutingVpcs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2318,8 +2052,6 @@ public Builder setRoutingVpcs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2342,8 +2074,6 @@ public Builder addRoutingVpcs(com.google.cloud.networkconnectivity.v1.RoutingVPC
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2367,8 +2097,6 @@ public Builder addRoutingVpcs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2389,8 +2117,6 @@ public Builder addRoutingVpcs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2411,8 +2137,6 @@ public Builder addRoutingVpcs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2425,7 +2149,8 @@ public Builder addAllRoutingVpcs(
         java.lang.Iterable values) {
       if (routingVpcsBuilder_ == null) {
         ensureRoutingVpcsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, routingVpcs_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, routingVpcs_);
         onChanged();
       } else {
         routingVpcsBuilder_.addAllMessages(values);
@@ -2433,8 +2158,6 @@ public Builder addAllRoutingVpcs(
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2454,8 +2177,6 @@ public Builder clearRoutingVpcs() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2475,8 +2196,6 @@ public Builder removeRoutingVpcs(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2490,8 +2209,6 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder getRoutingVpcs
       return getRoutingVpcsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2503,14 +2220,11 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder getRoutingVpcs
     public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder(
         int index) {
       if (routingVpcsBuilder_ == null) {
-        return routingVpcs_.get(index);
-      } else {
+        return routingVpcs_.get(index);  } else {
         return routingVpcsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2519,8 +2233,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
      *
      * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
      */
-    public java.util.List
-        getRoutingVpcsOrBuilderList() {
+    public java.util.List 
+         getRoutingVpcsOrBuilderList() {
       if (routingVpcsBuilder_ != null) {
         return routingVpcsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2528,8 +2242,6 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
       }
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2539,12 +2251,10 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
      * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
      */
     public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcsBuilder() {
-      return getRoutingVpcsFieldBuilder()
-          .addBuilder(com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
+      return getRoutingVpcsFieldBuilder().addBuilder(
+          com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2555,13 +2265,10 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcs
      */
     public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcsBuilder(
         int index) {
-      return getRoutingVpcsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
+      return getRoutingVpcsFieldBuilder().addBuilder(
+          index, com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2570,30 +2277,27 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcs
      *
      * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
      */
-    public java.util.List
-        getRoutingVpcsBuilderList() {
+    public java.util.List 
+         getRoutingVpcsBuilderList() {
       return getRoutingVpcsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.networkconnectivity.v1.RoutingVPC,
-            com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder,
-            com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder>
+        com.google.cloud.networkconnectivity.v1.RoutingVPC, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder> 
         getRoutingVpcsFieldBuilder() {
       if (routingVpcsBuilder_ == null) {
-        routingVpcsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.networkconnectivity.v1.RoutingVPC,
-                com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder,
-                com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder>(
-                routingVpcs_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean());
+        routingVpcsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.networkconnectivity.v1.RoutingVPC, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder>(
+                routingVpcs_,
+                ((bitField0_ & 0x00000080) != 0),
+                getParentForChildren(),
+                isClean());
         routingVpcs_ = null;
       }
       return routingVpcsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2603,12 +2307,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.Hub)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.Hub)
   private static final com.google.cloud.networkconnectivity.v1.Hub DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.Hub();
   }
@@ -2617,27 +2321,27 @@ public static com.google.cloud.networkconnectivity.v1.Hub getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Hub parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Hub parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2652,4 +2356,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.networkconnectivity.v1.Hub getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
similarity index 100%
rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
similarity index 78%
rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
index bfdd93c1ac4d..425f1e0e55fb 100644
--- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
+++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.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/networkconnectivity/v1/hub.proto
 
 package com.google.cloud.networkconnectivity.v1;
 
-public interface HubOrBuilder
-    extends
+public interface HubOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.Hub)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -33,13 +15,10 @@ public interface HubOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -47,90 +26,66 @@ public interface HubOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The time the hub was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the hub was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the hub was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the hub was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time the hub was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time the hub was last updated.
    * 
* - * .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(); /** - * - * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -141,8 +96,6 @@ public interface HubOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -151,13 +104,15 @@ public interface HubOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -166,10 +121,9 @@ public interface HubOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -179,13 +133,11 @@ public interface HubOrBuilder
    * map<string, string> labels = 4;
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -194,36 +146,30 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * An optional description of the hub.
    * 
* * string description = 5; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * An optional description of the hub.
    * 
* * string description = 5; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The Google-generated UUID for the hub. This value is unique
    * across all hub resources. If a hub is deleted and another with the same
@@ -231,13 +177,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ java.lang.String getUniqueId(); /** - * - * *
    * Output only. The Google-generated UUID for the hub. This value is unique
    * across all hub resources. If a hub is deleted and another with the same
@@ -245,43 +188,31 @@ java.lang.String getLabelsOrDefault(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString getUniqueIdBytes(); + com.google.protobuf.ByteString + getUniqueIdBytes(); /** - * - * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.networkconnectivity.v1.State getState(); /** - * - * *
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -290,10 +221,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
-  java.util.List getRoutingVpcsList();
+  java.util.List 
+      getRoutingVpcsList();
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -304,8 +234,6 @@ java.lang.String getLabelsOrDefault(
    */
   com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int index);
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -316,8 +244,6 @@ java.lang.String getLabelsOrDefault(
    */
   int getRoutingVpcsCount();
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -326,11 +252,9 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
-  java.util.List
+  java.util.List 
       getRoutingVpcsOrBuilderList();
   /**
-   *
-   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -339,5 +263,6 @@ java.lang.String getLabelsOrDefault(
    *
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
-  com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder(int index);
+  com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder(
+      int index);
 }
diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java
new file mode 100644
index 000000000000..2a88f7200aa9
--- /dev/null
+++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java
@@ -0,0 +1,477 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/networkconnectivity/v1/hub.proto
+
+package com.google.cloud.networkconnectivity.v1;
+
+public final class HubProto {
+  private HubProto() {}
+  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_networkconnectivity_v1_Hub_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_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/networkconnectivity/v1/hu" +
+      "b.proto\022#google.cloud.networkconnectivit" +
+      "y.v1\032\034google/api/annotations.proto\032\027goog" +
+      "le/api/client.proto\032\037google/api/field_be" +
+      "havior.proto\032\031google/api/resource.proto\032" +
+      "#google/longrunning/operations.proto\032 go" +
+      "ogle/protobuf/field_mask.proto\032\037google/p" +
+      "rotobuf/timestamp.proto\"\212\004\n\003Hub\022\021\n\004name\030" +
+      "\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132\032.google" +
+      ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" +
+      "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022D" +
+      "\n\006labels\030\004 \003(\01324.google.cloud.networkcon" +
+      "nectivity.v1.Hub.LabelsEntry\022\023\n\013descript" +
+      "ion\030\005 \001(\t\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022>\n\005sta" +
+      "te\030\t \001(\0162*.google.cloud.networkconnectiv" +
+      "ity.v1.StateB\003\340A\003\022E\n\014routing_vpcs\030\n \003(\0132" +
+      "/.google.cloud.networkconnectivity.v1.Ro" +
+      "utingVPC\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" +
+      "value\030\002 \001(\t:\0028\001:[\352AX\n&networkconnectivit" +
+      "y.googleapis.com/Hub\022.projects/{project}" +
+      "/locations/global/hubs/{hub}\"\177\n\nRoutingV" +
+      "PC\0220\n\003uri\030\001 \001(\tB#\372A \n\036compute.googleapis" +
+      ".com/Network\022?\n2required_for_new_site_to" +
+      "_site_data_transfer_spokes\030\002 \001(\010B\003\340A\003\"\276\006" +
+      "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create_tim" +
+      "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" +
+      "\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf." +
+      "TimestampB\003\340A\003\022F\n\006labels\030\004 \003(\01326.google." +
+      "cloud.networkconnectivity.v1.Spoke.Label" +
+      "sEntry\022\023\n\013description\030\005 \001(\t\022;\n\003hub\030\006 \001(\t" +
+      "B.\340A\005\372A(\n&networkconnectivity.googleapis" +
+      ".com/Hub\022Q\n\022linked_vpn_tunnels\030\021 \001(\01325.g" +
+      "oogle.cloud.networkconnectivity.v1.Linke" +
+      "dVpnTunnels\022k\n\037linked_interconnect_attac" +
+      "hments\030\022 \001(\0132B.google.cloud.networkconne" +
+      "ctivity.v1.LinkedInterconnectAttachments" +
+      "\022n\n!linked_router_appliance_instances\030\023 " +
+      "\001(\0132C.google.cloud.networkconnectivity.v" +
+      "1.LinkedRouterApplianceInstances\022\026\n\tuniq" +
+      "ue_id\030\013 \001(\tB\003\340A\003\022>\n\005state\030\017 \001(\0162*.google" +
+      ".cloud.networkconnectivity.v1.StateB\003\340A\003" +
+      "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " +
+      "\001(\t:\0028\001:e\352Ab\n(networkconnectivity.google" +
+      "apis.com/Spoke\0226projects/{project}/locat" +
+      "ions/{location}/spokes/{spoke}\"\225\001\n\017ListH" +
+      "ubsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" +
+      "tions.googleapis.com/Location\022\021\n\tpage_si" +
+      "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004" +
+      " \001(\t\022\020\n\010order_by\030\005 \001(\t\"x\n\020ListHubsRespon" +
+      "se\0226\n\004hubs\030\001 \003(\0132(.google.cloud.networkc" +
+      "onnectivity.v1.Hub\022\027\n\017next_page_token\030\002 " +
+      "\001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\rGetHubReques" +
+      "t\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&networkconnecti" +
+      "vity.googleapis.com/Hub\"\267\001\n\020CreateHubReq" +
+      "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." +
+      "googleapis.com/Location\022\023\n\006hub_id\030\002 \001(\tB" +
+      "\003\340A\002\022:\n\003hub\030\003 \001(\0132(.google.cloud.network" +
+      "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\004" +
+      " \001(\tB\003\340A\001\"\235\001\n\020UpdateHubRequest\0224\n\013update" +
+      "_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB" +
+      "\003\340A\001\022:\n\003hub\030\002 \001(\0132(.google.cloud.network" +
+      "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\003" +
+      " \001(\tB\003\340A\001\"i\n\020DeleteHubRequest\022<\n\004name\030\001 " +
+      "\001(\tB.\340A\002\372A(\n&networkconnectivity.googlea" +
+      "pis.com/Hub\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\227\001\n" +
+      "\021ListSpokesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" +
+      "A#\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\006" +
+      "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\022ListSp" +
+      "okesResponse\022:\n\006spokes\030\001 \003(\0132*.google.cl" +
+      "oud.networkconnectivity.v1.Spoke\022\027\n\017next" +
+      "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q" +
+      "\n\017GetSpokeRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n" +
+      "(networkconnectivity.googleapis.com/Spok" +
+      "e\"\277\001\n\022CreateSpokeRequest\0229\n\006parent\030\001 \001(\t" +
+      "B)\340A\002\372A#\n!locations.googleapis.com/Locat" +
+      "ion\022\025\n\010spoke_id\030\002 \001(\tB\003\340A\002\022>\n\005spoke\030\003 \001(" +
+      "\0132*.google.cloud.networkconnectivity.v1." +
+      "SpokeB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\022" +
+      "UpdateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132" +
+      "\032.google.protobuf.FieldMaskB\003\340A\001\022>\n\005spok" +
+      "e\030\002 \001(\0132*.google.cloud.networkconnectivi" +
+      "ty.v1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A" +
+      "\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\tB0\340" +
+      "A\002\372A*\n(networkconnectivity.googleapis.co" +
+      "m/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\250\001\n\020Lin" +
+      "kedVpnTunnels\0223\n\004uris\030\001 \003(\tB%\372A\"\n comput" +
+      "e.googleapis.com/VpnTunnel\022\"\n\032site_to_si" +
+      "te_data_transfer\030\002 \001(\010\022;\n\013vpc_network\030\003 " +
+      "\001(\tB&\340A\003\372A \n\036compute.googleapis.com/Netw" +
+      "ork\"\302\001\n\035LinkedInterconnectAttachments\022@\n" +
+      "\004uris\030\001 \003(\tB2\372A/\n-compute.googleapis.com" +
+      "/InterconnectAttachment\022\"\n\032site_to_site_" +
+      "data_transfer\030\002 \001(\010\022;\n\013vpc_network\030\003 \001(\t" +
+      "B&\340A\003\372A \n\036compute.googleapis.com/Network" +
+      "\"\322\001\n\036LinkedRouterApplianceInstances\022O\n\ti" +
+      "nstances\030\001 \003(\0132<.google.cloud.networkcon" +
+      "nectivity.v1.RouterApplianceInstance\022\"\n\032" +
+      "site_to_site_data_transfer\030\002 \001(\010\022;\n\013vpc_" +
+      "network\030\003 \001(\tB&\340A\003\372A \n\036compute.googleapi" +
+      "s.com/Network\"l\n\027RouterApplianceInstance" +
+      "\022=\n\017virtual_machine\030\001 \001(\tB$\372A!\n\037compute." +
+      "googleapis.com/Instance\022\022\n\nip_address\030\003 " +
+      "\001(\t\"c\n\020LocationMetadata\022O\n\021location_feat" +
+      "ures\030\001 \003(\01624.google.cloud.networkconnect" +
+      "ivity.v1.LocationFeature*f\n\017LocationFeat" +
+      "ure\022 \n\034LOCATION_FEATURE_UNSPECIFIED\020\000\022\030\n" +
+      "\024SITE_TO_CLOUD_SPOKES\020\001\022\027\n\023SITE_TO_SITE_" +
+      "SPOKES\020\002*T\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" +
+      "\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003" +
+      "\022\014\n\010UPDATING\020\0062\235\020\n\nHubService\022\267\001\n\010ListHu" +
+      "bs\0224.google.cloud.networkconnectivity.v1" +
+      ".ListHubsRequest\0325.google.cloud.networkc" +
+      "onnectivity.v1.ListHubsResponse\">\202\323\344\223\002/\022" +
+      "-/v1/{parent=projects/*/locations/global" +
+      "}/hubs\332A\006parent\022\244\001\n\006GetHub\0222.google.clou" +
+      "d.networkconnectivity.v1.GetHubRequest\032(" +
+      ".google.cloud.networkconnectivity.v1.Hub" +
+      "\"<\202\323\344\223\002/\022-/v1/{name=projects/*/locations" +
+      "/global/hubs/*}\332A\004name\022\314\001\n\tCreateHub\0225.g" +
+      "oogle.cloud.networkconnectivity.v1.Creat" +
+      "eHubRequest\032\035.google.longrunning.Operati" +
+      "on\"i\202\323\344\223\0024\"-/v1/{parent=projects/*/locat" +
+      "ions/global}/hubs:\003hub\332A\021parent,hub,hub_" +
+      "id\312A\030\n\003Hub\022\021OperationMetadata\022\316\001\n\tUpdate" +
+      "Hub\0225.google.cloud.networkconnectivity.v" +
+      "1.UpdateHubRequest\032\035.google.longrunning." +
+      "Operation\"k\202\323\344\223\002821/v1/{hub.name=project" +
+      "s/*/locations/global/hubs/*}:\003hub\332A\017hub," +
+      "update_mask\312A\030\n\003Hub\022\021OperationMetadata\022\314" +
+      "\001\n\tDeleteHub\0225.google.cloud.networkconne" +
+      "ctivity.v1.DeleteHubRequest\032\035.google.lon" +
+      "grunning.Operation\"i\202\323\344\223\002/*-/v1/{name=pr" +
+      "ojects/*/locations/global/hubs/*}\332A\004name" +
+      "\312A*\n\025google.protobuf.Empty\022\021OperationMet" +
+      "adata\022\272\001\n\nListSpokes\0226.google.cloud.netw" +
+      "orkconnectivity.v1.ListSpokesRequest\0327.g" +
+      "oogle.cloud.networkconnectivity.v1.ListS" +
+      "pokesResponse\";\202\323\344\223\002,\022*/v1/{parent=proje" +
+      "cts/*/locations/*}/spokes\332A\006parent\022\247\001\n\010G" +
+      "etSpoke\0224.google.cloud.networkconnectivi" +
+      "ty.v1.GetSpokeRequest\032*.google.cloud.net" +
+      "workconnectivity.v1.Spoke\"9\202\323\344\223\002,\022*/v1/{" +
+      "name=projects/*/locations/*/spokes/*}\332A\004" +
+      "name\022\325\001\n\013CreateSpoke\0227.google.cloud.netw" +
+      "orkconnectivity.v1.CreateSpokeRequest\032\035." +
+      "google.longrunning.Operation\"n\202\323\344\223\0023\"*/v" +
+      "1/{parent=projects/*/locations/*}/spokes" +
+      ":\005spoke\332A\025parent,spoke,spoke_id\312A\032\n\005Spok" +
+      "e\022\021OperationMetadata\022\327\001\n\013UpdateSpoke\0227.g" +
+      "oogle.cloud.networkconnectivity.v1.Updat" +
+      "eSpokeRequest\032\035.google.longrunning.Opera" +
+      "tion\"p\202\323\344\223\002920/v1/{spoke.name=projects/*" +
+      "/locations/*/spokes/*}:\005spoke\332A\021spoke,up" +
+      "date_mask\312A\032\n\005Spoke\022\021OperationMetadata\022\315" +
+      "\001\n\013DeleteSpoke\0227.google.cloud.networkcon" +
+      "nectivity.v1.DeleteSpokeRequest\032\035.google" +
+      ".longrunning.Operation\"f\202\323\344\223\002,**/v1/{nam" +
+      "e=projects/*/locations/*/spokes/*}\332A\004nam" +
+      "e\312A*\n\025google.protobuf.Empty\022\021OperationMe" +
+      "tadata\032V\312A\"networkconnectivity.googleapi" +
+      "s.com\322A.https://www.googleapis.com/auth/" +
+      "cloud-platformB\277\003\n\'com.google.cloud.netw" +
+      "orkconnectivity.v1B\010HubProtoP\001ZVgoogle.g" +
+      "olang.org/genproto/googleapis/cloud/netw" +
+      "orkconnectivity/v1;networkconnectivity\252\002" +
+      "#Google.Cloud.NetworkConnectivity.V1\312\002#G" +
+      "oogle\\Cloud\\NetworkConnectivity\\V1\352\002&Goo" +
+      "gle::Cloud::NetworkConnectivity::V1\352A`\n " +
+      "compute.googleapis.com/VpnTunnel\022
  * A collection of VLAN attachment resources. These resources should
  * be redundant attachments that all advertise the same prefixes to Google
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments}
  */
-public final class LinkedInterconnectAttachments extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LinkedInterconnectAttachments extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments)
     LinkedInterconnectAttachmentsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LinkedInterconnectAttachments.newBuilder() to construct.
   private LinkedInterconnectAttachments(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LinkedInterconnectAttachments() {
     uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     vpcNetwork_ = "";
@@ -47,71 +29,61 @@ private LinkedInterconnectAttachments() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LinkedInterconnectAttachments();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class,
-            com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
+            com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
   }
 
   public static final int URIS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringList uris_;
   /**
-   *
-   *
    * 
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_; } /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -119,26 +91,22 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 2; private boolean siteToSiteDataTransfer_ = false; /** - * - * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -146,7 +114,6 @@ public com.google.protobuf.ByteString getUrisBytes(int index) {
    * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -155,20 +122,14 @@ public boolean getSiteToSiteDataTransfer() { } public static final int VPC_NETWORK_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object vpcNetwork_ = ""; /** - * - * *
    * Output only. The VPC network where these VLAN attachments are located.
    * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The vpcNetwork. */ @java.lang.Override @@ -177,31 +138,29 @@ public java.lang.String getVpcNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcNetwork_ = s; return s; } } /** - * - * *
    * Output only. The VPC network where these VLAN attachments are located.
    * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for vpcNetwork. */ @java.lang.Override - public com.google.protobuf.ByteString getVpcNetworkBytes() { + public com.google.protobuf.ByteString + getVpcNetworkBytes() { java.lang.Object ref = vpcNetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpcNetwork_ = b; return b; } else { @@ -210,7 +169,6 @@ public com.google.protobuf.ByteString getVpcNetworkBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,7 +180,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); } @@ -250,7 +209,8 @@ public int getSerializedSize() { size += 1 * getUrisList().size(); } if (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, siteToSiteDataTransfer_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vpcNetwork_); @@ -263,17 +223,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.networkconnectivity.v1.LinkedInterconnectAttachments)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other = - (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) obj; + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other = (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) obj; - if (!getUrisList().equals(other.getUrisList())) return false; - if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; - if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; + if (!getUrisList() + .equals(other.getUrisList())) return false; + if (getSiteToSiteDataTransfer() + != other.getSiteToSiteDataTransfer()) return false; + if (!getVpcNetwork() + .equals(other.getVpcNetwork())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -290,7 +252,8 @@ public int hashCode() { hash = (53 * hash) + getUrisList().hashCode(); } hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSiteToSiteDataTransfer()); hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getVpcNetwork().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -299,105 +262,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - 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.networkconnectivity.v1.LinkedInterconnectAttachments 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.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 collection of VLAN attachment resources. These resources should
    * be redundant attachments that all advertise the same prefixes to Google
@@ -407,33 +361,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments)
       com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class,
-              com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
+              com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -446,16 +400,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments
-        getDefaultInstanceForType() {
-      return com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments
-          .getDefaultInstance();
+    public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getDefaultInstanceForType() {
+      return com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -469,18 +421,14 @@ public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments bui
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments buildPartial() {
-      com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result =
-          new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(this);
+      com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result = new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
+    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         uris_ = uris_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -488,8 +436,7 @@ private void buildPartialRepeatedFields(
       result.uris_ = uris_;
     }
 
-    private void buildPartial0(
-        com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
+    private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_;
@@ -503,51 +450,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) {
-        return mergeFrom(
-            (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other) {
-      if (other
-          == com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other) {
+      if (other == com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance()) return this;
       if (!other.uris_.isEmpty()) {
         if (uris_.isEmpty()) {
           uris_ = other.uris_;
@@ -592,32 +534,28 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureUrisIsMutable();
-                uris_.add(s);
-                break;
-              } // case 10
-            case 16:
-              {
-                siteToSiteDataTransfer_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                vpcNetwork_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureUrisIsMutable();
+              uris_.add(s);
+              break;
+            } // case 10
+            case 16: {
+              siteToSiteDataTransfer_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              vpcNetwork_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -627,55 +565,44 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList uris_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensureUrisIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         uris_ = new com.google.protobuf.LazyStringArrayList(uris_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_.getUnmodifiableView(); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -683,90 +610,76 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUris( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUris( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris(java.lang.Iterable values) { + public Builder addAllUris( + java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uris_); onChanged(); return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearUris() { @@ -776,21 +689,17 @@ public Builder clearUris() { return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUrisBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); @@ -798,10 +707,8 @@ public Builder addUrisBytes(com.google.protobuf.ByteString value) { return this; } - private boolean siteToSiteDataTransfer_; + private boolean siteToSiteDataTransfer_ ; /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -809,7 +716,6 @@ public Builder addUrisBytes(com.google.protobuf.ByteString value) {
      * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -817,8 +723,6 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -826,20 +730,17 @@ public boolean getSiteToSiteDataTransfer() {
      * 
* * bool site_to_site_data_transfer = 2; - * * @param value The siteToSiteDataTransfer to set. * @return This builder for chaining. */ public Builder setSiteToSiteDataTransfer(boolean value) { - + siteToSiteDataTransfer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -847,7 +748,6 @@ public Builder setSiteToSiteDataTransfer(boolean value) {
      * 
* * bool site_to_site_data_transfer = 2; - * * @return This builder for chaining. */ public Builder clearSiteToSiteDataTransfer() { @@ -859,22 +759,18 @@ public Builder clearSiteToSiteDataTransfer() { private java.lang.Object vpcNetwork_ = ""; /** - * - * *
      * Output only. The VPC network where these VLAN attachments are located.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The vpcNetwork. */ public java.lang.String getVpcNetwork() { java.lang.Object ref = vpcNetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcNetwork_ = s; return s; @@ -883,23 +779,20 @@ public java.lang.String getVpcNetwork() { } } /** - * - * *
      * Output only. The VPC network where these VLAN attachments are located.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for vpcNetwork. */ - public com.google.protobuf.ByteString getVpcNetworkBytes() { + public com.google.protobuf.ByteString + getVpcNetworkBytes() { java.lang.Object ref = vpcNetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpcNetwork_ = b; return b; } else { @@ -907,39 +800,28 @@ public com.google.protobuf.ByteString getVpcNetworkBytes() { } } /** - * - * *
      * Output only. The VPC network where these VLAN attachments are located.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVpcNetwork( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } vpcNetwork_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. The VPC network where these VLAN attachments are located.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearVpcNetwork() { @@ -949,32 +831,26 @@ public Builder clearVpcNetwork() { return this; } /** - * - * *
      * Output only. The VPC network where these VLAN attachments are located.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVpcNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); vpcNetwork_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,43 +860,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) - private static final com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkedInterconnectAttachments parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkedInterconnectAttachments parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1032,8 +906,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java similarity index 64% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java index 57208804dc85..7d3715c99245 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java @@ -1,82 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LinkedInterconnectAttachmentsOrBuilder - extends +public interface LinkedInterconnectAttachmentsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the uris. */ - java.util.List getUrisList(); + java.util.List + getUrisList(); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of uris. */ int getUrisCount(); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString getUrisBytes(int index); + com.google.protobuf.ByteString + getUrisBytes(int index); /** - * - * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -84,37 +56,27 @@ public interface LinkedInterconnectAttachmentsOrBuilder
    * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ boolean getSiteToSiteDataTransfer(); /** - * - * *
    * Output only. The VPC network where these VLAN attachments are located.
    * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The vpcNetwork. */ java.lang.String getVpcNetwork(); /** - * - * *
    * Output only. The VPC network where these VLAN attachments are located.
    * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for vpcNetwork. */ - com.google.protobuf.ByteString getVpcNetworkBytes(); + com.google.protobuf.ByteString + getVpcNetworkBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java similarity index 64% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java index 3cab3c06b2f9..b0251c13a16c 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * A collection of router appliance instances. If you configure multiple router
  * appliance instances to receive data from the same set of sites outside of
@@ -30,17 +13,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances}
  */
-public final class LinkedRouterApplianceInstances extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LinkedRouterApplianceInstances extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)
     LinkedRouterApplianceInstancesOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LinkedRouterApplianceInstances.newBuilder() to construct.
-  private LinkedRouterApplianceInstances(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private LinkedRouterApplianceInstances(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LinkedRouterApplianceInstances() {
     instances_ = java.util.Collections.emptyList();
     vpcNetwork_ = "";
@@ -48,115 +29,93 @@ private LinkedRouterApplianceInstances() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LinkedRouterApplianceInstances();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class,
-            com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
+            com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
   }
 
   public static final int INSTANCES_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
-  private java.util.List
-      instances_;
+  private java.util.List instances_;
   /**
-   *
-   *
    * 
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ @java.lang.Override - public java.util.List - getInstancesList() { + public java.util.List getInstancesList() { return instances_; } /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> + public java.util.List getInstancesOrBuilderList() { return instances_; } /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ @java.lang.Override public int getInstancesCount() { return instances_.size(); } /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index) { return instances_.get(index); } /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder - getInstancesOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInstancesOrBuilder( + int index) { return instances_.get(index); } public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 2; private boolean siteToSiteDataTransfer_ = false; /** - * - * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -164,7 +123,6 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstan
    * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -173,21 +131,15 @@ public boolean getSiteToSiteDataTransfer() { } public static final int VPC_NETWORK_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object vpcNetwork_ = ""; /** - * - * *
    * Output only. The VPC network where these router appliance instances are
    * located.
    * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The vpcNetwork. */ @java.lang.Override @@ -196,32 +148,30 @@ public java.lang.String getVpcNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcNetwork_ = s; return s; } } /** - * - * *
    * Output only. The VPC network where these router appliance instances are
    * located.
    * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for vpcNetwork. */ @java.lang.Override - public com.google.protobuf.ByteString getVpcNetworkBytes() { + public com.google.protobuf.ByteString + getVpcNetworkBytes() { java.lang.Object ref = vpcNetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpcNetwork_ = b; return b; } else { @@ -230,7 +180,6 @@ public com.google.protobuf.ByteString getVpcNetworkBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,7 +191,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -262,10 +212,12 @@ 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 (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, siteToSiteDataTransfer_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vpcNetwork_); @@ -278,17 +230,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.networkconnectivity.v1.LinkedRouterApplianceInstances)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other = - (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) obj; - - if (!getInstancesList().equals(other.getInstancesList())) return false; - if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; - if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other = (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) obj; + + if (!getInstancesList() + .equals(other.getInstancesList())) return false; + if (getSiteToSiteDataTransfer() + != other.getSiteToSiteDataTransfer()) return false; + if (!getVpcNetwork() + .equals(other.getVpcNetwork())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -305,7 +259,8 @@ public int hashCode() { hash = (53 * hash) + getInstancesList().hashCode(); } hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSiteToSiteDataTransfer()); hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getVpcNetwork().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -314,105 +269,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - 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.networkconnectivity.v1.LinkedRouterApplianceInstances 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.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 collection of router appliance instances. If you configure multiple router
    * appliance instances to receive data from the same set of sites outside of
@@ -422,33 +368,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)
       com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class,
-              com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
+              com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -466,22 +412,19 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances
-        getDefaultInstanceForType() {
-      return com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances
-          .getDefaultInstance();
+    public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getDefaultInstanceForType() {
+      return com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances build() {
-      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result =
-          buildPartial();
+      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result = buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -490,18 +433,14 @@ public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances bu
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances buildPartial() {
-      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result =
-          new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(this);
+      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result = new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
+    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
       if (instancesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           instances_ = java.util.Collections.unmodifiableList(instances_);
@@ -513,8 +452,7 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
+    private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_;
@@ -528,51 +466,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) {
-        return mergeFrom(
-            (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other) {
-      if (other
-          == com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other) {
+      if (other == com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance()) return this;
       if (instancesBuilder_ == null) {
         if (!other.instances_.isEmpty()) {
           if (instances_.isEmpty()) {
@@ -591,10 +524,9 @@ public Builder mergeFrom(
             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_);
           }
@@ -634,39 +566,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.networkconnectivity.v1.RouterApplianceInstance m =
-                    input.readMessage(
-                        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.parser(),
-                        extensionRegistry);
-                if (instancesBuilder_ == null) {
-                  ensureInstancesIsMutable();
-                  instances_.add(m);
-                } else {
-                  instancesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 16:
-              {
-                siteToSiteDataTransfer_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                vpcNetwork_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance m =
+                  input.readMessage(
+                      com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.parser(),
+                      extensionRegistry);
+              if (instancesBuilder_ == null) {
+                ensureInstancesIsMutable();
+                instances_.add(m);
+              } else {
+                instancesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 16: {
+              siteToSiteDataTransfer_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              vpcNetwork_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -676,39 +604,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List
-        instances_ = java.util.Collections.emptyList();
-
+    private java.util.List instances_ =
+      java.util.Collections.emptyList();
     private void ensureInstancesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        instances_ =
-            new java.util.ArrayList<
-                com.google.cloud.networkconnectivity.v1.RouterApplianceInstance>(instances_);
+        instances_ = new java.util.ArrayList(instances_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance,
-            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder,
-            com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>
-        instancesBuilder_;
+        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> instancesBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public java.util.List - getInstancesList() { + public java.util.List getInstancesList() { if (instancesBuilder_ == null) { return java.util.Collections.unmodifiableList(instances_); } else { @@ -716,14 +633,11 @@ private void ensureInstancesIsMutable() { } } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public int getInstancesCount() { if (instancesBuilder_ == null) { @@ -733,14 +647,11 @@ public int getInstancesCount() { } } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index) { if (instancesBuilder_ == null) { @@ -750,14 +661,11 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstan } } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder setInstances( int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { @@ -774,18 +682,14 @@ public Builder setInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder setInstances( - int index, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { + int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.set(index, builderForValue.build()); @@ -796,17 +700,13 @@ public Builder setInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public Builder addInstances( - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { + public Builder addInstances(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -820,14 +720,11 @@ public Builder addInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder addInstances( int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { @@ -844,14 +741,11 @@ public Builder addInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder addInstances( com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { @@ -865,18 +759,14 @@ public Builder addInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder addInstances( - int index, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { + int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(index, builderForValue.build()); @@ -887,22 +777,18 @@ public Builder addInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder addAllInstances( - java.lang.Iterable< - ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstance> - values) { + 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); @@ -910,14 +796,11 @@ public Builder addAllInstances( return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder clearInstances() { if (instancesBuilder_ == null) { @@ -930,14 +813,11 @@ public Builder clearInstances() { return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ public Builder removeInstances(int index) { if (instancesBuilder_ == null) { @@ -950,50 +830,39 @@ public Builder removeInstances(int index) { return this; } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder - getInstancesBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder getInstancesBuilder( + int index) { return getInstancesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder - getInstancesOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInstancesOrBuilder( + int index) { if (instancesBuilder_ == null) { - return instances_.get(index); - } else { + return instances_.get(index); } else { return instancesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public java.util.List< - ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> - getInstancesOrBuilderList() { + public java.util.List + getInstancesOrBuilderList() { if (instancesBuilder_ != null) { return instancesBuilder_.getMessageOrBuilderList(); } else { @@ -1001,74 +870,56 @@ public Builder removeInstances(int index) { } } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder - addInstancesBuilder() { - return getInstancesFieldBuilder() - .addBuilder( - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder addInstancesBuilder() { + return getInstancesFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder - addInstancesBuilder(int index) { - return getInstancesFieldBuilder() - .addBuilder( - index, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder addInstancesBuilder( + int index) { + return getInstancesFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); } /** - * - * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - public java.util.List - getInstancesBuilderList() { + public java.util.List + getInstancesBuilderList() { return getInstancesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> getInstancesFieldBuilder() { if (instancesBuilder_ == null) { - instancesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, - com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>( - instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>( + instances_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); instances_ = null; } return instancesBuilder_; } - private boolean siteToSiteDataTransfer_; + private boolean siteToSiteDataTransfer_ ; /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -1076,7 +927,6 @@ public Builder removeInstances(int index) {
      * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -1084,8 +934,6 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -1093,20 +941,17 @@ public boolean getSiteToSiteDataTransfer() {
      * 
* * bool site_to_site_data_transfer = 2; - * * @param value The siteToSiteDataTransfer to set. * @return This builder for chaining. */ public Builder setSiteToSiteDataTransfer(boolean value) { - + siteToSiteDataTransfer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -1114,7 +959,6 @@ public Builder setSiteToSiteDataTransfer(boolean value) {
      * 
* * bool site_to_site_data_transfer = 2; - * * @return This builder for chaining. */ public Builder clearSiteToSiteDataTransfer() { @@ -1126,23 +970,19 @@ public Builder clearSiteToSiteDataTransfer() { private java.lang.Object vpcNetwork_ = ""; /** - * - * *
      * Output only. The VPC network where these router appliance instances are
      * located.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The vpcNetwork. */ public java.lang.String getVpcNetwork() { java.lang.Object ref = vpcNetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcNetwork_ = s; return s; @@ -1151,24 +991,21 @@ public java.lang.String getVpcNetwork() { } } /** - * - * *
      * Output only. The VPC network where these router appliance instances are
      * located.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for vpcNetwork. */ - public com.google.protobuf.ByteString getVpcNetworkBytes() { + public com.google.protobuf.ByteString + getVpcNetworkBytes() { java.lang.Object ref = vpcNetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpcNetwork_ = b; return b; } else { @@ -1176,41 +1013,30 @@ public com.google.protobuf.ByteString getVpcNetworkBytes() { } } /** - * - * *
      * Output only. The VPC network where these router appliance instances are
      * located.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVpcNetwork( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } vpcNetwork_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. The VPC network where these router appliance instances are
      * located.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearVpcNetwork() { @@ -1220,33 +1046,27 @@ public Builder clearVpcNetwork() { return this; } /** - * - * *
      * Output only. The VPC network where these router appliance instances are
      * located.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVpcNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); vpcNetwork_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1256,43 +1076,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) - private static final com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkedRouterApplianceInstances parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkedRouterApplianceInstances parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1304,8 +1122,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java similarity index 62% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java index cbca453e5f07..b7516a981b7a 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java @@ -1,90 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LinkedRouterApplianceInstancesOrBuilder - extends +public interface LinkedRouterApplianceInstancesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - java.util.List + java.util.List getInstancesList(); /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index); /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ int getInstancesCount(); /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ - java.util.List + java.util.List getInstancesOrBuilderList(); /** - * - * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; - * + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; */ com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInstancesOrBuilder( int index); /** - * - * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -92,39 +59,29 @@ com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInst
    * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ boolean getSiteToSiteDataTransfer(); /** - * - * *
    * Output only. The VPC network where these router appliance instances are
    * located.
    * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The vpcNetwork. */ java.lang.String getVpcNetwork(); /** - * - * *
    * Output only. The VPC network where these router appliance instances are
    * located.
    * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for vpcNetwork. */ - com.google.protobuf.ByteString getVpcNetworkBytes(); + com.google.protobuf.ByteString + getVpcNetworkBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java similarity index 68% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java index 79d15797258c..9b0d325630ba 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * A collection of Cloud VPN tunnel resources. These resources should be
  * redundant HA VPN tunnels that all advertise the same prefixes to Google
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedVpnTunnels}
  */
-public final class LinkedVpnTunnels extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LinkedVpnTunnels extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LinkedVpnTunnels)
     LinkedVpnTunnelsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LinkedVpnTunnels.newBuilder() to construct.
   private LinkedVpnTunnels(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LinkedVpnTunnels() {
     uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     vpcNetwork_ = "";
@@ -47,71 +29,61 @@ private LinkedVpnTunnels() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LinkedVpnTunnels();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class,
-            com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
+            com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
   }
 
   public static final int URIS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringList uris_;
   /**
-   *
-   *
    * 
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_; } /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -119,26 +91,22 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 2; private boolean siteToSiteDataTransfer_ = false; /** - * - * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -146,7 +114,6 @@ public com.google.protobuf.ByteString getUrisBytes(int index) {
    * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -155,20 +122,14 @@ public boolean getSiteToSiteDataTransfer() { } public static final int VPC_NETWORK_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object vpcNetwork_ = ""; /** - * - * *
    * Output only. The VPC network where these VPN tunnels are located.
    * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The vpcNetwork. */ @java.lang.Override @@ -177,31 +138,29 @@ public java.lang.String getVpcNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcNetwork_ = s; return s; } } /** - * - * *
    * Output only. The VPC network where these VPN tunnels are located.
    * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for vpcNetwork. */ @java.lang.Override - public com.google.protobuf.ByteString getVpcNetworkBytes() { + public com.google.protobuf.ByteString + getVpcNetworkBytes() { java.lang.Object ref = vpcNetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpcNetwork_ = b; return b; } else { @@ -210,7 +169,6 @@ public com.google.protobuf.ByteString getVpcNetworkBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,7 +180,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); } @@ -250,7 +209,8 @@ public int getSerializedSize() { size += 1 * getUrisList().size(); } if (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, siteToSiteDataTransfer_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vpcNetwork_); @@ -263,17 +223,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.networkconnectivity.v1.LinkedVpnTunnels)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other = - (com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) obj; + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other = (com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) obj; - if (!getUrisList().equals(other.getUrisList())) return false; - if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; - if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; + if (!getUrisList() + .equals(other.getUrisList())) return false; + if (getSiteToSiteDataTransfer() + != other.getSiteToSiteDataTransfer()) return false; + if (!getVpcNetwork() + .equals(other.getVpcNetwork())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -290,7 +252,8 @@ public int hashCode() { hash = (53 * hash) + getUrisList().hashCode(); } hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSiteToSiteDataTransfer()); hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getVpcNetwork().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -299,104 +262,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 collection of Cloud VPN tunnel resources. These resources should be
    * redundant HA VPN tunnels that all advertise the same prefixes to Google
@@ -406,32 +361,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedVpnTunnels}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedVpnTunnels)
       com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class,
-              com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
+              com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,9 +400,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
     }
 
     @java.lang.Override
@@ -465,18 +421,14 @@ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels buildPartial() {
-      com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result =
-          new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(this);
+      com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result = new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result) {
+    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         uris_ = uris_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -498,39 +450,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedVpnTunn
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -538,8 +489,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other) {
-      if (other == com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) return this;
       if (!other.uris_.isEmpty()) {
         if (uris_.isEmpty()) {
           uris_ = other.uris_;
@@ -584,32 +534,28 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureUrisIsMutable();
-                uris_.add(s);
-                break;
-              } // case 10
-            case 16:
-              {
-                siteToSiteDataTransfer_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                vpcNetwork_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureUrisIsMutable();
+              uris_.add(s);
+              break;
+            } // case 10
+            case 16: {
+              siteToSiteDataTransfer_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              vpcNetwork_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -619,55 +565,44 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList uris_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensureUrisIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         uris_ = new com.google.protobuf.LazyStringArrayList(uris_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList getUrisList() { + public com.google.protobuf.ProtocolStringList + getUrisList() { return uris_.getUnmodifiableView(); } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -675,90 +610,76 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString getUrisBytes(int index) { + public com.google.protobuf.ByteString + getUrisBytes(int index) { return uris_.getByteString(index); } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUris( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUris( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris(java.lang.Iterable values) { + public Builder addAllUris( + java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, uris_); onChanged(); return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearUris() { @@ -768,21 +689,17 @@ public Builder clearUris() { return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUrisBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); @@ -790,10 +707,8 @@ public Builder addUrisBytes(com.google.protobuf.ByteString value) { return this; } - private boolean siteToSiteDataTransfer_; + private boolean siteToSiteDataTransfer_ ; /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -801,7 +716,6 @@ public Builder addUrisBytes(com.google.protobuf.ByteString value) {
      * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -809,8 +723,6 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -818,20 +730,17 @@ public boolean getSiteToSiteDataTransfer() {
      * 
* * bool site_to_site_data_transfer = 2; - * * @param value The siteToSiteDataTransfer to set. * @return This builder for chaining. */ public Builder setSiteToSiteDataTransfer(boolean value) { - + siteToSiteDataTransfer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -839,7 +748,6 @@ public Builder setSiteToSiteDataTransfer(boolean value) {
      * 
* * bool site_to_site_data_transfer = 2; - * * @return This builder for chaining. */ public Builder clearSiteToSiteDataTransfer() { @@ -851,22 +759,18 @@ public Builder clearSiteToSiteDataTransfer() { private java.lang.Object vpcNetwork_ = ""; /** - * - * *
      * Output only. The VPC network where these VPN tunnels are located.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The vpcNetwork. */ public java.lang.String getVpcNetwork() { java.lang.Object ref = vpcNetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcNetwork_ = s; return s; @@ -875,23 +779,20 @@ public java.lang.String getVpcNetwork() { } } /** - * - * *
      * Output only. The VPC network where these VPN tunnels are located.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for vpcNetwork. */ - public com.google.protobuf.ByteString getVpcNetworkBytes() { + public com.google.protobuf.ByteString + getVpcNetworkBytes() { java.lang.Object ref = vpcNetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpcNetwork_ = b; return b; } else { @@ -899,39 +800,28 @@ public com.google.protobuf.ByteString getVpcNetworkBytes() { } } /** - * - * *
      * Output only. The VPC network where these VPN tunnels are located.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVpcNetwork( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } vpcNetwork_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. The VPC network where these VPN tunnels are located.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearVpcNetwork() { @@ -941,32 +831,26 @@ public Builder clearVpcNetwork() { return this; } /** - * - * *
      * Output only. The VPC network where these VPN tunnels are located.
      * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVpcNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); vpcNetwork_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - 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 +860,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) private static final com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(); } @@ -990,27 +874,27 @@ public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkedVpnTunnels parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkedVpnTunnels parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,4 +909,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java similarity index 63% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java index 8072c8053993..03fe8a98bd17 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java @@ -1,82 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LinkedVpnTunnelsOrBuilder - extends +public interface LinkedVpnTunnelsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the uris. */ - java.util.List getUrisList(); + java.util.List + getUrisList(); /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of uris. */ int getUrisCount(); /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** - * - * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString getUrisBytes(int index); + com.google.protobuf.ByteString + getUrisBytes(int index); /** - * - * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -84,37 +56,27 @@ public interface LinkedVpnTunnelsOrBuilder
    * 
* * bool site_to_site_data_transfer = 2; - * * @return The siteToSiteDataTransfer. */ boolean getSiteToSiteDataTransfer(); /** - * - * *
    * Output only. The VPC network where these VPN tunnels are located.
    * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The vpcNetwork. */ java.lang.String getVpcNetwork(); /** - * - * *
    * Output only. The VPC network where these VPN tunnels are located.
    * 
* - * - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for vpcNetwork. */ - com.google.protobuf.ByteString getVpcNetworkBytes(); + com.google.protobuf.ByteString + getVpcNetworkBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java index f993c7627249..0675938836a5 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * Request for
  * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsRequest}
  */
-public final class ListHubsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListHubsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListHubsRequest)
     ListHubsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListHubsRequest.newBuilder() to construct.
   private ListHubsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListHubsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -48,45 +30,38 @@ private ListHubsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListHubsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.ListHubsRequest.class,
-            com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The parent resource's name.
    * 
* - * - * string parent = 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 @@ -95,31 +70,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 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 { @@ -130,14 +103,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -146,18 +116,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -166,29 +132,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The page token.
    * 
* * 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 { @@ -197,18 +163,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -217,29 +179,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; } } /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * 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 { @@ -248,18 +210,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -268,29 +226,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -299,7 +257,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,7 +268,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -340,7 +298,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,19 +318,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.networkconnectivity.v1.ListHubsRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListHubsRequest other = - (com.google.cloud.networkconnectivity.v1.ListHubsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1.ListHubsRequest other = (com.google.cloud.networkconnectivity.v1.ListHubsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -399,104 +362,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.ListHubsRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListHubsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
@@ -505,32 +460,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListHubsRequest)
       com.google.cloud.networkconnectivity.v1.ListHubsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.ListHubsRequest.class,
-              com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.ListHubsRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -544,9 +500,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -565,11 +521,8 @@ public com.google.cloud.networkconnectivity.v1.ListHubsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.ListHubsRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.ListHubsRequest result =
-          new com.google.cloud.networkconnectivity.v1.ListHubsRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1.ListHubsRequest result = new com.google.cloud.networkconnectivity.v1.ListHubsRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -597,39 +550,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListHubsReque
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.ListHubsRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsRequest) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -637,8 +589,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListHubsRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.ListHubsRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1.ListHubsRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -688,43 +639,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                filter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                orderBy_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              filter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              orderBy_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -734,27 +679,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent resource's name.
      * 
* - * - * string parent = 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; @@ -763,23 +703,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * string parent = 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 { @@ -787,39 +724,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * string 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() { @@ -829,23 +755,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -853,16 +773,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -870,33 +787,27 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -908,20 +819,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The page token.
      * 
* * 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; @@ -930,21 +839,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The page token.
      * 
* * 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 { @@ -952,35 +860,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The page token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -990,21 +891,17 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1014,20 +911,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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; @@ -1036,21 +931,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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 { @@ -1058,35 +952,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1096,21 +983,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1120,20 +1003,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1142,21 +1023,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1164,35 +1044,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1202,30 +1075,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1235,12 +1104,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListHubsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListHubsRequest) private static final com.google.cloud.networkconnectivity.v1.ListHubsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListHubsRequest(); } @@ -1249,27 +1118,27 @@ public static com.google.cloud.networkconnectivity.v1.ListHubsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1284,4 +1153,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListHubsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java similarity index 58% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java index 0a8b42a0fd49..d7553ac570fe 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java @@ -1,142 +1,99 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListHubsRequestOrBuilder - extends +public interface ListHubsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListHubsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java similarity index 72% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java index 20024f166dd5..435684caabee 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * Response for
  * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsResponse}
  */
-public final class ListHubsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListHubsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListHubsResponse)
     ListHubsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListHubsResponse.newBuilder() to construct.
   private ListHubsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListHubsResponse() {
     hubs_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -47,37 +29,33 @@ private ListHubsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListHubsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.ListHubsResponse.class,
-            com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class);
+            com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class);
   }
 
   public static final int HUBS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List hubs_;
   /**
-   *
-   *
    * 
    * The requested hubs.
    * 
@@ -89,8 +67,6 @@ public java.util.List getHubsList() return hubs_; } /** - * - * *
    * The requested hubs.
    * 
@@ -98,13 +74,11 @@ public java.util.List getHubsList() * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getHubsOrBuilderList() { return hubs_; } /** - * - * *
    * The requested hubs.
    * 
@@ -116,8 +90,6 @@ public int getHubsCount() { return hubs_.size(); } /** - * - * *
    * The requested hubs.
    * 
@@ -129,8 +101,6 @@ public com.google.cloud.networkconnectivity.v1.Hub getHubs(int index) { return hubs_.get(index); } /** - * - * *
    * The requested hubs.
    * 
@@ -138,24 +108,21 @@ public com.google.cloud.networkconnectivity.v1.Hub getHubs(int index) { * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( + int index) { return hubs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -164,30 +131,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -196,46 +163,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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. */ @@ -243,23 +201,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; @@ -271,7 +226,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < hubs_.size(); i++) { output.writeMessage(1, hubs_.get(i)); } @@ -291,7 +247,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < hubs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hubs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, hubs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -312,17 +269,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.networkconnectivity.v1.ListHubsResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListHubsResponse other = - (com.google.cloud.networkconnectivity.v1.ListHubsResponse) obj; + com.google.cloud.networkconnectivity.v1.ListHubsResponse other = (com.google.cloud.networkconnectivity.v1.ListHubsResponse) obj; - if (!getHubsList().equals(other.getHubsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getHubsList() + .equals(other.getHubsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,104 +309,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.ListHubsResponse prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListHubsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for
    * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
@@ -456,32 +407,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListHubsResponse)
       com.google.cloud.networkconnectivity.v1.ListHubsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.ListHubsResponse.class,
-              com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class);
+              com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.ListHubsResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -500,9 +452,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -521,18 +473,14 @@ public com.google.cloud.networkconnectivity.v1.ListHubsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.ListHubsResponse buildPartial() {
-      com.google.cloud.networkconnectivity.v1.ListHubsResponse result =
-          new com.google.cloud.networkconnectivity.v1.ListHubsResponse(this);
+      com.google.cloud.networkconnectivity.v1.ListHubsResponse result = new com.google.cloud.networkconnectivity.v1.ListHubsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.networkconnectivity.v1.ListHubsResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.ListHubsResponse result) {
       if (hubsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           hubs_ = java.util.Collections.unmodifiableList(hubs_);
@@ -560,39 +508,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListHubsRespo
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.ListHubsResponse) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsResponse) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -600,8 +547,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListHubsResponse other) {
-      if (other == com.google.cloud.networkconnectivity.v1.ListHubsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1.ListHubsResponse.getDefaultInstance()) return this;
       if (hubsBuilder_ == null) {
         if (!other.hubs_.isEmpty()) {
           if (hubs_.isEmpty()) {
@@ -620,10 +566,9 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListHubsRespons
             hubsBuilder_ = null;
             hubs_ = other.hubs_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            hubsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getHubsFieldBuilder()
-                    : null;
+            hubsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getHubsFieldBuilder() : null;
           } else {
             hubsBuilder_.addAllMessages(other.hubs_);
           }
@@ -670,39 +615,36 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.networkconnectivity.v1.Hub m =
-                    input.readMessage(
-                        com.google.cloud.networkconnectivity.v1.Hub.parser(), extensionRegistry);
-                if (hubsBuilder_ == null) {
-                  ensureHubsIsMutable();
-                  hubs_.add(m);
-                } else {
-                  hubsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureUnreachableIsMutable();
-                unreachable_.add(s);
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.networkconnectivity.v1.Hub m =
+                  input.readMessage(
+                      com.google.cloud.networkconnectivity.v1.Hub.parser(),
+                      extensionRegistry);
+              if (hubsBuilder_ == null) {
+                ensureHubsIsMutable();
+                hubs_.add(m);
+              } else {
+                hubsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureUnreachableIsMutable();
+              unreachable_.add(s);
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -712,28 +654,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List hubs_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureHubsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         hubs_ = new java.util.ArrayList(hubs_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.networkconnectivity.v1.Hub,
-            com.google.cloud.networkconnectivity.v1.Hub.Builder,
-            com.google.cloud.networkconnectivity.v1.HubOrBuilder>
-        hubsBuilder_;
+        com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> hubsBuilder_;
 
     /**
-     *
-     *
      * 
      * The requested hubs.
      * 
@@ -748,8 +683,6 @@ public java.util.List getHubsList() } } /** - * - * *
      * The requested hubs.
      * 
@@ -764,8 +697,6 @@ public int getHubsCount() { } } /** - * - * *
      * The requested hubs.
      * 
@@ -780,15 +711,14 @@ public com.google.cloud.networkconnectivity.v1.Hub getHubs(int index) { } } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public Builder setHubs(int index, com.google.cloud.networkconnectivity.v1.Hub value) { + public Builder setHubs( + int index, com.google.cloud.networkconnectivity.v1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -802,8 +732,6 @@ public Builder setHubs(int index, com.google.cloud.networkconnectivity.v1.Hub va return this; } /** - * - * *
      * The requested hubs.
      * 
@@ -822,8 +750,6 @@ public Builder setHubs( return this; } /** - * - * *
      * The requested hubs.
      * 
@@ -844,15 +770,14 @@ public Builder addHubs(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public Builder addHubs(int index, com.google.cloud.networkconnectivity.v1.Hub value) { + public Builder addHubs( + int index, com.google.cloud.networkconnectivity.v1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -866,15 +791,14 @@ public Builder addHubs(int index, com.google.cloud.networkconnectivity.v1.Hub va return this; } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public Builder addHubs(com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { + public Builder addHubs( + com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { if (hubsBuilder_ == null) { ensureHubsIsMutable(); hubs_.add(builderForValue.build()); @@ -885,8 +809,6 @@ public Builder addHubs(com.google.cloud.networkconnectivity.v1.Hub.Builder build return this; } /** - * - * *
      * The requested hubs.
      * 
@@ -905,8 +827,6 @@ public Builder addHubs( return this; } /** - * - * *
      * The requested hubs.
      * 
@@ -917,7 +837,8 @@ public Builder addAllHubs( java.lang.Iterable values) { if (hubsBuilder_ == null) { ensureHubsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hubs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, hubs_); onChanged(); } else { hubsBuilder_.addAllMessages(values); @@ -925,8 +846,6 @@ public Builder addAllHubs( return this; } /** - * - * *
      * The requested hubs.
      * 
@@ -944,8 +863,6 @@ public Builder clearHubs() { return this; } /** - * - * *
      * The requested hubs.
      * 
@@ -963,44 +880,39 @@ public Builder removeHubs(int index) { return this; } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubsBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubsBuilder( + int index) { return getHubsFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( + int index) { if (hubsBuilder_ == null) { - return hubs_.get(index); - } else { + return hubs_.get(index); } else { return hubsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public java.util.List - getHubsOrBuilderList() { + public java.util.List + getHubsOrBuilderList() { if (hubsBuilder_ != null) { return hubsBuilder_.getMessageOrBuilderList(); } else { @@ -1008,8 +920,6 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int } } /** - * - * *
      * The requested hubs.
      * 
@@ -1017,48 +927,42 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder() { - return getHubsFieldBuilder() - .addBuilder(com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); + return getHubsFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder(int index) { - return getHubsFieldBuilder() - .addBuilder(index, com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder( + int index) { + return getHubsFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); } /** - * - * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public java.util.List - getHubsBuilderList() { + public java.util.List + getHubsBuilderList() { return getHubsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> getHubsFieldBuilder() { if (hubsBuilder_ == null) { - hubsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder>( - hubs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + hubsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder>( + hubs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); hubs_ = null; } return hubsBuilder_; @@ -1066,21 +970,19 @@ public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder(int in private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -1089,22 +991,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1112,37 +1013,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1152,22 +1046,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1175,52 +1065,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * 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. */ @@ -1228,90 +1108,76 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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(); - } + 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) { + 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() { @@ -1321,30 +1187,26 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1354,12 +1216,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListHubsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListHubsResponse) private static final com.google.cloud.networkconnectivity.v1.ListHubsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListHubsResponse(); } @@ -1368,27 +1230,27 @@ public static com.google.cloud.networkconnectivity.v1.ListHubsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1403,4 +1265,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListHubsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java similarity index 71% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java index b161d9b83f1a..73449f136a7b 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListHubsResponseOrBuilder - extends +public interface ListHubsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListHubsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested hubs.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - java.util.List getHubsList(); + java.util.List + getHubsList(); /** - * - * *
    * The requested hubs.
    * 
@@ -44,8 +25,6 @@ public interface ListHubsResponseOrBuilder */ com.google.cloud.networkconnectivity.v1.Hub getHubs(int index); /** - * - * *
    * The requested hubs.
    * 
@@ -54,102 +33,84 @@ public interface ListHubsResponseOrBuilder */ int getHubsCount(); /** - * - * *
    * The requested hubs.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - java.util.List + java.util.List getHubsOrBuilderList(); /** - * - * *
    * The requested hubs.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int index); + com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( + int index); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java index 444325073897..0cb0927c1eb9 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * The request for
  * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesRequest}
  */
-public final class ListSpokesRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListSpokesRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListSpokesRequest)
     ListSpokesRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListSpokesRequest.newBuilder() to construct.
   private ListSpokesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListSpokesRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -47,45 +29,38 @@ private ListSpokesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListSpokesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class,
-            com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The parent resource.
    * 
* - * - * string parent = 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 @@ -94,31 +69,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 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 { @@ -129,14 +102,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -145,18 +115,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -165,29 +131,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The page token.
    * 
* * 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 { @@ -196,18 +162,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -216,29 +178,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; } } /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * 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 { @@ -247,18 +209,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -267,29 +225,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -298,7 +256,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,7 +267,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -339,7 +297,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_); @@ -358,19 +317,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.networkconnectivity.v1.ListSpokesRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListSpokesRequest other = - (com.google.cloud.networkconnectivity.v1.ListSpokesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1.ListSpokesRequest other = (com.google.cloud.networkconnectivity.v1.ListSpokesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -398,104 +361,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListSpokesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for
    * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
@@ -503,32 +458,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListSpokesRequest)
       com.google.cloud.networkconnectivity.v1.ListSpokesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class,
-              com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.ListSpokesRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -542,9 +498,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
     }
 
     @java.lang.Override
@@ -563,11 +519,8 @@ public com.google.cloud.networkconnectivity.v1.ListSpokesRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.ListSpokesRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.ListSpokesRequest result =
-          new com.google.cloud.networkconnectivity.v1.ListSpokesRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1.ListSpokesRequest result = new com.google.cloud.networkconnectivity.v1.ListSpokesRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -595,39 +548,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListSpokesReq
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.ListSpokesRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesRequest) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -635,8 +587,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListSpokesRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.ListSpokesRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1.ListSpokesRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -686,43 +637,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                filter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                orderBy_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              filter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              orderBy_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -732,27 +677,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent resource.
      * 
* - * - * string parent = 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; @@ -761,23 +701,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string parent = 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 { @@ -785,39 +722,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * string 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() { @@ -827,23 +753,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -851,16 +771,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -868,33 +785,27 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -906,20 +817,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The page token.
      * 
* * 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; @@ -928,21 +837,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The page token.
      * 
* * 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 { @@ -950,35 +858,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The page token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -988,21 +889,17 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1012,20 +909,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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; @@ -1034,21 +929,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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 { @@ -1056,35 +950,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1094,21 +981,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1118,20 +1001,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1140,21 +1021,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1162,35 +1042,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1200,30 +1073,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1233,12 +1102,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListSpokesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListSpokesRequest) private static final com.google.cloud.networkconnectivity.v1.ListSpokesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListSpokesRequest(); } @@ -1247,27 +1116,27 @@ public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1282,4 +1151,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListSpokesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java similarity index 58% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java index 6d50170b35ab..46c69c915c82 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java @@ -1,142 +1,99 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListSpokesRequestOrBuilder - extends +public interface ListSpokesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListSpokesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java similarity index 72% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java index 3dc609e1c520..d0fdc3b7fbec 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * The response for
  * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesResponse}
  */
-public final class ListSpokesResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListSpokesResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListSpokesResponse)
     ListSpokesResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListSpokesResponse.newBuilder() to construct.
   private ListSpokesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListSpokesResponse() {
     spokes_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -46,37 +28,33 @@ private ListSpokesResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListSpokesResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class,
-            com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class);
+            com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class);
   }
 
   public static final int SPOKES_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List spokes_;
   /**
-   *
-   *
    * 
    * The requested spokes.
    * 
@@ -88,8 +66,6 @@ public java.util.List getSpokesLi return spokes_; } /** - * - * *
    * The requested spokes.
    * 
@@ -97,13 +73,11 @@ public java.util.List getSpokesLi * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSpokesOrBuilderList() { return spokes_; } /** - * - * *
    * The requested spokes.
    * 
@@ -115,8 +89,6 @@ public int getSpokesCount() { return spokes_.size(); } /** - * - * *
    * The requested spokes.
    * 
@@ -128,8 +100,6 @@ public com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index) { return spokes_.get(index); } /** - * - * *
    * The requested spokes.
    * 
@@ -137,24 +107,21 @@ public com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index) { * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder( + int index) { return spokes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -163,30 +130,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -195,46 +162,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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. */ @@ -242,23 +200,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; @@ -270,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 { for (int i = 0; i < spokes_.size(); i++) { output.writeMessage(1, spokes_.get(i)); } @@ -290,7 +246,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < spokes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, spokes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, spokes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -311,17 +268,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.networkconnectivity.v1.ListSpokesResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListSpokesResponse other = - (com.google.cloud.networkconnectivity.v1.ListSpokesResponse) obj; + com.google.cloud.networkconnectivity.v1.ListSpokesResponse other = (com.google.cloud.networkconnectivity.v1.ListSpokesResponse) obj; - if (!getSpokesList().equals(other.getSpokesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getSpokesList() + .equals(other.getSpokesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -349,104 +308,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.ListSpokesResponse prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListSpokesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response for
    * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
@@ -454,32 +405,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListSpokesResponse)
       com.google.cloud.networkconnectivity.v1.ListSpokesResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class,
-              com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class);
+              com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.ListSpokesResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -498,9 +450,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
     }
 
     @java.lang.Override
@@ -519,18 +471,14 @@ public com.google.cloud.networkconnectivity.v1.ListSpokesResponse build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.ListSpokesResponse buildPartial() {
-      com.google.cloud.networkconnectivity.v1.ListSpokesResponse result =
-          new com.google.cloud.networkconnectivity.v1.ListSpokesResponse(this);
+      com.google.cloud.networkconnectivity.v1.ListSpokesResponse result = new com.google.cloud.networkconnectivity.v1.ListSpokesResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.networkconnectivity.v1.ListSpokesResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.ListSpokesResponse result) {
       if (spokesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           spokes_ = java.util.Collections.unmodifiableList(spokes_);
@@ -558,39 +506,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListSpokesRes
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.ListSpokesResponse) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesResponse) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -598,8 +545,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListSpokesResponse other) {
-      if (other == com.google.cloud.networkconnectivity.v1.ListSpokesResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1.ListSpokesResponse.getDefaultInstance()) return this;
       if (spokesBuilder_ == null) {
         if (!other.spokes_.isEmpty()) {
           if (spokes_.isEmpty()) {
@@ -618,10 +564,9 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListSpokesRespo
             spokesBuilder_ = null;
             spokes_ = other.spokes_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            spokesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSpokesFieldBuilder()
-                    : null;
+            spokesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSpokesFieldBuilder() : null;
           } else {
             spokesBuilder_.addAllMessages(other.spokes_);
           }
@@ -668,39 +613,36 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.networkconnectivity.v1.Spoke m =
-                    input.readMessage(
-                        com.google.cloud.networkconnectivity.v1.Spoke.parser(), extensionRegistry);
-                if (spokesBuilder_ == null) {
-                  ensureSpokesIsMutable();
-                  spokes_.add(m);
-                } else {
-                  spokesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureUnreachableIsMutable();
-                unreachable_.add(s);
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.networkconnectivity.v1.Spoke m =
+                  input.readMessage(
+                      com.google.cloud.networkconnectivity.v1.Spoke.parser(),
+                      extensionRegistry);
+              if (spokesBuilder_ == null) {
+                ensureSpokesIsMutable();
+                spokes_.add(m);
+              } else {
+                spokesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureUnreachableIsMutable();
+              unreachable_.add(s);
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -710,28 +652,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List spokes_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureSpokesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         spokes_ = new java.util.ArrayList(spokes_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.networkconnectivity.v1.Spoke,
-            com.google.cloud.networkconnectivity.v1.Spoke.Builder,
-            com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>
-        spokesBuilder_;
+        com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> spokesBuilder_;
 
     /**
-     *
-     *
      * 
      * The requested spokes.
      * 
@@ -746,8 +681,6 @@ public java.util.List getSpokesLi } } /** - * - * *
      * The requested spokes.
      * 
@@ -762,8 +695,6 @@ public int getSpokesCount() { } } /** - * - * *
      * The requested spokes.
      * 
@@ -778,15 +709,14 @@ public com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index) { } } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public Builder setSpokes(int index, com.google.cloud.networkconnectivity.v1.Spoke value) { + public Builder setSpokes( + int index, com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -800,8 +730,6 @@ public Builder setSpokes(int index, com.google.cloud.networkconnectivity.v1.Spok return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -820,8 +748,6 @@ public Builder setSpokes( return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -842,15 +768,14 @@ public Builder addSpokes(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public Builder addSpokes(int index, com.google.cloud.networkconnectivity.v1.Spoke value) { + public Builder addSpokes( + int index, com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -864,8 +789,6 @@ public Builder addSpokes(int index, com.google.cloud.networkconnectivity.v1.Spok return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -884,8 +807,6 @@ public Builder addSpokes( return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -904,8 +825,6 @@ public Builder addSpokes( return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -916,7 +835,8 @@ public Builder addAllSpokes( java.lang.Iterable values) { if (spokesBuilder_ == null) { ensureSpokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spokes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, spokes_); onChanged(); } else { spokesBuilder_.addAllMessages(values); @@ -924,8 +844,6 @@ public Builder addAllSpokes( return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -943,8 +861,6 @@ public Builder clearSpokes() { return this; } /** - * - * *
      * The requested spokes.
      * 
@@ -962,44 +878,39 @@ public Builder removeSpokes(int index) { return this; } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokesBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokesBuilder( + int index) { return getSpokesFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder( + int index) { if (spokesBuilder_ == null) { - return spokes_.get(index); - } else { + return spokes_.get(index); } else { return spokesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public java.util.List - getSpokesOrBuilderList() { + public java.util.List + getSpokesOrBuilderList() { if (spokesBuilder_ != null) { return spokesBuilder_.getMessageOrBuilderList(); } else { @@ -1007,8 +918,6 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder } } /** - * - * *
      * The requested spokes.
      * 
@@ -1016,48 +925,42 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder() { - return getSpokesFieldBuilder() - .addBuilder(com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); + return getSpokesFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder(int index) { - return getSpokesFieldBuilder() - .addBuilder(index, com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder( + int index) { + return getSpokesFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); } /** - * - * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public java.util.List - getSpokesBuilderList() { + public java.util.List + getSpokesBuilderList() { return getSpokesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> getSpokesFieldBuilder() { if (spokesBuilder_ == null) { - spokesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( - spokes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + spokesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( + spokes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); spokes_ = null; } return spokesBuilder_; @@ -1065,21 +968,19 @@ public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder(in private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -1088,22 +989,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1111,37 +1011,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1151,22 +1044,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1174,52 +1063,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * 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. */ @@ -1227,90 +1106,76 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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(); - } + 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) { + 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() { @@ -1320,30 +1185,26 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1353,12 +1214,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListSpokesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListSpokesResponse) private static final com.google.cloud.networkconnectivity.v1.ListSpokesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListSpokesResponse(); } @@ -1367,27 +1228,27 @@ public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1402,4 +1263,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListSpokesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java similarity index 73% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java index 212e8ce02a58..834b94da7b71 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListSpokesResponseOrBuilder - extends +public interface ListSpokesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListSpokesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested spokes.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - java.util.List getSpokesList(); + java.util.List + getSpokesList(); /** - * - * *
    * The requested spokes.
    * 
@@ -44,8 +25,6 @@ public interface ListSpokesResponseOrBuilder */ com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index); /** - * - * *
    * The requested spokes.
    * 
@@ -54,102 +33,84 @@ public interface ListSpokesResponseOrBuilder */ int getSpokesCount(); /** - * - * *
    * The requested spokes.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - java.util.List + java.util.List getSpokesOrBuilderList(); /** - * - * *
    * The requested spokes.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder(int index); + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder( + int index); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java index 21d5923cd802..cf212e9b299c 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * Supported features for a location
  * 
* * Protobuf enum {@code google.cloud.networkconnectivity.v1.LocationFeature} */ -public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { +public enum LocationFeature + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * No publicly supported feature in this location
    * 
@@ -39,8 +21,6 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { */ LOCATION_FEATURE_UNSPECIFIED(0), /** - * - * *
    * Site-to-cloud spokes are supported in this location
    * 
@@ -49,8 +29,6 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { */ SITE_TO_CLOUD_SPOKES(1), /** - * - * *
    * Site-to-site spokes are supported in this location
    * 
@@ -62,8 +40,6 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * No publicly supported feature in this location
    * 
@@ -72,8 +48,6 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOCATION_FEATURE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Site-to-cloud spokes are supported in this location
    * 
@@ -82,8 +56,6 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SITE_TO_CLOUD_SPOKES_VALUE = 1; /** - * - * *
    * Site-to-site spokes are supported in this location
    * 
@@ -92,6 +64,7 @@ public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SITE_TO_SITE_SPOKES_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,49 +89,49 @@ public static LocationFeature valueOf(int value) { */ public static LocationFeature forNumber(int value) { switch (value) { - case 0: - return LOCATION_FEATURE_UNSPECIFIED; - case 1: - return SITE_TO_CLOUD_SPOKES; - case 2: - return SITE_TO_SITE_SPOKES; - default: - return null; + case 0: return LOCATION_FEATURE_UNSPECIFIED; + case 1: return SITE_TO_CLOUD_SPOKES; + case 2: return SITE_TO_SITE_SPOKES; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LocationFeature findValueByNumber(int number) { - return LocationFeature.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + LocationFeature> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LocationFeature findValueByNumber(int number) { + return LocationFeature.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.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(0); } private static final LocationFeature[] VALUES = values(); - public static LocationFeature valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static LocationFeature valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -174,3 +147,4 @@ private LocationFeature(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.LocationFeature) } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java index b9e4e2f54e66..2f0e5ab71614 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java @@ -1,120 +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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * Metadata about locations
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.LocationMetadata} */ -public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LocationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LocationMetadata) LocationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LocationMetadata.newBuilder() to construct. private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LocationMetadata() { locationFeatures_ = 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 LocationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.LocationMetadata.class, - com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.LocationMetadata.class, com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); } public static final int LOCATION_FEATURES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List locationFeatures_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature> - locationFeatures_converter_ = + java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature> locationFeatures_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>() { - public com.google.cloud.networkconnectivity.v1.LocationFeature convert( - java.lang.Integer from) { - com.google.cloud.networkconnectivity.v1.LocationFeature result = - com.google.cloud.networkconnectivity.v1.LocationFeature.forNumber(from); - return result == null - ? com.google.cloud.networkconnectivity.v1.LocationFeature.UNRECOGNIZED - : result; + public com.google.cloud.networkconnectivity.v1.LocationFeature convert(java.lang.Integer from) { + com.google.cloud.networkconnectivity.v1.LocationFeature result = com.google.cloud.networkconnectivity.v1.LocationFeature.forNumber(from); + return result == null ? com.google.cloud.networkconnectivity.v1.LocationFeature.UNRECOGNIZED : result; } }; /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return A list containing the locationFeatures. */ @java.lang.Override - public java.util.List - getLocationFeaturesList() { + public java.util.List getLocationFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>( - locationFeatures_, locationFeatures_converter_); + java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>(locationFeatures_, locationFeatures_converter_); } /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return The count of locationFeatures. */ @java.lang.Override @@ -122,15 +86,11 @@ public int getLocationFeaturesCount() { return locationFeatures_.size(); } /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index of the element to return. * @return The locationFeatures at the given index. */ @@ -139,31 +99,24 @@ public com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatur return locationFeatures_converter_.convert(locationFeatures_.get(index)); } /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return A list containing the enum numeric values on the wire for locationFeatures. */ @java.lang.Override - public java.util.List getLocationFeaturesValueList() { + public java.util.List + getLocationFeaturesValueList() { return locationFeatures_; } /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of locationFeatures at the given index. */ @@ -171,11 +124,9 @@ public java.util.List getLocationFeaturesValueList() { public int getLocationFeaturesValue(int index) { return locationFeatures_.get(index); } - private int locationFeaturesMemoizedSerializedSize; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +138,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getLocationFeaturesList().size() > 0) { output.writeUInt32NoTag(10); @@ -208,15 +160,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < locationFeatures_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(locationFeatures_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(locationFeatures_.get(i)); } size += dataSize; - if (!getLocationFeaturesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - locationFeaturesMemoizedSerializedSize = dataSize; + if (!getLocationFeaturesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }locationFeaturesMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -226,13 +177,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.networkconnectivity.v1.LocationMetadata)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LocationMetadata other = - (com.google.cloud.networkconnectivity.v1.LocationMetadata) obj; + com.google.cloud.networkconnectivity.v1.LocationMetadata other = (com.google.cloud.networkconnectivity.v1.LocationMetadata) obj; if (!locationFeatures_.equals(other.locationFeatures_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -256,136 +206,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.LocationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LocationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metadata about locations
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.LocationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LocationMetadata) com.google.cloud.networkconnectivity.v1.LocationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.LocationMetadata.class, - com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.LocationMetadata.class, com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.LocationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -396,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; } @java.lang.Override @@ -417,18 +360,14 @@ public com.google.cloud.networkconnectivity.v1.LocationMetadata build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.LocationMetadata buildPartial() { - com.google.cloud.networkconnectivity.v1.LocationMetadata result = - new com.google.cloud.networkconnectivity.v1.LocationMetadata(this); + com.google.cloud.networkconnectivity.v1.LocationMetadata result = new com.google.cloud.networkconnectivity.v1.LocationMetadata(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1.LocationMetadata result) { + private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LocationMetadata result) { if (((bitField0_ & 0x00000001) != 0)) { locationFeatures_ = java.util.Collections.unmodifiableList(locationFeatures_); bitField0_ = (bitField0_ & ~0x00000001); @@ -444,39 +383,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LocationMetad public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.LocationMetadata) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.LocationMetadata) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.LocationMetadata)other); } else { super.mergeFrom(other); return this; @@ -484,8 +422,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LocationMetadata other) { - if (other == com.google.cloud.networkconnectivity.v1.LocationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.LocationMetadata.getDefaultInstance()) return this; if (!other.locationFeatures_.isEmpty()) { if (locationFeatures_.isEmpty()) { locationFeatures_ = other.locationFeatures_; @@ -522,32 +459,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { + case 8: { + int tmpRaw = input.readEnum(); + ensureLocationFeaturesIsMutable(); + locationFeatures_.add(tmpRaw); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureLocationFeaturesIsMutable(); locationFeatures_.add(tmpRaw); - break; - } // case 8 - case 10: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureLocationFeaturesIsMutable(); - locationFeatures_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,11 +491,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List locationFeatures_ = java.util.Collections.emptyList(); - + private java.util.List locationFeatures_ = + java.util.Collections.emptyList(); private void ensureLocationFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { locationFeatures_ = new java.util.ArrayList(locationFeatures_); @@ -569,48 +502,34 @@ private void ensureLocationFeaturesIsMutable() { } } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return A list containing the locationFeatures. */ - public java.util.List - getLocationFeaturesList() { + public java.util.List getLocationFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>( - locationFeatures_, locationFeatures_converter_); + java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>(locationFeatures_, locationFeatures_converter_); } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return The count of locationFeatures. */ public int getLocationFeaturesCount() { return locationFeatures_.size(); } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index of the element to return. * @return The locationFeatures at the given index. */ @@ -618,15 +537,11 @@ public com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatur return locationFeatures_converter_.convert(locationFeatures_.get(index)); } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index to set the value at. * @param value The locationFeatures to set. * @return This builder for chaining. @@ -642,20 +557,15 @@ public Builder setLocationFeatures( return this; } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param value The locationFeatures to add. * @return This builder for chaining. */ - public Builder addLocationFeatures( - com.google.cloud.networkconnectivity.v1.LocationFeature value) { + public Builder addLocationFeatures(com.google.cloud.networkconnectivity.v1.LocationFeature value) { if (value == null) { throw new NullPointerException(); } @@ -665,21 +575,16 @@ public Builder addLocationFeatures( return this; } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param values The locationFeatures to add. * @return This builder for chaining. */ public Builder addAllLocationFeatures( - java.lang.Iterable - values) { + java.lang.Iterable values) { ensureLocationFeaturesIsMutable(); for (com.google.cloud.networkconnectivity.v1.LocationFeature value : values) { locationFeatures_.add(value.getNumber()); @@ -688,15 +593,11 @@ public Builder addAllLocationFeatures( return this; } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return This builder for chaining. */ public Builder clearLocationFeatures() { @@ -706,30 +607,23 @@ public Builder clearLocationFeatures() { return this; } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return A list containing the enum numeric values on the wire for locationFeatures. */ - public java.util.List getLocationFeaturesValueList() { + public java.util.List + getLocationFeaturesValueList() { return java.util.Collections.unmodifiableList(locationFeatures_); } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of locationFeatures at the given index. */ @@ -737,35 +631,28 @@ public int getLocationFeaturesValue(int index) { return locationFeatures_.get(index); } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index to set the value at. * @param value The enum numeric value on the wire for locationFeatures to set. * @return This builder for chaining. */ - public Builder setLocationFeaturesValue(int index, int value) { + public Builder setLocationFeaturesValue( + int index, int value) { ensureLocationFeaturesIsMutable(); locationFeatures_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param value The enum numeric value on the wire for locationFeatures to add. * @return This builder for chaining. */ @@ -776,19 +663,16 @@ public Builder addLocationFeaturesValue(int value) { return this; } /** - * - * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param values The enum numeric values on the wire for locationFeatures to add. * @return This builder for chaining. */ - public Builder addAllLocationFeaturesValue(java.lang.Iterable values) { + public Builder addAllLocationFeaturesValue( + java.lang.Iterable values) { ensureLocationFeaturesIsMutable(); for (int value : values) { locationFeatures_.add(value); @@ -796,9 +680,9 @@ public Builder addAllLocationFeaturesValue(java.lang.Iterable onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +692,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LocationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LocationMetadata) private static final com.google.cloud.networkconnectivity.v1.LocationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LocationMetadata(); } @@ -822,27 +706,27 @@ public static com.google.cloud.networkconnectivity.v1.LocationMetadata getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,4 +741,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.LocationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java similarity index 62% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java index f42007f563f6..f8b387b0a5a2 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java @@ -1,91 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LocationMetadataOrBuilder - extends +public interface LocationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LocationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return A list containing the locationFeatures. */ java.util.List getLocationFeaturesList(); /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return The count of locationFeatures. */ int getLocationFeaturesCount(); /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index of the element to return. * @return The locationFeatures at the given index. */ com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatures(int index); /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @return A list containing the enum numeric values on the wire for locationFeatures. */ - java.util.List getLocationFeaturesValueList(); + java.util.List + getLocationFeaturesValueList(); /** - * - * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; - * - * + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of locationFeatures at the given index. */ diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java index ecb829230dfd..ccff6a11ac7c 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/common.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,42 +28,37 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.OperationMetadata.class, - com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -89,15 +66,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -105,14 +78,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -122,15 +92,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -138,15 +104,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -154,14 +116,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -169,18 +128,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -189,29 +144,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -220,18 +175,14 @@ public com.google.protobuf.ByteString getTargetBytes() { } public static final int VERB_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -240,29 +191,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -271,18 +222,14 @@ public com.google.protobuf.ByteString getVerbBytes() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -291,29 +238,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -324,8 +271,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have been cancelled successfully
@@ -334,7 +279,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -343,18 +287,14 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -363,29 +303,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -394,7 +334,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -406,7 +345,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -438,10 +378,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_); @@ -453,7 +395,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_); @@ -466,27 +409,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.networkconnectivity.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.OperationMetadata other = - (com.google.cloud.networkconnectivity.v1.OperationMetadata) obj; + com.google.cloud.networkconnectivity.v1.OperationMetadata other = (com.google.cloud.networkconnectivity.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -513,7 +462,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) + getUnknownFields().hashCode(); @@ -522,136 +472,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.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.networkconnectivity.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.OperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.OperationMetadata) com.google.cloud.networkconnectivity.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.OperationMetadata.class, - com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.OperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -675,9 +618,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -696,11 +639,8 @@ public com.google.cloud.networkconnectivity.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.OperationMetadata buildPartial() { - com.google.cloud.networkconnectivity.v1.OperationMetadata result = - new com.google.cloud.networkconnectivity.v1.OperationMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1.OperationMetadata result = new com.google.cloud.networkconnectivity.v1.OperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -708,10 +648,14 @@ public com.google.cloud.networkconnectivity.v1.OperationMetadata buildPartial() private void buildPartial0(com.google.cloud.networkconnectivity.v1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -734,39 +678,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.OperationMeta public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.OperationMetadata) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -774,8 +717,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.OperationMetadata other) { - if (other == com.google.cloud.networkconnectivity.v1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -831,55 +773,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -889,63 +827,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time 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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -961,17 +879,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -982,21 +897,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1009,15 +920,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1030,15 +937,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -1046,48 +949,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1095,35 +986,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1134,14 +1014,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1157,16 +1034,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1177,20 +1052,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1203,14 +1075,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1223,14 +1092,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1238,44 +1104,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1283,20 +1141,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1305,21 +1161,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1327,35 +1182,28 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1365,21 +1213,17 @@ public Builder clearTarget() { return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1389,20 +1233,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1411,21 +1253,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1433,35 +1274,28 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerb( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1471,21 +1305,17 @@ public Builder clearVerb() { return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1495,20 +1325,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1517,21 +1345,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1539,35 +1366,28 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1577,21 +1397,17 @@ public Builder clearStatusMessage() { return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1599,10 +1415,8 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
@@ -1611,7 +1425,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 @@ -1619,8 +1432,6 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
@@ -1629,20 +1440,17 @@ 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
@@ -1651,7 +1459,6 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1663,20 +1470,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1685,21 +1490,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1707,35 +1511,28 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1745,30 +1542,26 @@ public Builder clearApiVersion() { return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1778,12 +1571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.OperationMetadata) private static final com.google.cloud.networkconnectivity.v1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.OperationMetadata(); } @@ -1792,27 +1585,27 @@ public static com.google.cloud.networkconnectivity.v1.OperationMetadata getDefau 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1827,4 +1620,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java similarity index 75% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java index 217a088b5a3d..f4be0419ee4b 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/common.proto package com.google.cloud.networkconnectivity.v1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have been cancelled successfully
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java similarity index 65% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java index a7f89bd714c6..f5db4526d106 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * A router appliance instance is a Compute Engine virtual machine (VM) instance
  * that acts as a BGP speaker. A router appliance instance is specified by the
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.RouterApplianceInstance}
  */
-public final class RouterApplianceInstance extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RouterApplianceInstance extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.RouterApplianceInstance)
     RouterApplianceInstanceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RouterApplianceInstance.newBuilder() to construct.
   private RouterApplianceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RouterApplianceInstance() {
     virtualMachine_ = "";
     ipAddress_ = "";
@@ -47,43 +29,38 @@ private RouterApplianceInstance() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RouterApplianceInstance();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class,
-            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
+            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
   }
 
   public static final int VIRTUAL_MACHINE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object virtualMachine_ = "";
   /**
-   *
-   *
    * 
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The virtualMachine. */ @java.lang.Override @@ -92,29 +69,29 @@ public java.lang.String getVirtualMachine() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; } } /** - * - * *
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for virtualMachine. */ @java.lang.Override - public com.google.protobuf.ByteString getVirtualMachineBytes() { + public com.google.protobuf.ByteString + getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -123,18 +100,14 @@ public com.google.protobuf.ByteString getVirtualMachineBytes() { } public static final int IP_ADDRESS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object ipAddress_ = ""; /** - * - * *
    * The IP address on the VM to use for peering.
    * 
* * string ip_address = 3; - * * @return The ipAddress. */ @java.lang.Override @@ -143,29 +116,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; } } /** - * - * *
    * The IP address on the VM to use for peering.
    * 
* * 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 { @@ -174,7 +147,6 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,7 +158,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualMachine_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, virtualMachine_); } @@ -216,16 +189,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.networkconnectivity.v1.RouterApplianceInstance)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other = - (com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) obj; + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other = (com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) obj; - if (!getVirtualMachine().equals(other.getVirtualMachine())) return false; - if (!getIpAddress().equals(other.getIpAddress())) return false; + if (!getVirtualMachine() + .equals(other.getVirtualMachine())) return false; + if (!getIpAddress() + .equals(other.getIpAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,104 +221,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 router appliance instance is a Compute Engine virtual machine (VM) instance
    * that acts as a BGP speaker. A router appliance instance is specified by the
@@ -354,32 +320,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.RouterApplianceInstance}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.RouterApplianceInstance)
       com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class,
-              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
+              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -390,14 +357,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance
-        getDefaultInstanceForType() {
+    public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getDefaultInstanceForType() {
       return com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance();
     }
 
@@ -412,17 +378,13 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance buildPartial() {
-      com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result =
-          new com.google.cloud.networkconnectivity.v1.RouterApplianceInstance(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result = new com.google.cloud.networkconnectivity.v1.RouterApplianceInstance(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result) {
+    private void buildPartial0(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.virtualMachine_ = virtualMachine_;
@@ -436,50 +398,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.RouterApplianceInstance)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other) {
-      if (other
-          == com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other) {
+      if (other == com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()) return this;
       if (!other.getVirtualMachine().isEmpty()) {
         virtualMachine_ = other.virtualMachine_;
         bitField0_ |= 0x00000001;
@@ -516,25 +474,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                virtualMachine_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 26:
-              {
-                ipAddress_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              virtualMachine_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 26: {
+              ipAddress_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -544,25 +499,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object virtualMachine_ = "";
     /**
-     *
-     *
      * 
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The virtualMachine. */ public java.lang.String getVirtualMachine() { java.lang.Object ref = virtualMachine_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; @@ -571,21 +523,20 @@ public java.lang.String getVirtualMachine() { } } /** - * - * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for virtualMachine. */ - public com.google.protobuf.ByteString getVirtualMachineBytes() { + public com.google.protobuf.ByteString + getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -593,35 +544,28 @@ public com.google.protobuf.ByteString getVirtualMachineBytes() { } } /** - * - * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @param value The virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachine(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVirtualMachine( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } virtualMachine_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearVirtualMachine() { @@ -631,21 +575,17 @@ public Builder clearVirtualMachine() { return this; } /** - * - * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachineBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVirtualMachineBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); virtualMachine_ = value; bitField0_ |= 0x00000001; @@ -655,20 +595,18 @@ public Builder setVirtualMachineBytes(com.google.protobuf.ByteString value) { private java.lang.Object ipAddress_ = ""; /** - * - * *
      * The IP address on the VM to use for peering.
      * 
* * 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; @@ -677,21 +615,20 @@ public java.lang.String getIpAddress() { } } /** - * - * *
      * The IP address on the VM to use for peering.
      * 
* * 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 { @@ -699,35 +636,28 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } } /** - * - * *
      * The IP address on the VM to use for peering.
      * 
* * 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(); - } + public Builder setIpAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ipAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The IP address on the VM to use for peering.
      * 
* * string ip_address = 3; - * * @return This builder for chaining. */ public Builder clearIpAddress() { @@ -737,30 +667,26 @@ public Builder clearIpAddress() { return this; } /** - * - * *
      * The IP address on the VM to use for peering.
      * 
* * 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(); - } + public Builder setIpAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ipAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -770,43 +696,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.RouterApplianceInstance) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.RouterApplianceInstance) - private static final com.google.cloud.networkconnectivity.v1.RouterApplianceInstance - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1.RouterApplianceInstance DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.RouterApplianceInstance(); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouterApplianceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouterApplianceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -818,8 +742,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java similarity index 57% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java index e9f532da2fd6..1ea6f2cf0b21 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface RouterApplianceInstanceOrBuilder - extends +public interface RouterApplianceInstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.RouterApplianceInstance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The virtualMachine. */ java.lang.String getVirtualMachine(); /** - * - * *
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for virtualMachine. */ - com.google.protobuf.ByteString getVirtualMachineBytes(); + com.google.protobuf.ByteString + getVirtualMachineBytes(); /** - * - * *
    * The IP address on the VM to use for peering.
    * 
* * string ip_address = 3; - * * @return The ipAddress. */ java.lang.String getIpAddress(); /** - * - * *
    * The IP address on the VM to use for peering.
    * 
* * string ip_address = 3; - * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString getIpAddressBytes(); + com.google.protobuf.ByteString + getIpAddressBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java similarity index 66% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java index 1834dbd61aab..e5def3cec2cd 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * RoutingVPC contains information about the VPC networks associated
  * with the spokes of a Network Connectivity Center hub.
@@ -28,59 +11,53 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.RoutingVPC}
  */
-public final class RoutingVPC extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RoutingVPC extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.RoutingVPC)
     RoutingVPCOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RoutingVPC.newBuilder() to construct.
   private RoutingVPC(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RoutingVPC() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RoutingVPC();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.RoutingVPC.class,
-            com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class);
+            com.google.cloud.networkconnectivity.v1.RoutingVPC.class, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class);
   }
 
   public static final int URI_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object uri_ = "";
   /**
-   *
-   *
    * 
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return The uri. */ @java.lang.Override @@ -89,29 +66,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -122,8 +99,6 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int REQUIRED_FOR_NEW_SITE_TO_SITE_DATA_TRANSFER_SPOKES_FIELD_NUMBER = 2; private boolean requiredForNewSiteToSiteDataTransferSpokes_ = false; /** - * - * *
    * Output only. If true, indicates that this VPC network is currently
    * associated with spokes that use the data transfer feature (spokes where the
@@ -132,10 +107,7 @@ public com.google.protobuf.ByteString getUriBytes() {
    * most, one VPC network will have this field set to true.
    * 
* - * - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The requiredForNewSiteToSiteDataTransferSpokes. */ @java.lang.Override @@ -144,7 +116,6 @@ public boolean getRequiredForNewSiteToSiteDataTransferSpokes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -156,7 +127,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -176,9 +148,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (requiredForNewSiteToSiteDataTransferSpokes_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 2, requiredForNewSiteToSiteDataTransferSpokes_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, requiredForNewSiteToSiteDataTransferSpokes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -188,15 +159,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.networkconnectivity.v1.RoutingVPC)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.RoutingVPC other = - (com.google.cloud.networkconnectivity.v1.RoutingVPC) obj; + com.google.cloud.networkconnectivity.v1.RoutingVPC other = (com.google.cloud.networkconnectivity.v1.RoutingVPC) obj; - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (getRequiredForNewSiteToSiteDataTransferSpokes() != other.getRequiredForNewSiteToSiteDataTransferSpokes()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -213,113 +184,104 @@ public int hashCode() { hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + REQUIRED_FOR_NEW_SITE_TO_SITE_DATA_TRANSFER_SPOKES_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean( - getRequiredForNewSiteToSiteDataTransferSpokes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequiredForNewSiteToSiteDataTransferSpokes()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.RoutingVPC prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * RoutingVPC contains information about the VPC networks associated
    * with the spokes of a Network Connectivity Center hub.
@@ -327,32 +289,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.RoutingVPC}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.RoutingVPC)
       com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.RoutingVPC.class,
-              com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class);
+              com.google.cloud.networkconnectivity.v1.RoutingVPC.class, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.RoutingVPC.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -363,9 +326,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
     }
 
     @java.lang.Override
@@ -384,11 +347,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.RoutingVPC buildPartial() {
-      com.google.cloud.networkconnectivity.v1.RoutingVPC result =
-          new com.google.cloud.networkconnectivity.v1.RoutingVPC(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1.RoutingVPC result = new com.google.cloud.networkconnectivity.v1.RoutingVPC(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -399,8 +359,7 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.RoutingVPC re
         result.uri_ = uri_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.requiredForNewSiteToSiteDataTransferSpokes_ =
-            requiredForNewSiteToSiteDataTransferSpokes_;
+        result.requiredForNewSiteToSiteDataTransferSpokes_ = requiredForNewSiteToSiteDataTransferSpokes_;
       }
     }
 
@@ -408,39 +367,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.RoutingVPC re
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.RoutingVPC) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.RoutingVPC) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.RoutingVPC)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -448,16 +406,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.RoutingVPC other) {
-      if (other == com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance()) return this;
       if (!other.getUri().isEmpty()) {
         uri_ = other.uri_;
         bitField0_ |= 0x00000001;
         onChanged();
       }
       if (other.getRequiredForNewSiteToSiteDataTransferSpokes() != false) {
-        setRequiredForNewSiteToSiteDataTransferSpokes(
-            other.getRequiredForNewSiteToSiteDataTransferSpokes());
+        setRequiredForNewSiteToSiteDataTransferSpokes(other.getRequiredForNewSiteToSiteDataTransferSpokes());
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -485,25 +441,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                uri_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                requiredForNewSiteToSiteDataTransferSpokes_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              uri_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              requiredForNewSiteToSiteDataTransferSpokes_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -513,25 +466,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object uri_ = "";
     /**
-     *
-     *
      * 
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -540,21 +490,20 @@ public java.lang.String getUri() { } } /** - * - * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -562,35 +511,28 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearUri() { @@ -600,21 +542,17 @@ public Builder clearUri() { return this; } /** - * - * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000001; @@ -622,10 +560,8 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { return this; } - private boolean requiredForNewSiteToSiteDataTransferSpokes_; + private boolean requiredForNewSiteToSiteDataTransferSpokes_ ; /** - * - * *
      * Output only. If true, indicates that this VPC network is currently
      * associated with spokes that use the data transfer feature (spokes where the
@@ -634,10 +570,7 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
      * most, one VPC network will have this field set to true.
      * 
* - * - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The requiredForNewSiteToSiteDataTransferSpokes. */ @java.lang.Override @@ -645,8 +578,6 @@ public boolean getRequiredForNewSiteToSiteDataTransferSpokes() { return requiredForNewSiteToSiteDataTransferSpokes_; } /** - * - * *
      * Output only. If true, indicates that this VPC network is currently
      * associated with spokes that use the data transfer feature (spokes where the
@@ -655,23 +586,18 @@ public boolean getRequiredForNewSiteToSiteDataTransferSpokes() {
      * most, one VPC network will have this field set to true.
      * 
* - * - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The requiredForNewSiteToSiteDataTransferSpokes to set. * @return This builder for chaining. */ public Builder setRequiredForNewSiteToSiteDataTransferSpokes(boolean value) { - + requiredForNewSiteToSiteDataTransferSpokes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. If true, indicates that this VPC network is currently
      * associated with spokes that use the data transfer feature (spokes where the
@@ -680,10 +606,7 @@ public Builder setRequiredForNewSiteToSiteDataTransferSpokes(boolean value) {
      * most, one VPC network will have this field set to true.
      * 
* - * - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearRequiredForNewSiteToSiteDataTransferSpokes() { @@ -692,9 +615,9 @@ public Builder clearRequiredForNewSiteToSiteDataTransferSpokes() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -704,12 +627,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.RoutingVPC) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.RoutingVPC) private static final com.google.cloud.networkconnectivity.v1.RoutingVPC DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.RoutingVPC(); } @@ -718,27 +641,27 @@ public static com.google.cloud.networkconnectivity.v1.RoutingVPC getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RoutingVPC parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoutingVPC parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -753,4 +676,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.RoutingVPC getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java similarity index 58% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java index 51cdebc1c0c2..f14b5b005d03 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface RoutingVPCOrBuilder - extends +public interface RoutingVPCOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.RoutingVPC) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * Output only. If true, indicates that this VPC network is currently
    * associated with spokes that use the data transfer feature (spokes where the
@@ -59,10 +36,7 @@ public interface RoutingVPCOrBuilder
    * most, one VPC network will have this field set to true.
    * 
* - * - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The requiredForNewSiteToSiteDataTransferSpokes. */ boolean getRequiredForNewSiteToSiteDataTransferSpokes(); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java similarity index 63% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java index f583d301160c..cc0e0a96cb32 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * A Network Connectivity Center spoke represents a connection between your
  * Google Cloud network resources and a non-Google-Cloud network.
@@ -33,16 +16,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.Spoke}
  */
-public final class Spoke extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Spoke extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.Spoke)
     SpokeOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Spoke.newBuilder() to construct.
   private Spoke(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Spoke() {
     name_ = "";
     description_ = "";
@@ -53,48 +35,45 @@ private Spoke() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Spoke();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.Spoke.class,
-            com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
+            com.google.cloud.networkconnectivity.v1.Spoke.class, com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -102,7 +81,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -111,15 +89,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; } } /** - * - * *
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -127,15 +104,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -146,15 +124,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the spoke was created.
    * 
* - * .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 @@ -162,15 +136,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the spoke was created.
    * 
* - * .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 @@ -178,14 +148,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the spoke was created.
    * 
* - * .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() { @@ -195,15 +162,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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 @@ -211,15 +174,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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 @@ -227,14 +186,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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() { @@ -242,34 +198,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networkconnectivity.v1.HubProto - .internal_static_google_cloud_networkconnectivity_v1_Spoke_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.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - 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_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -279,21 +233,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 4;
    */
   @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();
   }
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -307,8 +260,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -318,19 +269,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+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;
   }
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -340,11 +289,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @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();
     }
@@ -352,18 +301,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   public static final int DESCRIPTION_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object description_ = "";
   /**
-   *
-   *
    * 
    * An optional description of the spoke.
    * 
* * string description = 5; - * * @return The description. */ @java.lang.Override @@ -372,29 +317,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * An optional description of the spoke.
    * 
* * string description = 5; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -403,20 +348,14 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int HUB_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object hub_ = ""; /** - * - * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The hub. */ @java.lang.Override @@ -425,31 +364,29 @@ public java.lang.String getHub() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; } } /** - * - * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for hub. */ @java.lang.Override - public com.google.protobuf.ByteString getHubBytes() { + public com.google.protobuf.ByteString + getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hub_ = b; return b; } else { @@ -460,14 +397,11 @@ public com.google.protobuf.ByteString getHubBytes() { public static final int LINKED_VPN_TUNNELS_FIELD_NUMBER = 17; private com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linkedVpnTunnels_; /** - * - * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; - * * @return Whether the linkedVpnTunnels field is set. */ @java.lang.Override @@ -475,25 +409,18 @@ public boolean hasLinkedVpnTunnels() { return linkedVpnTunnels_ != null; } /** - * - * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; - * * @return The linkedVpnTunnels. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunnels() { - return linkedVpnTunnels_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() - : linkedVpnTunnels_; + return linkedVpnTunnels_ == null ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; } /** - * - * *
    * VPN tunnels that are associated with the spoke.
    * 
@@ -501,27 +428,18 @@ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunn * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder - getLinkedVpnTunnelsOrBuilder() { - return linkedVpnTunnels_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() - : linkedVpnTunnels_; + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLinkedVpnTunnelsOrBuilder() { + return linkedVpnTunnels_ == null ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; } public static final int LINKED_INTERCONNECT_ATTACHMENTS_FIELD_NUMBER = 18; - private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - linkedInterconnectAttachments_; + private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linkedInterconnectAttachments_; /** - * - * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; * @return Whether the linkedInterconnectAttachments field is set. */ @java.lang.Override @@ -529,58 +447,37 @@ public boolean hasLinkedInterconnectAttachments() { return linkedInterconnectAttachments_ != null; } /** - * - * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; * @return The linkedInterconnectAttachments. */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - getLinkedInterconnectAttachments() { - return linkedInterconnectAttachments_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() - : linkedInterconnectAttachments_; + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getLinkedInterconnectAttachments() { + return linkedInterconnectAttachments_ == null ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; } /** - * - * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder - getLinkedInterconnectAttachmentsOrBuilder() { - return linkedInterconnectAttachments_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() - : linkedInterconnectAttachments_; + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder getLinkedInterconnectAttachmentsOrBuilder() { + return linkedInterconnectAttachments_ == null ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; } public static final int LINKED_ROUTER_APPLIANCE_INSTANCES_FIELD_NUMBER = 19; - private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - linkedRouterApplianceInstances_; + private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linkedRouterApplianceInstances_; /** - * - * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; * @return Whether the linkedRouterApplianceInstances field is set. */ @java.lang.Override @@ -588,53 +485,33 @@ public boolean hasLinkedRouterApplianceInstances() { return linkedRouterApplianceInstances_ != null; } /** - * - * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; * @return The linkedRouterApplianceInstances. */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - getLinkedRouterApplianceInstances() { - return linkedRouterApplianceInstances_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - .getDefaultInstance() - : linkedRouterApplianceInstances_; + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getLinkedRouterApplianceInstances() { + return linkedRouterApplianceInstances_ == null ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; } /** - * - * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder - getLinkedRouterApplianceInstancesOrBuilder() { - return linkedRouterApplianceInstances_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - .getDefaultInstance() - : linkedRouterApplianceInstances_; + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder getLinkedRouterApplianceInstancesOrBuilder() { + return linkedRouterApplianceInstances_ == null ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; } public static final int UNIQUE_ID_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** - * - * *
    * Output only. The Google-generated UUID for the spoke. This value is unique
    * across all spoke resources. If a spoke is deleted and another with the same
@@ -642,7 +519,6 @@ public boolean hasLinkedRouterApplianceInstances() {
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ @java.lang.Override @@ -651,15 +527,14 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** - * - * *
    * Output only. The Google-generated UUID for the spoke. This value is unique
    * across all spoke resources. If a spoke is deleted and another with the same
@@ -667,15 +542,16 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -686,44 +562,30 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** - * - * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = - com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { + com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -735,7 +597,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -745,8 +608,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -781,20 +648,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -806,20 +675,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, uniqueId_); } if (state_ != com.google.cloud.networkconnectivity.v1.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, state_); } if (linkedVpnTunnels_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getLinkedVpnTunnels()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getLinkedVpnTunnels()); } if (linkedInterconnectAttachments_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 18, getLinkedInterconnectAttachments()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getLinkedInterconnectAttachments()); } if (linkedRouterApplianceInstances_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 19, getLinkedRouterApplianceInstances()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getLinkedRouterApplianceInstances()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -829,43 +698,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.networkconnectivity.v1.Spoke)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.Spoke other = - (com.google.cloud.networkconnectivity.v1.Spoke) obj; + com.google.cloud.networkconnectivity.v1.Spoke other = (com.google.cloud.networkconnectivity.v1.Spoke) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getHub().equals(other.getHub())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getHub() + .equals(other.getHub())) return false; if (hasLinkedVpnTunnels() != other.hasLinkedVpnTunnels()) return false; if (hasLinkedVpnTunnels()) { - if (!getLinkedVpnTunnels().equals(other.getLinkedVpnTunnels())) return false; + if (!getLinkedVpnTunnels() + .equals(other.getLinkedVpnTunnels())) return false; } - if (hasLinkedInterconnectAttachments() != other.hasLinkedInterconnectAttachments()) - return false; + if (hasLinkedInterconnectAttachments() != other.hasLinkedInterconnectAttachments()) return false; if (hasLinkedInterconnectAttachments()) { - if (!getLinkedInterconnectAttachments().equals(other.getLinkedInterconnectAttachments())) - return false; + if (!getLinkedInterconnectAttachments() + .equals(other.getLinkedInterconnectAttachments())) return false; } - if (hasLinkedRouterApplianceInstances() != other.hasLinkedRouterApplianceInstances()) - return false; + if (hasLinkedRouterApplianceInstances() != other.hasLinkedRouterApplianceInstances()) return false; if (hasLinkedRouterApplianceInstances()) { - if (!getLinkedRouterApplianceInstances().equals(other.getLinkedRouterApplianceInstances())) - return false; + if (!getLinkedRouterApplianceInstances() + .equals(other.getLinkedRouterApplianceInstances())) return false; } - if (!getUniqueId().equals(other.getUniqueId())) return false; + if (!getUniqueId() + .equals(other.getUniqueId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -917,104 +791,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.Spoke 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.networkconnectivity.v1.Spoke parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.Spoke parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.Spoke parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.Spoke prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Connectivity Center spoke represents a connection between your
    * Google Cloud network resources and a non-Google-Cloud network.
@@ -1027,52 +894,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.Spoke}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.Spoke)
       com.google.cloud.networkconnectivity.v1.SpokeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.Spoke.class,
-              com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
+              com.google.cloud.networkconnectivity.v1.Spoke.class, com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.Spoke.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1112,9 +982,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
     }
 
     @java.lang.Override
@@ -1133,11 +1003,8 @@ public com.google.cloud.networkconnectivity.v1.Spoke build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.Spoke buildPartial() {
-      com.google.cloud.networkconnectivity.v1.Spoke result =
-          new com.google.cloud.networkconnectivity.v1.Spoke(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1.Spoke result = new com.google.cloud.networkconnectivity.v1.Spoke(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1148,10 +1015,14 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result)
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -1164,20 +1035,19 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result)
         result.hub_ = hub_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.linkedVpnTunnels_ =
-            linkedVpnTunnelsBuilder_ == null ? linkedVpnTunnels_ : linkedVpnTunnelsBuilder_.build();
+        result.linkedVpnTunnels_ = linkedVpnTunnelsBuilder_ == null
+            ? linkedVpnTunnels_
+            : linkedVpnTunnelsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.linkedInterconnectAttachments_ =
-            linkedInterconnectAttachmentsBuilder_ == null
-                ? linkedInterconnectAttachments_
-                : linkedInterconnectAttachmentsBuilder_.build();
+        result.linkedInterconnectAttachments_ = linkedInterconnectAttachmentsBuilder_ == null
+            ? linkedInterconnectAttachments_
+            : linkedInterconnectAttachmentsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.linkedRouterApplianceInstances_ =
-            linkedRouterApplianceInstancesBuilder_ == null
-                ? linkedRouterApplianceInstances_
-                : linkedRouterApplianceInstancesBuilder_.build();
+        result.linkedRouterApplianceInstances_ = linkedRouterApplianceInstancesBuilder_ == null
+            ? linkedRouterApplianceInstances_
+            : linkedRouterApplianceInstancesBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.uniqueId_ = uniqueId_;
@@ -1191,39 +1061,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result)
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.Spoke) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.Spoke) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.Spoke)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1243,7 +1112,8 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Spoke other) {
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -1298,89 +1168,81 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                hub_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 90:
-              {
-                uniqueId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 90
-            case 120:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 120
-            case 138:
-              {
-                input.readMessage(
-                    getLinkedVpnTunnelsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 138
-            case 146:
-              {
-                input.readMessage(
-                    getLinkedInterconnectAttachmentsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 146
-            case 154:
-              {
-                input.readMessage(
-                    getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 154
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              hub_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 90: {
+              uniqueId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 90
+            case 120: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 120
+            case 138: {
+              input.readMessage(
+                  getLinkedVpnTunnelsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 138
+            case 146: {
+              input.readMessage(
+                  getLinkedInterconnectAttachmentsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 146
+            case 154: {
+              input.readMessage(
+                  getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 154
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1390,13 +1252,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1404,13 +1263,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1419,8 +1278,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1428,14 +1285,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1443,8 +1301,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1452,22 +1308,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1475,7 +1327,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1485,8 +1336,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1494,14 +1343,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1511,58 +1358,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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) { @@ -1578,17 +1406,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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(); } else { @@ -1599,21 +1424,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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 (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1626,15 +1447,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1647,15 +1464,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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() { bitField0_ |= 0x00000002; @@ -1663,48 +1476,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the spoke was created.
      * 
* - * - * .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_; @@ -1712,58 +1513,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .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) { @@ -1779,17 +1561,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .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(); } else { @@ -1800,21 +1579,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .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 (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1827,15 +1602,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1848,15 +1619,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .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() { bitField0_ |= 0x00000004; @@ -1864,66 +1631,56 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time the spoke was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1932,13 +1689,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1948,21 +1702,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 4;
      */
     @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();
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1976,8 +1729,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1987,19 +1738,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+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;
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -2009,25 +1758,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @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();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -2036,22 +1783,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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() {
       bitField0_ |= 0x00000008;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -2060,20 +1808,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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);
+    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);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -2082,28 +1827,28 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 4;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.lang.Object description_ = "";
     /**
-     *
-     *
      * 
      * An optional description of the spoke.
      * 
* * string description = 5; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2112,21 +1857,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * An optional description of the spoke.
      * 
* * string description = 5; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2134,35 +1878,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * An optional description of the spoke.
      * 
* * string description = 5; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * An optional description of the spoke.
      * 
* * string description = 5; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2172,21 +1909,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * An optional description of the spoke.
      * 
* * string description = 5; - * * @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(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -2196,22 +1929,18 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object hub_ = ""; /** - * - * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The hub. */ public java.lang.String getHub() { java.lang.Object ref = hub_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; @@ -2220,23 +1949,20 @@ public java.lang.String getHub() { } } /** - * - * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for hub. */ - public com.google.protobuf.ByteString getHubBytes() { + public com.google.protobuf.ByteString + getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hub_ = b; return b; } else { @@ -2244,39 +1970,28 @@ public com.google.protobuf.ByteString getHubBytes() { } } /** - * - * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The hub to set. * @return This builder for chaining. */ - public Builder setHub(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHub( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hub_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearHub() { @@ -2286,23 +2001,17 @@ public Builder clearHub() { return this; } /** - * - * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for hub to set. * @return This builder for chaining. */ - public Builder setHubBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHubBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hub_ = value; bitField0_ |= 0x00000020; @@ -2312,55 +2021,41 @@ public Builder setHubBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linkedVpnTunnels_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> - linkedVpnTunnelsBuilder_; + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> linkedVpnTunnelsBuilder_; /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; - * * @return Whether the linkedVpnTunnels field is set. */ public boolean hasLinkedVpnTunnels() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; - * * @return The linkedVpnTunnels. */ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunnels() { if (linkedVpnTunnelsBuilder_ == null) { - return linkedVpnTunnels_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() - : linkedVpnTunnels_; + return linkedVpnTunnels_ == null ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; } else { return linkedVpnTunnelsBuilder_.getMessage(); } } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public Builder setLinkedVpnTunnels( - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { + public Builder setLinkedVpnTunnels(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { if (linkedVpnTunnelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2374,8 +2069,6 @@ public Builder setLinkedVpnTunnels( return this; } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
@@ -2394,21 +2087,17 @@ public Builder setLinkedVpnTunnels( return this; } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public Builder mergeLinkedVpnTunnels( - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { + public Builder mergeLinkedVpnTunnels(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { if (linkedVpnTunnelsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && linkedVpnTunnels_ != null - && linkedVpnTunnels_ - != com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + linkedVpnTunnels_ != null && + linkedVpnTunnels_ != com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) { getLinkedVpnTunnelsBuilder().mergeFrom(value); } else { linkedVpnTunnels_ = value; @@ -2421,8 +2110,6 @@ public Builder mergeLinkedVpnTunnels( return this; } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
@@ -2440,42 +2127,33 @@ public Builder clearLinkedVpnTunnels() { return this; } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder - getLinkedVpnTunnelsBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder getLinkedVpnTunnelsBuilder() { bitField0_ |= 0x00000040; onChanged(); return getLinkedVpnTunnelsFieldBuilder().getBuilder(); } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder - getLinkedVpnTunnelsOrBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLinkedVpnTunnelsOrBuilder() { if (linkedVpnTunnelsBuilder_ != null) { return linkedVpnTunnelsBuilder_.getMessageOrBuilder(); } else { - return linkedVpnTunnels_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() - : linkedVpnTunnels_; + return linkedVpnTunnels_ == null ? + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; } } /** - * - * *
      * VPN tunnels that are associated with the spoke.
      * 
@@ -2483,82 +2161,56 @@ public Builder clearLinkedVpnTunnels() { * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> getLinkedVpnTunnelsFieldBuilder() { if (linkedVpnTunnelsBuilder_ == null) { - linkedVpnTunnelsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder>( - getLinkedVpnTunnels(), getParentForChildren(), isClean()); + linkedVpnTunnelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder>( + getLinkedVpnTunnels(), + getParentForChildren(), + isClean()); linkedVpnTunnels_ = null; } return linkedVpnTunnelsBuilder_; } - private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - linkedInterconnectAttachments_; + private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linkedInterconnectAttachments_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> - linkedInterconnectAttachmentsBuilder_; + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> linkedInterconnectAttachmentsBuilder_; /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; * @return Whether the linkedInterconnectAttachments field is set. */ public boolean hasLinkedInterconnectAttachments() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; * @return The linkedInterconnectAttachments. */ - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - getLinkedInterconnectAttachments() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getLinkedInterconnectAttachments() { if (linkedInterconnectAttachmentsBuilder_ == null) { - return linkedInterconnectAttachments_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - .getDefaultInstance() - : linkedInterconnectAttachments_; + return linkedInterconnectAttachments_ == null ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; } else { return linkedInterconnectAttachmentsBuilder_.getMessage(); } } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ - public Builder setLinkedInterconnectAttachments( - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { + public Builder setLinkedInterconnectAttachments(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { if (linkedInterconnectAttachmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2572,19 +2224,14 @@ public Builder setLinkedInterconnectAttachments( return this; } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ public Builder setLinkedInterconnectAttachments( - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder - builderForValue) { + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder builderForValue) { if (linkedInterconnectAttachmentsBuilder_ == null) { linkedInterconnectAttachments_ = builderForValue.build(); } else { @@ -2595,24 +2242,17 @@ public Builder setLinkedInterconnectAttachments( return this; } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ - public Builder mergeLinkedInterconnectAttachments( - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { + public Builder mergeLinkedInterconnectAttachments(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { if (linkedInterconnectAttachmentsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && linkedInterconnectAttachments_ != null - && linkedInterconnectAttachments_ - != com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - .getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + linkedInterconnectAttachments_ != null && + linkedInterconnectAttachments_ != com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance()) { getLinkedInterconnectAttachmentsBuilder().mergeFrom(value); } else { linkedInterconnectAttachments_ = value; @@ -2625,15 +2265,11 @@ public Builder mergeLinkedInterconnectAttachments( return this; } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ public Builder clearLinkedInterconnectAttachments() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2646,132 +2282,90 @@ public Builder clearLinkedInterconnectAttachments() { return this; } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder - getLinkedInterconnectAttachmentsBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder getLinkedInterconnectAttachmentsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getLinkedInterconnectAttachmentsFieldBuilder().getBuilder(); } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder - getLinkedInterconnectAttachmentsOrBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder getLinkedInterconnectAttachmentsOrBuilder() { if (linkedInterconnectAttachmentsBuilder_ != null) { return linkedInterconnectAttachmentsBuilder_.getMessageOrBuilder(); } else { - return linkedInterconnectAttachments_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - .getDefaultInstance() - : linkedInterconnectAttachments_; + return linkedInterconnectAttachments_ == null ? + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; } } /** - * - * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> getLinkedInterconnectAttachmentsFieldBuilder() { if (linkedInterconnectAttachmentsBuilder_ == null) { - linkedInterconnectAttachmentsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder>( - getLinkedInterconnectAttachments(), getParentForChildren(), isClean()); + linkedInterconnectAttachmentsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder>( + getLinkedInterconnectAttachments(), + getParentForChildren(), + isClean()); linkedInterconnectAttachments_ = null; } return linkedInterconnectAttachmentsBuilder_; } - private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - linkedRouterApplianceInstances_; + private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linkedRouterApplianceInstances_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> - linkedRouterApplianceInstancesBuilder_; + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> linkedRouterApplianceInstancesBuilder_; /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; * @return Whether the linkedRouterApplianceInstances field is set. */ public boolean hasLinkedRouterApplianceInstances() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; * @return The linkedRouterApplianceInstances. */ - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - getLinkedRouterApplianceInstances() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getLinkedRouterApplianceInstances() { if (linkedRouterApplianceInstancesBuilder_ == null) { - return linkedRouterApplianceInstances_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - .getDefaultInstance() - : linkedRouterApplianceInstances_; + return linkedRouterApplianceInstances_ == null ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; } else { return linkedRouterApplianceInstancesBuilder_.getMessage(); } } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ - public Builder setLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { + public Builder setLinkedRouterApplianceInstances(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { if (linkedRouterApplianceInstancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2785,19 +2379,14 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ public Builder setLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder - builderForValue) { + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { linkedRouterApplianceInstances_ = builderForValue.build(); } else { @@ -2808,24 +2397,17 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ - public Builder mergeLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { + public Builder mergeLinkedRouterApplianceInstances(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { if (linkedRouterApplianceInstancesBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && linkedRouterApplianceInstances_ != null - && linkedRouterApplianceInstances_ - != com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - .getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + linkedRouterApplianceInstances_ != null && + linkedRouterApplianceInstances_ != com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance()) { getLinkedRouterApplianceInstancesBuilder().mergeFrom(value); } else { linkedRouterApplianceInstances_ = value; @@ -2838,15 +2420,11 @@ public Builder mergeLinkedRouterApplianceInstances( return this; } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ public Builder clearLinkedRouterApplianceInstances() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2859,67 +2437,48 @@ public Builder clearLinkedRouterApplianceInstances() { return this; } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder - getLinkedRouterApplianceInstancesBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder getLinkedRouterApplianceInstancesBuilder() { bitField0_ |= 0x00000100; onChanged(); return getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(); } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder - getLinkedRouterApplianceInstancesOrBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder getLinkedRouterApplianceInstancesOrBuilder() { if (linkedRouterApplianceInstancesBuilder_ != null) { return linkedRouterApplianceInstancesBuilder_.getMessageOrBuilder(); } else { - return linkedRouterApplianceInstances_ == null - ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - .getDefaultInstance() - : linkedRouterApplianceInstances_; + return linkedRouterApplianceInstances_ == null ? + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; } } /** - * - * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> getLinkedRouterApplianceInstancesFieldBuilder() { if (linkedRouterApplianceInstancesBuilder_ == null) { - linkedRouterApplianceInstancesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder>( - getLinkedRouterApplianceInstances(), getParentForChildren(), isClean()); + linkedRouterApplianceInstancesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder>( + getLinkedRouterApplianceInstances(), + getParentForChildren(), + isClean()); linkedRouterApplianceInstances_ = null; } return linkedRouterApplianceInstancesBuilder_; @@ -2927,8 +2486,6 @@ public Builder clearLinkedRouterApplianceInstances() { private java.lang.Object uniqueId_ = ""; /** - * - * *
      * Output only. The Google-generated UUID for the spoke. This value is unique
      * across all spoke resources. If a spoke is deleted and another with the same
@@ -2936,13 +2493,13 @@ public Builder clearLinkedRouterApplianceInstances() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -2951,8 +2508,6 @@ public java.lang.String getUniqueId() { } } /** - * - * *
      * Output only. The Google-generated UUID for the spoke. This value is unique
      * across all spoke resources. If a spoke is deleted and another with the same
@@ -2960,14 +2515,15 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -2975,8 +2531,6 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { } } /** - * - * *
      * Output only. The Google-generated UUID for the spoke. This value is unique
      * across all spoke resources. If a spoke is deleted and another with the same
@@ -2984,22 +2538,18 @@ public com.google.protobuf.ByteString getUniqueIdBytes() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uniqueId_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
      * Output only. The Google-generated UUID for the spoke. This value is unique
      * across all spoke resources. If a spoke is deleted and another with the same
@@ -3007,7 +2557,6 @@ public Builder setUniqueId(java.lang.String value) {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -3017,8 +2566,6 @@ public Builder clearUniqueId() { return this; } /** - * - * *
      * Output only. The Google-generated UUID for the spoke. This value is unique
      * across all spoke resources. If a spoke is deleted and another with the same
@@ -3026,14 +2573,12 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000200; @@ -3043,33 +2588,22 @@ public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3080,35 +2614,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = - com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3122,16 +2645,11 @@ public Builder setState(com.google.cloud.networkconnectivity.v1.State value) { return this; } /** - * - * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -3140,9 +2658,9 @@ public Builder clearState() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3152,12 +2670,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.Spoke) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.Spoke) private static final com.google.cloud.networkconnectivity.v1.Spoke DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.Spoke(); } @@ -3166,27 +2684,27 @@ public static com.google.cloud.networkconnectivity.v1.Spoke getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Spoke parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Spoke parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3201,4 +2719,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.Spoke getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java similarity index 69% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java index 7447ac5ef375..bed544f6a0a5 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface SpokeOrBuilder - extends +public interface SpokeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.Spoke) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -33,13 +15,10 @@ public interface SpokeOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -47,90 +26,66 @@ public interface SpokeOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The time the spoke was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the spoke was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the spoke was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the spoke was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time the spoke was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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(); /** - * - * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -141,8 +96,6 @@ public interface SpokeOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -151,13 +104,15 @@ public interface SpokeOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -166,10 +121,9 @@ public interface SpokeOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -179,13 +133,11 @@ public interface SpokeOrBuilder
    * map<string, string> labels = 4;
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -194,89 +146,68 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * An optional description of the spoke.
    * 
* * string description = 5; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * An optional description of the spoke.
    * 
* * string description = 5; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The hub. */ java.lang.String getHub(); /** - * - * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for hub. */ - com.google.protobuf.ByteString getHubBytes(); + com.google.protobuf.ByteString + getHubBytes(); /** - * - * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; - * * @return Whether the linkedVpnTunnels field is set. */ boolean hasLinkedVpnTunnels(); /** - * - * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; - * * @return The linkedVpnTunnels. */ com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunnels(); /** - * - * *
    * VPN tunnels that are associated with the spoke.
    * 
@@ -286,94 +217,60 @@ java.lang.String getLabelsOrDefault( com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLinkedVpnTunnelsOrBuilder(); /** - * - * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; * @return Whether the linkedInterconnectAttachments field is set. */ boolean hasLinkedInterconnectAttachments(); /** - * - * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; * @return The linkedInterconnectAttachments. */ - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments - getLinkedInterconnectAttachments(); + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getLinkedInterconnectAttachments(); /** - * - * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; - * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; */ - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder - getLinkedInterconnectAttachmentsOrBuilder(); + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder getLinkedInterconnectAttachmentsOrBuilder(); /** - * - * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; * @return Whether the linkedRouterApplianceInstances field is set. */ boolean hasLinkedRouterApplianceInstances(); /** - * - * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; * @return The linkedRouterApplianceInstances. */ - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances - getLinkedRouterApplianceInstances(); + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getLinkedRouterApplianceInstances(); /** - * - * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; - * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; */ - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder - getLinkedRouterApplianceInstancesOrBuilder(); + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder getLinkedRouterApplianceInstancesOrBuilder(); /** - * - * *
    * Output only. The Google-generated UUID for the spoke. This value is unique
    * across all spoke resources. If a spoke is deleted and another with the same
@@ -381,13 +278,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ java.lang.String getUniqueId(); /** - * - * *
    * Output only. The Google-generated UUID for the spoke. This value is unique
    * across all spoke resources. If a spoke is deleted and another with the same
@@ -395,36 +289,26 @@ java.lang.String getLabelsOrDefault(
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString getUniqueIdBytes(); + com.google.protobuf.ByteString + getUniqueIdBytes(); /** - * - * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.networkconnectivity.v1.State getState(); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java similarity index 68% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java index 1949da5a76c0..ec2fa2252a84 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * The State enum represents the lifecycle stage of a Network Connectivity
  * Center resource.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.networkconnectivity.v1.State}
  */
-public enum State implements com.google.protobuf.ProtocolMessageEnum {
+public enum State
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * No state information available
    * 
@@ -40,8 +22,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
    * The resource's create operation is in progress
    * 
@@ -50,8 +30,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
    * The resource is active
    * 
@@ -60,8 +38,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(2), /** - * - * *
    * The resource's Delete operation is in progress
    * 
@@ -70,8 +46,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(3), /** - * - * *
    * The resource's Update operation is in progress
    * 
@@ -83,8 +57,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * No state information available
    * 
@@ -93,8 +65,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The resource's create operation is in progress
    * 
@@ -103,8 +73,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
    * The resource is active
    * 
@@ -113,8 +81,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 2; /** - * - * *
    * The resource's Delete operation is in progress
    * 
@@ -123,8 +89,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 3; /** - * - * *
    * The resource's Update operation is in progress
    * 
@@ -133,6 +97,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -157,53 +122,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 ACTIVE; - case 3: - return DELETING; - case 6: - return UPDATING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return ACTIVE; + case 3: return DELETING; + case 6: return UPDATING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap 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< + 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() { + 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.networkconnectivity.v1.HubProto.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; @@ -219,3 +182,4 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.State) } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java similarity index 72% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java index f082dcb6dd84..a48962bf885f 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * Request for
  * [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub]
@@ -29,51 +12,47 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateHubRequest}
  */
-public final class UpdateHubRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateHubRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.UpdateHubRequest)
     UpdateHubRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateHubRequest.newBuilder() to construct.
   private UpdateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UpdateHubRequest() {
     requestId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateHubRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class,
-            com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class);
   }
 
   public static final int UPDATE_MASK_FIELD_NUMBER = 1;
   private com.google.protobuf.FieldMask updateMask_;
   /**
-   *
-   *
    * 
    * Optional. In the case of an update to an existing hub, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -82,9 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -92,8 +69,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. In the case of an update to an existing hub, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -102,9 +77,7 @@ public boolean hasUpdateMask() {
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -112,8 +85,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. In the case of an update to an existing hub, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -122,8 +93,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -133,16 +103,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int HUB_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1.Hub hub_; /** - * - * *
    * Required. The state that the hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ @java.lang.Override @@ -150,16 +115,11 @@ public boolean hasHub() { return hub_ != null; } /** - * - * *
    * Required. The state that the hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ @java.lang.Override @@ -167,15 +127,11 @@ public com.google.cloud.networkconnectivity.v1.Hub getHub() { return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } /** - * - * *
    * Required. The state that the hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { @@ -183,12 +139,9 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { } public static final int REQUEST_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -205,7 +158,6 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -214,15 +166,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -239,15 +190,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -256,7 +208,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +219,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -288,10 +240,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHub()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -304,23 +258,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1.UpdateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.UpdateHubRequest other = - (com.google.cloud.networkconnectivity.v1.UpdateHubRequest) obj; + com.google.cloud.networkconnectivity.v1.UpdateHubRequest other = (com.google.cloud.networkconnectivity.v1.UpdateHubRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub().equals(other.getHub())) return false; + if (!getHub() + .equals(other.getHub())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,104 +304,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.UpdateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub]
@@ -454,32 +402,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateHubRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.UpdateHubRequest)
       com.google.cloud.networkconnectivity.v1.UpdateHubRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class,
-              com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.UpdateHubRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -499,9 +448,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
     }
 
     @java.lang.Override
@@ -520,11 +469,8 @@ public com.google.cloud.networkconnectivity.v1.UpdateHubRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.UpdateHubRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.UpdateHubRequest result =
-          new com.google.cloud.networkconnectivity.v1.UpdateHubRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1.UpdateHubRequest result = new com.google.cloud.networkconnectivity.v1.UpdateHubRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -532,10 +478,14 @@ public com.google.cloud.networkconnectivity.v1.UpdateHubRequest buildPartial() {
     private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateHubRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build();
+        result.hub_ = hubBuilder_ == null
+            ? hub_
+            : hubBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.requestId_ = requestId_;
@@ -546,39 +496,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateHubRequ
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.UpdateHubRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateHubRequest) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateHubRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -586,8 +535,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.UpdateHubRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.UpdateHubRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1.UpdateHubRequest.getDefaultInstance()) return this;
       if (other.hasUpdateMask()) {
         mergeUpdateMask(other.getUpdateMask());
       }
@@ -625,31 +573,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                requestId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getUpdateMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getHubFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              requestId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -659,18 +607,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.FieldMask updateMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
-        updateMaskBuilder_;
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
     /**
-     *
-     *
      * 
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -679,17 +621,13 @@ public Builder mergeFrom(
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -698,23 +636,17 @@ public boolean hasUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -723,8 +655,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -740,8 +671,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -750,10 +679,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -764,8 +693,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -774,14 +701,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -794,8 +720,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -804,8 +728,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -818,8 +741,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -828,8 +749,7 @@ public Builder clearUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -837,8 +757,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -847,21 +765,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -870,21 +784,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -892,58 +802,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder> - hubBuilder_; + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> hubBuilder_; /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ public com.google.cloud.networkconnectivity.v1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } else { return hubBuilder_.getMessage(); } } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { @@ -959,17 +850,14 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { + public Builder setHub( + com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { if (hubBuilder_ == null) { hub_ = builderForValue.build(); } else { @@ -980,21 +868,17 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub.Builder builde return this; } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && hub_ != null - && hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + hub_ != null && + hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -1007,15 +891,11 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1028,15 +908,11 @@ public Builder clearHub() { return this; } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000002; @@ -1044,48 +920,36 @@ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { return getHubFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? + com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } } /** - * - * *
      * Required. The state that the hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, - com.google.cloud.networkconnectivity.v1.Hub.Builder, - com.google.cloud.networkconnectivity.v1.HubOrBuilder>( - getHub(), getParentForChildren(), isClean()); + hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder>( + getHub(), + getParentForChildren(), + isClean()); hub_ = null; } return hubBuilder_; @@ -1093,8 +957,6 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1111,13 +973,13 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1126,8 +988,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1144,14 +1004,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1159,8 +1020,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1177,22 +1036,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1209,7 +1064,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1219,8 +1073,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1237,23 +1089,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1263,12 +1113,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.UpdateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.UpdateHubRequest) private static final com.google.cloud.networkconnectivity.v1.UpdateHubRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.UpdateHubRequest(); } @@ -1277,27 +1127,27 @@ public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1312,4 +1162,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.UpdateHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java similarity index 77% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java index 7c84e91cbc36..7aefcde1de11 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface UpdateHubRequestOrBuilder - extends +public interface UpdateHubRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.UpdateHubRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. In the case of an update to an existing hub, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -34,15 +16,11 @@ public interface UpdateHubRequestOrBuilder
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. In the case of an update to an existing hub, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -51,15 +29,11 @@ public interface UpdateHubRequestOrBuilder
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. In the case of an update to an existing hub, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -68,55 +42,38 @@ public interface UpdateHubRequestOrBuilder
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The state that the hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ boolean hasHub(); /** - * - * *
    * Required. The state that the hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ com.google.cloud.networkconnectivity.v1.Hub getHub(); /** - * - * *
    * Required. The state that the hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder(); /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -133,13 +90,10 @@ public interface UpdateHubRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -156,8 +110,8 @@ public interface UpdateHubRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java similarity index 71% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java index 534117c8bac9..72ba4d317265 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** - * - * *
  * Request for
  * [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke]
@@ -29,51 +12,47 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateSpokeRequest}
  */
-public final class UpdateSpokeRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateSpokeRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.UpdateSpokeRequest)
     UpdateSpokeRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateSpokeRequest.newBuilder() to construct.
   private UpdateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UpdateSpokeRequest() {
     requestId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateSpokeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class,
-            com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class);
   }
 
   public static final int UPDATE_MASK_FIELD_NUMBER = 1;
   private com.google.protobuf.FieldMask updateMask_;
   /**
-   *
-   *
    * 
    * Optional. In the case of an update to an existing spoke, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -82,9 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -92,8 +69,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. In the case of an update to an existing spoke, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -102,9 +77,7 @@ public boolean hasUpdateMask() {
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -112,8 +85,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. In the case of an update to an existing spoke, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -122,8 +93,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -133,16 +103,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int SPOKE_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1.Spoke spoke_; /** - * - * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ @java.lang.Override @@ -150,49 +115,33 @@ public boolean hasSpoke() { return spoke_ != null; } /** - * - * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } /** - * - * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -209,7 +158,6 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -218,15 +166,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -243,15 +190,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -260,7 +208,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,7 +219,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -292,10 +240,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpoke()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -308,23 +258,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest other = - (com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest other = (com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke().equals(other.getSpoke())) return false; + if (!getSpoke() + .equals(other.getSpoke())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -352,104 +304,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke]
@@ -458,32 +402,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateSpokeRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.UpdateSpokeRequest)
       com.google.cloud.networkconnectivity.v1.UpdateSpokeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class,
-              com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -503,9 +448,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -524,11 +469,8 @@ public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest result =
-          new com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest result = new com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -536,10 +478,14 @@ public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest buildPartial()
     private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build();
+        result.spoke_ = spokeBuilder_ == null
+            ? spoke_
+            : spokeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.requestId_ = requestId_;
@@ -550,39 +496,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateSpokeRe
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -590,8 +535,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.getDefaultInstance()) return this;
       if (other.hasUpdateMask()) {
         mergeUpdateMask(other.getUpdateMask());
       }
@@ -629,31 +573,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                requestId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getUpdateMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getSpokeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              requestId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -663,18 +607,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.FieldMask updateMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
-        updateMaskBuilder_;
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
     /**
-     *
-     *
      * 
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -683,17 +621,13 @@ public Builder mergeFrom(
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -702,23 +636,17 @@ public boolean hasUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -727,8 +655,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -744,8 +671,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -754,10 +679,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -768,8 +693,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -778,14 +701,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -798,8 +720,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -808,8 +728,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -822,8 +741,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -832,8 +749,7 @@ public Builder clearUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -841,8 +757,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -851,21 +765,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -874,21 +784,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -896,58 +802,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> - spokeBuilder_; + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> spokeBuilder_; /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } else { return spokeBuilder_.getMessage(); } } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { @@ -963,17 +850,14 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { + public Builder setSpoke( + com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { if (spokeBuilder_ == null) { spoke_ = builderForValue.build(); } else { @@ -984,21 +868,17 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke.Builder bu return this; } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && spoke_ != null - && spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + spoke_ != null && + spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -1011,15 +891,11 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1032,15 +908,11 @@ public Builder clearSpoke() { return this; } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000002; @@ -1048,48 +920,36 @@ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { return getSpokeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? + com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; } } /** - * - * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, - com.google.cloud.networkconnectivity.v1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( - getSpoke(), getParentForChildren(), isClean()); + spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( + getSpoke(), + getParentForChildren(), + isClean()); spoke_ = null; } return spokeBuilder_; @@ -1097,8 +957,6 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder( private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1115,13 +973,13 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1130,8 +988,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1148,14 +1004,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1163,8 +1020,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1181,22 +1036,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1213,7 +1064,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1223,8 +1073,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1241,23 +1089,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1267,12 +1113,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(); } @@ -1281,27 +1127,27 @@ public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1316,4 +1162,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java similarity index 77% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java index 7531903678e0..ff21e1d7ea89 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface UpdateSpokeRequestOrBuilder - extends +public interface UpdateSpokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. In the case of an update to an existing spoke, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -34,15 +16,11 @@ public interface UpdateSpokeRequestOrBuilder
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. In the case of an update to an existing spoke, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -51,15 +29,11 @@ public interface UpdateSpokeRequestOrBuilder
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. In the case of an update to an existing spoke, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -68,55 +42,38 @@ public interface UpdateSpokeRequestOrBuilder
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ boolean hasSpoke(); /** - * - * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ com.google.cloud.networkconnectivity.v1.Spoke getSpoke(); /** - * - * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(); /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -133,13 +90,10 @@ public interface UpdateSpokeRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -156,8 +110,8 @@ public interface UpdateSpokeRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto rename to owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java similarity index 99% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java index 89775db66f05..b824a3ceabcd 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.networkconnectivity.v1alpha1.stub.HubServiceStubSettings; diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java similarity index 99% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java index 8298968354e6..fffc277454e3 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java @@ -49,6 +49,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/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java similarity index 100% rename from java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java new file mode 100644 index 000000000000..013a0c0da196 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java @@ -0,0 +1,1092 @@ +package com.google.cloud.networkconnectivity.v1alpha1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Network Connectivity Center is a hub-and-spoke abstraction for
+ * network connectivity management in Google Cloud. It reduces
+ * operational complexity through a simple, centralized connectivity management
+ * model.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networkconnectivity/v1alpha1/hub.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class HubServiceGrpc { + + private HubServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1alpha1.HubService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListHubsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListHubs", + requestType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListHubsMethod() { + io.grpc.MethodDescriptor getListHubsMethod; + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + HubServiceGrpc.getListHubsMethod = getListHubsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) + .build(); + } + } + } + return getListHubsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.Hub.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetHubMethod() { + io.grpc.MethodDescriptor getGetHubMethod; + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + HubServiceGrpc.getGetHubMethod = getGetHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) + .build(); + } + } + } + return getGetHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateHubMethod() { + io.grpc.MethodDescriptor getCreateHubMethod; + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + HubServiceGrpc.getCreateHubMethod = getCreateHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) + .build(); + } + } + } + return getCreateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateHubMethod() { + io.grpc.MethodDescriptor getUpdateHubMethod; + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + HubServiceGrpc.getUpdateHubMethod = getUpdateHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) + .build(); + } + } + } + return getUpdateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteHubMethod() { + io.grpc.MethodDescriptor getDeleteHubMethod; + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + HubServiceGrpc.getDeleteHubMethod = getDeleteHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) + .build(); + } + } + } + return getDeleteHubMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSpokesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSpokes", + requestType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSpokesMethod() { + io.grpc.MethodDescriptor getListSpokesMethod; + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + HubServiceGrpc.getListSpokesMethod = getListSpokesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) + .build(); + } + } + } + return getListSpokesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSpokeMethod() { + io.grpc.MethodDescriptor getGetSpokeMethod; + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + HubServiceGrpc.getGetSpokeMethod = getGetSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) + .build(); + } + } + } + return getGetSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSpokeMethod() { + io.grpc.MethodDescriptor getCreateSpokeMethod; + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + HubServiceGrpc.getCreateSpokeMethod = getCreateSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) + .build(); + } + } + } + return getCreateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSpokeMethod() { + io.grpc.MethodDescriptor getUpdateSpokeMethod; + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + HubServiceGrpc.getUpdateSpokeMethod = getUpdateSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) + .build(); + } + } + } + return getUpdateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSpokeMethod() { + io.grpc.MethodDescriptor getDeleteSpokeMethod; + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + HubServiceGrpc.getDeleteSpokeMethod = getDeleteSpokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) + .build(); + } + } + } + return getDeleteSpokeMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static HubServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + }; + return HubServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static HubServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + }; + return HubServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static HubServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + }; + return HubServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static abstract class HubServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public void listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single Hub.
+     * 
+ */ + public void getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); + } + + /** + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public void createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); + } + + /** + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public void updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); + } + + /** + *
+     * Deletes a single Hub.
+     * 
+ */ + public void deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); + } + + /** + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public void listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public void getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); + } + + /** + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public void createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSpokeMethod(), responseObserver); + } + + /** + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public void updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSpokeMethod(), responseObserver); + } + + /** + *
+     * Deletes a single Spoke.
+     * 
+ */ + public void deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSpokeMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListHubsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>( + this, METHODID_LIST_HUBS))) + .addMethod( + getGetHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, + com.google.cloud.networkconnectivity.v1alpha1.Hub>( + this, METHODID_GET_HUB))) + .addMethod( + getCreateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_HUB))) + .addMethod( + getUpdateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_HUB))) + .addMethod( + getDeleteHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_HUB))) + .addMethod( + getListSpokesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>( + this, METHODID_LIST_SPOKES))) + .addMethod( + getGetSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1alpha1.Spoke>( + this, METHODID_GET_SPOKE))) + .addMethod( + getCreateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_SPOKE))) + .addMethod( + getUpdateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_SPOKE))) + .addMethod( + getDeleteSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_SPOKE))) + .build(); + } + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { + private HubServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + + /** + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public void listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single Hub.
+     * 
+ */ + public void getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public void createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public void updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single Hub.
+     * 
+ */ + public void deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public void listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public void getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public void createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public void updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single Spoke.
+     * 
+ */ + public void deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static final class HubServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private HubServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListHubsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single Hub.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public com.google.longrunning.Operation updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single Hub.
+     * 
+ */ + public com.google.longrunning.Operation deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteHubMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSpokesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSpokeMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSpokeMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public com.google.longrunning.Operation updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single Spoke.
+     * 
+ */ + public com.google.longrunning.Operation deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static final class HubServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private HubServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listHubs( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single Hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getHub( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createHub( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateHub( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single Hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteHub( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSpokes( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSpoke( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSpoke( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSpoke( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single Spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSpoke( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_HUBS = 0; + private static final int METHODID_GET_HUB = 1; + private static final int METHODID_CREATE_HUB = 2; + private static final int METHODID_UPDATE_HUB = 3; + private static final int METHODID_DELETE_HUB = 4; + private static final int METHODID_LIST_SPOKES = 5; + private static final int METHODID_GET_SPOKE = 6; + private static final int METHODID_CREATE_SPOKE = 7; + private static final int METHODID_UPDATE_SPOKE = 8; + private static final int METHODID_DELETE_SPOKE = 9; + + 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 HubServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(HubServiceImplBase 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_HUBS: + serviceImpl.listHubs((com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_HUB: + serviceImpl.getHub((com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_HUB: + serviceImpl.createHub((com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_HUB: + serviceImpl.updateHub((com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_HUB: + serviceImpl.deleteHub((com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SPOKES: + serviceImpl.listSpokes((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SPOKE: + serviceImpl.getSpoke((com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SPOKE: + serviceImpl.createSpoke((com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SPOKE: + serviceImpl.updateSpoke((com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SPOKE: + serviceImpl.deleteSpoke((com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + HubServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("HubService"); + } + } + + private static final class HubServiceFileDescriptorSupplier + extends HubServiceBaseDescriptorSupplier { + HubServiceFileDescriptorSupplier() {} + } + + private static final class HubServiceMethodDescriptorSupplier + extends HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) + .addMethod(getListHubsMethod()) + .addMethod(getGetHubMethod()) + .addMethod(getCreateHubMethod()) + .addMethod(getUpdateHubMethod()) + .addMethod(getDeleteHubMethod()) + .addMethod(getListSpokesMethod()) + .addMethod(getGetSpokeMethod()) + .addMethod(getCreateSpokeMethod()) + .addMethod(getUpdateSpokeMethod()) + .addMethod(getDeleteSpokeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java new file mode 100644 index 000000000000..4bee516017a0 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1alpha1/common.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public final class CommonProto { + private CommonProto() {} + 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_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/networkconnectivity/v1alp" + + "ha1/common.proto\022)google.cloud.networkco" + + "nnectivity.v1alpha1\032\037google/api/field_be" + + "havior.proto\032\037google/protobuf/timestamp." + + "proto\"\200\002\n\021OperationMetadata\0224\n\013create_ti" + + "me\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004ver" + + "b\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\003B\243\002\n-com.google." + + "cloud.networkconnectivity.v1alpha1B\013Comm" + + "onProtoP\001Z\\google.golang.org/genproto/go" + + "ogleapis/cloud/networkconnectivity/v1alp" + + "ha1;networkconnectivity\252\002)Google.Cloud.N" + + "etworkConnectivity.V1Alpha1\312\002)Google\\Clo" + + "ud\\NetworkConnectivity\\V1alpha1\352\002,Google" + + "::Cloud::NetworkConnectivity::V1alpha1b\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java index ff4aaf180be5..b77dc1fda61b 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Request for [HubService.CreateHub][google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateHubRequest} */ -public final class CreateHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) CreateHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateHubRequest.newBuilder() to construct. private CreateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateHubRequest() { parent_ = ""; hubId_ = ""; @@ -45,45 +27,38 @@ private CreateHubRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource's name of the Hub.
    * 
* - * - * string parent = 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 @@ -92,31 +67,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource's name of the Hub.
    * 
* - * - * string parent = 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 { @@ -125,18 +98,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int HUB_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object hubId_ = ""; /** - * - * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hubId. */ @java.lang.Override @@ -145,29 +114,29 @@ public java.lang.String getHubId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; } } /** - * - * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for hubId. */ @java.lang.Override - public com.google.protobuf.ByteString getHubIdBytes() { + public com.google.protobuf.ByteString + getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hubId_ = b; return b; } else { @@ -178,16 +147,11 @@ public com.google.protobuf.ByteString getHubIdBytes() { public static final int HUB_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ @java.lang.Override @@ -195,49 +159,33 @@ public boolean hasHub() { return hub_ != null; } /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -253,7 +201,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -262,15 +209,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -286,15 +232,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -303,7 +250,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -344,7 +291,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hubId_); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHub()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -357,21 +305,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.networkconnectivity.v1alpha1.CreateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getHubId().equals(other.getHubId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getHubId() + .equals(other.getHubId())) return false; if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub().equals(other.getHub())) return false; + if (!getHub() + .equals(other.getHub())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -399,136 +350,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.CreateHub][google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -545,14 +489,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance(); } @@ -567,17 +510,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -586,7 +525,9 @@ private void buildPartial0( result.hubId_ = hubId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build(); + result.hub_ = hubBuilder_ == null + ? hub_ + : hubBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -597,39 +538,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest)other); } else { super.mergeFrom(other); return this; @@ -637,9 +577,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -684,37 +622,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - hubId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + hubId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getHubFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -724,27 +659,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource's name of the Hub.
      * 
* - * - * string parent = 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; @@ -753,23 +683,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource's name of the Hub.
      * 
* - * - * string parent = 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 { @@ -777,39 +704,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource's name of the Hub.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource's name of the Hub.
      * 
* - * - * string 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() { @@ -819,23 +735,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource's name of the Hub.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -845,20 +755,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object hubId_ = ""; /** - * - * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hubId. */ public java.lang.String getHubId() { java.lang.Object ref = hubId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; @@ -867,21 +775,20 @@ public java.lang.String getHubId() { } } /** - * - * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for hubId. */ - public com.google.protobuf.ByteString getHubIdBytes() { + public com.google.protobuf.ByteString + getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hubId_ = b; return b; } else { @@ -889,35 +796,28 @@ public com.google.protobuf.ByteString getHubIdBytes() { } } /** - * - * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The hubId to set. * @return This builder for chaining. */ - public Builder setHubId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHubId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hubId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearHubId() { @@ -927,21 +827,17 @@ public Builder clearHubId() { return this; } /** - * - * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for hubId to set. * @return This builder for chaining. */ - public Builder setHubIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHubIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hubId_ = value; bitField0_ |= 0x00000002; @@ -951,58 +847,39 @@ public Builder setHubIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> - hubBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> hubBuilder_; /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } else { return hubBuilder_.getMessage(); } } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { @@ -1018,15 +895,11 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHub( com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder builderForValue) { @@ -1040,21 +913,17 @@ public Builder setHub( return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && hub_ != null - && hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + hub_ != null && + hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -1067,15 +936,11 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1088,15 +953,11 @@ public Builder clearHub() { return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000004; @@ -1104,48 +965,36 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() return getHubFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? + com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( - getHub(), getParentForChildren(), isClean()); + hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( + getHub(), + getParentForChildren(), + isClean()); hub_ = null; } return hubBuilder_; @@ -1153,8 +1002,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1170,13 +1017,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1185,8 +1032,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1202,14 +1047,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1217,8 +1063,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1234,22 +1078,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1265,7 +1105,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1275,8 +1114,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1292,23 +1129,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1318,43 +1153,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1366,8 +1199,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java similarity index 68% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java index fecd3ded33d5..7ada53d7d300 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java @@ -1,126 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface CreateHubRequestOrBuilder - extends +public interface CreateHubRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource's name of the Hub.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource's name of the Hub.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The hubId. */ java.lang.String getHubId(); /** - * - * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for hubId. */ - com.google.protobuf.ByteString getHubIdBytes(); + com.google.protobuf.ByteString + getHubIdBytes(); /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ boolean hasHub(); /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ com.google.cloud.networkconnectivity.v1alpha1.Hub getHub(); /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -136,13 +90,10 @@ public interface CreateHubRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -158,8 +109,8 @@ public interface CreateHubRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java index 6f8e9420cec0..da2748dcd13b 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest} */ -public final class CreateSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) CreateSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSpokeRequest.newBuilder() to construct. private CreateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSpokeRequest() { parent_ = ""; spokeId_ = ""; @@ -45,45 +27,38 @@ private CreateSpokeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * - * string parent = 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 @@ -92,31 +67,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * - * string parent = 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 { @@ -125,18 +98,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int SPOKE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object spokeId_ = ""; /** - * - * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The spokeId. */ @java.lang.Override @@ -145,29 +114,29 @@ public java.lang.String getSpokeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; } } /** - * - * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for spokeId. */ @java.lang.Override - public com.google.protobuf.ByteString getSpokeIdBytes() { + public com.google.protobuf.ByteString + getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); spokeId_ = b; return b; } else { @@ -178,16 +147,11 @@ public com.google.protobuf.ByteString getSpokeIdBytes() { public static final int SPOKE_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ @java.lang.Override @@ -195,49 +159,33 @@ public boolean hasSpoke() { return spoke_ != null; } /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -253,7 +201,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -262,15 +209,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -286,15 +232,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -303,7 +250,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -344,7 +291,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, spokeId_); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSpoke()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -357,21 +305,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.networkconnectivity.v1alpha1.CreateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getSpokeId().equals(other.getSpokeId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getSpokeId() + .equals(other.getSpokeId())) return false; if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke().equals(other.getSpoke())) return false; + if (!getSpoke() + .equals(other.getSpoke())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -399,136 +350,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -545,14 +489,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance(); } @@ -567,17 +510,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -586,7 +525,9 @@ private void buildPartial0( result.spokeId_ = spokeId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build(); + result.spoke_ = spokeBuilder_ == null + ? spoke_ + : spokeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -597,50 +538,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other) { + if (other == com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -685,37 +622,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - spokeId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + spokeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getSpokeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -725,27 +659,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * - * string parent = 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; @@ -754,23 +683,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * - * string parent = 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 { @@ -778,39 +704,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * - * string 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() { @@ -820,23 +735,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -846,20 +755,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object spokeId_ = ""; /** - * - * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The spokeId. */ public java.lang.String getSpokeId() { java.lang.Object ref = spokeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; @@ -868,21 +775,20 @@ public java.lang.String getSpokeId() { } } /** - * - * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for spokeId. */ - public com.google.protobuf.ByteString getSpokeIdBytes() { + public com.google.protobuf.ByteString + getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); spokeId_ = b; return b; } else { @@ -890,35 +796,28 @@ public com.google.protobuf.ByteString getSpokeIdBytes() { } } /** - * - * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpokeId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } spokeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSpokeId() { @@ -928,21 +827,17 @@ public Builder clearSpokeId() { return this; } /** - * - * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpokeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); spokeId_ = value; bitField0_ |= 0x00000002; @@ -952,58 +847,39 @@ public Builder setSpokeIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> - spokeBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> spokeBuilder_; /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } else { return spokeBuilder_.getMessage(); } } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { @@ -1019,15 +895,11 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke valu return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSpoke( com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder builderForValue) { @@ -1041,21 +913,17 @@ public Builder setSpoke( return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && spoke_ != null - && spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + spoke_ != null && + spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -1068,15 +936,11 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke va return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1089,15 +953,11 @@ public Builder clearSpoke() { return this; } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000004; @@ -1105,48 +965,36 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuild return getSpokeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? + com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } } /** - * - * *
      * Required. Initial values for a new Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( - getSpoke(), getParentForChildren(), isClean()); + spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( + getSpoke(), + getParentForChildren(), + isClean()); spoke_ = null; } return spokeBuilder_; @@ -1154,8 +1002,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1171,13 +1017,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1186,8 +1032,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1203,14 +1047,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1218,8 +1063,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1235,22 +1078,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1266,7 +1105,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1276,8 +1114,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1293,23 +1129,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1319,43 +1153,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1367,8 +1199,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java similarity index 68% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java index 0acea62a3476..7cdd693f7086 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java @@ -1,126 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface CreateSpokeRequestOrBuilder - extends +public interface CreateSpokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * - * string parent = 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(); /** - * - * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The spokeId. */ java.lang.String getSpokeId(); /** - * - * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for spokeId. */ - com.google.protobuf.ByteString getSpokeIdBytes(); + com.google.protobuf.ByteString + getSpokeIdBytes(); /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ boolean hasSpoke(); /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke(); /** - * - * *
    * Required. Initial values for a new Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -136,13 +90,10 @@ public interface CreateSpokeRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -158,8 +109,8 @@ public interface CreateSpokeRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java similarity index 69% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java index b12bad9a3b29..64ea69b076e4 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest} */ -public final class DeleteHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) DeleteHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteHubRequest.newBuilder() to construct. private DeleteHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteHubRequest() { name_ = ""; requestId_ = ""; @@ -44,45 +26,38 @@ private DeleteHubRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the Hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -91,31 +66,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the Hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,12 +97,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -145,7 +115,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -154,15 +123,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -178,15 +146,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -195,7 +164,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +175,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -237,16 +206,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.networkconnectivity.v1alpha1.DeleteHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,136 +238,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -408,14 +371,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance(); } @@ -430,17 +392,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -454,39 +412,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest)other); } else { super.mergeFrom(other); return this; @@ -494,9 +451,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -533,25 +488,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -561,27 +513,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the Hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -590,23 +537,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the Hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -614,39 +558,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the Hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the Hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -656,23 +589,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the Hub to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -682,8 +609,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -699,13 +624,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -714,8 +639,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -731,14 +654,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -746,8 +670,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -763,22 +685,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -794,7 +712,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -804,8 +721,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -821,23 +736,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -847,43 +760,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -895,8 +806,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java index 033fd24fc4b8..861358b8374d 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface DeleteHubRequestOrBuilder - extends +public interface DeleteHubRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the Hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the Hub to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -70,13 +43,10 @@ public interface DeleteHubRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,8 +62,8 @@ public interface DeleteHubRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java similarity index 69% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java index 1569d811fb22..5e99a2274873 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest} */ -public final class DeleteSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) DeleteSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteSpokeRequest.newBuilder() to construct. private DeleteSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteSpokeRequest() { name_ = ""; requestId_ = ""; @@ -44,45 +26,38 @@ private DeleteSpokeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the Spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -91,31 +66,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the Spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,12 +97,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -145,7 +115,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -154,15 +123,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -178,15 +146,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -195,7 +164,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +175,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -237,16 +206,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.networkconnectivity.v1alpha1.DeleteSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,136 +238,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -408,14 +371,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance(); } @@ -430,17 +392,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -454,50 +412,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other) { + if (other == com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -534,25 +488,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -562,27 +513,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the Spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -591,23 +537,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the Spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -615,39 +558,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the Spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the Spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -657,23 +589,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the Spoke to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -683,8 +609,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -700,13 +624,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -715,8 +639,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -732,14 +654,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -747,8 +670,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -764,22 +685,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -795,7 +712,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -805,8 +721,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -822,23 +736,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -848,43 +760,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,8 +806,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java index a1bef18bbd22..1be7096a8498 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface DeleteSpokeRequestOrBuilder - extends +public interface DeleteSpokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the Spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the Spoke to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -70,13 +43,10 @@ public interface DeleteSpokeRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,8 +62,8 @@ public interface DeleteSpokeRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java similarity index 63% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java index f9b4ab4e5e6c..5ba1a3a7791d 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java @@ -1,87 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Request for [HubService.GetHub][google.cloud.networkconnectivity.v1alpha1.HubService.GetHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetHubRequest} */ -public final class GetHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) GetHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetHubRequest.newBuilder() to construct. private GetHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetHubRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the Hub resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,31 +65,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 Hub resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -159,15 +132,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.networkconnectivity.v1alpha1.GetHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +160,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.GetHub][google.cloud.networkconnectivity.v1alpha1.HubService.GetHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) com.google.cloud.networkconnectivity.v1alpha1.GetHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; } @java.lang.Override @@ -347,11 +313,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -367,39 +330,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.GetHubR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest)other); } else { super.mergeFrom(other); return this; @@ -407,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the Hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -491,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the Hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -515,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the Hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the Hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -557,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the Hub resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) private static final com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest(); } @@ -606,27 +540,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java new file mode 100644 index 000000000000..c6b8ae7dba4a --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1alpha1/hub.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public interface GetHubRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the Hub resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the Hub resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java similarity index 61% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java index cf7d7735d223..6241282b9908 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java @@ -1,87 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest} */ -public final class GetSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) GetSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSpokeRequest.newBuilder() to construct. private GetSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSpokeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of Spoke resource.
    * 
* - * - * string name = 1 [(.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 @@ -90,31 +65,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of Spoke resource.
    * 
* - * - * string name = 1 [(.google.api.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 { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -159,15 +132,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.networkconnectivity.v1alpha1.GetSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +160,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,14 +292,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance(); } @@ -348,17 +313,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -369,39 +330,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest)other); } else { super.mergeFrom(other); return this; @@ -409,9 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -443,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -465,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of Spoke resource.
      * 
* - * - * string name = 1 [(.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; @@ -494,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of Spoke resource.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -518,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of Spoke resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of Spoke resource.
      * 
* - * - * string 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() { @@ -560,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of Spoke resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -595,13 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest(); } @@ -610,27 +540,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -645,4 +575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java new file mode 100644 index 000000000000..a34464f02bd3 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1alpha1/hub.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public interface GetSpokeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of Spoke resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of Spoke 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java similarity index 66% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java index 4f6053f779e0..0785f0c3b51e 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Network Connectivity Center is a hub-and-spoke abstraction for
  * network connectivity management in Google Cloud. It reduces
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Hub}
  */
-public final class Hub extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Hub extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.Hub)
     HubOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Hub.newBuilder() to construct.
   private Hub(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Hub() {
     name_ = "";
     description_ = "";
@@ -50,54 +32,50 @@ private Hub() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Hub();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1alpha1.Hub.class,
-            com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
+            com.google.cloud.networkconnectivity.v1alpha1.Hub.class, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -106,29 +84,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; } } /** - * - * *
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -139,14 +117,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -154,14 +129,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return The createTime. */ @java.lang.Override @@ -169,8 +141,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Time when the Hub was created.
    * 
@@ -185,14 +155,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -200,14 +167,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ @java.lang.Override @@ -215,8 +179,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Time when the Hub was updated.
    * 
@@ -229,34 +191,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_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.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - 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_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * User-defined labels.
    * 
@@ -264,21 +224,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** - * - * *
    * User-defined labels.
    * 
@@ -290,8 +249,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * User-defined labels.
    * 
@@ -299,19 +256,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +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; } /** - * - * *
    * User-defined labels.
    * 
@@ -319,11 +274,11 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @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(); } @@ -331,18 +286,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int DESCRIPTION_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Short description of the hub resource.
    * 
* * string description = 5; - * * @return The description. */ @java.lang.Override @@ -351,29 +302,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Short description of the hub resource.
    * 
* * string description = 5; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -382,52 +333,37 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int SPOKES_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList spokes_; /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return A list containing the spokes. */ - public com.google.protobuf.ProtocolStringList getSpokesList() { + public com.google.protobuf.ProtocolStringList + getSpokesList() { return spokes_; } /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The count of spokes. */ public int getSpokesCount() { return spokes_.size(); } /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The spokes at the given index. */ @@ -435,30 +371,23 @@ public java.lang.String getSpokes(int index) { return spokes_.get(index); } /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the spokes at the given index. */ - public com.google.protobuf.ByteString getSpokesBytes(int index) { + public com.google.protobuf.ByteString + getSpokesBytes(int index) { return spokes_.getByteString(index); } public static final int UNIQUE_ID_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -466,7 +395,6 @@ public com.google.protobuf.ByteString getSpokesBytes(int index) {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ @java.lang.Override @@ -475,15 +403,14 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -491,15 +418,16 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -510,46 +438,30 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = - com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null - ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { + com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -561,7 +473,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -571,8 +484,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -582,8 +499,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, uniqueId_); } - if (state_ - != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(9, state_); } getUnknownFields().writeTo(output); @@ -599,20 +515,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -628,9 +546,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, uniqueId_); } - if (state_ - != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); + if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -640,27 +558,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.networkconnectivity.v1alpha1.Hub)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.Hub other = - (com.google.cloud.networkconnectivity.v1alpha1.Hub) obj; + com.google.cloud.networkconnectivity.v1alpha1.Hub other = (com.google.cloud.networkconnectivity.v1alpha1.Hub) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getSpokesList().equals(other.getSpokesList())) return false; - if (!getUniqueId().equals(other.getUniqueId())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getSpokesList() + .equals(other.getSpokesList())) return false; + if (!getUniqueId() + .equals(other.getUniqueId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -703,103 +627,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.Hub prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Connectivity Center is a hub-and-spoke abstraction for
    * network connectivity management in Google Cloud. It reduces
@@ -809,52 +726,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Hub}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.Hub)
       com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1alpha1.Hub.class,
-              com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
+              com.google.cloud.networkconnectivity.v1alpha1.Hub.class, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1alpha1.Hub.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -880,9 +800,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
     }
 
     @java.lang.Override
@@ -901,18 +821,14 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1alpha1.Hub buildPartial() {
-      com.google.cloud.networkconnectivity.v1alpha1.Hub result =
-          new com.google.cloud.networkconnectivity.v1alpha1.Hub(this);
+      com.google.cloud.networkconnectivity.v1alpha1.Hub result = new com.google.cloud.networkconnectivity.v1alpha1.Hub(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.networkconnectivity.v1alpha1.Hub result) {
+    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.Hub result) {
       if (((bitField0_ & 0x00000020) != 0)) {
         spokes_ = spokes_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000020);
@@ -926,10 +842,14 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Hub res
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -950,39 +870,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Hub res
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.Hub) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Hub) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Hub)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -990,8 +909,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Hub other) {
-      if (other == com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1003,7 +921,8 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Hub other
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -1054,68 +973,61 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureSpokesIsMutable();
-                spokes_.add(s);
-                break;
-              } // case 50
-            case 66:
-              {
-                uniqueId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 66
-            case 72:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 72
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureSpokesIsMutable();
+              spokes_.add(s);
+              break;
+            } // case 50
+            case 66: {
+              uniqueId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 66
+            case 72: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 72
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1125,25 +1037,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1152,21 +1061,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1174,35 +1082,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1212,21 +1113,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1236,47 +1133,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Time when the Hub was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Time when the Hub was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; - * * @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(); } } /** - * - * *
      * Time when the Hub was created.
      * 
@@ -1297,15 +1181,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the Hub was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1316,8 +1199,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the Hub was created.
      * 
@@ -1326,9 +1207,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1341,8 +1222,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the Hub was created.
      * 
@@ -1360,8 +1239,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Time when the Hub was created.
      * 
@@ -1374,8 +1251,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the Hub was created.
      * 
@@ -1386,14 +1261,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Time when the Hub was created.
      * 
@@ -1401,17 +1273,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -1419,47 +1288,34 @@ 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_; /** - * - * *
      * Time when the Hub was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Time when the Hub was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @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(); } } /** - * - * *
      * Time when the Hub was updated.
      * 
@@ -1480,15 +1336,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the Hub was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1499,8 +1354,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time when the Hub was updated.
      * 
@@ -1509,9 +1362,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1524,8 +1377,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the Hub was updated.
      * 
@@ -1543,8 +1394,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Time when the Hub was updated.
      * 
@@ -1557,8 +1406,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the Hub was updated.
      * 
@@ -1569,14 +1416,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Time when the Hub was updated.
      * 
@@ -1584,35 +1428,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1621,13 +1464,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * User-defined labels.
      * 
@@ -1635,21 +1475,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** - * - * *
      * User-defined labels.
      * 
@@ -1661,8 +1500,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * User-defined labels.
      * 
@@ -1670,19 +1507,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +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; } /** - * - * *
      * User-defined labels.
      * 
@@ -1690,95 +1525,91 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @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(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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); + 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); bitField0_ |= 0x00000008; return this; } /** - * - * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object description_ = ""; /** - * - * *
      * Short description of the hub resource.
      * 
* * string description = 5; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1787,21 +1618,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Short description of the hub resource.
      * 
* * string description = 5; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1809,35 +1639,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Short description of the hub resource.
      * 
* * string description = 5; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Short description of the hub resource.
      * 
* * string description = 5; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1847,21 +1670,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Short description of the hub resource.
      * 
* * string description = 5; - * * @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(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -1869,58 +1688,42 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList spokes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList spokes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSpokesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { spokes_ = new com.google.protobuf.LazyStringArrayList(spokes_); bitField0_ |= 0x00000020; - } + } } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return A list containing the spokes. */ - public com.google.protobuf.ProtocolStringList getSpokesList() { + public com.google.protobuf.ProtocolStringList + getSpokesList() { return spokes_.getUnmodifiableView(); } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The count of spokes. */ public int getSpokesCount() { return spokes_.size(); } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The spokes at the given index. */ @@ -1928,100 +1731,76 @@ public java.lang.String getSpokes(int index) { return spokes_.get(index); } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the spokes at the given index. */ - public com.google.protobuf.ByteString getSpokesBytes(int index) { + public com.google.protobuf.ByteString + getSpokesBytes(int index) { return spokes_.getByteString(index); } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The spokes to set. * @return This builder for chaining. */ - public Builder setSpokes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpokes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSpokesIsMutable(); spokes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The spokes to add. * @return This builder for chaining. */ - public Builder addSpokes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSpokes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSpokesIsMutable(); spokes_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param values The spokes to add. * @return This builder for chaining. */ - public Builder addAllSpokes(java.lang.Iterable values) { + public Builder addAllSpokes( + java.lang.Iterable values) { ensureSpokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spokes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, spokes_); onChanged(); return this; } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSpokes() { @@ -2031,23 +1810,17 @@ public Builder clearSpokes() { return this; } /** - * - * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes of the spokes to add. * @return This builder for chaining. */ - public Builder addSpokesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSpokesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSpokesIsMutable(); spokes_.add(value); @@ -2057,8 +1830,6 @@ public Builder addSpokesBytes(com.google.protobuf.ByteString value) { private java.lang.Object uniqueId_ = ""; /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -2066,13 +1837,13 @@ public Builder addSpokesBytes(com.google.protobuf.ByteString value) {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -2081,8 +1852,6 @@ public java.lang.String getUniqueId() { } } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -2090,14 +1859,15 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -2105,8 +1875,6 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { } } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -2114,22 +1882,18 @@ public com.google.protobuf.ByteString getUniqueIdBytes() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uniqueId_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -2137,7 +1901,6 @@ public Builder setUniqueId(java.lang.String value) {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -2147,8 +1910,6 @@ public Builder clearUniqueId() { return this; } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -2156,14 +1917,12 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000040; @@ -2173,33 +1932,22 @@ public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2210,37 +1958,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = - com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null - ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED - : result; + com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2254,16 +1989,11 @@ public Builder setState(com.google.cloud.networkconnectivity.v1alpha1.State valu return this; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -2272,9 +2002,9 @@ public Builder clearState() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2284,12 +2014,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.Hub) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.Hub) private static final com.google.cloud.networkconnectivity.v1alpha1.Hub DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.Hub(); } @@ -2298,27 +2028,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.Hub getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Hub parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Hub parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2333,4 +2063,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.Hub getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java similarity index 67% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java index 598c124b3db5..710e35232205 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java @@ -1,80 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface HubOrBuilder - extends +public interface HubOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.Hub) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Time when the Hub was created.
    * 
@@ -84,32 +55,24 @@ public interface HubOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Time when the Hub was updated.
    * 
@@ -119,8 +82,6 @@ public interface HubOrBuilder com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * User-defined labels.
    * 
@@ -129,31 +90,30 @@ public interface HubOrBuilder */ int getLabelsCount(); /** - * - * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * User-defined labels.
    * 
@@ -161,108 +121,82 @@ public interface HubOrBuilder * map<string, string> labels = 4; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Short description of the hub resource.
    * 
* * string description = 5; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Short description of the hub resource.
    * 
* * string description = 5; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return A list containing the spokes. */ - java.util.List getSpokesList(); + java.util.List + getSpokesList(); /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The count of spokes. */ int getSpokesCount(); /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The spokes at the given index. */ java.lang.String getSpokes(int index); /** - * - * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the spokes at the given index. */ - com.google.protobuf.ByteString getSpokesBytes(int index); + com.google.protobuf.ByteString + getSpokesBytes(int index); /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -270,13 +204,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ java.lang.String getUniqueId(); /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -284,36 +215,26 @@ java.lang.String getLabelsOrDefault(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString getUniqueIdBytes(); + com.google.protobuf.ByteString + getUniqueIdBytes(); /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.networkconnectivity.v1alpha1.State getState(); diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java new file mode 100644 index 000000000000..3156d40d4846 --- /dev/null +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java @@ -0,0 +1,408 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1alpha1/hub.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public final class HubProto { + private HubProto() {} + 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_networkconnectivity_v1alpha1_Hub_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/networkconnectivity/v1alp" + + "ha1/hub.proto\022)google.cloud.networkconne" + + "ctivity.v1alpha1\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\032\037google/" + + "api/field_behavior.proto\032\031google/api/res" + + "ource.proto\032#google/longrunning/operatio" + + "ns.proto\032 google/protobuf/field_mask.pro" + + "to\032\037google/protobuf/timestamp.proto\"\207\004\n\003" + + "Hub\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_time\030\002 " + + "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat" + + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "\022J\n\006labels\030\004 \003(\0132:.google.cloud.networkc" + + "onnectivity.v1alpha1.Hub.LabelsEntry\022\023\n\013" + + "description\030\005 \001(\t\022@\n\006spokes\030\006 \003(\tB0\340A\003\372A" + + "*\n(networkconnectivity.googleapis.com/Sp" + + "oke\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022D\n\005state\030\t \001" + + "(\01620.google.cloud.networkconnectivity.v1" + + "alpha1.StateB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:[\352AX\n&networkco" + + "nnectivity.googleapis.com/Hub\022.projects/" + + "{project}/locations/global/hubs/{hub}\"\234\006" + + "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_tim" + + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022/\n\013u" + + "pdate_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tamp\022L\n\006labels\030\004 \003(\0132<.google.cloud.netw" + + "orkconnectivity.v1alpha1.Spoke.LabelsEnt" + + "ry\022\023\n\013description\030\005 \001(\t\0228\n\003hub\030\006 \001(\tB+\372A" + + "(\n&networkconnectivity.googleapis.com/Hu" + + "b\022A\n\022linked_vpn_tunnels\030\014 \003(\tB%\372A\"\n comp" + + "ute.googleapis.com/VpnTunnel\022[\n\037linked_i" + + "nterconnect_attachments\030\r \003(\tB2\372A/\n-comp" + + "ute.googleapis.com/InterconnectAttachmen" + + "t\022m\n!linked_router_appliance_instances\030\016" + + " \003(\0132B.google.cloud.networkconnectivity." + + "v1alpha1.RouterApplianceInstance\022\026\n\tuniq" + + "ue_id\030\013 \001(\tB\003\340A\003\022D\n\005state\030\017 \001(\01620.google" + + ".cloud.networkconnectivity.v1alpha1.Stat" + + "eB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001:e\352Ab\n(networkconnectivity." + + "googleapis.com/Spoke\0226projects/{project}" + + "/locations/{location}/spokes/{spoke}\"\225\001\n" + + "\017ListHubsRequest\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\022\016\n\006fi" + + "lter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\020ListHubs" + + "Response\022<\n\004hubs\030\001 \003(\0132..google.cloud.ne" + + "tworkconnectivity.v1alpha1.Hub\022\027\n\017next_p" + + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\r" + + "GetHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" + + "workconnectivity.googleapis.com/Hub\"\275\001\n\020" + + "CreateHubRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\n!locations.googleapis.com/Location\022\023\n\006h" + + "ub_id\030\002 \001(\tB\003\340A\001\022@\n\003hub\030\003 \001(\0132..google.c" + + "loud.networkconnectivity.v1alpha1.HubB\003\340" + + "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\020UpdateHu" + + "bRequest\0224\n\013update_mask\030\001 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\003\340A\001\022@\n\003hub\030\002 \001(\0132..go" + + "ogle.cloud.networkconnectivity.v1alpha1." + + "HubB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"i\n\020Del" + + "eteHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" + + "workconnectivity.googleapis.com/Hub\022\027\n\nr" + + "equest_id\030\002 \001(\tB\003\340A\001\"\227\001\n\021ListSpokesReque" + + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + + "ogleapis.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\022\020\n\010" + + "order_by\030\005 \001(\t\"\204\001\n\022ListSpokesResponse\022@\n" + + "\006spokes\030\001 \003(\01320.google.cloud.networkconn" + + "ectivity.v1alpha1.Spoke\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\017GetSpok" + + "eRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(networkc" + + "onnectivity.googleapis.com/Spoke\"\305\001\n\022Cre" + + "ateSpokeRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\025\n\010sp" + + "oke_id\030\002 \001(\tB\003\340A\001\022D\n\005spoke\030\003 \001(\01320.googl" + + "e.cloud.networkconnectivity.v1alpha1.Spo" + + "keB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\251\001\n\022Upd" + + "ateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\003\340A\001\022D\n\005spoke\030\002" + + " \001(\01320.google.cloud.networkconnectivity." + + "v1alpha1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB" + + "\003\340A\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\t" + + "B0\340A\002\372A*\n(networkconnectivity.googleapis" + + ".com/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\213\001\n\027" + + "RouterApplianceInstance\022=\n\017virtual_machi" + + "ne\030\001 \001(\tB$\372A!\n\037compute.googleapis.com/In" + + "stance\022\022\n\nip_address\030\003 \001(\t\022\035\n\021network_in" + + "terface\030\002 \001(\tB\002\030\001*F\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010D" + + "ELETING\020\0032\255\021\n\nHubService\022\311\001\n\010ListHubs\022:." + + "google.cloud.networkconnectivity.v1alpha" + + "1.ListHubsRequest\032;.google.cloud.network" + + "connectivity.v1alpha1.ListHubsResponse\"D" + + "\202\323\344\223\0025\0223/v1alpha1/{parent=projects/*/loc" + + "ations/global}/hubs\332A\006parent\022\266\001\n\006GetHub\022" + + "8.google.cloud.networkconnectivity.v1alp" + + "ha1.GetHubRequest\032..google.cloud.network" + + "connectivity.v1alpha1.Hub\"B\202\323\344\223\0025\0223/v1al" + + "pha1/{name=projects/*/locations/global/h" + + "ubs/*}\332A\004name\022\330\001\n\tCreateHub\022;.google.clo" + + "ud.networkconnectivity.v1alpha1.CreateHu" + + "bRequest\032\035.google.longrunning.Operation\"" + + "o\202\323\344\223\002:\"3/v1alpha1/{parent=projects/*/lo" + + "cations/global}/hubs:\003hub\332A\021parent,hub,h" + + "ub_id\312A\030\n\003Hub\022\021OperationMetadata\022\332\001\n\tUpd" + + "ateHub\022;.google.cloud.networkconnectivit" + + "y.v1alpha1.UpdateHubRequest\032\035.google.lon" + + "grunning.Operation\"q\202\323\344\223\002>27/v1alpha1/{h" + + "ub.name=projects/*/locations/global/hubs" + + "/*}:\003hub\332A\017hub,update_mask\312A\030\n\003Hub\022\021Oper" + + "ationMetadata\022\330\001\n\tDeleteHub\022;.google.clo" + + "ud.networkconnectivity.v1alpha1.DeleteHu" + + "bRequest\032\035.google.longrunning.Operation\"" + + "o\202\323\344\223\0025*3/v1alpha1/{name=projects/*/loca" + + "tions/global/hubs/*}\332A\004name\312A*\n\025google.p" + + "rotobuf.Empty\022\021OperationMetadata\022\314\001\n\nLis" + + "tSpokes\022<.google.cloud.networkconnectivi" + + "ty.v1alpha1.ListSpokesRequest\032=.google.c" + + "loud.networkconnectivity.v1alpha1.ListSp" + + "okesResponse\"A\202\323\344\223\0022\0220/v1alpha1/{parent=" + + "projects/*/locations/*}/spokes\332A\006parent\022" + + "\271\001\n\010GetSpoke\022:.google.cloud.networkconne" + + "ctivity.v1alpha1.GetSpokeRequest\0320.googl" + + "e.cloud.networkconnectivity.v1alpha1.Spo" + + "ke\"?\202\323\344\223\0022\0220/v1alpha1/{name=projects/*/l" + + "ocations/*/spokes/*}\332A\004name\022\341\001\n\013CreateSp" + + "oke\022=.google.cloud.networkconnectivity.v" + + "1alpha1.CreateSpokeRequest\032\035.google.long" + + "running.Operation\"t\202\323\344\223\0029\"0/v1alpha1/{pa" + + "rent=projects/*/locations/*}/spokes:\005spo" + + "ke\332A\025parent,spoke,spoke_id\312A\032\n\005Spoke\022\021Op" + + "erationMetadata\022\343\001\n\013UpdateSpoke\022=.google" + + ".cloud.networkconnectivity.v1alpha1.Upda" + + "teSpokeRequest\032\035.google.longrunning.Oper" + + "ation\"v\202\323\344\223\002?26/v1alpha1/{spoke.name=pro" + + "jects/*/locations/*/spokes/*}:\005spoke\332A\021s" + + "poke,update_mask\312A\032\n\005Spoke\022\021OperationMet" + + "adata\022\331\001\n\013DeleteSpoke\022=.google.cloud.net" + + "workconnectivity.v1alpha1.DeleteSpokeReq" + + "uest\032\035.google.longrunning.Operation\"l\202\323\344" + + "\223\0022*0/v1alpha1/{name=projects/*/location" + + "s/*/spokes/*}\332A\004name\312A*\n\025google.protobuf" + + ".Empty\022\021OperationMetadata\032V\312A\"networkcon" + + "nectivity.googleapis.com\322A.https://www.g" + + "oogleapis.com/auth/cloud-platformB\332\004\n-co" + + "m.google.cloud.networkconnectivity.v1alp" + + "ha1B\010HubProtoP\001Z\\google.golang.org/genpr" + + "oto/googleapis/cloud/networkconnectivity" + + "/v1alpha1;networkconnectivity\252\002)Google.C" + + "loud.NetworkConnectivity.V1Alpha1\312\002)Goog" + + "le\\Cloud\\NetworkConnectivity\\V1alpha1\352\002," + + "Google::Cloud::NetworkConnectivity::V1al" + + "pha1\352A`\n compute.googleapis.com/VpnTunne" + + "l\022 * Request for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method. *
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsRequest} */ -public final class ListHubsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListHubsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) ListHubsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListHubsRequest.newBuilder() to construct. private ListHubsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListHubsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,45 +28,38 @@ private ListHubsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListHubsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 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 @@ -93,31 +68,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 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 { @@ -128,14 +101,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -144,18 +114,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -164,29 +130,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The page token.
    * 
* * 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 { @@ -195,18 +161,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -215,29 +177,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; } } /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * 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 { @@ -246,18 +208,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -266,29 +224,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -297,7 +255,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +266,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -338,7 +296,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_); @@ -357,19 +316,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.networkconnectivity.v1alpha1.ListHubsRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest other = (com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -397,136 +360,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -540,14 +496,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance(); } @@ -562,17 +517,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -595,39 +546,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest)other); } else { super.mergeFrom(other); return this; @@ -635,9 +585,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -687,43 +635,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -733,27 +675,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * string parent = 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; @@ -762,23 +699,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * string parent = 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 { @@ -786,39 +720,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * string 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() { @@ -828,23 +751,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource's name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -852,16 +769,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -869,33 +783,27 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -907,20 +815,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The page token.
      * 
* * 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; @@ -929,21 +835,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The page token.
      * 
* * 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 { @@ -951,35 +856,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The page token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -989,21 +887,17 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1013,20 +907,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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; @@ -1035,21 +927,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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 { @@ -1057,35 +948,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1095,21 +979,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1119,20 +999,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1141,21 +1019,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1163,35 +1040,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1201,30 +1071,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1234,13 +1100,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest(); } @@ -1249,27 +1114,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1284,4 +1149,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java similarity index 59% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java index d04315d22cc4..18dcea236671 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java @@ -1,142 +1,99 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListHubsRequestOrBuilder - extends +public interface ListHubsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource's name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java similarity index 71% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java index f9b82a08d489..38bda54f7ae1 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsResponse} */ -public final class ListHubsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListHubsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) ListHubsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListHubsResponse.newBuilder() to construct. private ListHubsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListHubsResponse() { hubs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,37 +27,33 @@ private ListHubsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListHubsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); } public static final int HUBS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List hubs_; /** - * - * *
    * Hubs to be returned.
    * 
@@ -87,8 +65,6 @@ public java.util.List getHubs return hubs_; } /** - * - * *
    * Hubs to be returned.
    * 
@@ -96,13 +72,11 @@ public java.util.List getHubs * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getHubsOrBuilderList() { return hubs_; } /** - * - * *
    * Hubs to be returned.
    * 
@@ -114,8 +88,6 @@ public int getHubsCount() { return hubs_.size(); } /** - * - * *
    * Hubs to be returned.
    * 
@@ -127,8 +99,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index) { return hubs_.get(index); } /** - * - * *
    * Hubs to be returned.
    * 
@@ -136,24 +106,21 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index) { * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder( + int index) { return hubs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -162,30 +129,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -194,46 +161,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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. */ @@ -241,23 +199,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; @@ -269,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < hubs_.size(); i++) { output.writeMessage(1, hubs_.get(i)); } @@ -289,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < hubs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hubs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, hubs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -310,17 +267,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.networkconnectivity.v1alpha1.ListHubsResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse other = - (com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) obj; + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse other = (com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) obj; - if (!getHubsList().equals(other.getHubsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getHubsList() + .equals(other.getHubsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,136 +307,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -496,14 +448,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance(); } @@ -518,18 +469,14 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result = - new com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse(this); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { if (hubsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { hubs_ = java.util.Collections.unmodifiableList(hubs_); @@ -546,8 +493,7 @@ private void buildPartialRepeatedFields( result.unreachable_ = unreachable_; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -558,39 +504,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse)other); } else { super.mergeFrom(other); return this; @@ -598,9 +543,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance()) return this; if (hubsBuilder_ == null) { if (!other.hubs_.isEmpty()) { if (hubs_.isEmpty()) { @@ -619,10 +562,9 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListHubsR hubsBuilder_ = null; hubs_ = other.hubs_; bitField0_ = (bitField0_ & ~0x00000001); - hubsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHubsFieldBuilder() - : null; + hubsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHubsFieldBuilder() : null; } else { hubsBuilder_.addAllMessages(other.hubs_); } @@ -669,40 +611,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.networkconnectivity.v1alpha1.Hub m = - input.readMessage( - com.google.cloud.networkconnectivity.v1alpha1.Hub.parser(), - extensionRegistry); - if (hubsBuilder_ == null) { - ensureHubsIsMutable(); - hubs_.add(m); - } else { - hubsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.networkconnectivity.v1alpha1.Hub m = + input.readMessage( + com.google.cloud.networkconnectivity.v1alpha1.Hub.parser(), + extensionRegistry); + if (hubsBuilder_ == null) { + ensureHubsIsMutable(); + hubs_.add(m); + } else { + hubsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -712,28 +650,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List hubs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureHubsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { hubs_ = new java.util.ArrayList(hubs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> - hubsBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> hubsBuilder_; /** - * - * *
      * Hubs to be returned.
      * 
@@ -748,8 +679,6 @@ public java.util.List getHubs } } /** - * - * *
      * Hubs to be returned.
      * 
@@ -764,8 +693,6 @@ public int getHubsCount() { } } /** - * - * *
      * Hubs to be returned.
      * 
@@ -780,15 +707,14 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index) { } } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public Builder setHubs(int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { + public Builder setHubs( + int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -802,8 +728,6 @@ public Builder setHubs(int index, com.google.cloud.networkconnectivity.v1alpha1. return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -822,8 +746,6 @@ public Builder setHubs( return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -844,15 +766,14 @@ public Builder addHubs(com.google.cloud.networkconnectivity.v1alpha1.Hub value) return this; } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public Builder addHubs(int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { + public Builder addHubs( + int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -866,8 +787,6 @@ public Builder addHubs(int index, com.google.cloud.networkconnectivity.v1alpha1. return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -886,8 +805,6 @@ public Builder addHubs( return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -906,8 +823,6 @@ public Builder addHubs( return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -918,7 +833,8 @@ public Builder addAllHubs( java.lang.Iterable values) { if (hubsBuilder_ == null) { ensureHubsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hubs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, hubs_); onChanged(); } else { hubsBuilder_.addAllMessages(values); @@ -926,8 +842,6 @@ public Builder addAllHubs( return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -945,8 +859,6 @@ public Builder clearHubs() { return this; } /** - * - * *
      * Hubs to be returned.
      * 
@@ -964,44 +876,39 @@ public Builder removeHubs(int index) { return this; } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubsBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubsBuilder( + int index) { return getHubsFieldBuilder().getBuilder(index); } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder( + int index) { if (hubsBuilder_ == null) { - return hubs_.get(index); - } else { + return hubs_.get(index); } else { return hubsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public java.util.List - getHubsOrBuilderList() { + public java.util.List + getHubsOrBuilderList() { if (hubsBuilder_ != null) { return hubsBuilder_.getMessageOrBuilderList(); } else { @@ -1009,8 +916,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuild } } /** - * - * *
      * Hubs to be returned.
      * 
@@ -1018,49 +923,42 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuild * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder() { - return getHubsFieldBuilder() - .addBuilder(com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); + return getHubsFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder(int index) { - return getHubsFieldBuilder() - .addBuilder( - index, com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder( + int index) { + return getHubsFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); } /** - * - * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public java.util.List - getHubsBuilderList() { + public java.util.List + getHubsBuilderList() { return getHubsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> getHubsFieldBuilder() { if (hubsBuilder_ == null) { - hubsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( - hubs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + hubsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( + hubs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); hubs_ = null; } return hubsBuilder_; @@ -1068,21 +966,19 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder( private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -1091,22 +987,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1114,37 +1009,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1154,22 +1042,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1177,52 +1061,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * 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. */ @@ -1230,90 +1104,76 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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(); - } + 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) { + 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() { @@ -1323,30 +1183,26 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1356,43 +1212,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse(); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1404,8 +1258,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java similarity index 73% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java index 0e7c350ae916..04585dd17478 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListHubsResponseOrBuilder - extends +public interface ListHubsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Hubs to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - java.util.List getHubsList(); + java.util.List + getHubsList(); /** - * - * *
    * Hubs to be returned.
    * 
@@ -44,8 +25,6 @@ public interface ListHubsResponseOrBuilder */ com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index); /** - * - * *
    * Hubs to be returned.
    * 
@@ -54,102 +33,84 @@ public interface ListHubsResponseOrBuilder */ int getHubsCount(); /** - * - * *
    * Hubs to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - java.util.List + java.util.List getHubsOrBuilderList(); /** - * - * *
    * Hubs to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder(int index); + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder( + int index); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java similarity index 66% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java index 16ad2870ba59..d02e80f4ce44 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest} */ -public final class ListSpokesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSpokesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) ListSpokesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSpokesRequest.newBuilder() to construct. private ListSpokesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSpokesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,45 +28,38 @@ private ListSpokesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSpokesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent's resource name.
    * 
* - * - * string parent = 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 @@ -93,31 +68,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent's resource name.
    * 
* - * - * string parent = 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 { @@ -128,14 +101,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -144,18 +114,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -164,29 +130,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The page token.
    * 
* * 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 { @@ -195,18 +161,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -215,29 +177,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; } } /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * 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 { @@ -246,18 +208,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -266,29 +224,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -297,7 +255,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +266,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -338,7 +296,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_); @@ -357,19 +316,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.networkconnectivity.v1alpha1.ListSpokesRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other = (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -397,136 +360,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -540,14 +496,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance(); } @@ -562,17 +517,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -595,50 +546,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other) { + if (other == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -688,43 +635,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -734,27 +675,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent's resource name.
      * 
* - * - * string parent = 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; @@ -763,23 +699,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent's resource name.
      * 
* - * - * string parent = 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 { @@ -787,39 +720,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent's resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent's resource name.
      * 
* - * - * string 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() { @@ -829,23 +751,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent's resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -853,16 +769,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -870,33 +783,27 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -908,20 +815,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The page token.
      * 
* * 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; @@ -930,21 +835,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The page token.
      * 
* * 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 { @@ -952,35 +856,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The page token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -990,21 +887,17 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * The page token.
      * 
* * 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(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1014,20 +907,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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; @@ -1036,21 +927,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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 { @@ -1058,35 +948,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1096,21 +979,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1120,20 +999,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1142,21 +1019,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1164,35 +1040,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1202,30 +1071,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1235,43 +1100,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1283,8 +1146,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java similarity index 59% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java index 444a3f40fd43..ec02d876fd99 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java @@ -1,142 +1,99 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListSpokesRequestOrBuilder - extends +public interface ListSpokesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent's resource name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent's resource name.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The page token.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java similarity index 71% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java index df099e099d9c..9193ff955e1f 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse} */ -public final class ListSpokesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSpokesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) ListSpokesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSpokesResponse.newBuilder() to construct. private ListSpokesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSpokesResponse() { spokes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,37 +27,33 @@ private ListSpokesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSpokesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); } public static final int SPOKES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List spokes_; /** - * - * *
    * Spokes to be returned.
    * 
@@ -87,8 +65,6 @@ public java.util.List getSp return spokes_; } /** - * - * *
    * Spokes to be returned.
    * 
@@ -96,13 +72,11 @@ public java.util.List getSp * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSpokesOrBuilderList() { return spokes_; } /** - * - * *
    * Spokes to be returned.
    * 
@@ -114,8 +88,6 @@ public int getSpokesCount() { return spokes_.size(); } /** - * - * *
    * Spokes to be returned.
    * 
@@ -127,8 +99,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpokes(int index) return spokes_.get(index); } /** - * - * *
    * Spokes to be returned.
    * 
@@ -142,19 +112,15 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrB } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -163,30 +129,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -195,46 +161,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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. */ @@ -242,23 +199,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; @@ -270,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 { for (int i = 0; i < spokes_.size(); i++) { output.writeMessage(1, spokes_.get(i)); } @@ -290,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < spokes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, spokes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, spokes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -311,17 +267,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.networkconnectivity.v1alpha1.ListSpokesResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other = - (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) obj; + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other = (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) obj; - if (!getSpokesList().equals(other.getSpokesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getSpokesList() + .equals(other.getSpokesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -349,136 +307,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -497,14 +448,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance(); } @@ -519,18 +469,14 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result = - new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse(this); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { if (spokesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { spokes_ = java.util.Collections.unmodifiableList(spokes_); @@ -547,8 +493,7 @@ private void buildPartialRepeatedFields( result.unreachable_ = unreachable_; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -559,50 +504,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other) { + if (other == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance()) return this; if (spokesBuilder_ == null) { if (!other.spokes_.isEmpty()) { if (spokes_.isEmpty()) { @@ -621,10 +562,9 @@ public Builder mergeFrom( spokesBuilder_ = null; spokes_ = other.spokes_; bitField0_ = (bitField0_ & ~0x00000001); - spokesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSpokesFieldBuilder() - : null; + spokesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSpokesFieldBuilder() : null; } else { spokesBuilder_.addAllMessages(other.spokes_); } @@ -671,40 +611,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.networkconnectivity.v1alpha1.Spoke m = - input.readMessage( - com.google.cloud.networkconnectivity.v1alpha1.Spoke.parser(), - extensionRegistry); - if (spokesBuilder_ == null) { - ensureSpokesIsMutable(); - spokes_.add(m); - } else { - spokesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.networkconnectivity.v1alpha1.Spoke m = + input.readMessage( + com.google.cloud.networkconnectivity.v1alpha1.Spoke.parser(), + extensionRegistry); + if (spokesBuilder_ == null) { + ensureSpokesIsMutable(); + spokes_.add(m); + } else { + spokesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -714,29 +650,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List spokes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSpokesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - spokes_ = - new java.util.ArrayList(spokes_); + spokes_ = new java.util.ArrayList(spokes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> - spokesBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> spokesBuilder_; /** - * - * *
      * Spokes to be returned.
      * 
@@ -751,8 +679,6 @@ public java.util.List getSp } } /** - * - * *
      * Spokes to be returned.
      * 
@@ -767,8 +693,6 @@ public int getSpokesCount() { } } /** - * - * *
      * Spokes to be returned.
      * 
@@ -783,15 +707,14 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpokes(int index) } } /** - * - * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public Builder setSpokes(int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { + public Builder setSpokes( + int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -805,8 +728,6 @@ public Builder setSpokes(int index, com.google.cloud.networkconnectivity.v1alpha return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -825,8 +746,6 @@ public Builder setSpokes( return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -847,15 +766,14 @@ public Builder addSpokes(com.google.cloud.networkconnectivity.v1alpha1.Spoke val return this; } /** - * - * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public Builder addSpokes(int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { + public Builder addSpokes( + int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -869,8 +787,6 @@ public Builder addSpokes(int index, com.google.cloud.networkconnectivity.v1alpha return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -889,8 +805,6 @@ public Builder addSpokes( return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -909,8 +823,6 @@ public Builder addSpokes( return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -921,7 +833,8 @@ public Builder addAllSpokes( java.lang.Iterable values) { if (spokesBuilder_ == null) { ensureSpokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spokes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, spokes_); onChanged(); } else { spokesBuilder_.addAllMessages(values); @@ -929,8 +842,6 @@ public Builder addAllSpokes( return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -948,8 +859,6 @@ public Builder clearSpokes() { return this; } /** - * - * *
      * Spokes to be returned.
      * 
@@ -967,20 +876,17 @@ public Builder removeSpokes(int index) { return this; } /** - * - * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokesBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokesBuilder( + int index) { return getSpokesFieldBuilder().getBuilder(index); } /** - * - * *
      * Spokes to be returned.
      * 
@@ -990,22 +896,19 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokesBuil public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrBuilder( int index) { if (spokesBuilder_ == null) { - return spokes_.get(index); - } else { + return spokes_.get(index); } else { return spokesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public java.util.List - getSpokesOrBuilderList() { + public java.util.List + getSpokesOrBuilderList() { if (spokesBuilder_ != null) { return spokesBuilder_.getMessageOrBuilderList(); } else { @@ -1013,8 +916,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrB } } /** - * - * *
      * Spokes to be returned.
      * 
@@ -1022,49 +923,42 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrB * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuilder() { - return getSpokesFieldBuilder() - .addBuilder(com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); + return getSpokesFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); } /** - * - * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuilder(int index) { - return getSpokesFieldBuilder() - .addBuilder( - index, com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuilder( + int index) { + return getSpokesFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); } /** - * - * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public java.util.List - getSpokesBuilderList() { + public java.util.List + getSpokesBuilderList() { return getSpokesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> getSpokesFieldBuilder() { if (spokesBuilder_ == null) { - spokesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( - spokes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + spokesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( + spokes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); spokes_ = null; } return spokesBuilder_; @@ -1072,21 +966,19 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuil private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -1095,22 +987,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1118,37 +1009,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1158,22 +1042,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1181,52 +1061,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * 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. */ @@ -1234,90 +1104,76 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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(); - } + 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) { + 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() { @@ -1327,30 +1183,26 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + 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) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1360,43 +1212,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse(); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1408,8 +1258,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java similarity index 73% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java index f961b406b6ac..cd1aaeb8ddaf 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListSpokesResponseOrBuilder - extends +public interface ListSpokesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Spokes to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - java.util.List getSpokesList(); + java.util.List + getSpokesList(); /** - * - * *
    * Spokes to be returned.
    * 
@@ -44,8 +25,6 @@ public interface ListSpokesResponseOrBuilder */ com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpokes(int index); /** - * - * *
    * Spokes to be returned.
    * 
@@ -54,102 +33,84 @@ public interface ListSpokesResponseOrBuilder */ int getSpokesCount(); /** - * - * *
    * Spokes to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - java.util.List + java.util.List getSpokesOrBuilderList(); /** - * - * *
    * Spokes to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrBuilder(int index); + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrBuilder( + int index); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java index e602957e7330..adc9f5345b26 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/common.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,42 +28,37 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -89,15 +66,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -105,14 +78,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -122,15 +92,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -138,15 +104,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -154,14 +116,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -169,18 +128,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -189,29 +144,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -220,18 +175,14 @@ public com.google.protobuf.ByteString getTargetBytes() { } public static final int VERB_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -240,29 +191,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -271,18 +222,14 @@ public com.google.protobuf.ByteString getVerbBytes() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -291,29 +238,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -324,8 +271,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -334,7 +279,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -343,18 +287,14 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -363,29 +303,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -394,7 +334,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -406,7 +345,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -438,10 +378,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_); @@ -453,7 +395,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_); @@ -466,27 +409,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.networkconnectivity.v1alpha1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other = - (com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) obj; + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other = (com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -513,7 +462,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) + getUnknownFields().hashCode(); @@ -522,136 +472,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) com.google.cloud.networkconnectivity.v1alpha1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -675,14 +618,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.getDefaultInstance(); } @@ -697,23 +639,23 @@ public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result = - new com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result = new com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -736,50 +678,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other) { + if (other == com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -835,55 +773,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -893,63 +827,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time 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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -965,17 +879,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -986,21 +897,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1013,15 +920,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1034,15 +937,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -1050,48 +949,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1099,35 +986,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1138,14 +1014,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1161,16 +1034,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1181,20 +1052,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1207,14 +1075,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1227,14 +1092,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1242,44 +1104,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1287,20 +1141,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1309,21 +1161,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1331,35 +1182,28 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1369,21 +1213,17 @@ public Builder clearTarget() { return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1393,20 +1233,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1415,21 +1253,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1437,35 +1274,28 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerb( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1475,21 +1305,17 @@ public Builder clearVerb() { return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1499,20 +1325,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1521,21 +1345,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1543,35 +1366,28 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1581,21 +1397,17 @@ public Builder clearStatusMessage() { return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1603,10 +1415,8 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1615,7 +1425,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 @@ -1623,8 +1432,6 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1633,20 +1440,17 @@ 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1655,7 +1459,6 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1667,20 +1470,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1689,21 +1490,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1711,35 +1511,28 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1749,30 +1542,26 @@ public Builder clearApiVersion() { return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1782,43 +1571,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) - private static final com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata(); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1830,8 +1617,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java similarity index 75% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java index 984bdadf0f01..9df65555334e 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/common.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java similarity index 63% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java index 0b6f52d0e51d..a16aa2f28465 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * RouterAppliance represents a Router appliance which is specified by a VM URI
  * and a NIC address.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance}
  */
-public final class RouterApplianceInstance extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RouterApplianceInstance extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance)
     RouterApplianceInstanceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RouterApplianceInstance.newBuilder() to construct.
   private RouterApplianceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RouterApplianceInstance() {
     virtualMachine_ = "";
     ipAddress_ = "";
@@ -46,43 +28,38 @@ private RouterApplianceInstance() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RouterApplianceInstance();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class,
-            com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
+            com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
   }
 
   public static final int VIRTUAL_MACHINE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object virtualMachine_ = "";
   /**
-   *
-   *
    * 
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The virtualMachine. */ @java.lang.Override @@ -91,29 +68,29 @@ public java.lang.String getVirtualMachine() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; } } /** - * - * *
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for virtualMachine. */ @java.lang.Override - public com.google.protobuf.ByteString getVirtualMachineBytes() { + public com.google.protobuf.ByteString + getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -122,18 +99,14 @@ public com.google.protobuf.ByteString getVirtualMachineBytes() { } public static final int IP_ADDRESS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object ipAddress_ = ""; /** - * - * *
    * The IP address of the network interface to use for peering.
    * 
* * string ip_address = 3; - * * @return The ipAddress. */ @java.lang.Override @@ -142,29 +115,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; } } /** - * - * *
    * The IP address of the network interface to use for peering.
    * 
* * 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 { @@ -173,24 +146,22 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } public static final int NETWORK_INTERFACE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object networkInterface_ = ""; /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface - * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The networkInterface. */ @java.lang.Override - @java.lang.Deprecated - public java.lang.String getNetworkInterface() { + @java.lang.Deprecated public java.lang.String getNetworkInterface() { java.lang.Object ref = networkInterface_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkInterface_ = s; return s; @@ -198,18 +169,18 @@ public java.lang.String getNetworkInterface() { } /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface - * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The bytes for networkInterface. */ @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getNetworkInterfaceBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getNetworkInterfaceBytes() { java.lang.Object ref = networkInterface_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); networkInterface_ = b; return b; } else { @@ -218,7 +189,6 @@ public com.google.protobuf.ByteString getNetworkInterfaceBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualMachine_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, virtualMachine_); } @@ -266,17 +237,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.networkconnectivity.v1alpha1.RouterApplianceInstance)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other = - (com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) obj; + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other = (com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) obj; - if (!getVirtualMachine().equals(other.getVirtualMachine())) return false; - if (!getIpAddress().equals(other.getIpAddress())) return false; - if (!getNetworkInterface().equals(other.getNetworkInterface())) return false; + if (!getVirtualMachine() + .equals(other.getVirtualMachine())) return false; + if (!getIpAddress() + .equals(other.getIpAddress())) return false; + if (!getNetworkInterface() + .equals(other.getNetworkInterface())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,105 +273,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - 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.networkconnectivity.v1alpha1.RouterApplianceInstance 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.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * RouterAppliance represents a Router appliance which is specified by a VM URI
    * and a NIC address.
@@ -406,33 +370,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance)
       com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class,
-              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
+              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,16 +408,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
-        getDefaultInstanceForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
-          .getDefaultInstance();
+    public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getDefaultInstanceForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -467,17 +429,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance bui
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance buildPartial() {
-      com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result =
-          new com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result = new com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result) {
+    private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.virtualMachine_ = virtualMachine_;
@@ -494,51 +452,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) {
-        return mergeFrom(
-            (com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other) {
-      if (other
-          == com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other) {
+      if (other == com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance()) return this;
       if (!other.getVirtualMachine().isEmpty()) {
         virtualMachine_ = other.virtualMachine_;
         bitField0_ |= 0x00000001;
@@ -580,31 +533,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                virtualMachine_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                networkInterface_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 18
-            case 26:
-              {
-                ipAddress_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              virtualMachine_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              networkInterface_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 18
+            case 26: {
+              ipAddress_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -614,25 +563,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object virtualMachine_ = "";
     /**
-     *
-     *
      * 
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The virtualMachine. */ public java.lang.String getVirtualMachine() { java.lang.Object ref = virtualMachine_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; @@ -641,21 +587,20 @@ public java.lang.String getVirtualMachine() { } } /** - * - * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for virtualMachine. */ - public com.google.protobuf.ByteString getVirtualMachineBytes() { + public com.google.protobuf.ByteString + getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -663,35 +608,28 @@ public com.google.protobuf.ByteString getVirtualMachineBytes() { } } /** - * - * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @param value The virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachine(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVirtualMachine( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } virtualMachine_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearVirtualMachine() { @@ -701,21 +639,17 @@ public Builder clearVirtualMachine() { return this; } /** - * - * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachineBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVirtualMachineBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); virtualMachine_ = value; bitField0_ |= 0x00000001; @@ -725,20 +659,18 @@ public Builder setVirtualMachineBytes(com.google.protobuf.ByteString value) { private java.lang.Object ipAddress_ = ""; /** - * - * *
      * The IP address of the network interface to use for peering.
      * 
* * 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; @@ -747,21 +679,20 @@ public java.lang.String getIpAddress() { } } /** - * - * *
      * The IP address of the network interface to use for peering.
      * 
* * 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 { @@ -769,35 +700,28 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } } /** - * - * *
      * The IP address of the network interface to use for peering.
      * 
* * 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(); - } + public Builder setIpAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ipAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The IP address of the network interface to use for peering.
      * 
* * string ip_address = 3; - * * @return This builder for chaining. */ public Builder clearIpAddress() { @@ -807,21 +731,17 @@ public Builder clearIpAddress() { return this; } /** - * - * *
      * The IP address of the network interface to use for peering.
      * 
* * 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(); - } + public Builder setIpAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ipAddress_ = value; bitField0_ |= 0x00000002; @@ -832,17 +752,15 @@ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { private java.lang.Object networkInterface_ = ""; /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is - * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The networkInterface. */ - @java.lang.Deprecated - public java.lang.String getNetworkInterface() { + @java.lang.Deprecated public java.lang.String getNetworkInterface() { java.lang.Object ref = networkInterface_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkInterface_ = s; return s; @@ -852,18 +770,17 @@ public java.lang.String getNetworkInterface() { } /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is - * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The bytes for networkInterface. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getNetworkInterfaceBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getNetworkInterfaceBytes() { java.lang.Object ref = networkInterface_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); networkInterface_ = b; return b; } else { @@ -872,18 +789,14 @@ public com.google.protobuf.ByteString getNetworkInterfaceBytes() { } /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is - * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @param value The networkInterface to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setNetworkInterface(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + @java.lang.Deprecated public Builder setNetworkInterface( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } networkInterface_ = value; bitField0_ |= 0x00000004; onChanged(); @@ -891,14 +804,11 @@ public Builder setNetworkInterface(java.lang.String value) { } /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is - * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearNetworkInterface() { + @java.lang.Deprecated public Builder clearNetworkInterface() { networkInterface_ = getDefaultInstance().getNetworkInterface(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); @@ -906,27 +816,23 @@ public Builder clearNetworkInterface() { } /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated - * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is - * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @param value The bytes for networkInterface to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setNetworkInterfaceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + @java.lang.Deprecated public Builder setNetworkInterfaceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); networkInterface_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -936,43 +842,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) - private static final com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance(); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouterApplianceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouterApplianceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -984,8 +888,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java similarity index 55% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java index 9d10c38aef90..09034b583365 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java @@ -1,94 +1,65 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface RouterApplianceInstanceOrBuilder - extends +public interface RouterApplianceInstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The virtualMachine. */ java.lang.String getVirtualMachine(); /** - * - * *
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for virtualMachine. */ - com.google.protobuf.ByteString getVirtualMachineBytes(); + com.google.protobuf.ByteString + getVirtualMachineBytes(); /** - * - * *
    * The IP address of the network interface to use for peering.
    * 
* * string ip_address = 3; - * * @return The ipAddress. */ java.lang.String getIpAddress(); /** - * - * *
    * The IP address of the network interface to use for peering.
    * 
* * string ip_address = 3; - * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString getIpAddressBytes(); + com.google.protobuf.ByteString + getIpAddressBytes(); /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface - * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The networkInterface. */ - @java.lang.Deprecated - java.lang.String getNetworkInterface(); + @java.lang.Deprecated java.lang.String getNetworkInterface(); /** * string network_interface = 2 [deprecated = true]; - * - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface - * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. + * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The bytes for networkInterface. */ - @java.lang.Deprecated - com.google.protobuf.ByteString getNetworkInterfaceBytes(); + @java.lang.Deprecated com.google.protobuf.ByteString + getNetworkInterfaceBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java similarity index 66% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java index 482de452ad94..b425a46ccf5c 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * A Spoke is an  abstraction of a network attachment being attached
  * to a Hub. A Spoke can be underlying a VPN tunnel, a
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Spoke}
  */
-public final class Spoke extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Spoke extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.Spoke)
     SpokeOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Spoke.newBuilder() to construct.
   private Spoke(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Spoke() {
     name_ = "";
     description_ = "";
@@ -52,54 +34,50 @@ private Spoke() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Spoke();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-        .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1alpha1.Spoke.class,
-            com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
+            com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -108,29 +86,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; } } /** - * - * *
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -141,14 +119,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -156,14 +131,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return The createTime. */ @java.lang.Override @@ -171,8 +143,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time when the Spoke was created.
    * 
@@ -187,14 +157,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -202,14 +169,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ @java.lang.Override @@ -217,8 +181,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The time when the Spoke was updated.
    * 
@@ -231,34 +193,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_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.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - 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_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * User-defined labels.
    * 
@@ -266,21 +226,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** - * - * *
    * User-defined labels.
    * 
@@ -292,8 +251,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * User-defined labels.
    * 
@@ -301,19 +258,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +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; } /** - * - * *
    * User-defined labels.
    * 
@@ -321,11 +276,11 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @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(); } @@ -333,18 +288,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int DESCRIPTION_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Short description of the spoke resource
    * 
* * string description = 5; - * * @return The description. */ @java.lang.Override @@ -353,29 +304,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Short description of the spoke resource
    * 
* * string description = 5; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -384,18 +335,14 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int HUB_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object hub_ = ""; /** - * - * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return The hub. */ @java.lang.Override @@ -404,29 +351,29 @@ public java.lang.String getHub() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; } } /** - * - * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for hub. */ @java.lang.Override - public com.google.protobuf.ByteString getHubBytes() { + public com.google.protobuf.ByteString + getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hub_ = b; return b; } else { @@ -435,49 +382,37 @@ public com.google.protobuf.ByteString getHubBytes() { } public static final int LINKED_VPN_TUNNELS_FIELD_NUMBER = 12; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList linkedVpnTunnels_; /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return A list containing the linkedVpnTunnels. */ - public com.google.protobuf.ProtocolStringList getLinkedVpnTunnelsList() { + public com.google.protobuf.ProtocolStringList + getLinkedVpnTunnelsList() { return linkedVpnTunnels_; } /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return The count of linkedVpnTunnels. */ public int getLinkedVpnTunnelsCount() { return linkedVpnTunnels_.size(); } /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The linkedVpnTunnels at the given index. */ @@ -485,69 +420,51 @@ public java.lang.String getLinkedVpnTunnels(int index) { return linkedVpnTunnels_.get(index); } /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the linkedVpnTunnels at the given index. */ - public com.google.protobuf.ByteString getLinkedVpnTunnelsBytes(int index) { + public com.google.protobuf.ByteString + getLinkedVpnTunnelsBytes(int index) { return linkedVpnTunnels_.getByteString(index); } public static final int LINKED_INTERCONNECT_ATTACHMENTS_FIELD_NUMBER = 13; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList linkedInterconnectAttachments_; /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return A list containing the linkedInterconnectAttachments. */ - public com.google.protobuf.ProtocolStringList getLinkedInterconnectAttachmentsList() { + public com.google.protobuf.ProtocolStringList + getLinkedInterconnectAttachmentsList() { return linkedInterconnectAttachments_; } /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return The count of linkedInterconnectAttachments. */ public int getLinkedInterconnectAttachmentsCount() { return linkedInterconnectAttachments_.size(); } /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The linkedInterconnectAttachments at the given index. */ @@ -555,116 +472,84 @@ public java.lang.String getLinkedInterconnectAttachments(int index) { return linkedInterconnectAttachments_.get(index); } /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the linkedInterconnectAttachments at the given index. */ - public com.google.protobuf.ByteString getLinkedInterconnectAttachmentsBytes(int index) { + public com.google.protobuf.ByteString + getLinkedInterconnectAttachmentsBytes(int index) { return linkedInterconnectAttachments_.getByteString(index); } public static final int LINKED_ROUTER_APPLIANCE_INSTANCES_FIELD_NUMBER = 14; - @SuppressWarnings("serial") - private java.util.List - linkedRouterApplianceInstances_; + private java.util.List linkedRouterApplianceInstances_; /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ @java.lang.Override - public java.util.List - getLinkedRouterApplianceInstancesList() { + public java.util.List getLinkedRouterApplianceInstancesList() { return linkedRouterApplianceInstances_; } /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> + public java.util.List getLinkedRouterApplianceInstancesOrBuilderList() { return linkedRouterApplianceInstances_; } /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ @java.lang.Override public int getLinkedRouterApplianceInstancesCount() { return linkedRouterApplianceInstances_.size(); } /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - getLinkedRouterApplianceInstances(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getLinkedRouterApplianceInstances(int index) { return linkedRouterApplianceInstances_.get(index); } /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder - getLinkedRouterApplianceInstancesOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder getLinkedRouterApplianceInstancesOrBuilder( + int index) { return linkedRouterApplianceInstances_.get(index); } public static final int UNIQUE_ID_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -672,7 +557,6 @@ public int getLinkedRouterApplianceInstancesCount() {
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ @java.lang.Override @@ -681,15 +565,14 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -697,15 +580,16 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -716,46 +600,30 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = - com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null - ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { + com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -767,7 +635,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -777,8 +646,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -792,14 +665,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 12, linkedVpnTunnels_.getRaw(i)); } for (int i = 0; i < linkedInterconnectAttachments_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 13, linkedInterconnectAttachments_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, linkedInterconnectAttachments_.getRaw(i)); } for (int i = 0; i < linkedRouterApplianceInstances_.size(); i++) { output.writeMessage(14, linkedRouterApplianceInstances_.get(i)); } - if (state_ - != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(15, state_); } getUnknownFields().writeTo(output); @@ -815,20 +686,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -856,13 +729,12 @@ public int getSerializedSize() { size += 1 * getLinkedInterconnectAttachmentsList().size(); } for (int i = 0; i < linkedRouterApplianceInstances_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 14, linkedRouterApplianceInstances_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, linkedRouterApplianceInstances_.get(i)); } - if (state_ - != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); + if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -872,32 +744,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1alpha1.Spoke)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.Spoke other = - (com.google.cloud.networkconnectivity.v1alpha1.Spoke) obj; + com.google.cloud.networkconnectivity.v1alpha1.Spoke other = (com.google.cloud.networkconnectivity.v1alpha1.Spoke) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getHub().equals(other.getHub())) return false; - if (!getLinkedVpnTunnelsList().equals(other.getLinkedVpnTunnelsList())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getHub() + .equals(other.getHub())) return false; + if (!getLinkedVpnTunnelsList() + .equals(other.getLinkedVpnTunnelsList())) return false; if (!getLinkedInterconnectAttachmentsList() .equals(other.getLinkedInterconnectAttachmentsList())) return false; if (!getLinkedRouterApplianceInstancesList() .equals(other.getLinkedRouterApplianceInstancesList())) return false; - if (!getUniqueId().equals(other.getUniqueId())) return false; + if (!getUniqueId() + .equals(other.getUniqueId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -950,103 +829,96 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.Spoke prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Spoke is an  abstraction of a network attachment being attached
    * to a Hub. A Spoke can be underlying a VPN tunnel, a
@@ -1055,52 +927,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Spoke}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.Spoke)
       com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1alpha1.Spoke.class,
-              com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
+              com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1alpha1.Spoke.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1136,9 +1011,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
-          .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
     }
 
     @java.lang.Override
@@ -1157,18 +1032,14 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1alpha1.Spoke buildPartial() {
-      com.google.cloud.networkconnectivity.v1alpha1.Spoke result =
-          new com.google.cloud.networkconnectivity.v1alpha1.Spoke(this);
+      com.google.cloud.networkconnectivity.v1alpha1.Spoke result = new com.google.cloud.networkconnectivity.v1alpha1.Spoke(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.networkconnectivity.v1alpha1.Spoke result) {
+    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.Spoke result) {
       if (((bitField0_ & 0x00000040) != 0)) {
         linkedVpnTunnels_ = linkedVpnTunnels_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000040);
@@ -1181,8 +1052,7 @@ private void buildPartialRepeatedFields(
       result.linkedInterconnectAttachments_ = linkedInterconnectAttachments_;
       if (linkedRouterApplianceInstancesBuilder_ == null) {
         if (((bitField0_ & 0x00000100) != 0)) {
-          linkedRouterApplianceInstances_ =
-              java.util.Collections.unmodifiableList(linkedRouterApplianceInstances_);
+          linkedRouterApplianceInstances_ = java.util.Collections.unmodifiableList(linkedRouterApplianceInstances_);
           bitField0_ = (bitField0_ & ~0x00000100);
         }
         result.linkedRouterApplianceInstances_ = linkedRouterApplianceInstances_;
@@ -1197,10 +1067,14 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Spoke r
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -1224,39 +1098,38 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Spoke r
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.Spoke) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Spoke) other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Spoke)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1264,8 +1137,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Spoke other) {
-      if (other == com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1277,7 +1149,8 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Spoke oth
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -1327,13 +1200,11 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Spoke oth
             linkedRouterApplianceInstancesBuilder_ = null;
             linkedRouterApplianceInstances_ = other.linkedRouterApplianceInstances_;
             bitField0_ = (bitField0_ & ~0x00000100);
-            linkedRouterApplianceInstancesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getLinkedRouterApplianceInstancesFieldBuilder()
-                    : null;
+            linkedRouterApplianceInstancesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getLinkedRouterApplianceInstancesFieldBuilder() : null;
           } else {
-            linkedRouterApplianceInstancesBuilder_.addAllMessages(
-                other.linkedRouterApplianceInstances_);
+            linkedRouterApplianceInstancesBuilder_.addAllMessages(other.linkedRouterApplianceInstances_);
           }
         }
       }
@@ -1371,96 +1242,85 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                hub_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 90:
-              {
-                uniqueId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 90
-            case 98:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureLinkedVpnTunnelsIsMutable();
-                linkedVpnTunnels_.add(s);
-                break;
-              } // case 98
-            case 106:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureLinkedInterconnectAttachmentsIsMutable();
-                linkedInterconnectAttachments_.add(s);
-                break;
-              } // case 106
-            case 114:
-              {
-                com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance m =
-                    input.readMessage(
-                        com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
-                            .parser(),
-                        extensionRegistry);
-                if (linkedRouterApplianceInstancesBuilder_ == null) {
-                  ensureLinkedRouterApplianceInstancesIsMutable();
-                  linkedRouterApplianceInstances_.add(m);
-                } else {
-                  linkedRouterApplianceInstancesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 114
-            case 120:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 120
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              hub_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 90: {
+              uniqueId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 90
+            case 98: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureLinkedVpnTunnelsIsMutable();
+              linkedVpnTunnels_.add(s);
+              break;
+            } // case 98
+            case 106: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureLinkedInterconnectAttachmentsIsMutable();
+              linkedInterconnectAttachments_.add(s);
+              break;
+            } // case 106
+            case 114: {
+              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance m =
+                  input.readMessage(
+                      com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.parser(),
+                      extensionRegistry);
+              if (linkedRouterApplianceInstancesBuilder_ == null) {
+                ensureLinkedRouterApplianceInstancesIsMutable();
+                linkedRouterApplianceInstances_.add(m);
+              } else {
+                linkedRouterApplianceInstancesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 114
+            case 120: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 120
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1470,25 +1330,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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; @@ -1497,21 +1354,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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 { @@ -1519,35 +1375,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1557,21 +1406,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1581,47 +1426,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * The time when the Spoke was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The time when the Spoke was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; - * * @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 when the Spoke was created.
      * 
@@ -1642,15 +1474,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the Spoke was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1661,8 +1492,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the Spoke was created.
      * 
@@ -1671,9 +1500,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1686,8 +1515,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the Spoke was created.
      * 
@@ -1705,8 +1532,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time when the Spoke was created.
      * 
@@ -1719,8 +1544,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the Spoke was created.
      * 
@@ -1731,14 +1554,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time when the Spoke was created.
      * 
@@ -1746,17 +1566,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -1764,47 +1581,34 @@ 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_; /** - * - * *
      * The time when the Spoke was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The time when the Spoke was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @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(); } } /** - * - * *
      * The time when the Spoke was updated.
      * 
@@ -1825,15 +1629,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the Spoke was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1844,8 +1647,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time when the Spoke was updated.
      * 
@@ -1854,9 +1655,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1869,8 +1670,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the Spoke was updated.
      * 
@@ -1888,8 +1687,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The time when the Spoke was updated.
      * 
@@ -1902,8 +1699,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the Spoke was updated.
      * 
@@ -1914,14 +1709,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * The time when the Spoke was updated.
      * 
@@ -1929,35 +1721,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1966,13 +1757,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * User-defined labels.
      * 
@@ -1980,21 +1768,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** - * - * *
      * User-defined labels.
      * 
@@ -2006,8 +1793,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * User-defined labels.
      * 
@@ -2015,19 +1800,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +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; } /** - * - * *
      * User-defined labels.
      * 
@@ -2035,95 +1818,91 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @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(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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); + 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); bitField0_ |= 0x00000008; return this; } /** - * - * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object description_ = ""; /** - * - * *
      * Short description of the spoke resource
      * 
* * string description = 5; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2132,21 +1911,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Short description of the spoke resource
      * 
* * string description = 5; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2154,35 +1932,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Short description of the spoke resource
      * 
* * string description = 5; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Short description of the spoke resource
      * 
* * string description = 5; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2192,21 +1963,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Short description of the spoke resource
      * 
* * string description = 5; - * * @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(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -2216,20 +1983,18 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object hub_ = ""; /** - * - * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return The hub. */ public java.lang.String getHub() { java.lang.Object ref = hub_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; @@ -2238,21 +2003,20 @@ public java.lang.String getHub() { } } /** - * - * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for hub. */ - public com.google.protobuf.ByteString getHubBytes() { + public com.google.protobuf.ByteString + getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hub_ = b; return b; } else { @@ -2260,35 +2024,28 @@ public com.google.protobuf.ByteString getHubBytes() { } } /** - * - * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @param value The hub to set. * @return This builder for chaining. */ - public Builder setHub(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHub( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hub_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearHub() { @@ -2298,21 +2055,17 @@ public Builder clearHub() { return this; } /** - * - * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for hub to set. * @return This builder for chaining. */ - public Builder setHubBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHubBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hub_ = value; bitField0_ |= 0x00000020; @@ -2320,55 +2073,42 @@ public Builder setHubBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList linkedVpnTunnels_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList linkedVpnTunnels_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLinkedVpnTunnelsIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { linkedVpnTunnels_ = new com.google.protobuf.LazyStringArrayList(linkedVpnTunnels_); bitField0_ |= 0x00000040; - } + } } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return A list containing the linkedVpnTunnels. */ - public com.google.protobuf.ProtocolStringList getLinkedVpnTunnelsList() { + public com.google.protobuf.ProtocolStringList + getLinkedVpnTunnelsList() { return linkedVpnTunnels_.getUnmodifiableView(); } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return The count of linkedVpnTunnels. */ public int getLinkedVpnTunnelsCount() { return linkedVpnTunnels_.size(); } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The linkedVpnTunnels at the given index. */ @@ -2376,95 +2116,76 @@ public java.lang.String getLinkedVpnTunnels(int index) { return linkedVpnTunnels_.get(index); } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the linkedVpnTunnels at the given index. */ - public com.google.protobuf.ByteString getLinkedVpnTunnelsBytes(int index) { + public com.google.protobuf.ByteString + getLinkedVpnTunnelsBytes(int index) { return linkedVpnTunnels_.getByteString(index); } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The linkedVpnTunnels to set. * @return This builder for chaining. */ - public Builder setLinkedVpnTunnels(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLinkedVpnTunnels( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLinkedVpnTunnelsIsMutable(); linkedVpnTunnels_.set(index, value); onChanged(); return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param value The linkedVpnTunnels to add. * @return This builder for chaining. */ - public Builder addLinkedVpnTunnels(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLinkedVpnTunnels( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLinkedVpnTunnelsIsMutable(); linkedVpnTunnels_.add(value); onChanged(); return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param values The linkedVpnTunnels to add. * @return This builder for chaining. */ - public Builder addAllLinkedVpnTunnels(java.lang.Iterable values) { + public Builder addAllLinkedVpnTunnels( + java.lang.Iterable values) { ensureLinkedVpnTunnelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, linkedVpnTunnels_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, linkedVpnTunnels_); onChanged(); return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearLinkedVpnTunnels() { @@ -2474,22 +2195,17 @@ public Builder clearLinkedVpnTunnels() { return this; } /** - * - * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param value The bytes of the linkedVpnTunnels to add. * @return This builder for chaining. */ - public Builder addLinkedVpnTunnelsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLinkedVpnTunnelsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLinkedVpnTunnelsIsMutable(); linkedVpnTunnels_.add(value); @@ -2497,59 +2213,42 @@ public Builder addLinkedVpnTunnelsBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList linkedInterconnectAttachments_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList linkedInterconnectAttachments_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLinkedInterconnectAttachmentsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - linkedInterconnectAttachments_ = - new com.google.protobuf.LazyStringArrayList(linkedInterconnectAttachments_); + linkedInterconnectAttachments_ = new com.google.protobuf.LazyStringArrayList(linkedInterconnectAttachments_); bitField0_ |= 0x00000080; - } + } } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return A list containing the linkedInterconnectAttachments. */ - public com.google.protobuf.ProtocolStringList getLinkedInterconnectAttachmentsList() { + public com.google.protobuf.ProtocolStringList + getLinkedInterconnectAttachmentsList() { return linkedInterconnectAttachments_.getUnmodifiableView(); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return The count of linkedInterconnectAttachments. */ public int getLinkedInterconnectAttachmentsCount() { return linkedInterconnectAttachments_.size(); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The linkedInterconnectAttachments at the given index. */ @@ -2557,80 +2256,59 @@ public java.lang.String getLinkedInterconnectAttachments(int index) { return linkedInterconnectAttachments_.get(index); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the linkedInterconnectAttachments at the given index. */ - public com.google.protobuf.ByteString getLinkedInterconnectAttachmentsBytes(int index) { + public com.google.protobuf.ByteString + getLinkedInterconnectAttachmentsBytes(int index) { return linkedInterconnectAttachments_.getByteString(index); } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The linkedInterconnectAttachments to set. * @return This builder for chaining. */ - public Builder setLinkedInterconnectAttachments(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLinkedInterconnectAttachments( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLinkedInterconnectAttachmentsIsMutable(); linkedInterconnectAttachments_.set(index, value); onChanged(); return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param value The linkedInterconnectAttachments to add. * @return This builder for chaining. */ - public Builder addLinkedInterconnectAttachments(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLinkedInterconnectAttachments( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLinkedInterconnectAttachmentsIsMutable(); linkedInterconnectAttachments_.add(value); onChanged(); return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param values The linkedInterconnectAttachments to add. * @return This builder for chaining. */ @@ -2643,16 +2321,11 @@ public Builder addAllLinkedInterconnectAttachments( return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearLinkedInterconnectAttachments() { @@ -2662,23 +2335,17 @@ public Builder clearLinkedInterconnectAttachments() { return this; } /** - * - * *
      * The URIs of linked interconnect attachment resources
      * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param value The bytes of the linkedInterconnectAttachments to add. * @return This builder for chaining. */ - public Builder addLinkedInterconnectAttachmentsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLinkedInterconnectAttachmentsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLinkedInterconnectAttachmentsIsMutable(); linkedInterconnectAttachments_.add(value); @@ -2686,38 +2353,26 @@ public Builder addLinkedInterconnectAttachmentsBytes(com.google.protobuf.ByteStr return this; } - private java.util.List - linkedRouterApplianceInstances_ = java.util.Collections.emptyList(); - + private java.util.List linkedRouterApplianceInstances_ = + java.util.Collections.emptyList(); private void ensureLinkedRouterApplianceInstancesIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { - linkedRouterApplianceInstances_ = - new java.util.ArrayList< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance>( - linkedRouterApplianceInstances_); + linkedRouterApplianceInstances_ = new java.util.ArrayList(linkedRouterApplianceInstances_); bitField0_ |= 0x00000100; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> - linkedRouterApplianceInstancesBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> linkedRouterApplianceInstancesBuilder_; /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public java.util.List - getLinkedRouterApplianceInstancesList() { + public java.util.List getLinkedRouterApplianceInstancesList() { if (linkedRouterApplianceInstancesBuilder_ == null) { return java.util.Collections.unmodifiableList(linkedRouterApplianceInstances_); } else { @@ -2725,15 +2380,11 @@ private void ensureLinkedRouterApplianceInstancesIsMutable() { } } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public int getLinkedRouterApplianceInstancesCount() { if (linkedRouterApplianceInstancesBuilder_ == null) { @@ -2743,18 +2394,13 @@ public int getLinkedRouterApplianceInstancesCount() { } } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - getLinkedRouterApplianceInstances(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getLinkedRouterApplianceInstances(int index) { if (linkedRouterApplianceInstancesBuilder_ == null) { return linkedRouterApplianceInstances_.get(index); } else { @@ -2762,15 +2408,11 @@ public int getLinkedRouterApplianceInstancesCount() { } } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder setLinkedRouterApplianceInstances( int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { @@ -2787,20 +2429,14 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder setLinkedRouterApplianceInstances( - int index, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder - builderForValue) { + int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); linkedRouterApplianceInstances_.set(index, builderForValue.build()); @@ -2811,18 +2447,13 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public Builder addLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { + public Builder addLinkedRouterApplianceInstances(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { if (linkedRouterApplianceInstancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2836,15 +2467,11 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder addLinkedRouterApplianceInstances( int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { @@ -2861,19 +2488,14 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder addLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder - builderForValue) { + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); linkedRouterApplianceInstances_.add(builderForValue.build()); @@ -2884,20 +2506,14 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder addLinkedRouterApplianceInstances( - int index, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder - builderForValue) { + int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); linkedRouterApplianceInstances_.add(index, builderForValue.build()); @@ -2908,20 +2524,14 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder addAllLinkedRouterApplianceInstances( - java.lang.Iterable< - ? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance> - values) { + java.lang.Iterable values) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -2933,15 +2543,11 @@ public Builder addAllLinkedRouterApplianceInstances( return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder clearLinkedRouterApplianceInstances() { if (linkedRouterApplianceInstancesBuilder_ == null) { @@ -2954,15 +2560,11 @@ public Builder clearLinkedRouterApplianceInstances() { return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ public Builder removeLinkedRouterApplianceInstances(int index) { if (linkedRouterApplianceInstancesBuilder_ == null) { @@ -2975,54 +2577,39 @@ public Builder removeLinkedRouterApplianceInstances(int index) { return this; } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder - getLinkedRouterApplianceInstancesBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder getLinkedRouterApplianceInstancesBuilder( + int index) { return getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(index); } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder - getLinkedRouterApplianceInstancesOrBuilder(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder getLinkedRouterApplianceInstancesOrBuilder( + int index) { if (linkedRouterApplianceInstancesBuilder_ == null) { - return linkedRouterApplianceInstances_.get(index); - } else { + return linkedRouterApplianceInstances_.get(index); } else { return linkedRouterApplianceInstancesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public java.util.List< - ? extends - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> - getLinkedRouterApplianceInstancesOrBuilderList() { + public java.util.List + getLinkedRouterApplianceInstancesOrBuilderList() { if (linkedRouterApplianceInstancesBuilder_ != null) { return linkedRouterApplianceInstancesBuilder_.getMessageOrBuilderList(); } else { @@ -3030,70 +2617,45 @@ public Builder removeLinkedRouterApplianceInstances(int index) { } } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder - addLinkedRouterApplianceInstancesBuilder() { - return getLinkedRouterApplianceInstancesFieldBuilder() - .addBuilder( - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - .getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder addLinkedRouterApplianceInstancesBuilder() { + return getLinkedRouterApplianceInstancesFieldBuilder().addBuilder( + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance()); } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder - addLinkedRouterApplianceInstancesBuilder(int index) { - return getLinkedRouterApplianceInstancesFieldBuilder() - .addBuilder( - index, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - .getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder addLinkedRouterApplianceInstancesBuilder( + int index) { + return getLinkedRouterApplianceInstancesFieldBuilder().addBuilder( + index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance()); } /** - * - * *
      * The URIs of linked Router appliance resources
      * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - public java.util.List< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder> - getLinkedRouterApplianceInstancesBuilderList() { + public java.util.List + getLinkedRouterApplianceInstancesBuilderList() { return getLinkedRouterApplianceInstancesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> getLinkedRouterApplianceInstancesFieldBuilder() { if (linkedRouterApplianceInstancesBuilder_ == null) { - linkedRouterApplianceInstancesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder>( + linkedRouterApplianceInstancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder>( linkedRouterApplianceInstances_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), @@ -3105,8 +2667,6 @@ public Builder removeLinkedRouterApplianceInstances(int index) { private java.lang.Object uniqueId_ = ""; /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -3114,13 +2674,13 @@ public Builder removeLinkedRouterApplianceInstances(int index) {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -3129,8 +2689,6 @@ public java.lang.String getUniqueId() { } } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -3138,14 +2696,15 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -3153,8 +2712,6 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { } } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -3162,22 +2719,18 @@ public com.google.protobuf.ByteString getUniqueIdBytes() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uniqueId_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -3185,7 +2738,6 @@ public Builder setUniqueId(java.lang.String value) {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -3195,8 +2747,6 @@ public Builder clearUniqueId() { return this; } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -3204,14 +2754,12 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUniqueIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000200; @@ -3221,33 +2769,22 @@ public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3258,37 +2795,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = - com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null - ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED - : result; + com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3302,16 +2826,11 @@ public Builder setState(com.google.cloud.networkconnectivity.v1alpha1.State valu return this; } /** - * - * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -3320,9 +2839,9 @@ public Builder clearState() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3332,12 +2851,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.Spoke) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.Spoke) private static final com.google.cloud.networkconnectivity.v1alpha1.Spoke DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.Spoke(); } @@ -3346,27 +2865,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.Spoke getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Spoke parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Spoke parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3381,4 +2900,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.Spoke getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java similarity index 65% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java index 2d619ff4a0d6..eab4db8a11c2 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java @@ -1,80 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface SpokeOrBuilder - extends +public interface SpokeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.Spoke) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time when the Spoke was created.
    * 
@@ -84,32 +55,24 @@ public interface SpokeOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The time when the Spoke was updated.
    * 
@@ -119,8 +82,6 @@ public interface SpokeOrBuilder com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * User-defined labels.
    * 
@@ -129,31 +90,30 @@ public interface SpokeOrBuilder */ int getLabelsCount(); /** - * - * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * User-defined labels.
    * 
@@ -161,254 +121,187 @@ public interface SpokeOrBuilder * map<string, string> labels = 4; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Short description of the spoke resource
    * 
* * string description = 5; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Short description of the spoke resource
    * 
* * string description = 5; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return The hub. */ java.lang.String getHub(); /** - * - * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for hub. */ - com.google.protobuf.ByteString getHubBytes(); + com.google.protobuf.ByteString + getHubBytes(); /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return A list containing the linkedVpnTunnels. */ - java.util.List getLinkedVpnTunnelsList(); + java.util.List + getLinkedVpnTunnelsList(); /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @return The count of linkedVpnTunnels. */ int getLinkedVpnTunnelsCount(); /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The linkedVpnTunnels at the given index. */ java.lang.String getLinkedVpnTunnels(int index); /** - * - * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the linkedVpnTunnels at the given index. */ - com.google.protobuf.ByteString getLinkedVpnTunnelsBytes(int index); + com.google.protobuf.ByteString + getLinkedVpnTunnelsBytes(int index); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return A list containing the linkedInterconnectAttachments. */ - java.util.List getLinkedInterconnectAttachmentsList(); + java.util.List + getLinkedInterconnectAttachmentsList(); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @return The count of linkedInterconnectAttachments. */ int getLinkedInterconnectAttachmentsCount(); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The linkedInterconnectAttachments at the given index. */ java.lang.String getLinkedInterconnectAttachments(int index); /** - * - * *
    * The URIs of linked interconnect attachment resources
    * 
* - * - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } - * - * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the linkedInterconnectAttachments at the given index. */ - com.google.protobuf.ByteString getLinkedInterconnectAttachmentsBytes(int index); + com.google.protobuf.ByteString + getLinkedInterconnectAttachmentsBytes(int index); /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - java.util.List + java.util.List getLinkedRouterApplianceInstancesList(); /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance - getLinkedRouterApplianceInstances(int index); + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getLinkedRouterApplianceInstances(int index); /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ int getLinkedRouterApplianceInstancesCount(); /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - java.util.List< - ? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> + java.util.List getLinkedRouterApplianceInstancesOrBuilderList(); /** - * - * *
    * The URIs of linked Router appliance resources
    * 
* - * - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; - * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; */ - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder - getLinkedRouterApplianceInstancesOrBuilder(int index); + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder getLinkedRouterApplianceInstancesOrBuilder( + int index); /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -416,13 +309,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ java.lang.String getUniqueId(); /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -430,36 +320,26 @@ java.lang.String getLabelsOrDefault(
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString getUniqueIdBytes(); + com.google.protobuf.ByteString + getUniqueIdBytes(); /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.networkconnectivity.v1alpha1.State getState(); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java similarity index 66% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java index 3b3ebc865572..20edd63148a4 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * The State enum represents the lifecycle of a Network Connectivity Center
  * resource.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.networkconnectivity.v1alpha1.State}
  */
-public enum State implements com.google.protobuf.ProtocolMessageEnum {
+public enum State
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * No state information available
    * 
@@ -40,8 +22,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
    * The resource's create operation is in progress
    * 
@@ -50,8 +30,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
    * The resource is active
    * 
@@ -60,8 +38,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(2), /** - * - * *
    * The resource's Delete operation is in progress
    * 
@@ -73,8 +49,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * No state information available
    * 
@@ -83,8 +57,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The resource's create operation is in progress
    * 
@@ -93,8 +65,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
    * The resource is active
    * 
@@ -103,8 +73,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 2; /** - * - * *
    * The resource's Delete operation is in progress
    * 
@@ -113,6 +81,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( @@ -137,53 +106,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 ACTIVE; - case 3: - return DELETING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return ACTIVE; + 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 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< + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.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; @@ -199,3 +165,4 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1alpha1.State) } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java index 6f3ae26bff5b..af8c18df237a 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java @@ -1,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Request for [HubService.UpdateHub][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest} */ -public final class UpdateHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) UpdateHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateHubRequest.newBuilder() to construct. private UpdateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateHubRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -80,9 +59,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -90,8 +67,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -100,9 +75,7 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -110,8 +83,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -120,8 +91,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -131,16 +101,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int HUB_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; /** - * - * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ @java.lang.Override @@ -148,49 +113,33 @@ public boolean hasHub() { return hub_ != null; } /** - * - * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } /** - * - * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -206,7 +155,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -215,15 +163,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -239,15 +186,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -256,7 +204,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +215,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -288,10 +236,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHub()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -304,23 +254,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub().equals(other.getHub())) return false; + if (!getHub() + .equals(other.getHub())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,136 +300,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.UpdateHub][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -497,14 +442,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance(); } @@ -519,23 +463,23 @@ public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build(); + result.hub_ = hubBuilder_ == null + ? hub_ + : hubBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -546,39 +490,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest)other); } else { super.mergeFrom(other); return this; @@ -586,9 +529,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -626,31 +567,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getHubFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -660,18 +601,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -680,17 +615,13 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -699,23 +630,17 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -724,8 +649,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -741,8 +665,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -751,10 +673,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -765,8 +687,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -775,14 +695,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -795,8 +714,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -805,8 +722,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -819,8 +735,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -829,8 +743,7 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -838,8 +751,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -848,21 +759,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -871,21 +778,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -893,58 +796,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> - hubBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> hubBuilder_; /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } else { return hubBuilder_.getMessage(); } } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { @@ -960,15 +844,11 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { return this; } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHub( com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder builderForValue) { @@ -982,21 +862,17 @@ public Builder setHub( return this; } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && hub_ != null - && hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + hub_ != null && + hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -1009,15 +885,11 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) return this; } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1030,15 +902,11 @@ public Builder clearHub() { return this; } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000002; @@ -1046,48 +914,36 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() return getHubFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() - : hub_; + return hub_ == null ? + com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; } } /** - * - * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, - com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( - getHub(), getParentForChildren(), isClean()); + hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( + getHub(), + getParentForChildren(), + isClean()); hub_ = null; } return hubBuilder_; @@ -1095,8 +951,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1112,13 +966,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1127,8 +981,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1144,14 +996,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1159,8 +1012,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1176,22 +1027,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1207,7 +1054,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1217,8 +1063,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1234,23 +1078,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1260,43 +1102,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1308,8 +1148,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java similarity index 76% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java index 1a2cf0c696b7..0646b5914e40 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface UpdateHubRequestOrBuilder - extends +public interface UpdateHubRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -34,15 +16,11 @@ public interface UpdateHubRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -51,15 +29,11 @@ public interface UpdateHubRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -68,55 +42,38 @@ public interface UpdateHubRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hub field is set. */ boolean hasHub(); /** - * - * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The hub. */ com.google.cloud.networkconnectivity.v1alpha1.Hub getHub(); /** - * - * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -132,13 +89,10 @@ public interface UpdateHubRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -154,8 +108,8 @@ public interface UpdateHubRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java similarity index 70% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java index 649d740386b8..9cf86439b9e7 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java @@ -1,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** - * - * *
  * Request for [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest} */ -public final class UpdateSpokeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSpokeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) UpdateSpokeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSpokeRequest.newBuilder() to construct. private UpdateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSpokeRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -80,9 +59,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -90,8 +67,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -100,9 +75,7 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -110,8 +83,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -120,8 +91,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -131,16 +101,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int SPOKE_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; /** - * - * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ @java.lang.Override @@ -148,49 +113,33 @@ public boolean hasSpoke() { return spoke_ != null; } /** - * - * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } /** - * - * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -206,7 +155,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -215,15 +163,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -239,15 +186,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -256,7 +204,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +215,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -288,10 +236,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpoke()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -304,23 +254,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other = - (com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke().equals(other.getSpoke())) return false; + if (!getSpoke() + .equals(other.getSpoke())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,136 +300,129 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest prototype) { + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -497,14 +442,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto - .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance(); } @@ -519,23 +463,23 @@ public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result = - new com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result) { + private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build(); + result.spoke_ = spokeBuilder_ == null + ? spoke_ + : spokeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -546,50 +490,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other) { - if (other - == com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other) { + if (other == com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -627,31 +567,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSpokeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -661,18 +601,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -681,17 +615,13 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -700,23 +630,17 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -725,8 +649,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -742,8 +665,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -752,10 +673,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -766,8 +687,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -776,14 +695,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -796,8 +714,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -806,8 +722,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -820,8 +735,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -830,8 +743,7 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -839,8 +751,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -849,21 +759,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -872,21 +778,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -894,58 +796,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> - spokeBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> spokeBuilder_; /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } else { return spokeBuilder_.getMessage(); } } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { @@ -961,15 +844,11 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke valu return this; } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSpoke( com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder builderForValue) { @@ -983,21 +862,17 @@ public Builder setSpoke( return this; } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && spoke_ != null - && spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + spoke_ != null && + spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -1010,15 +885,11 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke va return this; } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1031,15 +902,11 @@ public Builder clearSpoke() { return this; } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000002; @@ -1047,48 +914,36 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuild return getSpokeFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null - ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() - : spoke_; + return spoke_ == null ? + com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; } } /** - * - * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, - com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( - getSpoke(), getParentForChildren(), isClean()); + spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( + getSpoke(), + getParentForChildren(), + isClean()); spoke_ = null; } return spokeBuilder_; @@ -1096,8 +951,6 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1113,13 +966,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1128,8 +981,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1145,14 +996,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1160,8 +1012,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1177,22 +1027,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1208,7 +1054,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1218,8 +1063,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1235,23 +1078,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1261,43 +1102,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest - getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1309,8 +1148,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest - getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java similarity index 76% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java index 122c9f806e3f..1d98b15275f3 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java +++ b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface UpdateSpokeRequestOrBuilder - extends +public interface UpdateSpokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -34,15 +16,11 @@ public interface UpdateSpokeRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -51,15 +29,11 @@ public interface UpdateSpokeRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -68,55 +42,38 @@ public interface UpdateSpokeRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the spoke field is set. */ boolean hasSpoke(); /** - * - * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The spoke. */ com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke(); /** - * - * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -132,13 +89,10 @@ public interface UpdateSpokeRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -154,8 +108,8 @@ public interface UpdateSpokeRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto similarity index 100% rename from java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto rename to owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java diff --git a/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java similarity index 100% rename from java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java rename to owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java From dbeef5bfa4485452e0f327d2b2dba7aeb3f2b69c Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 27 Jan 2023 20:14:57 +0000 Subject: [PATCH 6/6] =?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 --- .../v1/HubServiceClient.java | 0 .../v1/HubServiceSettings.java | 1 - .../v1/gapic_metadata.json | 0 .../networkconnectivity/v1/package-info.java | 0 .../stub/GrpcHubServiceCallableFactory.java | 0 .../v1/stub/GrpcHubServiceStub.java | 1 - .../v1/stub/HubServiceStub.java | 0 .../v1/stub/HubServiceStubSettings.java | 0 .../v1alpha1/HubServiceClient.java | 0 .../v1alpha1/HubServiceSettings.java | 1 - .../v1alpha1/gapic_metadata.json | 0 .../v1alpha1/package-info.java | 0 .../stub/GrpcHubServiceCallableFactory.java | 0 .../v1alpha1/stub/GrpcHubServiceStub.java | 1 - .../v1alpha1/stub/HubServiceStub.java | 0 .../v1alpha1/stub/HubServiceStubSettings.java | 0 .../v1/HubServiceClientTest.java | 0 .../v1/MockHubService.java | 0 .../v1/MockHubServiceImpl.java | 0 .../v1alpha1/HubServiceClientTest.java | 0 .../v1alpha1/MockHubService.java | 0 .../v1alpha1/MockHubServiceImpl.java | 0 .../v1/HubServiceGrpc.java | 1396 ++++++++++++++ .../v1alpha1/HubServiceGrpc.java | 1400 ++++++++++++++ .../networkconnectivity/v1/CommonProto.java | 102 + .../v1/CreateHubRequest.java | 637 ++++--- .../v1/CreateHubRequestOrBuilder.java | 73 +- .../v1/CreateSpokeRequest.java | 645 ++++--- .../v1/CreateSpokeRequestOrBuilder.java | 73 +- .../v1/DeleteHubRequest.java | 428 +++-- .../v1/DeleteHubRequestOrBuilder.java | 44 +- .../v1/DeleteSpokeRequest.java | 428 +++-- .../v1/DeleteSpokeRequestOrBuilder.java | 44 +- .../networkconnectivity/v1/GetHubRequest.java | 356 ++-- .../v1/GetHubRequestOrBuilder.java | 54 + .../v1/GetSpokeRequest.java | 356 ++-- .../v1/GetSpokeRequestOrBuilder.java | 54 + .../cloud/networkconnectivity/v1/Hub.java | 1204 +++++++----- .../cloud/networkconnectivity/v1/HubName.java | 0 .../networkconnectivity/v1/HubOrBuilder.java | 141 +- .../networkconnectivity/v1/HubProto.java | 532 ++++++ .../v1/LinkedInterconnectAttachments.java | 531 ++++-- ...inkedInterconnectAttachmentsOrBuilder.java | 56 +- .../v1/LinkedRouterApplianceInstances.java | 697 ++++--- ...nkedRouterApplianceInstancesOrBuilder.java | 67 +- .../v1/LinkedVpnTunnels.java | 496 +++-- .../v1/LinkedVpnTunnelsOrBuilder.java | 56 +- .../v1/ListHubsRequest.java | 607 +++--- .../v1/ListHubsRequestOrBuilder.java | 65 +- .../v1/ListHubsResponse.java | 590 +++--- .../v1/ListHubsResponseOrBuilder.java | 63 +- .../v1/ListSpokesRequest.java | 607 +++--- .../v1/ListSpokesRequestOrBuilder.java | 65 +- .../v1/ListSpokesResponse.java | 587 +++--- .../v1/ListSpokesResponseOrBuilder.java | 63 +- .../v1/LocationFeature.java | 82 +- .../v1/LocationMetadata.java | 454 +++-- .../v1/LocationMetadataOrBuilder.java | 51 +- .../networkconnectivity/v1/LocationName.java | 0 .../v1/OperationMetadata.java | 835 +++++---- .../v1/OperationMetadataOrBuilder.java | 91 +- .../v1/RouterApplianceInstance.java | 423 +++-- .../v1/RouterApplianceInstanceOrBuilder.java | 36 +- .../networkconnectivity/v1/RoutingVPC.java | 385 ++-- .../v1/RoutingVPCOrBuilder.java | 34 +- .../cloud/networkconnectivity/v1/Spoke.java | 1648 ++++++++++------ .../networkconnectivity/v1/SpokeName.java | 0 .../v1/SpokeOrBuilder.java | 200 +- .../cloud/networkconnectivity/v1/State.java | 96 +- .../v1/UpdateHubRequest.java | 590 +++--- .../v1/UpdateHubRequestOrBuilder.java | 64 +- .../v1/UpdateSpokeRequest.java | 598 +++--- .../v1/UpdateSpokeRequestOrBuilder.java | 64 +- .../cloud/networkconnectivity/v1/common.proto | 0 .../cloud/networkconnectivity/v1/hub.proto | 0 .../v1alpha1/CommonProto.java | 94 + .../v1alpha1/CreateHubRequest.java | 662 ++++--- .../v1alpha1/CreateHubRequestOrBuilder.java | 73 +- .../v1alpha1/CreateSpokeRequest.java | 665 ++++--- .../v1alpha1/CreateSpokeRequestOrBuilder.java | 73 +- .../v1alpha1/DeleteHubRequest.java | 448 +++-- .../v1alpha1/DeleteHubRequestOrBuilder.java | 44 +- .../v1alpha1/DeleteSpokeRequest.java | 451 +++-- .../v1alpha1/DeleteSpokeRequestOrBuilder.java | 44 +- .../v1alpha1/GetHubRequest.java | 356 ++-- .../v1alpha1/GetHubRequestOrBuilder.java | 54 + .../v1alpha1/GetSpokeRequest.java | 366 ++-- .../v1alpha1/GetSpokeRequestOrBuilder.java | 54 + .../networkconnectivity/v1alpha1/Hub.java | 1148 +++++++----- .../networkconnectivity/v1alpha1/HubName.java | 0 .../v1alpha1/HubOrBuilder.java | 139 +- .../v1alpha1/HubProto.java | 460 +++++ .../v1alpha1/ListHubsRequest.java | 617 +++--- .../v1alpha1/ListHubsRequestOrBuilder.java | 65 +- .../v1alpha1/ListHubsResponse.java | 609 +++--- .../v1alpha1/ListHubsResponseOrBuilder.java | 63 +- .../v1alpha1/ListSpokesRequest.java | 630 ++++--- .../v1alpha1/ListSpokesRequestOrBuilder.java | 65 +- .../v1alpha1/ListSpokesResponse.java | 609 +++--- .../v1alpha1/ListSpokesResponseOrBuilder.java | 63 +- .../v1alpha1/LocationName.java | 0 .../v1alpha1/OperationMetadata.java | 858 +++++---- .../v1alpha1/OperationMetadataOrBuilder.java | 91 +- .../v1alpha1/RouterApplianceInstance.java | 539 +++--- .../RouterApplianceInstanceOrBuilder.java | 53 +- .../networkconnectivity/v1alpha1/Spoke.java | 1653 +++++++++++------ .../v1alpha1/SpokeName.java | 0 .../v1alpha1/SpokeOrBuilder.java | 220 ++- .../networkconnectivity/v1alpha1/State.java | 93 +- .../v1alpha1/UpdateHubRequest.java | 615 +++--- .../v1alpha1/UpdateHubRequestOrBuilder.java | 64 +- .../v1alpha1/UpdateSpokeRequest.java | 618 +++--- .../v1alpha1/UpdateSpokeRequestOrBuilder.java | 64 +- .../networkconnectivity/v1alpha1/common.proto | 0 .../networkconnectivity/v1alpha1/hub.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../hubservice/createhub/AsyncCreateHub.java | 0 .../createhub/AsyncCreateHubLRO.java | 0 .../hubservice/createhub/SyncCreateHub.java | 0 .../SyncCreateHubLocationnameHubString.java | 0 .../SyncCreateHubStringHubString.java | 0 .../createspoke/AsyncCreateSpoke.java | 0 .../createspoke/AsyncCreateSpokeLRO.java | 0 .../createspoke/SyncCreateSpoke.java | 0 ...yncCreateSpokeLocationnameSpokeString.java | 0 .../SyncCreateSpokeStringSpokeString.java | 0 .../hubservice/deletehub/AsyncDeleteHub.java | 0 .../deletehub/AsyncDeleteHubLRO.java | 0 .../hubservice/deletehub/SyncDeleteHub.java | 0 .../deletehub/SyncDeleteHubHubname.java | 0 .../deletehub/SyncDeleteHubString.java | 0 .../deletespoke/AsyncDeleteSpoke.java | 0 .../deletespoke/AsyncDeleteSpokeLRO.java | 0 .../deletespoke/SyncDeleteSpoke.java | 0 .../deletespoke/SyncDeleteSpokeSpokename.java | 0 .../deletespoke/SyncDeleteSpokeString.java | 0 .../v1/hubservice/gethub/AsyncGetHub.java | 0 .../v1/hubservice/gethub/SyncGetHub.java | 0 .../hubservice/gethub/SyncGetHubHubname.java | 0 .../hubservice/gethub/SyncGetHubString.java | 0 .../v1/hubservice/getspoke/AsyncGetSpoke.java | 0 .../v1/hubservice/getspoke/SyncGetSpoke.java | 0 .../getspoke/SyncGetSpokeSpokename.java | 0 .../getspoke/SyncGetSpokeString.java | 0 .../v1/hubservice/listhubs/AsyncListHubs.java | 0 .../listhubs/AsyncListHubsPaged.java | 0 .../v1/hubservice/listhubs/SyncListHubs.java | 0 .../listhubs/SyncListHubsLocationname.java | 0 .../listhubs/SyncListHubsString.java | 0 .../listspokes/AsyncListSpokes.java | 0 .../listspokes/AsyncListSpokesPaged.java | 0 .../hubservice/listspokes/SyncListSpokes.java | 0 .../SyncListSpokesLocationname.java | 0 .../listspokes/SyncListSpokesString.java | 0 .../hubservice/updatehub/AsyncUpdateHub.java | 0 .../updatehub/AsyncUpdateHubLRO.java | 0 .../hubservice/updatehub/SyncUpdateHub.java | 0 .../updatehub/SyncUpdateHubHubFieldmask.java | 0 .../updatespoke/AsyncUpdateSpoke.java | 0 .../updatespoke/AsyncUpdateSpokeLRO.java | 0 .../updatespoke/SyncUpdateSpoke.java | 0 .../SyncUpdateSpokeSpokeFieldmask.java | 0 .../hubservicesettings/gethub/SyncGetHub.java | 0 .../gethub/SyncGetHub.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../hubservice/createhub/AsyncCreateHub.java | 0 .../createhub/AsyncCreateHubLRO.java | 0 .../hubservice/createhub/SyncCreateHub.java | 0 .../SyncCreateHubLocationnameHubString.java | 0 .../SyncCreateHubStringHubString.java | 0 .../createspoke/AsyncCreateSpoke.java | 0 .../createspoke/AsyncCreateSpokeLRO.java | 0 .../createspoke/SyncCreateSpoke.java | 0 ...yncCreateSpokeLocationnameSpokeString.java | 0 .../SyncCreateSpokeStringSpokeString.java | 0 .../hubservice/deletehub/AsyncDeleteHub.java | 0 .../deletehub/AsyncDeleteHubLRO.java | 0 .../hubservice/deletehub/SyncDeleteHub.java | 0 .../deletehub/SyncDeleteHubHubname.java | 0 .../deletehub/SyncDeleteHubString.java | 0 .../deletespoke/AsyncDeleteSpoke.java | 0 .../deletespoke/AsyncDeleteSpokeLRO.java | 0 .../deletespoke/SyncDeleteSpoke.java | 0 .../deletespoke/SyncDeleteSpokeSpokename.java | 0 .../deletespoke/SyncDeleteSpokeString.java | 0 .../hubservice/gethub/AsyncGetHub.java | 0 .../hubservice/gethub/SyncGetHub.java | 0 .../hubservice/gethub/SyncGetHubHubname.java | 0 .../hubservice/gethub/SyncGetHubString.java | 0 .../hubservice/getspoke/AsyncGetSpoke.java | 0 .../hubservice/getspoke/SyncGetSpoke.java | 0 .../getspoke/SyncGetSpokeSpokename.java | 0 .../getspoke/SyncGetSpokeString.java | 0 .../hubservice/listhubs/AsyncListHubs.java | 0 .../listhubs/AsyncListHubsPaged.java | 0 .../hubservice/listhubs/SyncListHubs.java | 0 .../listhubs/SyncListHubsLocationname.java | 0 .../listhubs/SyncListHubsString.java | 0 .../listspokes/AsyncListSpokes.java | 0 .../listspokes/AsyncListSpokesPaged.java | 0 .../hubservice/listspokes/SyncListSpokes.java | 0 .../SyncListSpokesLocationname.java | 0 .../listspokes/SyncListSpokesString.java | 0 .../hubservice/updatehub/AsyncUpdateHub.java | 0 .../updatehub/AsyncUpdateHubLRO.java | 0 .../hubservice/updatehub/SyncUpdateHub.java | 0 .../updatehub/SyncUpdateHubHubFieldmask.java | 0 .../updatespoke/AsyncUpdateSpoke.java | 0 .../updatespoke/AsyncUpdateSpokeLRO.java | 0 .../updatespoke/SyncUpdateSpoke.java | 0 .../SyncUpdateSpokeSpokeFieldmask.java | 0 .../hubservicesettings/gethub/SyncGetHub.java | 0 .../gethub/SyncGetHub.java | 0 .../v1/HubServiceGrpc.java | 1095 ----------- .../networkconnectivity/v1/CommonProto.java | 81 - .../v1/GetHubRequestOrBuilder.java | 29 - .../v1/GetSpokeRequestOrBuilder.java | 29 - .../networkconnectivity/v1/HubProto.java | 477 ----- .../v1alpha1/HubServiceGrpc.java | 1092 ----------- .../v1alpha1/CommonProto.java | 73 - .../v1alpha1/GetHubRequestOrBuilder.java | 29 - .../v1alpha1/GetSpokeRequestOrBuilder.java | 29 - .../v1alpha1/HubProto.java | 408 ---- 225 files changed, 21218 insertions(+), 13016 deletions(-) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java (99%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java (99%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java (99%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java (99%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java (100%) create mode 100644 java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java create mode 100644 java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java (69%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java (69%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java (68%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java (69%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java (61%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java (61%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java (78%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachments.java (65%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java (64%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java (64%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java (62%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java (68%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java (63%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java (58%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java (72%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java (58%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java (72%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java (73%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java (62%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java (75%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java (65%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java (57%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java (66%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java (58%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java (63%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java (69%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java (68%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java (72%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java (77%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java (77%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto (100%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java (68%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java (68%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java (69%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java (69%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java (63%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java (61%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java (66%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java (67%) create mode 100644 java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequest.java (67%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java (59%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java (73%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java (66%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java (59%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java (71%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java (73%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java (75%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java (63%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java (55%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java (66%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java (65%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java (66%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java (76%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java (70%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java (76%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java (100%) rename {owl-bot-staging/java-networkconnectivity/v1alpha1 => java-networkconnectivity}/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java (100%) delete mode 100644 owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java similarity index 99% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java index 0f54d6e73b8d..8602b8d3a73f 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.networkconnectivity.v1.stub.HubServiceStubSettings; diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java similarity index 99% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java index a4c973ff1360..91b811c5fc87 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java @@ -48,7 +48,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java similarity index 99% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java index b824a3ceabcd..89775db66f05 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.networkconnectivity.v1alpha1.stub.HubServiceStubSettings; diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/gapic_metadata.json diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java similarity index 99% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java index fffc277454e3..8298968354e6 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java @@ -49,7 +49,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/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java rename to java-networkconnectivity/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java new file mode 100644 index 000000000000..2c1620fb084e --- /dev/null +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java @@ -0,0 +1,1396 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networkconnectivity.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Network Connectivity Center is a hub-and-spoke abstraction for network
+ * connectivity management in Google Cloud. It reduces operational complexity
+ * through a simple, centralized connectivity management model.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networkconnectivity/v1/hub.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class HubServiceGrpc { + + private HubServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1.HubService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1.ListHubsResponse> + getListHubsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListHubs", + requestType = com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1.ListHubsResponse> + getListHubsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1.ListHubsResponse> + getListHubsMethod; + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + HubServiceGrpc.getListHubsMethod = + getListHubsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListHubsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListHubsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) + .build(); + } + } + } + return getListHubsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetHubRequest, + com.google.cloud.networkconnectivity.v1.Hub> + getGetHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetHub", + requestType = com.google.cloud.networkconnectivity.v1.GetHubRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.Hub.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetHubRequest, + com.google.cloud.networkconnectivity.v1.Hub> + getGetHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetHubRequest, + com.google.cloud.networkconnectivity.v1.Hub> + getGetHubMethod; + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + HubServiceGrpc.getGetHubMethod = + getGetHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.GetHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) + .build(); + } + } + } + return getGetHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateHubRequest, + com.google.longrunning.Operation> + getCreateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateHub", + requestType = com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateHubRequest, + com.google.longrunning.Operation> + getCreateHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateHubRequest, + com.google.longrunning.Operation> + getCreateHubMethod; + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + HubServiceGrpc.getCreateHubMethod = + getCreateHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.CreateHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) + .build(); + } + } + } + return getCreateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateHubRequest, + com.google.longrunning.Operation> + getUpdateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateHub", + requestType = com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateHubRequest, + com.google.longrunning.Operation> + getUpdateHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateHubRequest, + com.google.longrunning.Operation> + getUpdateHubMethod; + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + HubServiceGrpc.getUpdateHubMethod = + getUpdateHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) + .build(); + } + } + } + return getUpdateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteHubRequest, + com.google.longrunning.Operation> + getDeleteHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteHub", + requestType = com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteHubRequest, + com.google.longrunning.Operation> + getDeleteHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteHubRequest, + com.google.longrunning.Operation> + getDeleteHubMethod; + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + HubServiceGrpc.getDeleteHubMethod = + getDeleteHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) + .build(); + } + } + } + return getDeleteHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1.ListSpokesResponse> + getListSpokesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSpokes", + requestType = com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1.ListSpokesResponse> + getListSpokesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1.ListSpokesResponse> + getListSpokesMethod; + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + HubServiceGrpc.getListSpokesMethod = + getListSpokesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.ListSpokesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) + .build(); + } + } + } + return getListSpokesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1.Spoke> + getGetSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSpoke", + requestType = com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, + responseType = com.google.cloud.networkconnectivity.v1.Spoke.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1.Spoke> + getGetSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1.Spoke> + getGetSpokeMethod; + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + HubServiceGrpc.getGetSpokeMethod = + getGetSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) + .build(); + } + } + } + return getGetSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, + com.google.longrunning.Operation> + getCreateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", + requestType = com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, + com.google.longrunning.Operation> + getCreateSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, + com.google.longrunning.Operation> + getCreateSpokeMethod; + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + HubServiceGrpc.getCreateSpokeMethod = + getCreateSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) + .build(); + } + } + } + return getCreateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, + com.google.longrunning.Operation> + getUpdateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", + requestType = com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, + com.google.longrunning.Operation> + getUpdateSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, + com.google.longrunning.Operation> + getUpdateSpokeMethod; + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + HubServiceGrpc.getUpdateSpokeMethod = + getUpdateSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) + .build(); + } + } + } + return getUpdateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, + com.google.longrunning.Operation> + getDeleteSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", + requestType = com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, + com.google.longrunning.Operation> + getDeleteSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, + com.google.longrunning.Operation> + getDeleteSpokeMethod; + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + HubServiceGrpc.getDeleteSpokeMethod = + getDeleteSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) + .build(); + } + } + } + return getDeleteSpokeMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static HubServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + }; + return HubServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static HubServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + }; + return HubServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static HubServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + }; + return HubServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public abstract static class HubServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists the Network Connectivity Center hubs associated with a given project.
+     * 
+ */ + public void listHubs( + com.google.cloud.networkconnectivity.v1.ListHubsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details about a Network Connectivity Center hub.
+     * 
+ */ + public void getHub( + com.google.cloud.networkconnectivity.v1.GetHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Network Connectivity Center hub in the specified project.
+     * 
+ */ + public void createHub( + com.google.cloud.networkconnectivity.v1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the description and/or labels of a Network Connectivity Center
+     * hub.
+     * 
+ */ + public void updateHub( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a Network Connectivity Center hub.
+     * 
+ */ + public void deleteHub( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the Network Connectivity Center spokes in a specified project and
+     * location.
+     * 
+ */ + public void listSpokes( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details about a Network Connectivity Center spoke.
+     * 
+ */ + public void getSpoke( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a Network Connectivity Center spoke.
+     * 
+ */ + public void createSpoke( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSpokeMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a Network Connectivity Center spoke.
+     * 
+ */ + public void updateSpoke( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSpokeMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a Network Connectivity Center spoke.
+     * 
+ */ + public void deleteSpoke( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSpokeMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListHubsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1.ListHubsResponse>( + this, METHODID_LIST_HUBS))) + .addMethod( + getGetHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.GetHubRequest, + com.google.cloud.networkconnectivity.v1.Hub>(this, METHODID_GET_HUB))) + .addMethod( + getCreateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.CreateHubRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_HUB))) + .addMethod( + getUpdateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.UpdateHubRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_HUB))) + .addMethod( + getDeleteHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.DeleteHubRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_HUB))) + .addMethod( + getListSpokesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1.ListSpokesResponse>( + this, METHODID_LIST_SPOKES))) + .addMethod( + getGetSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1.Spoke>(this, METHODID_GET_SPOKE))) + .addMethod( + getCreateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_SPOKE))) + .addMethod( + getUpdateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_SPOKE))) + .addMethod( + getDeleteSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_SPOKE))) + .build(); + } + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { + private HubServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists the Network Connectivity Center hubs associated with a given project.
+     * 
+ */ + public void listHubs( + com.google.cloud.networkconnectivity.v1.ListHubsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets details about a Network Connectivity Center hub.
+     * 
+ */ + public void getHub( + com.google.cloud.networkconnectivity.v1.GetHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new Network Connectivity Center hub in the specified project.
+     * 
+ */ + public void createHub( + com.google.cloud.networkconnectivity.v1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates the description and/or labels of a Network Connectivity Center
+     * hub.
+     * 
+ */ + public void updateHub( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes a Network Connectivity Center hub.
+     * 
+ */ + public void deleteHub( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists the Network Connectivity Center spokes in a specified project and
+     * location.
+     * 
+ */ + public void listSpokes( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets details about a Network Connectivity Center spoke.
+     * 
+ */ + public void getSpoke( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a Network Connectivity Center spoke.
+     * 
+ */ + public void createSpoke( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a Network Connectivity Center spoke.
+     * 
+ */ + public void updateSpoke( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a Network Connectivity Center spoke.
+     * 
+ */ + public void deleteSpoke( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static final class HubServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private HubServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists the Network Connectivity Center hubs associated with a given project.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.ListHubsResponse listHubs( + com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListHubsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about a Network Connectivity Center hub.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.Hub getHub( + com.google.cloud.networkconnectivity.v1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Network Connectivity Center hub in the specified project.
+     * 
+ */ + public com.google.longrunning.Operation createHub( + com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the description and/or labels of a Network Connectivity Center
+     * hub.
+     * 
+ */ + public com.google.longrunning.Operation updateHub( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a Network Connectivity Center hub.
+     * 
+ */ + public com.google.longrunning.Operation deleteHub( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the Network Connectivity Center spokes in a specified project and
+     * location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.ListSpokesResponse listSpokes( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSpokesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details about a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1.Spoke getSpoke( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSpokeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.longrunning.Operation createSpoke( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSpokeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.longrunning.Operation updateSpoke( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.longrunning.Operation deleteSpoke( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for network
+   * connectivity management in Google Cloud. It reduces operational complexity
+   * through a simple, centralized connectivity management model.
+   * 
+ */ + public static final class HubServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private HubServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists the Network Connectivity Center hubs associated with a given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.ListHubsResponse> + listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details about a Network Connectivity Center hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.Hub> + getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Network Connectivity Center hub in the specified project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the description and/or labels of a Network Connectivity Center
+     * hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a Network Connectivity Center hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the Network Connectivity Center spokes in a specified project and
+     * location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.ListSpokesResponse> + listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details about a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1.Spoke> + getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a Network Connectivity Center spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_HUBS = 0; + private static final int METHODID_GET_HUB = 1; + private static final int METHODID_CREATE_HUB = 2; + private static final int METHODID_UPDATE_HUB = 3; + private static final int METHODID_DELETE_HUB = 4; + private static final int METHODID_LIST_SPOKES = 5; + private static final int METHODID_GET_SPOKE = 6; + private static final int METHODID_CREATE_SPOKE = 7; + private static final int METHODID_UPDATE_SPOKE = 8; + private static final int METHODID_DELETE_SPOKE = 9; + + 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 HubServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(HubServiceImplBase 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_HUBS: + serviceImpl.listHubs( + (com.google.cloud.networkconnectivity.v1.ListHubsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.ListHubsResponse>) + responseObserver); + break; + case METHODID_GET_HUB: + serviceImpl.getHub( + (com.google.cloud.networkconnectivity.v1.GetHubRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_HUB: + serviceImpl.createHub( + (com.google.cloud.networkconnectivity.v1.CreateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_HUB: + serviceImpl.updateHub( + (com.google.cloud.networkconnectivity.v1.UpdateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_HUB: + serviceImpl.deleteHub( + (com.google.cloud.networkconnectivity.v1.DeleteHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SPOKES: + serviceImpl.listSpokes( + (com.google.cloud.networkconnectivity.v1.ListSpokesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1.ListSpokesResponse>) + responseObserver); + break; + case METHODID_GET_SPOKE: + serviceImpl.getSpoke( + (com.google.cloud.networkconnectivity.v1.GetSpokeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_SPOKE: + serviceImpl.createSpoke( + (com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SPOKE: + serviceImpl.updateSpoke( + (com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SPOKE: + serviceImpl.deleteSpoke( + (com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + HubServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("HubService"); + } + } + + private static final class HubServiceFileDescriptorSupplier + extends HubServiceBaseDescriptorSupplier { + HubServiceFileDescriptorSupplier() {} + } + + private static final class HubServiceMethodDescriptorSupplier + extends HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) + .addMethod(getListHubsMethod()) + .addMethod(getGetHubMethod()) + .addMethod(getCreateHubMethod()) + .addMethod(getUpdateHubMethod()) + .addMethod(getDeleteHubMethod()) + .addMethod(getListSpokesMethod()) + .addMethod(getGetSpokeMethod()) + .addMethod(getCreateSpokeMethod()) + .addMethod(getUpdateSpokeMethod()) + .addMethod(getDeleteSpokeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java new file mode 100644 index 000000000000..aae81be9d5c9 --- /dev/null +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceGrpc.java @@ -0,0 +1,1400 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.networkconnectivity.v1alpha1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Network Connectivity Center is a hub-and-spoke abstraction for
+ * network connectivity management in Google Cloud. It reduces
+ * operational complexity through a simple, centralized connectivity management
+ * model.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networkconnectivity/v1alpha1/hub.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class HubServiceGrpc { + + private HubServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1alpha1.HubService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> + getListHubsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListHubs", + requestType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> + getListHubsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> + getListHubsMethod; + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { + HubServiceGrpc.getListHubsMethod = + getListHubsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) + .build(); + } + } + } + return getListHubsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, + com.google.cloud.networkconnectivity.v1alpha1.Hub> + getGetHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.Hub.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, + com.google.cloud.networkconnectivity.v1alpha1.Hub> + getGetHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, + com.google.cloud.networkconnectivity.v1alpha1.Hub> + getGetHubMethod; + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { + HubServiceGrpc.getGetHubMethod = + getGetHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.Hub + .getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) + .build(); + } + } + } + return getGetHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, + com.google.longrunning.Operation> + getCreateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, + com.google.longrunning.Operation> + getCreateHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, + com.google.longrunning.Operation> + getCreateHubMethod; + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { + HubServiceGrpc.getCreateHubMethod = + getCreateHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) + .build(); + } + } + } + return getCreateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, + com.google.longrunning.Operation> + getUpdateHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, + com.google.longrunning.Operation> + getUpdateHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, + com.google.longrunning.Operation> + getUpdateHubMethod; + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { + HubServiceGrpc.getUpdateHubMethod = + getUpdateHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) + .build(); + } + } + } + return getUpdateHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, + com.google.longrunning.Operation> + getDeleteHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteHub", + requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, + com.google.longrunning.Operation> + getDeleteHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, + com.google.longrunning.Operation> + getDeleteHubMethod; + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { + HubServiceGrpc.getDeleteHubMethod = + getDeleteHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) + .build(); + } + } + } + return getDeleteHubMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> + getListSpokesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSpokes", + requestType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> + getListSpokesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> + getListSpokesMethod; + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { + HubServiceGrpc.getListSpokesMethod = + getListSpokesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) + .build(); + } + } + } + return getListSpokesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1alpha1.Spoke> + getGetSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, + responseType = com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1alpha1.Spoke> + getGetSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1alpha1.Spoke> + getGetSpokeMethod; + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { + HubServiceGrpc.getGetSpokeMethod = + getGetSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.Spoke + .getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) + .build(); + } + } + } + return getGetSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, + com.google.longrunning.Operation> + getCreateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, + com.google.longrunning.Operation> + getCreateSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, + com.google.longrunning.Operation> + getCreateSpokeMethod; + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { + HubServiceGrpc.getCreateSpokeMethod = + getCreateSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) + .build(); + } + } + } + return getCreateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, + com.google.longrunning.Operation> + getUpdateSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, + com.google.longrunning.Operation> + getUpdateSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, + com.google.longrunning.Operation> + getUpdateSpokeMethod; + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { + HubServiceGrpc.getUpdateSpokeMethod = + getUpdateSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) + .build(); + } + } + } + return getUpdateSpokeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, + com.google.longrunning.Operation> + getDeleteSpokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", + requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, + com.google.longrunning.Operation> + getDeleteSpokeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, + com.google.longrunning.Operation> + getDeleteSpokeMethod; + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + synchronized (HubServiceGrpc.class) { + if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { + HubServiceGrpc.getDeleteSpokeMethod = + getDeleteSpokeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) + .build(); + } + } + } + return getDeleteSpokeMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static HubServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + }; + return HubServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static HubServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + }; + return HubServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static HubServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public HubServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + }; + return HubServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public abstract static class HubServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public void listHubs( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Hub.
+     * 
+ */ + public void getHub( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public void createHub( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public void updateHub( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Hub.
+     * 
+ */ + public void deleteHub( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public void listSpokes( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public void getSpoke( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public void createSpoke( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSpokeMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public void updateSpoke( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSpokeMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Spoke.
+     * 
+ */ + public void deleteSpoke( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSpokeMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListHubsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>( + this, METHODID_LIST_HUBS))) + .addMethod( + getGetHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, + com.google.cloud.networkconnectivity.v1alpha1.Hub>(this, METHODID_GET_HUB))) + .addMethod( + getCreateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_HUB))) + .addMethod( + getUpdateHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_HUB))) + .addMethod( + getDeleteHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_HUB))) + .addMethod( + getListSpokesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>( + this, METHODID_LIST_SPOKES))) + .addMethod( + getGetSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, + com.google.cloud.networkconnectivity.v1alpha1.Spoke>( + this, METHODID_GET_SPOKE))) + .addMethod( + getCreateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_SPOKE))) + .addMethod( + getUpdateSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_SPOKE))) + .addMethod( + getDeleteSpokeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_SPOKE))) + .build(); + } + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { + private HubServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public void listHubs( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Hub.
+     * 
+ */ + public void getHub( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public void createHub( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public void updateHub( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes a single Hub.
+     * 
+ */ + public void deleteHub( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public void listSpokes( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public void getSpoke( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public void createSpoke( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public void updateSpoke( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Spoke.
+     * 
+ */ + public void deleteSpoke( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static final class HubServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private HubServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse listHubs( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListHubsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Hub.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createHub( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public com.google.longrunning.Operation updateHub( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Hub.
+     * 
+ */ + public com.google.longrunning.Operation deleteHub( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteHubMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse listSpokes( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSpokesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSpokeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createSpoke( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSpokeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public com.google.longrunning.Operation updateSpoke( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Spoke.
+     * 
+ */ + public com.google.longrunning.Operation deleteSpoke( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Network Connectivity Center is a hub-and-spoke abstraction for
+   * network connectivity management in Google Cloud. It reduces
+   * operational complexity through a simple, centralized connectivity management
+   * model.
+   * 
+ */ + public static final class HubServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private HubServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected HubServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new HubServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Hubs in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse> + listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListHubsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1alpha1.Hub> + getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Hub in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Hub.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Spokes in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse> + listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkconnectivity.v1alpha1.Spoke> + getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Spoke in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Spoke.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_HUBS = 0; + private static final int METHODID_GET_HUB = 1; + private static final int METHODID_CREATE_HUB = 2; + private static final int METHODID_UPDATE_HUB = 3; + private static final int METHODID_DELETE_HUB = 4; + private static final int METHODID_LIST_SPOKES = 5; + private static final int METHODID_GET_SPOKE = 6; + private static final int METHODID_CREATE_SPOKE = 7; + private static final int METHODID_UPDATE_SPOKE = 8; + private static final int METHODID_DELETE_SPOKE = 9; + + 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 HubServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(HubServiceImplBase 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_HUBS: + serviceImpl.listHubs( + (com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>) + responseObserver); + break; + case METHODID_GET_HUB: + serviceImpl.getHub( + (com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_HUB: + serviceImpl.createHub( + (com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_HUB: + serviceImpl.updateHub( + (com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_HUB: + serviceImpl.deleteHub( + (com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SPOKES: + serviceImpl.listSpokes( + (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>) + responseObserver); + break; + case METHODID_GET_SPOKE: + serviceImpl.getSpoke( + (com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_SPOKE: + serviceImpl.createSpoke( + (com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SPOKE: + serviceImpl.updateSpoke( + (com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SPOKE: + serviceImpl.deleteSpoke( + (com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + HubServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("HubService"); + } + } + + private static final class HubServiceFileDescriptorSupplier + extends HubServiceBaseDescriptorSupplier { + HubServiceFileDescriptorSupplier() {} + } + + private static final class HubServiceMethodDescriptorSupplier + extends HubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) + .addMethod(getListHubsMethod()) + .addMethod(getGetHubMethod()) + .addMethod(getCreateHubMethod()) + .addMethod(getUpdateHubMethod()) + .addMethod(getDeleteHubMethod()) + .addMethod(getListSpokesMethod()) + .addMethod(getGetSpokeMethod()) + .addMethod(getCreateSpokeMethod()) + .addMethod(getUpdateSpokeMethod()) + .addMethod(getDeleteSpokeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java new file mode 100644 index 000000000000..721a7326cff4 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java @@ -0,0 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1/common.proto + +package com.google.cloud.networkconnectivity.v1; + +public final class CommonProto { + private CommonProto() {} + + 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_networkconnectivity_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/networkconnectivity/v1/co" + + "mmon.proto\022#google.cloud.networkconnecti" + + "vity.v1\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\032\037google/prot" + + "obuf/timestamp.proto\"\200\002\n\021OperationMetada" + + "ta\0224\n\013create_time\030\001 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.goo" + + "gle.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_me" + + "ssage\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellati" + + "on\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003B" + + "\327\003\n\'com.google.cloud.networkconnectivity" + + ".v1B\013CommonProtoP\001ZVgoogle.golang.org/ge" + + "nproto/googleapis/cloud/networkconnectiv" + + "ity/v1;networkconnectivity\252\002#Google.Clou" + + "d.NetworkConnectivity.V1\312\002#Google\\Cloud\\" + + "NetworkConnectivity\\V1\352\002&Google::Cloud::" + + "NetworkConnectivity::V1\352Az\n-compute.goog" + + "leapis.com/InterconnectAttachment\022Iproje" + + "cts/{project}/regions/{region}/interconn" + + "ectAttachments/{resource_id}\352AR\n\036compute" + + ".googleapis.com/Network\0220projects/{proje" + + "ct}/global/networks/{resource_id}b\006proto" + + "3" + }; + 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.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceDefinition); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java similarity index 69% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java index 0cc58883b141..4ed8eff83002 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Request for
  * [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateHubRequest}
  */
-public final class CreateHubRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateHubRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.CreateHubRequest)
     CreateHubRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateHubRequest.newBuilder() to construct.
   private CreateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateHubRequest() {
     parent_ = "";
     hubId_ = "";
@@ -29,38 +47,45 @@ private CreateHubRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateHubRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.CreateHubRequest.class,
+            com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. The parent resource.
    * 
* - * string parent = 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 @@ -69,29 +94,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 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 { @@ -100,14 +127,18 @@ public java.lang.String getParent() { } public static final int HUB_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object hubId_ = ""; /** + * + * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hubId. */ @java.lang.Override @@ -116,29 +147,29 @@ public java.lang.String getHubId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; } } /** + * + * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hubId. */ @java.lang.Override - public com.google.protobuf.ByteString - getHubIdBytes() { + public com.google.protobuf.ByteString getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hubId_ = b; return b; } else { @@ -149,11 +180,16 @@ public java.lang.String getHubId() { public static final int HUB_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1.Hub hub_; /** + * + * *
    * Required. The initial values for a new hub.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ @java.lang.Override @@ -161,11 +197,16 @@ public boolean hasHub() { return hub_ != null; } /** + * + * *
    * Required. The initial values for a new hub.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ @java.lang.Override @@ -173,11 +214,15 @@ public com.google.cloud.networkconnectivity.v1.Hub getHub() { return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } /** + * + * *
    * Required. The initial values for a new hub.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { @@ -185,9 +230,12 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -204,6 +252,7 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -212,14 +261,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -236,16 +286,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -254,6 +303,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +315,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -295,8 +344,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hubId_); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHub()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -309,24 +357,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.networkconnectivity.v1.CreateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.CreateHubRequest other = (com.google.cloud.networkconnectivity.v1.CreateHubRequest) obj; + com.google.cloud.networkconnectivity.v1.CreateHubRequest other = + (com.google.cloud.networkconnectivity.v1.CreateHubRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getHubId() - .equals(other.getHubId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getHubId().equals(other.getHubId())) return false; if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub() - .equals(other.getHub())) return false; + if (!getHub().equals(other.getHub())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -354,96 +399,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.CreateHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.CreateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [HubService.CreateHub][google.cloud.networkconnectivity.v1.HubService.CreateHub]
@@ -452,33 +505,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateHubRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.CreateHubRequest)
       com.google.cloud.networkconnectivity.v1.CreateHubRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.CreateHubRequest.class,
+              com.google.cloud.networkconnectivity.v1.CreateHubRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.CreateHubRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -495,9 +547,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
     }
 
     @java.lang.Override
@@ -516,8 +568,11 @@ public com.google.cloud.networkconnectivity.v1.CreateHubRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.CreateHubRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.CreateHubRequest result = new com.google.cloud.networkconnectivity.v1.CreateHubRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.CreateHubRequest result =
+          new com.google.cloud.networkconnectivity.v1.CreateHubRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -531,9 +586,7 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateHubRequ
         result.hubId_ = hubId_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.hub_ = hubBuilder_ == null
-            ? hub_
-            : hubBuilder_.build();
+        result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.requestId_ = requestId_;
@@ -544,38 +597,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateHubRequ
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.CreateHubRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateHubRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateHubRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -583,7 +637,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.CreateHubRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.CreateHubRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.CreateHubRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -628,34 +683,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              hubId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getHubFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              requestId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                hubId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                requestId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -665,22 +723,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The parent resource.
      * 
* - * string parent = 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; @@ -689,20 +752,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource.
      * 
* - * string parent = 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 { @@ -710,28 +776,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource.
      * 
* - * string 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() { @@ -741,17 +818,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -761,18 +844,20 @@ public Builder setParentBytes( private java.lang.Object hubId_ = ""; /** + * + * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hubId. */ public java.lang.String getHubId() { java.lang.Object ref = hubId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; @@ -781,20 +866,21 @@ public java.lang.String getHubId() { } } /** + * + * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hubId. */ - public com.google.protobuf.ByteString - getHubIdBytes() { + public com.google.protobuf.ByteString getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hubId_ = b; return b; } else { @@ -802,28 +888,35 @@ public java.lang.String getHubId() { } } /** + * + * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The hubId to set. * @return This builder for chaining. */ - public Builder setHubId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHubId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hubId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearHubId() { @@ -833,17 +926,21 @@ public Builder clearHubId() { return this; } /** + * + * *
      * Required. A unique identifier for the hub.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for hubId to set. * @return This builder for chaining. */ - public Builder setHubIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHubIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hubId_ = value; bitField0_ |= 0x00000002; @@ -853,39 +950,58 @@ public Builder setHubIdBytes( private com.google.cloud.networkconnectivity.v1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> hubBuilder_; + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder> + hubBuilder_; /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ public com.google.cloud.networkconnectivity.v1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() + : hub_; } else { return hubBuilder_.getMessage(); } } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { @@ -901,14 +1017,17 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setHub( - com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { + public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { if (hubBuilder_ == null) { hub_ = builderForValue.build(); } else { @@ -919,17 +1038,21 @@ public Builder setHub( return this; } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - hub_ != null && - hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && hub_ != null + && hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -942,11 +1065,15 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000004); @@ -959,11 +1086,15 @@ public Builder clearHub() { return this; } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000004; @@ -971,36 +1102,48 @@ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { return getHubFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null ? - com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() + : hub_; } } /** + * + * *
      * Required. The initial values for a new hub.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder>( - getHub(), - getParentForChildren(), - isClean()); + hubBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder>( + getHub(), getParentForChildren(), isClean()); hub_ = null; } return hubBuilder_; @@ -1008,6 +1151,8 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1024,13 +1169,13 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1039,6 +1184,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1055,15 +1202,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1071,6 +1217,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1087,18 +1235,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1115,6 +1267,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1124,6 +1277,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1140,21 +1295,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1164,12 +1321,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.CreateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.CreateHubRequest) private static final com.google.cloud.networkconnectivity.v1.CreateHubRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.CreateHubRequest(); } @@ -1178,27 +1335,27 @@ public static com.google.cloud.networkconnectivity.v1.CreateHubRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1213,6 +1370,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.CreateHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java index a186543f7ef5..1147de9a80e2 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface CreateHubRequestOrBuilder extends +public interface CreateHubRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.CreateHubRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hubId. */ java.lang.String getHubId(); /** + * + * *
    * Required. A unique identifier for the hub.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hubId. */ - com.google.protobuf.ByteString - getHubIdBytes(); + com.google.protobuf.ByteString getHubIdBytes(); /** + * + * *
    * Required. The initial values for a new hub.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ boolean hasHub(); /** + * + * *
    * Required. The initial values for a new hub.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ com.google.cloud.networkconnectivity.v1.Hub getHub(); /** + * + * *
    * Required. The initial values for a new hub.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -91,10 +137,13 @@ public interface CreateHubRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -111,8 +160,8 @@ public interface CreateHubRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java similarity index 68% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java index 60ed284ffeda..873790ebef0c 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The request for
  * [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateSpokeRequest}
  */
-public final class CreateSpokeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateSpokeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.CreateSpokeRequest)
     CreateSpokeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateSpokeRequest.newBuilder() to construct.
   private CreateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateSpokeRequest() {
     parent_ = "";
     spokeId_ = "";
@@ -28,38 +46,45 @@ private CreateSpokeRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateSpokeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class,
+            com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. The parent resource.
    * 
* - * string parent = 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 @@ -68,29 +93,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 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 { @@ -99,14 +126,18 @@ public java.lang.String getParent() { } public static final int SPOKE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object spokeId_ = ""; /** + * + * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The spokeId. */ @java.lang.Override @@ -115,29 +146,29 @@ public java.lang.String getSpokeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; } } /** + * + * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for spokeId. */ @java.lang.Override - public com.google.protobuf.ByteString - getSpokeIdBytes() { + public com.google.protobuf.ByteString getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); spokeId_ = b; return b; } else { @@ -148,11 +179,16 @@ public java.lang.String getSpokeId() { public static final int SPOKE_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1.Spoke spoke_; /** + * + * *
    * Required. The initial values for a new spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ @java.lang.Override @@ -160,33 +196,49 @@ public boolean hasSpoke() { return spoke_ != null; } /** + * + * *
    * Required. The initial values for a new spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } /** + * + * *
    * Required. The initial values for a new spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -203,6 +255,7 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -211,14 +264,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -235,16 +289,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -253,6 +306,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,8 +318,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -294,8 +347,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, spokeId_); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSpoke()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -308,24 +360,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.networkconnectivity.v1.CreateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest other = (com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest other = + (com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getSpokeId() - .equals(other.getSpokeId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getSpokeId().equals(other.getSpokeId())) return false; if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke() - .equals(other.getSpoke())) return false; + if (!getSpoke().equals(other.getSpoke())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -353,96 +402,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.CreateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for
    * [HubService.CreateSpoke][google.cloud.networkconnectivity.v1.HubService.CreateSpoke].
@@ -450,33 +507,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.CreateSpokeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.CreateSpokeRequest)
       com.google.cloud.networkconnectivity.v1.CreateSpokeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class,
+              com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -493,9 +549,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -514,8 +570,11 @@ public com.google.cloud.networkconnectivity.v1.CreateSpokeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.CreateSpokeRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.CreateSpokeRequest result = new com.google.cloud.networkconnectivity.v1.CreateSpokeRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.CreateSpokeRequest result =
+          new com.google.cloud.networkconnectivity.v1.CreateSpokeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -529,9 +588,7 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateSpokeRe
         result.spokeId_ = spokeId_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.spoke_ = spokeBuilder_ == null
-            ? spoke_
-            : spokeBuilder_.build();
+        result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.requestId_ = requestId_;
@@ -542,38 +599,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.CreateSpokeRe
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateSpokeRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -581,7 +639,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -626,34 +685,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              spokeId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getSpokeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              requestId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                spokeId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                requestId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -663,22 +725,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The parent resource.
      * 
* - * string parent = 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; @@ -687,20 +754,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource.
      * 
* - * string parent = 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 { @@ -708,28 +778,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource.
      * 
* - * string 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() { @@ -739,17 +820,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -759,18 +846,20 @@ public Builder setParentBytes( private java.lang.Object spokeId_ = ""; /** + * + * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The spokeId. */ public java.lang.String getSpokeId() { java.lang.Object ref = spokeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; @@ -779,20 +868,21 @@ public java.lang.String getSpokeId() { } } /** + * + * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for spokeId. */ - public com.google.protobuf.ByteString - getSpokeIdBytes() { + public com.google.protobuf.ByteString getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); spokeId_ = b; return b; } else { @@ -800,28 +890,35 @@ public java.lang.String getSpokeId() { } } /** + * + * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpokeId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } spokeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSpokeId() { @@ -831,17 +928,21 @@ public Builder clearSpokeId() { return this; } /** + * + * *
      * Required. Unique id for the spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpokeIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); spokeId_ = value; bitField0_ |= 0x00000002; @@ -851,39 +952,58 @@ public Builder setSpokeIdBytes( private com.google.cloud.networkconnectivity.v1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> spokeBuilder_; + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + spokeBuilder_; /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } else { return spokeBuilder_.getMessage(); } } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { @@ -899,14 +1019,17 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSpoke( - com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { + public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { if (spokeBuilder_ == null) { spoke_ = builderForValue.build(); } else { @@ -917,17 +1040,21 @@ public Builder setSpoke( return this; } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - spoke_ != null && - spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && spoke_ != null + && spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -940,11 +1067,15 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000004); @@ -957,11 +1088,15 @@ public Builder clearSpoke() { return this; } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000004; @@ -969,36 +1104,48 @@ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { return getSpokeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null ? - com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } } /** + * + * *
      * Required. The initial values for a new spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( - getSpoke(), - getParentForChildren(), - isClean()); + spokeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( + getSpoke(), getParentForChildren(), isClean()); spoke_ = null; } return spokeBuilder_; @@ -1006,6 +1153,8 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1022,13 +1171,13 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1037,6 +1186,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1053,15 +1204,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1069,6 +1219,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1085,18 +1237,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1113,6 +1269,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1122,6 +1279,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1138,21 +1297,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1162,12 +1323,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.CreateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.CreateSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.CreateSpokeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.CreateSpokeRequest(); } @@ -1176,27 +1337,27 @@ public static com.google.cloud.networkconnectivity.v1.CreateSpokeRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1211,6 +1372,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.CreateSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java index 3a19585101aa..338f9447116a 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface CreateSpokeRequestOrBuilder extends +public interface CreateSpokeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.CreateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The spokeId. */ java.lang.String getSpokeId(); /** + * + * *
    * Required. Unique id for the spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for spokeId. */ - com.google.protobuf.ByteString - getSpokeIdBytes(); + com.google.protobuf.ByteString getSpokeIdBytes(); /** + * + * *
    * Required. The initial values for a new spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ boolean hasSpoke(); /** + * + * *
    * Required. The initial values for a new spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ com.google.cloud.networkconnectivity.v1.Spoke getSpoke(); /** + * + * *
    * Required. The initial values for a new spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -91,10 +137,13 @@ public interface CreateSpokeRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -111,8 +160,8 @@ public interface CreateSpokeRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java index 7cf1f77cac25..a28e0d689c24 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The request for
  * [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteHubRequest}
  */
-public final class DeleteHubRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteHubRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.DeleteHubRequest)
     DeleteHubRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteHubRequest.newBuilder() to construct.
   private DeleteHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteHubRequest() {
     name_ = "";
     requestId_ = "";
@@ -27,38 +45,45 @@ private DeleteHubRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteHubRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class,
+            com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -67,29 +92,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,9 +125,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -117,6 +147,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -125,14 +156,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -149,16 +181,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -167,6 +198,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,8 +210,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -209,17 +240,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.networkconnectivity.v1.DeleteHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.DeleteHubRequest other = (com.google.cloud.networkconnectivity.v1.DeleteHubRequest) obj; + com.google.cloud.networkconnectivity.v1.DeleteHubRequest other = + (com.google.cloud.networkconnectivity.v1.DeleteHubRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,96 +271,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.DeleteHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.DeleteHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for
    * [HubService.DeleteHub][google.cloud.networkconnectivity.v1.HubService.DeleteHub].
@@ -338,33 +376,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteHubRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.DeleteHubRequest)
       com.google.cloud.networkconnectivity.v1.DeleteHubRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class,
+              com.google.cloud.networkconnectivity.v1.DeleteHubRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.DeleteHubRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -375,9 +412,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
     }
 
     @java.lang.Override
@@ -396,8 +433,11 @@ public com.google.cloud.networkconnectivity.v1.DeleteHubRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.DeleteHubRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.DeleteHubRequest result = new com.google.cloud.networkconnectivity.v1.DeleteHubRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.DeleteHubRequest result =
+          new com.google.cloud.networkconnectivity.v1.DeleteHubRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -416,38 +456,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.DeleteHubRequ
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.DeleteHubRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteHubRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteHubRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -455,7 +496,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.DeleteHubRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.DeleteHubRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.DeleteHubRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -492,22 +534,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              requestId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                requestId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -517,22 +562,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -541,20 +591,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -562,28 +615,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -593,17 +657,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -613,6 +683,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -629,13 +701,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -644,6 +716,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -660,15 +734,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -676,6 +749,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -692,18 +767,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -720,6 +799,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -729,6 +809,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -745,21 +827,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -769,12 +853,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.DeleteHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.DeleteHubRequest) private static final com.google.cloud.networkconnectivity.v1.DeleteHubRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.DeleteHubRequest(); } @@ -783,27 +867,27 @@ public static com.google.cloud.networkconnectivity.v1.DeleteHubRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -818,6 +902,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.DeleteHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java index 926e1844c73f..3a53452ec2c6 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface DeleteHubRequestOrBuilder extends +public interface DeleteHubRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.DeleteHubRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -44,10 +71,13 @@ public interface DeleteHubRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -64,8 +94,8 @@ public interface DeleteHubRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java index bde74b026fa3..d78f1befbd1a 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The request for
  * [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteSpokeRequest}
  */
-public final class DeleteSpokeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteSpokeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.DeleteSpokeRequest)
     DeleteSpokeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteSpokeRequest.newBuilder() to construct.
   private DeleteSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteSpokeRequest() {
     name_ = "";
     requestId_ = "";
@@ -27,38 +45,45 @@ private DeleteSpokeRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteSpokeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class,
+            com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -67,29 +92,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,9 +125,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -117,6 +147,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -125,14 +156,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -149,16 +181,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -167,6 +198,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,8 +210,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -209,17 +240,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.networkconnectivity.v1.DeleteSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest other = (com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest other = + (com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,96 +271,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for
    * [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1.HubService.DeleteSpoke].
@@ -338,33 +376,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.DeleteSpokeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.DeleteSpokeRequest)
       com.google.cloud.networkconnectivity.v1.DeleteSpokeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class,
+              com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -375,9 +412,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -396,8 +433,11 @@ public com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest result = new com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest result =
+          new com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -416,38 +456,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.DeleteSpokeRe
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -455,7 +496,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -492,22 +534,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              requestId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                requestId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -517,22 +562,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -541,20 +591,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -562,28 +615,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -593,17 +657,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -613,6 +683,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -629,13 +701,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -644,6 +716,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -660,15 +734,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -676,6 +749,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -692,18 +767,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -720,6 +799,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -729,6 +809,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -745,21 +827,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -769,12 +853,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest(); } @@ -783,27 +867,27 @@ public static com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -818,6 +902,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java index 7e5685f9491b..60ff849c2aea 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface DeleteSpokeRequestOrBuilder extends +public interface DeleteSpokeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.DeleteSpokeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -44,10 +71,13 @@ public interface DeleteSpokeRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -64,8 +94,8 @@ public interface DeleteSpokeRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java similarity index 61% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java index 09dd53c08e9c..ca2d6281af30 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Request for
  * [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub]
@@ -12,53 +29,61 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.GetHubRequest}
  */
-public final class GetHubRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetHubRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetHubRequest)
     GetHubRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetHubRequest.newBuilder() to construct.
   private GetHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetHubRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetHubRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.GetHubRequest.class,
+            com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the hub resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -67,29 +92,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the hub resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +137,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -134,15 +161,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.networkconnectivity.v1.GetHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.GetHubRequest other = (com.google.cloud.networkconnectivity.v1.GetHubRequest) obj; + com.google.cloud.networkconnectivity.v1.GetHubRequest other = + (com.google.cloud.networkconnectivity.v1.GetHubRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,96 +189,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.GetHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.GetHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [HubService.GetHub][google.cloud.networkconnectivity.v1.HubService.GetHub]
@@ -260,33 +295,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.GetHubRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetHubRequest)
       com.google.cloud.networkconnectivity.v1.GetHubRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.GetHubRequest.class,
+              com.google.cloud.networkconnectivity.v1.GetHubRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.GetHubRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -296,9 +330,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
     }
 
     @java.lang.Override
@@ -317,8 +351,11 @@ public com.google.cloud.networkconnectivity.v1.GetHubRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.GetHubRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.GetHubRequest result = new com.google.cloud.networkconnectivity.v1.GetHubRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.GetHubRequest result =
+          new com.google.cloud.networkconnectivity.v1.GetHubRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -334,38 +371,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.GetHubRequest
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.GetHubRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.GetHubRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.GetHubRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -373,7 +411,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.GetHubRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.GetHubRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.GetHubRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -405,17 +444,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -425,22 +466,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -449,20 +495,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -470,28 +519,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -501,26 +561,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -530,12 +596,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.GetHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetHubRequest) private static final com.google.cloud.networkconnectivity.v1.GetHubRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.GetHubRequest(); } @@ -544,27 +610,27 @@ public static com.google.cloud.networkconnectivity.v1.GetHubRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,6 +645,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.GetHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java new file mode 100644 index 000000000000..8ab3d81a3f94 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.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/networkconnectivity/v1/hub.proto + +package com.google.cloud.networkconnectivity.v1; + +public interface GetHubRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetHubRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the hub resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the hub resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java similarity index 61% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java index 10f760e5129d..7fc42f029d5d 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The request for
  * [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke].
@@ -11,53 +28,61 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.GetSpokeRequest}
  */
-public final class GetSpokeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetSpokeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.GetSpokeRequest)
     GetSpokeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetSpokeRequest.newBuilder() to construct.
   private GetSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetSpokeRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetSpokeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class,
+            com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the spoke resource.
    * 
* - * string name = 1 [(.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 @@ -66,29 +91,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the spoke resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -97,6 +124,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +136,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -133,15 +160,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.networkconnectivity.v1.GetSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.GetSpokeRequest other = (com.google.cloud.networkconnectivity.v1.GetSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.GetSpokeRequest other = + (com.google.cloud.networkconnectivity.v1.GetSpokeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,96 +188,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.GetSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.GetSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for
    * [HubService.GetSpoke][google.cloud.networkconnectivity.v1.HubService.GetSpoke].
@@ -258,33 +293,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.GetSpokeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.GetSpokeRequest)
       com.google.cloud.networkconnectivity.v1.GetSpokeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class,
+              com.google.cloud.networkconnectivity.v1.GetSpokeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.GetSpokeRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -294,9 +328,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -315,8 +349,11 @@ public com.google.cloud.networkconnectivity.v1.GetSpokeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.GetSpokeRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.GetSpokeRequest result = new com.google.cloud.networkconnectivity.v1.GetSpokeRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.GetSpokeRequest result =
+          new com.google.cloud.networkconnectivity.v1.GetSpokeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -332,38 +369,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.GetSpokeReque
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.GetSpokeRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.GetSpokeRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.GetSpokeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -371,7 +409,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.GetSpokeRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.GetSpokeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.GetSpokeRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -403,17 +442,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -423,22 +464,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the spoke resource.
      * 
* - * string name = 1 [(.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; @@ -447,20 +493,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the spoke resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -468,28 +517,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the spoke resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the spoke resource.
      * 
* - * string 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() { @@ -499,26 +559,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the spoke resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -528,12 +594,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.GetSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.GetSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.GetSpokeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.GetSpokeRequest(); } @@ -542,27 +608,27 @@ public static com.google.cloud.networkconnectivity.v1.GetSpokeRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -577,6 +643,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.GetSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java new file mode 100644 index 000000000000..dda46174d3d7 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.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/networkconnectivity/v1/hub.proto + +package com.google.cloud.networkconnectivity.v1; + +public interface GetSpokeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetSpokeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the spoke resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the spoke 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/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java index d6abae1373af..846ccda2f133 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * A Network Connectivity Center hub is a collection of spokes. A single hub
  * can contain spokes from multiple regions. However, if any of a hub's spokes
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.Hub}
  */
-public final class Hub extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Hub extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.Hub)
     HubOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Hub.newBuilder() to construct.
   private Hub(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Hub() {
     name_ = "";
     description_ = "";
@@ -33,45 +51,48 @@ private Hub() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Hub();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.Hub.class, com.google.cloud.networkconnectivity.v1.Hub.Builder.class);
+            com.google.cloud.networkconnectivity.v1.Hub.class,
+            com.google.cloud.networkconnectivity.v1.Hub.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -79,6 +100,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -87,14 +109,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; } } /** + * + * *
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -102,16 +125,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -122,11 +144,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the hub was created.
    * 
* - * .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 @@ -134,11 +160,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the hub was created.
    * 
* - * .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 @@ -146,11 +176,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the hub was created.
    * 
* - * .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() { @@ -160,11 +193,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time the hub was last updated.
    * 
* - * .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 @@ -172,11 +209,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time the hub was last updated.
    * 
* - * .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 @@ -184,11 +225,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time the hub was last updated.
    * 
* - * .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() { @@ -196,32 +240,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_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.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - 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_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -231,20 +277,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 4;
    */
   @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();
   }
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -258,6 +305,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -267,17 +316,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      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;
   }
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -287,11 +338,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new 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();
     }
@@ -299,14 +350,18 @@ public java.lang.String getLabelsOrThrow(
   }
 
   public static final int DESCRIPTION_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object description_ = "";
   /**
+   *
+   *
    * 
    * An optional description of the hub.
    * 
* * string description = 5; + * * @return The description. */ @java.lang.Override @@ -315,29 +370,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * An optional description of the hub.
    * 
* * string description = 5; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -346,9 +401,12 @@ public java.lang.String getDescription() { } public static final int UNIQUE_ID_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** + * + * *
    * Output only. The Google-generated UUID for the hub. This value is unique
    * across all hub resources. If a hub is deleted and another with the same
@@ -356,6 +414,7 @@ public java.lang.String getDescription() {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ @java.lang.Override @@ -364,14 +423,15 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** + * + * *
    * Output only. The Google-generated UUID for the hub. This value is unique
    * across all hub resources. If a hub is deleted and another with the same
@@ -379,16 +439,15 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -399,33 +458,49 @@ public java.lang.String getUniqueId() { public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; /** + * + * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.State getState() { + com.google.cloud.networkconnectivity.v1.State result = + com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } public static final int ROUTING_VPCS_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private java.util.List routingVpcs_; /** + * + * *
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -439,6 +514,8 @@ public java.util.List getRou
     return routingVpcs_;
   }
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -448,11 +525,13 @@ public java.util.List getRou
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getRoutingVpcsOrBuilderList() {
     return routingVpcs_;
   }
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -466,6 +545,8 @@ public int getRoutingVpcsCount() {
     return routingVpcs_.size();
   }
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -479,6 +560,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int ind
     return routingVpcs_.get(index);
   }
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -494,6 +577,7 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -505,8 +589,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.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_);
     }
@@ -516,12 +599,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (updateTime_ != null) {
       output.writeMessage(3, getUpdateTime());
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        4);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_);
     }
@@ -547,22 +626,20 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getUpdateTime());
-    }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(4, labels__);
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime());
+    }
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_);
@@ -571,12 +648,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, uniqueId_);
     }
     if (state_ != com.google.cloud.networkconnectivity.v1.State.STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(9, state_);
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_);
     }
     for (int i = 0; i < routingVpcs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(10, routingVpcs_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, routingVpcs_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -586,34 +661,28 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.networkconnectivity.v1.Hub)) {
       return super.equals(obj);
     }
-    com.google.cloud.networkconnectivity.v1.Hub other = (com.google.cloud.networkconnectivity.v1.Hub) obj;
+    com.google.cloud.networkconnectivity.v1.Hub other =
+        (com.google.cloud.networkconnectivity.v1.Hub) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime()
-          .equals(other.getCreateTime())) return false;
+      if (!getCreateTime().equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime()
-          .equals(other.getUpdateTime())) return false;
-    }
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
-    if (!getDescription()
-        .equals(other.getDescription())) return false;
-    if (!getUniqueId()
-        .equals(other.getUniqueId())) return false;
+      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+    }
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!getDescription().equals(other.getDescription())) return false;
+    if (!getUniqueId().equals(other.getUniqueId())) return false;
     if (state_ != other.state_) return false;
-    if (!getRoutingVpcsList()
-        .equals(other.getRoutingVpcsList())) return false;
+    if (!getRoutingVpcsList().equals(other.getRoutingVpcsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -654,97 +723,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub 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.networkconnectivity.v1.Hub parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.networkconnectivity.v1.Hub parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.networkconnectivity.v1.Hub parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.networkconnectivity.v1.Hub parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.Hub prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 Connectivity Center hub is a collection of spokes. A single hub
    * can contain spokes from multiple regions. However, if any of a hub's spokes
@@ -755,55 +831,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.Hub}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.Hub)
       com.google.cloud.networkconnectivity.v1.HubOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.Hub.class, com.google.cloud.networkconnectivity.v1.Hub.Builder.class);
+              com.google.cloud.networkconnectivity.v1.Hub.class,
+              com.google.cloud.networkconnectivity.v1.Hub.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.Hub.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -834,9 +907,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_Hub_descriptor;
     }
 
     @java.lang.Override
@@ -855,9 +928,12 @@ public com.google.cloud.networkconnectivity.v1.Hub build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.Hub buildPartial() {
-      com.google.cloud.networkconnectivity.v1.Hub result = new com.google.cloud.networkconnectivity.v1.Hub(this);
+      com.google.cloud.networkconnectivity.v1.Hub result =
+          new com.google.cloud.networkconnectivity.v1.Hub(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -880,14 +956,10 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Hub result) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -908,38 +980,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Hub result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.Hub) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.Hub)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.Hub) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -959,8 +1032,7 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Hub other) {
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -993,9 +1065,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Hub other) {
             routingVpcsBuilder_ = null;
             routingVpcs_ = other.routingVpcs_;
             bitField0_ = (bitField0_ & ~0x00000080);
-            routingVpcsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getRoutingVpcsFieldBuilder() : null;
+            routingVpcsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getRoutingVpcsFieldBuilder()
+                    : null;
           } else {
             routingVpcsBuilder_.addAllMessages(other.routingVpcs_);
           }
@@ -1027,68 +1100,75 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 66: {
-              uniqueId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 66
-            case 72: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 72
-            case 82: {
-              com.google.cloud.networkconnectivity.v1.RoutingVPC m =
-                  input.readMessage(
-                      com.google.cloud.networkconnectivity.v1.RoutingVPC.parser(),
-                      extensionRegistry);
-              if (routingVpcsBuilder_ == null) {
-                ensureRoutingVpcsIsMutable();
-                routingVpcs_.add(m);
-              } else {
-                routingVpcsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 82
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 66:
+              {
+                uniqueId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 66
+            case 72:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 72
+            case 82:
+              {
+                com.google.cloud.networkconnectivity.v1.RoutingVPC m =
+                    input.readMessage(
+                        com.google.cloud.networkconnectivity.v1.RoutingVPC.parser(),
+                        extensionRegistry);
+                if (routingVpcsBuilder_ == null) {
+                  ensureRoutingVpcsIsMutable();
+                  routingVpcs_.add(m);
+                } else {
+                  routingVpcsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 82
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1098,10 +1178,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1109,13 +1192,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -1124,6 +1207,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1131,15 +1216,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -1147,6 +1231,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1154,18 +1240,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1173,6 +1263,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1182,6 +1273,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The name of the hub. Hub names must be unique. They use the
      * following form:
@@ -1189,12 +1282,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1204,39 +1299,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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) { @@ -1252,14 +1366,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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(); } else { @@ -1270,17 +1387,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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 (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1293,11 +1414,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1310,11 +1435,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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() { bitField0_ |= 0x00000002; @@ -1322,36 +1451,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the hub was created.
      * 
* - * .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_; @@ -1359,39 +1500,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .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) { @@ -1407,14 +1567,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .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(); } else { @@ -1425,17 +1588,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .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 (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1448,11 +1615,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1465,11 +1636,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .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() { bitField0_ |= 0x00000004; @@ -1477,56 +1652,66 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time the hub was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1535,10 +1720,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1548,20 +1736,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 4;
      */
     @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();
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1575,6 +1764,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1584,17 +1775,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        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;
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1604,23 +1797,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new 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();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1629,23 +1824,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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() {
       bitField0_ |= 0x00000008;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1654,17 +1848,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4;
      */
-    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);
+    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);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1673,28 +1870,28 @@ public Builder putLabels(
      *
      * map<string, string> labels = 4;
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.lang.Object description_ = "";
     /**
+     *
+     *
      * 
      * An optional description of the hub.
      * 
* * string description = 5; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1703,20 +1900,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * An optional description of the hub.
      * 
* * string description = 5; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1724,28 +1922,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * An optional description of the hub.
      * 
* * string description = 5; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * An optional description of the hub.
      * 
* * string description = 5; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1755,17 +1960,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * An optional description of the hub.
      * 
* * string description = 5; + * * @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(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -1775,6 +1984,8 @@ public Builder setDescriptionBytes( private java.lang.Object uniqueId_ = ""; /** + * + * *
      * Output only. The Google-generated UUID for the hub. This value is unique
      * across all hub resources. If a hub is deleted and another with the same
@@ -1782,13 +1993,13 @@ public Builder setDescriptionBytes(
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -1797,6 +2008,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. The Google-generated UUID for the hub. This value is unique
      * across all hub resources. If a hub is deleted and another with the same
@@ -1804,15 +2017,14 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -1820,6 +2032,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. The Google-generated UUID for the hub. This value is unique
      * across all hub resources. If a hub is deleted and another with the same
@@ -1827,18 +2041,22 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uniqueId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Output only. The Google-generated UUID for the hub. This value is unique
      * across all hub resources. If a hub is deleted and another with the same
@@ -1846,6 +2064,7 @@ public Builder setUniqueId(
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -1855,6 +2074,8 @@ public Builder clearUniqueId() { return this; } /** + * + * *
      * Output only. The Google-generated UUID for the hub. This value is unique
      * across all hub resources. If a hub is deleted and another with the same
@@ -1862,12 +2083,14 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000020; @@ -1877,22 +2100,33 @@ public Builder setUniqueIdBytes( private int state_ = 0; /** + * + * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1903,24 +2137,35 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + com.google.cloud.networkconnectivity.v1.State result = + com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1934,11 +2179,16 @@ public Builder setState(com.google.cloud.networkconnectivity.v1.State value) { return this; } /** + * + * *
      * Output only. The current lifecycle state of this hub.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -1949,18 +2199,26 @@ public Builder clearState() { } private java.util.List routingVpcs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRoutingVpcsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - routingVpcs_ = new java.util.ArrayList(routingVpcs_); + routingVpcs_ = + new java.util.ArrayList( + routingVpcs_); bitField0_ |= 0x00000080; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.RoutingVPC, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder> routingVpcsBuilder_; + com.google.cloud.networkconnectivity.v1.RoutingVPC, + com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, + com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder> + routingVpcsBuilder_; /** + * + * *
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -1977,6 +2235,8 @@ public java.util.List getRou
       }
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -1993,6 +2253,8 @@ public int getRoutingVpcsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2009,6 +2271,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int ind
       }
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2032,6 +2296,8 @@ public Builder setRoutingVpcs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2052,6 +2318,8 @@ public Builder setRoutingVpcs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2074,6 +2342,8 @@ public Builder addRoutingVpcs(com.google.cloud.networkconnectivity.v1.RoutingVPC
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2097,6 +2367,8 @@ public Builder addRoutingVpcs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2117,6 +2389,8 @@ public Builder addRoutingVpcs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2137,6 +2411,8 @@ public Builder addRoutingVpcs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2149,8 +2425,7 @@ public Builder addAllRoutingVpcs(
         java.lang.Iterable values) {
       if (routingVpcsBuilder_ == null) {
         ensureRoutingVpcsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, routingVpcs_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, routingVpcs_);
         onChanged();
       } else {
         routingVpcsBuilder_.addAllMessages(values);
@@ -2158,6 +2433,8 @@ public Builder addAllRoutingVpcs(
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2177,6 +2454,8 @@ public Builder clearRoutingVpcs() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2196,6 +2475,8 @@ public Builder removeRoutingVpcs(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2209,6 +2490,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder getRoutingVpcs
       return getRoutingVpcsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2220,11 +2503,14 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder getRoutingVpcs
     public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder(
         int index) {
       if (routingVpcsBuilder_ == null) {
-        return routingVpcs_.get(index);  } else {
+        return routingVpcs_.get(index);
+      } else {
         return routingVpcsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2233,8 +2519,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
      *
      * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
      */
-    public java.util.List 
-         getRoutingVpcsOrBuilderList() {
+    public java.util.List
+        getRoutingVpcsOrBuilderList() {
       if (routingVpcsBuilder_ != null) {
         return routingVpcsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2242,6 +2528,8 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
       }
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2251,10 +2539,12 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpc
      * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
      */
     public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcsBuilder() {
-      return getRoutingVpcsFieldBuilder().addBuilder(
-          com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
+      return getRoutingVpcsFieldBuilder()
+          .addBuilder(com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2265,10 +2555,13 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcs
      */
     public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcsBuilder(
         int index) {
-      return getRoutingVpcsFieldBuilder().addBuilder(
-          index, com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
+      return getRoutingVpcsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The VPC networks associated with this hub's spokes.
      * This field is read-only. Network Connectivity Center automatically
@@ -2277,27 +2570,30 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder addRoutingVpcs
      *
      * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
      */
-    public java.util.List 
-         getRoutingVpcsBuilderList() {
+    public java.util.List
+        getRoutingVpcsBuilderList() {
       return getRoutingVpcsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.networkconnectivity.v1.RoutingVPC, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder> 
+            com.google.cloud.networkconnectivity.v1.RoutingVPC,
+            com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder,
+            com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder>
         getRoutingVpcsFieldBuilder() {
       if (routingVpcsBuilder_ == null) {
-        routingVpcsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.networkconnectivity.v1.RoutingVPC, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder, com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder>(
-                routingVpcs_,
-                ((bitField0_ & 0x00000080) != 0),
-                getParentForChildren(),
-                isClean());
+        routingVpcsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.networkconnectivity.v1.RoutingVPC,
+                com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder,
+                com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder>(
+                routingVpcs_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean());
         routingVpcs_ = null;
       }
       return routingVpcsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2307,12 +2603,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.Hub)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.Hub)
   private static final com.google.cloud.networkconnectivity.v1.Hub DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.Hub();
   }
@@ -2321,27 +2617,27 @@ public static com.google.cloud.networkconnectivity.v1.Hub getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Hub parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Hub parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2356,6 +2652,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.networkconnectivity.v1.Hub getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
similarity index 100%
rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
similarity index 78%
rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
index 425f1e0e55fb..bfdd93c1ac4d 100644
--- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
+++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.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/networkconnectivity/v1/hub.proto
 
 package com.google.cloud.networkconnectivity.v1;
 
-public interface HubOrBuilder extends
+public interface HubOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.Hub)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -15,10 +33,13 @@ public interface HubOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Immutable. The name of the hub. Hub names must be unique. They use the
    * following form:
@@ -26,66 +47,90 @@ public interface HubOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The time the hub was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the hub was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the hub was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the hub was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time the hub was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time the hub was last updated.
    * 
* - * .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(); /** + * + * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -96,6 +141,8 @@ public interface HubOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -104,15 +151,13 @@ public interface HubOrBuilder extends
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -121,9 +166,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -133,11 +179,13 @@ boolean containsLabels(
    * map<string, string> labels = 4;
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -146,30 +194,36 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * An optional description of the hub.
    * 
* * string description = 5; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * An optional description of the hub.
    * 
* * string description = 5; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The Google-generated UUID for the hub. This value is unique
    * across all hub resources. If a hub is deleted and another with the same
@@ -177,10 +231,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ java.lang.String getUniqueId(); /** + * + * *
    * Output only. The Google-generated UUID for the hub. This value is unique
    * across all hub resources. If a hub is deleted and another with the same
@@ -188,31 +245,43 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString - getUniqueIdBytes(); + com.google.protobuf.ByteString getUniqueIdBytes(); /** + * + * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current lifecycle state of this hub.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.networkconnectivity.v1.State getState(); /** + * + * *
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -221,9 +290,10 @@ java.lang.String getLabelsOrThrow(
    *
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
-  java.util.List 
-      getRoutingVpcsList();
+  java.util.List getRoutingVpcsList();
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -234,6 +304,8 @@ java.lang.String getLabelsOrThrow(
    */
   com.google.cloud.networkconnectivity.v1.RoutingVPC getRoutingVpcs(int index);
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -244,6 +316,8 @@ java.lang.String getLabelsOrThrow(
    */
   int getRoutingVpcsCount();
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -252,9 +326,11 @@ java.lang.String getLabelsOrThrow(
    *
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
-  java.util.List 
+  java.util.List
       getRoutingVpcsOrBuilderList();
   /**
+   *
+   *
    * 
    * The VPC networks associated with this hub's spokes.
    * This field is read-only. Network Connectivity Center automatically
@@ -263,6 +339,5 @@ java.lang.String getLabelsOrThrow(
    *
    * repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
    */
-  com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder(
-      int index);
+  com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder getRoutingVpcsOrBuilder(int index);
 }
diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java
new file mode 100644
index 000000000000..961ad32eae1a
--- /dev/null
+++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java
@@ -0,0 +1,532 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/networkconnectivity/v1/hub.proto
+
+package com.google.cloud.networkconnectivity.v1;
+
+public final class HubProto {
+  private HubProto() {}
+
+  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_networkconnectivity_v1_Hub_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_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/networkconnectivity/v1/hu"
+          + "b.proto\022#google.cloud.networkconnectivit"
+          + "y.v1\032\034google/api/annotations.proto\032\027goog"
+          + "le/api/client.proto\032\037google/api/field_be"
+          + "havior.proto\032\031google/api/resource.proto\032"
+          + "#google/longrunning/operations.proto\032 go"
+          + "ogle/protobuf/field_mask.proto\032\037google/p"
+          + "rotobuf/timestamp.proto\"\212\004\n\003Hub\022\021\n\004name\030"
+          + "\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132\032.google"
+          + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030"
+          + "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022D"
+          + "\n\006labels\030\004 \003(\01324.google.cloud.networkcon"
+          + "nectivity.v1.Hub.LabelsEntry\022\023\n\013descript"
+          + "ion\030\005 \001(\t\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022>\n\005sta"
+          + "te\030\t \001(\0162*.google.cloud.networkconnectiv"
+          + "ity.v1.StateB\003\340A\003\022E\n\014routing_vpcs\030\n \003(\0132"
+          + "/.google.cloud.networkconnectivity.v1.Ro"
+          + "utingVPC\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005"
+          + "value\030\002 \001(\t:\0028\001:[\352AX\n&networkconnectivit"
+          + "y.googleapis.com/Hub\022.projects/{project}"
+          + "/locations/global/hubs/{hub}\"\177\n\nRoutingV"
+          + "PC\0220\n\003uri\030\001 \001(\tB#\372A \n\036compute.googleapis"
+          + ".com/Network\022?\n2required_for_new_site_to"
+          + "_site_data_transfer_spokes\030\002 \001(\010B\003\340A\003\"\276\006"
+          + "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create_tim"
+          + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003"
+          + "\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf."
+          + "TimestampB\003\340A\003\022F\n\006labels\030\004 \003(\01326.google."
+          + "cloud.networkconnectivity.v1.Spoke.Label"
+          + "sEntry\022\023\n\013description\030\005 \001(\t\022;\n\003hub\030\006 \001(\t"
+          + "B.\340A\005\372A(\n&networkconnectivity.googleapis"
+          + ".com/Hub\022Q\n\022linked_vpn_tunnels\030\021 \001(\01325.g"
+          + "oogle.cloud.networkconnectivity.v1.Linke"
+          + "dVpnTunnels\022k\n\037linked_interconnect_attac"
+          + "hments\030\022 \001(\0132B.google.cloud.networkconne"
+          + "ctivity.v1.LinkedInterconnectAttachments"
+          + "\022n\n!linked_router_appliance_instances\030\023 "
+          + "\001(\0132C.google.cloud.networkconnectivity.v"
+          + "1.LinkedRouterApplianceInstances\022\026\n\tuniq"
+          + "ue_id\030\013 \001(\tB\003\340A\003\022>\n\005state\030\017 \001(\0162*.google"
+          + ".cloud.networkconnectivity.v1.StateB\003\340A\003"
+          + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 "
+          + "\001(\t:\0028\001:e\352Ab\n(networkconnectivity.google"
+          + "apis.com/Spoke\0226projects/{project}/locat"
+          + "ions/{location}/spokes/{spoke}\"\225\001\n\017ListH"
+          + "ubsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca"
+          + "tions.googleapis.com/Location\022\021\n\tpage_si"
+          + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004"
+          + " \001(\t\022\020\n\010order_by\030\005 \001(\t\"x\n\020ListHubsRespon"
+          + "se\0226\n\004hubs\030\001 \003(\0132(.google.cloud.networkc"
+          + "onnectivity.v1.Hub\022\027\n\017next_page_token\030\002 "
+          + "\001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\rGetHubReques"
+          + "t\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&networkconnecti"
+          + "vity.googleapis.com/Hub\"\267\001\n\020CreateHubReq"
+          + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations."
+          + "googleapis.com/Location\022\023\n\006hub_id\030\002 \001(\tB"
+          + "\003\340A\002\022:\n\003hub\030\003 \001(\0132(.google.cloud.network"
+          + "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\004"
+          + " \001(\tB\003\340A\001\"\235\001\n\020UpdateHubRequest\0224\n\013update"
+          + "_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB"
+          + "\003\340A\001\022:\n\003hub\030\002 \001(\0132(.google.cloud.network"
+          + "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\003"
+          + " \001(\tB\003\340A\001\"i\n\020DeleteHubRequest\022<\n\004name\030\001 "
+          + "\001(\tB.\340A\002\372A(\n&networkconnectivity.googlea"
+          + "pis.com/Hub\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\227\001\n"
+          + "\021ListSpokesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372"
+          + "A#\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\006"
+          + "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\022ListSp"
+          + "okesResponse\022:\n\006spokes\030\001 \003(\0132*.google.cl"
+          + "oud.networkconnectivity.v1.Spoke\022\027\n\017next"
+          + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q"
+          + "\n\017GetSpokeRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n"
+          + "(networkconnectivity.googleapis.com/Spok"
+          + "e\"\277\001\n\022CreateSpokeRequest\0229\n\006parent\030\001 \001(\t"
+          + "B)\340A\002\372A#\n!locations.googleapis.com/Locat"
+          + "ion\022\025\n\010spoke_id\030\002 \001(\tB\003\340A\002\022>\n\005spoke\030\003 \001("
+          + "\0132*.google.cloud.networkconnectivity.v1."
+          + "SpokeB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\022"
+          + "UpdateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132"
+          + "\032.google.protobuf.FieldMaskB\003\340A\001\022>\n\005spok"
+          + "e\030\002 \001(\0132*.google.cloud.networkconnectivi"
+          + "ty.v1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A"
+          + "\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\tB0\340"
+          + "A\002\372A*\n(networkconnectivity.googleapis.co"
+          + "m/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\250\001\n\020Lin"
+          + "kedVpnTunnels\0223\n\004uris\030\001 \003(\tB%\372A\"\n comput"
+          + "e.googleapis.com/VpnTunnel\022\"\n\032site_to_si"
+          + "te_data_transfer\030\002 \001(\010\022;\n\013vpc_network\030\003 "
+          + "\001(\tB&\340A\003\372A \n\036compute.googleapis.com/Netw"
+          + "ork\"\302\001\n\035LinkedInterconnectAttachments\022@\n"
+          + "\004uris\030\001 \003(\tB2\372A/\n-compute.googleapis.com"
+          + "/InterconnectAttachment\022\"\n\032site_to_site_"
+          + "data_transfer\030\002 \001(\010\022;\n\013vpc_network\030\003 \001(\t"
+          + "B&\340A\003\372A \n\036compute.googleapis.com/Network"
+          + "\"\322\001\n\036LinkedRouterApplianceInstances\022O\n\ti"
+          + "nstances\030\001 \003(\0132<.google.cloud.networkcon"
+          + "nectivity.v1.RouterApplianceInstance\022\"\n\032"
+          + "site_to_site_data_transfer\030\002 \001(\010\022;\n\013vpc_"
+          + "network\030\003 \001(\tB&\340A\003\372A \n\036compute.googleapi"
+          + "s.com/Network\"l\n\027RouterApplianceInstance"
+          + "\022=\n\017virtual_machine\030\001 \001(\tB$\372A!\n\037compute."
+          + "googleapis.com/Instance\022\022\n\nip_address\030\003 "
+          + "\001(\t\"c\n\020LocationMetadata\022O\n\021location_feat"
+          + "ures\030\001 \003(\01624.google.cloud.networkconnect"
+          + "ivity.v1.LocationFeature*f\n\017LocationFeat"
+          + "ure\022 \n\034LOCATION_FEATURE_UNSPECIFIED\020\000\022\030\n"
+          + "\024SITE_TO_CLOUD_SPOKES\020\001\022\027\n\023SITE_TO_SITE_"
+          + "SPOKES\020\002*T\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000"
+          + "\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003"
+          + "\022\014\n\010UPDATING\020\0062\235\020\n\nHubService\022\267\001\n\010ListHu"
+          + "bs\0224.google.cloud.networkconnectivity.v1"
+          + ".ListHubsRequest\0325.google.cloud.networkc"
+          + "onnectivity.v1.ListHubsResponse\">\202\323\344\223\002/\022"
+          + "-/v1/{parent=projects/*/locations/global"
+          + "}/hubs\332A\006parent\022\244\001\n\006GetHub\0222.google.clou"
+          + "d.networkconnectivity.v1.GetHubRequest\032("
+          + ".google.cloud.networkconnectivity.v1.Hub"
+          + "\"<\202\323\344\223\002/\022-/v1/{name=projects/*/locations"
+          + "/global/hubs/*}\332A\004name\022\314\001\n\tCreateHub\0225.g"
+          + "oogle.cloud.networkconnectivity.v1.Creat"
+          + "eHubRequest\032\035.google.longrunning.Operati"
+          + "on\"i\202\323\344\223\0024\"-/v1/{parent=projects/*/locat"
+          + "ions/global}/hubs:\003hub\332A\021parent,hub,hub_"
+          + "id\312A\030\n\003Hub\022\021OperationMetadata\022\316\001\n\tUpdate"
+          + "Hub\0225.google.cloud.networkconnectivity.v"
+          + "1.UpdateHubRequest\032\035.google.longrunning."
+          + "Operation\"k\202\323\344\223\002821/v1/{hub.name=project"
+          + "s/*/locations/global/hubs/*}:\003hub\332A\017hub,"
+          + "update_mask\312A\030\n\003Hub\022\021OperationMetadata\022\314"
+          + "\001\n\tDeleteHub\0225.google.cloud.networkconne"
+          + "ctivity.v1.DeleteHubRequest\032\035.google.lon"
+          + "grunning.Operation\"i\202\323\344\223\002/*-/v1/{name=pr"
+          + "ojects/*/locations/global/hubs/*}\332A\004name"
+          + "\312A*\n\025google.protobuf.Empty\022\021OperationMet"
+          + "adata\022\272\001\n\nListSpokes\0226.google.cloud.netw"
+          + "orkconnectivity.v1.ListSpokesRequest\0327.g"
+          + "oogle.cloud.networkconnectivity.v1.ListS"
+          + "pokesResponse\";\202\323\344\223\002,\022*/v1/{parent=proje"
+          + "cts/*/locations/*}/spokes\332A\006parent\022\247\001\n\010G"
+          + "etSpoke\0224.google.cloud.networkconnectivi"
+          + "ty.v1.GetSpokeRequest\032*.google.cloud.net"
+          + "workconnectivity.v1.Spoke\"9\202\323\344\223\002,\022*/v1/{"
+          + "name=projects/*/locations/*/spokes/*}\332A\004"
+          + "name\022\325\001\n\013CreateSpoke\0227.google.cloud.netw"
+          + "orkconnectivity.v1.CreateSpokeRequest\032\035."
+          + "google.longrunning.Operation\"n\202\323\344\223\0023\"*/v"
+          + "1/{parent=projects/*/locations/*}/spokes"
+          + ":\005spoke\332A\025parent,spoke,spoke_id\312A\032\n\005Spok"
+          + "e\022\021OperationMetadata\022\327\001\n\013UpdateSpoke\0227.g"
+          + "oogle.cloud.networkconnectivity.v1.Updat"
+          + "eSpokeRequest\032\035.google.longrunning.Opera"
+          + "tion\"p\202\323\344\223\002920/v1/{spoke.name=projects/*"
+          + "/locations/*/spokes/*}:\005spoke\332A\021spoke,up"
+          + "date_mask\312A\032\n\005Spoke\022\021OperationMetadata\022\315"
+          + "\001\n\013DeleteSpoke\0227.google.cloud.networkcon"
+          + "nectivity.v1.DeleteSpokeRequest\032\035.google"
+          + ".longrunning.Operation\"f\202\323\344\223\002,**/v1/{nam"
+          + "e=projects/*/locations/*/spokes/*}\332A\004nam"
+          + "e\312A*\n\025google.protobuf.Empty\022\021OperationMe"
+          + "tadata\032V\312A\"networkconnectivity.googleapi"
+          + "s.com\322A.https://www.googleapis.com/auth/"
+          + "cloud-platformB\277\003\n\'com.google.cloud.netw"
+          + "orkconnectivity.v1B\010HubProtoP\001ZVgoogle.g"
+          + "olang.org/genproto/googleapis/cloud/netw"
+          + "orkconnectivity/v1;networkconnectivity\252\002"
+          + "#Google.Cloud.NetworkConnectivity.V1\312\002#G"
+          + "oogle\\Cloud\\NetworkConnectivity\\V1\352\002&Goo"
+          + "gle::Cloud::NetworkConnectivity::V1\352A`\n "
+          + "compute.googleapis.com/VpnTunnel\022
  * A collection of VLAN attachment resources. These resources should
  * be redundant attachments that all advertise the same prefixes to Google
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments}
  */
-public final class LinkedInterconnectAttachments extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LinkedInterconnectAttachments extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments)
     LinkedInterconnectAttachmentsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LinkedInterconnectAttachments.newBuilder() to construct.
   private LinkedInterconnectAttachments(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LinkedInterconnectAttachments() {
     uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     vpcNetwork_ = "";
@@ -29,61 +47,71 @@ private LinkedInterconnectAttachments() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LinkedInterconnectAttachments();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
+            com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class,
+            com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
   }
 
   public static final int URIS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringList uris_;
   /**
+   *
+   *
    * 
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_; } /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -91,22 +119,26 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 2; private boolean siteToSiteDataTransfer_ = false; /** + * + * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -114,6 +146,7 @@ public java.lang.String getUris(int index) {
    * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -122,14 +155,20 @@ public boolean getSiteToSiteDataTransfer() { } public static final int VPC_NETWORK_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object vpcNetwork_ = ""; /** + * + * *
    * Output only. The VPC network where these VLAN attachments are located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The vpcNetwork. */ @java.lang.Override @@ -138,29 +177,31 @@ public java.lang.String getVpcNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcNetwork_ = s; return s; } } /** + * + * *
    * Output only. The VPC network where these VLAN attachments are located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpcNetwork. */ @java.lang.Override - public com.google.protobuf.ByteString - getVpcNetworkBytes() { + public com.google.protobuf.ByteString getVpcNetworkBytes() { java.lang.Object ref = vpcNetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcNetwork_ = b; return b; } else { @@ -169,6 +210,7 @@ public java.lang.String getVpcNetwork() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,8 +222,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); } @@ -209,8 +250,7 @@ public int getSerializedSize() { size += 1 * getUrisList().size(); } if (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, siteToSiteDataTransfer_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vpcNetwork_); @@ -223,19 +263,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.networkconnectivity.v1.LinkedInterconnectAttachments)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other = (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) obj; + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other = + (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) obj; - if (!getUrisList() - .equals(other.getUrisList())) return false; - if (getSiteToSiteDataTransfer() - != other.getSiteToSiteDataTransfer()) return false; - if (!getVpcNetwork() - .equals(other.getVpcNetwork())) return false; + if (!getUrisList().equals(other.getUrisList())) return false; + if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; + if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -252,8 +290,7 @@ public int hashCode() { hash = (53 * hash) + getUrisList().hashCode(); } hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSiteToSiteDataTransfer()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getVpcNetwork().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -262,96 +299,105 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments 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.networkconnectivity.v1.LinkedInterconnectAttachments + 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.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 collection of VLAN attachment resources. These resources should
    * be redundant attachments that all advertise the same prefixes to Google
@@ -361,33 +407,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments)
       com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
+              com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.class,
+              com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder.class);
     }
 
-    // Construct using com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.newBuilder()
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -400,14 +446,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getDefaultInstanceForType() {
-      return com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance();
+    public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments
+        getDefaultInstanceForType() {
+      return com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -421,14 +469,18 @@ public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments bui
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments buildPartial() {
-      com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result = new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(this);
+      com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result =
+          new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         uris_ = uris_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -436,7 +488,8 @@ private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.
       result.uris_ = uris_;
     }
 
-    private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
+    private void buildPartial0(
+        com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_;
@@ -450,46 +503,51 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedInterco
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments)other);
+        return mergeFrom(
+            (com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other) {
-      if (other == com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments other) {
+      if (other
+          == com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments
+              .getDefaultInstance()) return this;
       if (!other.uris_.isEmpty()) {
         if (uris_.isEmpty()) {
           uris_ = other.uris_;
@@ -534,28 +592,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureUrisIsMutable();
-              uris_.add(s);
-              break;
-            } // case 10
-            case 16: {
-              siteToSiteDataTransfer_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              vpcNetwork_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureUrisIsMutable();
+                uris_.add(s);
+                break;
+              } // case 10
+            case 16:
+              {
+                siteToSiteDataTransfer_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                vpcNetwork_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -565,44 +627,55 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList uris_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensureUrisIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         uris_ = new com.google.protobuf.LazyStringArrayList(uris_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_.getUnmodifiableView(); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -610,76 +683,90 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris( - java.lang.Iterable values) { + public Builder addAllUris(java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); onChanged(); return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearUris() { @@ -689,17 +776,21 @@ public Builder clearUris() { return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); @@ -707,8 +798,10 @@ public Builder addUrisBytes( return this; } - private boolean siteToSiteDataTransfer_ ; + private boolean siteToSiteDataTransfer_; /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -716,6 +809,7 @@ public Builder addUrisBytes(
      * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -723,6 +817,8 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -730,17 +826,20 @@ public boolean getSiteToSiteDataTransfer() {
      * 
* * bool site_to_site_data_transfer = 2; + * * @param value The siteToSiteDataTransfer to set. * @return This builder for chaining. */ public Builder setSiteToSiteDataTransfer(boolean value) { - + siteToSiteDataTransfer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -748,6 +847,7 @@ public Builder setSiteToSiteDataTransfer(boolean value) {
      * 
* * bool site_to_site_data_transfer = 2; + * * @return This builder for chaining. */ public Builder clearSiteToSiteDataTransfer() { @@ -759,18 +859,22 @@ public Builder clearSiteToSiteDataTransfer() { private java.lang.Object vpcNetwork_ = ""; /** + * + * *
      * Output only. The VPC network where these VLAN attachments are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The vpcNetwork. */ public java.lang.String getVpcNetwork() { java.lang.Object ref = vpcNetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcNetwork_ = s; return s; @@ -779,20 +883,23 @@ public java.lang.String getVpcNetwork() { } } /** + * + * *
      * Output only. The VPC network where these VLAN attachments are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpcNetwork. */ - public com.google.protobuf.ByteString - getVpcNetworkBytes() { + public com.google.protobuf.ByteString getVpcNetworkBytes() { java.lang.Object ref = vpcNetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcNetwork_ = b; return b; } else { @@ -800,28 +907,39 @@ public java.lang.String getVpcNetwork() { } } /** + * + * *
      * Output only. The VPC network where these VLAN attachments are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetwork( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVpcNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } vpcNetwork_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. The VPC network where these VLAN attachments are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearVpcNetwork() { @@ -831,26 +949,32 @@ public Builder clearVpcNetwork() { return this; } /** + * + * *
      * Output only. The VPC network where these VLAN attachments are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); vpcNetwork_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -860,41 +984,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) - private static final com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments(); } - public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkedInterconnectAttachments parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkedInterconnectAttachments parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -906,9 +1032,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java similarity index 64% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java index 7d3715c99245..57208804dc85 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java @@ -1,54 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LinkedInterconnectAttachmentsOrBuilder extends +public interface LinkedInterconnectAttachmentsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the uris. */ - java.util.List - getUrisList(); + java.util.List getUrisList(); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of uris. */ int getUrisCount(); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString - getUrisBytes(int index); + com.google.protobuf.ByteString getUrisBytes(int index); /** + * + * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -56,27 +84,37 @@ public interface LinkedInterconnectAttachmentsOrBuilder extends
    * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ boolean getSiteToSiteDataTransfer(); /** + * + * *
    * Output only. The VPC network where these VLAN attachments are located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The vpcNetwork. */ java.lang.String getVpcNetwork(); /** + * + * *
    * Output only. The VPC network where these VLAN attachments are located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpcNetwork. */ - com.google.protobuf.ByteString - getVpcNetworkBytes(); + com.google.protobuf.ByteString getVpcNetworkBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java similarity index 64% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java index b0251c13a16c..3cab3c06b2f9 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * A collection of router appliance instances. If you configure multiple router
  * appliance instances to receive data from the same set of sites outside of
@@ -13,15 +30,17 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances}
  */
-public final class LinkedRouterApplianceInstances extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LinkedRouterApplianceInstances extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)
     LinkedRouterApplianceInstancesOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LinkedRouterApplianceInstances.newBuilder() to construct.
-  private LinkedRouterApplianceInstances(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private LinkedRouterApplianceInstances(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LinkedRouterApplianceInstances() {
     instances_ = java.util.Collections.emptyList();
     vpcNetwork_ = "";
@@ -29,93 +48,115 @@ private LinkedRouterApplianceInstances() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LinkedRouterApplianceInstances();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
+            com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class,
+            com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
   }
 
   public static final int INSTANCES_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
-  private java.util.List instances_;
+  private java.util.List
+      instances_;
   /**
+   *
+   *
    * 
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ @java.lang.Override - public java.util.List getInstancesList() { + public java.util.List + getInstancesList() { return instances_; } /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> getInstancesOrBuilderList() { return instances_; } /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ @java.lang.Override public int getInstancesCount() { return instances_.size(); } /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index) { return instances_.get(index); } /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInstancesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder + getInstancesOrBuilder(int index) { return instances_.get(index); } public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 2; private boolean siteToSiteDataTransfer_ = false; /** + * + * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -123,6 +164,7 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder
    * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -131,15 +173,21 @@ public boolean getSiteToSiteDataTransfer() { } public static final int VPC_NETWORK_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object vpcNetwork_ = ""; /** + * + * *
    * Output only. The VPC network where these router appliance instances are
    * located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The vpcNetwork. */ @java.lang.Override @@ -148,30 +196,32 @@ public java.lang.String getVpcNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcNetwork_ = s; return s; } } /** + * + * *
    * Output only. The VPC network where these router appliance instances are
    * located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpcNetwork. */ @java.lang.Override - public com.google.protobuf.ByteString - getVpcNetworkBytes() { + public com.google.protobuf.ByteString getVpcNetworkBytes() { java.lang.Object ref = vpcNetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcNetwork_ = b; return b; } else { @@ -180,6 +230,7 @@ public java.lang.String getVpcNetwork() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +242,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -212,12 +262,10 @@ 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 (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, siteToSiteDataTransfer_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vpcNetwork_); @@ -230,19 +278,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.networkconnectivity.v1.LinkedRouterApplianceInstances)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other = (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) obj; - - if (!getInstancesList() - .equals(other.getInstancesList())) return false; - if (getSiteToSiteDataTransfer() - != other.getSiteToSiteDataTransfer()) return false; - if (!getVpcNetwork() - .equals(other.getVpcNetwork())) return false; + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other = + (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) obj; + + if (!getInstancesList().equals(other.getInstancesList())) return false; + if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; + if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -259,8 +305,7 @@ public int hashCode() { hash = (53 * hash) + getInstancesList().hashCode(); } hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSiteToSiteDataTransfer()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getVpcNetwork().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -269,96 +314,105 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances 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.networkconnectivity.v1.LinkedRouterApplianceInstances + 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.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 collection of router appliance instances. If you configure multiple router
    * appliance instances to receive data from the same set of sites outside of
@@ -368,33 +422,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)
       com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
+              com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.class,
+              com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder.class);
     }
 
-    // Construct using com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.newBuilder()
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -412,19 +466,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getDefaultInstanceForType() {
-      return com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance();
+    public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances
+        getDefaultInstanceForType() {
+      return com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances build() {
-      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result = buildPartial();
+      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -433,14 +490,18 @@ public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances bu
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances buildPartial() {
-      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result = new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(this);
+      com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result =
+          new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
       if (instancesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           instances_ = java.util.Collections.unmodifiableList(instances_);
@@ -452,7 +513,8 @@ private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.
       }
     }
 
-    private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
+    private void buildPartial0(
+        com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.siteToSiteDataTransfer_ = siteToSiteDataTransfer_;
@@ -466,46 +528,51 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedRouterA
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances)other);
+        return mergeFrom(
+            (com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other) {
-      if (other == com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances other) {
+      if (other
+          == com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances
+              .getDefaultInstance()) return this;
       if (instancesBuilder_ == null) {
         if (!other.instances_.isEmpty()) {
           if (instances_.isEmpty()) {
@@ -524,9 +591,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedRouterApp
             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_);
           }
@@ -566,35 +634,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance m =
-                  input.readMessage(
-                      com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.parser(),
-                      extensionRegistry);
-              if (instancesBuilder_ == null) {
-                ensureInstancesIsMutable();
-                instances_.add(m);
-              } else {
-                instancesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 16: {
-              siteToSiteDataTransfer_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              vpcNetwork_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.networkconnectivity.v1.RouterApplianceInstance m =
+                    input.readMessage(
+                        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.parser(),
+                        extensionRegistry);
+                if (instancesBuilder_ == null) {
+                  ensureInstancesIsMutable();
+                  instances_.add(m);
+                } else {
+                  instancesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 16:
+              {
+                siteToSiteDataTransfer_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                vpcNetwork_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -604,28 +676,39 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List instances_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        instances_ = java.util.Collections.emptyList();
+
     private void ensureInstancesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        instances_ = new java.util.ArrayList(instances_);
+        instances_ =
+            new java.util.ArrayList<
+                com.google.cloud.networkconnectivity.v1.RouterApplianceInstance>(instances_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> instancesBuilder_;
+            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance,
+            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder,
+            com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>
+        instancesBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public java.util.List getInstancesList() { + public java.util.List + getInstancesList() { if (instancesBuilder_ == null) { return java.util.Collections.unmodifiableList(instances_); } else { @@ -633,11 +716,14 @@ public java.util.List * The list of router appliance instances. *
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public int getInstancesCount() { if (instancesBuilder_ == null) { @@ -647,11 +733,14 @@ public int getInstancesCount() { } } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index) { if (instancesBuilder_ == null) { @@ -661,11 +750,14 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstan } } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder setInstances( int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { @@ -682,14 +774,18 @@ public Builder setInstances( return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder setInstances( - int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { + int index, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.set(index, builderForValue.build()); @@ -700,13 +796,17 @@ public Builder setInstances( return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public Builder addInstances(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { + public Builder addInstances( + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -720,11 +820,14 @@ public Builder addInstances(com.google.cloud.networkconnectivity.v1.RouterApplia return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder addInstances( int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance value) { @@ -741,11 +844,14 @@ public Builder addInstances( return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder addInstances( com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { @@ -759,14 +865,18 @@ public Builder addInstances( return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder addInstances( - int index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { + int index, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(index, builderForValue.build()); @@ -777,18 +887,22 @@ public Builder addInstances( return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder addAllInstances( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstance> + 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); @@ -796,11 +910,14 @@ public Builder addAllInstances( return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder clearInstances() { if (instancesBuilder_ == null) { @@ -813,11 +930,14 @@ public Builder clearInstances() { return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ public Builder removeInstances(int index) { if (instancesBuilder_ == null) { @@ -830,39 +950,50 @@ public Builder removeInstances(int index) { return this; } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder getInstancesBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder + getInstancesBuilder(int index) { return getInstancesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInstancesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder + getInstancesOrBuilder(int index) { if (instancesBuilder_ == null) { - return instances_.get(index); } else { + return instances_.get(index); + } else { return instancesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public java.util.List - getInstancesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> + getInstancesOrBuilderList() { if (instancesBuilder_ != null) { return instancesBuilder_.getMessageOrBuilderList(); } else { @@ -870,56 +1001,74 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder } } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder addInstancesBuilder() { - return getInstancesFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder + addInstancesBuilder() { + return getInstancesFieldBuilder() + .addBuilder( + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder addInstancesBuilder( - int index) { - return getInstancesFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder + addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()); } /** + * + * *
      * The list of router appliance instances.
      * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - public java.util.List - getInstancesBuilderList() { + public java.util.List + getInstancesBuilderList() { return getInstancesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder> getInstancesFieldBuilder() { if (instancesBuilder_ == null) { - instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>( - instances_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); instances_ = null; } return instancesBuilder_; } - private boolean siteToSiteDataTransfer_ ; + private boolean siteToSiteDataTransfer_; /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -927,6 +1076,7 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder a
      * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -934,6 +1084,8 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -941,17 +1093,20 @@ public boolean getSiteToSiteDataTransfer() {
      * 
* * bool site_to_site_data_transfer = 2; + * * @param value The siteToSiteDataTransfer to set. * @return This builder for chaining. */ public Builder setSiteToSiteDataTransfer(boolean value) { - + siteToSiteDataTransfer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -959,6 +1114,7 @@ public Builder setSiteToSiteDataTransfer(boolean value) {
      * 
* * bool site_to_site_data_transfer = 2; + * * @return This builder for chaining. */ public Builder clearSiteToSiteDataTransfer() { @@ -970,19 +1126,23 @@ public Builder clearSiteToSiteDataTransfer() { private java.lang.Object vpcNetwork_ = ""; /** + * + * *
      * Output only. The VPC network where these router appliance instances are
      * located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The vpcNetwork. */ public java.lang.String getVpcNetwork() { java.lang.Object ref = vpcNetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcNetwork_ = s; return s; @@ -991,21 +1151,24 @@ public java.lang.String getVpcNetwork() { } } /** + * + * *
      * Output only. The VPC network where these router appliance instances are
      * located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpcNetwork. */ - public com.google.protobuf.ByteString - getVpcNetworkBytes() { + public com.google.protobuf.ByteString getVpcNetworkBytes() { java.lang.Object ref = vpcNetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcNetwork_ = b; return b; } else { @@ -1013,30 +1176,41 @@ public java.lang.String getVpcNetwork() { } } /** + * + * *
      * Output only. The VPC network where these router appliance instances are
      * located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetwork( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVpcNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } vpcNetwork_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. The VPC network where these router appliance instances are
      * located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearVpcNetwork() { @@ -1046,27 +1220,33 @@ public Builder clearVpcNetwork() { return this; } /** + * + * *
      * Output only. The VPC network where these router appliance instances are
      * located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); vpcNetwork_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1076,41 +1256,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) - private static final com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances(); } - public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkedRouterApplianceInstances parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkedRouterApplianceInstances parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1122,9 +1304,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java similarity index 62% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java index b7516a981b7a..cbca453e5f07 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java @@ -1,57 +1,90 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LinkedRouterApplianceInstancesOrBuilder extends +public interface LinkedRouterApplianceInstancesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - java.util.List + java.util.List getInstancesList(); /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getInstances(int index); /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ int getInstancesCount(); /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ - java.util.List + java.util.List getInstancesOrBuilderList(); /** + * + * *
    * The list of router appliance instances.
    * 
* - * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * repeated .google.cloud.networkconnectivity.v1.RouterApplianceInstance instances = 1; + * */ com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInstancesOrBuilder( int index); /** + * + * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -59,29 +92,39 @@ com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder getInst
    * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ boolean getSiteToSiteDataTransfer(); /** + * + * *
    * Output only. The VPC network where these router appliance instances are
    * located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The vpcNetwork. */ java.lang.String getVpcNetwork(); /** + * + * *
    * Output only. The VPC network where these router appliance instances are
    * located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpcNetwork. */ - com.google.protobuf.ByteString - getVpcNetworkBytes(); + com.google.protobuf.ByteString getVpcNetworkBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java similarity index 68% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java index 9b0d325630ba..79d15797258c 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * A collection of Cloud VPN tunnel resources. These resources should be
  * redundant HA VPN tunnels that all advertise the same prefixes to Google
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedVpnTunnels}
  */
-public final class LinkedVpnTunnels extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LinkedVpnTunnels extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LinkedVpnTunnels)
     LinkedVpnTunnelsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LinkedVpnTunnels.newBuilder() to construct.
   private LinkedVpnTunnels(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LinkedVpnTunnels() {
     uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     vpcNetwork_ = "";
@@ -29,61 +47,71 @@ private LinkedVpnTunnels() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LinkedVpnTunnels();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
+            com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class,
+            com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
   }
 
   public static final int URIS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringList uris_;
   /**
+   *
+   *
    * 
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_; } /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -91,22 +119,26 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } public static final int SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER = 2; private boolean siteToSiteDataTransfer_ = false; /** + * + * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -114,6 +146,7 @@ public java.lang.String getUris(int index) {
    * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -122,14 +155,20 @@ public boolean getSiteToSiteDataTransfer() { } public static final int VPC_NETWORK_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object vpcNetwork_ = ""; /** + * + * *
    * Output only. The VPC network where these VPN tunnels are located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The vpcNetwork. */ @java.lang.Override @@ -138,29 +177,31 @@ public java.lang.String getVpcNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcNetwork_ = s; return s; } } /** + * + * *
    * Output only. The VPC network where these VPN tunnels are located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpcNetwork. */ @java.lang.Override - public com.google.protobuf.ByteString - getVpcNetworkBytes() { + public com.google.protobuf.ByteString getVpcNetworkBytes() { java.lang.Object ref = vpcNetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcNetwork_ = b; return b; } else { @@ -169,6 +210,7 @@ public java.lang.String getVpcNetwork() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,8 +222,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); } @@ -209,8 +250,7 @@ public int getSerializedSize() { size += 1 * getUrisList().size(); } if (siteToSiteDataTransfer_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, siteToSiteDataTransfer_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, siteToSiteDataTransfer_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcNetwork_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, vpcNetwork_); @@ -223,19 +263,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.networkconnectivity.v1.LinkedVpnTunnels)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other = (com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) obj; + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other = + (com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) obj; - if (!getUrisList() - .equals(other.getUrisList())) return false; - if (getSiteToSiteDataTransfer() - != other.getSiteToSiteDataTransfer()) return false; - if (!getVpcNetwork() - .equals(other.getVpcNetwork())) return false; + if (!getUrisList().equals(other.getUrisList())) return false; + if (getSiteToSiteDataTransfer() != other.getSiteToSiteDataTransfer()) return false; + if (!getVpcNetwork().equals(other.getVpcNetwork())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -252,8 +290,7 @@ public int hashCode() { hash = (53 * hash) + getUrisList().hashCode(); } hash = (37 * hash) + SITE_TO_SITE_DATA_TRANSFER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSiteToSiteDataTransfer()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteToSiteDataTransfer()); hash = (37 * hash) + VPC_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getVpcNetwork().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -262,96 +299,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 collection of Cloud VPN tunnel resources. These resources should be
    * redundant HA VPN tunnels that all advertise the same prefixes to Google
@@ -361,33 +406,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.LinkedVpnTunnels}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LinkedVpnTunnels)
       com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
+              com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.class,
+              com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -400,9 +444,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor;
     }
 
     @java.lang.Override
@@ -421,14 +465,18 @@ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels buildPartial() {
-      com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result = new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(this);
+      com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result =
+          new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         uris_ = uris_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -450,38 +498,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LinkedVpnTunn
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -489,7 +538,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels other) {
-      if (other == com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance())
+        return this;
       if (!other.uris_.isEmpty()) {
         if (uris_.isEmpty()) {
           uris_ = other.uris_;
@@ -534,28 +584,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureUrisIsMutable();
-              uris_.add(s);
-              break;
-            } // case 10
-            case 16: {
-              siteToSiteDataTransfer_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              vpcNetwork_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureUrisIsMutable();
+                uris_.add(s);
+                break;
+              } // case 10
+            case 16:
+              {
+                siteToSiteDataTransfer_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                vpcNetwork_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -565,44 +619,55 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList uris_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList uris_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensureUrisIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         uris_ = new com.google.protobuf.LazyStringArrayList(uris_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the uris. */ - public com.google.protobuf.ProtocolStringList - getUrisList() { + public com.google.protobuf.ProtocolStringList getUrisList() { return uris_.getUnmodifiableView(); } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of uris. */ public int getUrisCount() { return uris_.size(); } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The uris at the given index. */ @@ -610,76 +675,90 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - public com.google.protobuf.ByteString - getUrisBytes(int index) { + public com.google.protobuf.ByteString getUrisBytes(int index) { return uris_.getByteString(index); } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index to set the value at. * @param value The uris to set. * @return This builder for chaining. */ - public Builder setUris( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUrisIsMutable(); uris_.set(index, value); onChanged(); return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param value The uris to add. * @return This builder for chaining. */ - public Builder addUris( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUrisIsMutable(); uris_.add(value); onChanged(); return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param values The uris to add. * @return This builder for chaining. */ - public Builder addAllUris( - java.lang.Iterable values) { + public Builder addAllUris(java.lang.Iterable values) { ensureUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, uris_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); onChanged(); return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearUris() { @@ -689,17 +768,21 @@ public Builder clearUris() { return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources.
      * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes of the uris to add. * @return This builder for chaining. */ - public Builder addUrisBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUrisIsMutable(); uris_.add(value); @@ -707,8 +790,10 @@ public Builder addUrisBytes( return this; } - private boolean siteToSiteDataTransfer_ ; + private boolean siteToSiteDataTransfer_; /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -716,6 +801,7 @@ public Builder addUrisBytes(
      * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ @java.lang.Override @@ -723,6 +809,8 @@ public boolean getSiteToSiteDataTransfer() { return siteToSiteDataTransfer_; } /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -730,17 +818,20 @@ public boolean getSiteToSiteDataTransfer() {
      * 
* * bool site_to_site_data_transfer = 2; + * * @param value The siteToSiteDataTransfer to set. * @return This builder for chaining. */ public Builder setSiteToSiteDataTransfer(boolean value) { - + siteToSiteDataTransfer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A value that controls whether site-to-site data transfer is enabled for
      * these resources. Data transfer is available only in [supported
@@ -748,6 +839,7 @@ public Builder setSiteToSiteDataTransfer(boolean value) {
      * 
* * bool site_to_site_data_transfer = 2; + * * @return This builder for chaining. */ public Builder clearSiteToSiteDataTransfer() { @@ -759,18 +851,22 @@ public Builder clearSiteToSiteDataTransfer() { private java.lang.Object vpcNetwork_ = ""; /** + * + * *
      * Output only. The VPC network where these VPN tunnels are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The vpcNetwork. */ public java.lang.String getVpcNetwork() { java.lang.Object ref = vpcNetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcNetwork_ = s; return s; @@ -779,20 +875,23 @@ public java.lang.String getVpcNetwork() { } } /** + * + * *
      * Output only. The VPC network where these VPN tunnels are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpcNetwork. */ - public com.google.protobuf.ByteString - getVpcNetworkBytes() { + public com.google.protobuf.ByteString getVpcNetworkBytes() { java.lang.Object ref = vpcNetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcNetwork_ = b; return b; } else { @@ -800,28 +899,39 @@ public java.lang.String getVpcNetwork() { } } /** + * + * *
      * Output only. The VPC network where these VPN tunnels are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetwork( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVpcNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } vpcNetwork_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. The VPC network where these VPN tunnels are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearVpcNetwork() { @@ -831,26 +941,32 @@ public Builder clearVpcNetwork() { return this; } /** + * + * *
      * Output only. The VPC network where these VPN tunnels are located.
      * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for vpcNetwork to set. * @return This builder for chaining. */ - public Builder setVpcNetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVpcNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); vpcNetwork_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -860,12 +976,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) private static final com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels(); } @@ -874,27 +990,27 @@ public static com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkedVpnTunnels parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkedVpnTunnels parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -909,6 +1025,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java similarity index 63% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java index 03fe8a98bd17..8072c8053993 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java @@ -1,54 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LinkedVpnTunnelsOrBuilder extends +public interface LinkedVpnTunnelsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LinkedVpnTunnels) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return A list containing the uris. */ - java.util.List - getUrisList(); + java.util.List getUrisList(); /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @return The count of uris. */ int getUrisCount(); /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the element to return. * @return The uris at the given index. */ java.lang.String getUris(int index); /** + * + * *
    * The URIs of linked VPN tunnel resources.
    * 
* * repeated string uris = 1 [(.google.api.resource_reference) = { ... } + * * @param index The index of the value to return. * @return The bytes of the uris at the given index. */ - com.google.protobuf.ByteString - getUrisBytes(int index); + com.google.protobuf.ByteString getUrisBytes(int index); /** + * + * *
    * A value that controls whether site-to-site data transfer is enabled for
    * these resources. Data transfer is available only in [supported
@@ -56,27 +84,37 @@ public interface LinkedVpnTunnelsOrBuilder extends
    * 
* * bool site_to_site_data_transfer = 2; + * * @return The siteToSiteDataTransfer. */ boolean getSiteToSiteDataTransfer(); /** + * + * *
    * Output only. The VPC network where these VPN tunnels are located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The vpcNetwork. */ java.lang.String getVpcNetwork(); /** + * + * *
    * Output only. The VPC network where these VPN tunnels are located.
    * 
* - * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string vpc_network = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpcNetwork. */ - com.google.protobuf.ByteString - getVpcNetworkBytes(); + com.google.protobuf.ByteString getVpcNetworkBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java index 0675938836a5..f993c7627249 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Request for
  * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsRequest}
  */
-public final class ListHubsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListHubsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListHubsRequest)
     ListHubsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListHubsRequest.newBuilder() to construct.
   private ListHubsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListHubsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -30,38 +48,45 @@ private ListHubsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListHubsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.ListHubsRequest.class,
+            com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. The parent resource's name.
    * 
* - * string parent = 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 @@ -70,29 +95,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 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 { @@ -103,11 +130,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -116,14 +146,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -132,29 +166,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The page token.
    * 
* * 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 { @@ -163,14 +197,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -179,29 +217,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; } } /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * 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 { @@ -210,14 +248,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -226,29 +268,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -257,6 +299,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,8 +311,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -298,8 +340,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_); @@ -318,23 +359,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.networkconnectivity.v1.ListHubsRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListHubsRequest other = (com.google.cloud.networkconnectivity.v1.ListHubsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1.ListHubsRequest other = + (com.google.cloud.networkconnectivity.v1.ListHubsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -362,96 +399,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListHubsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListHubsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.ListHubsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
@@ -460,33 +505,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListHubsRequest)
       com.google.cloud.networkconnectivity.v1.ListHubsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.ListHubsRequest.class,
+              com.google.cloud.networkconnectivity.v1.ListHubsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.ListHubsRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -500,9 +544,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -521,8 +565,11 @@ public com.google.cloud.networkconnectivity.v1.ListHubsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.ListHubsRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.ListHubsRequest result = new com.google.cloud.networkconnectivity.v1.ListHubsRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.ListHubsRequest result =
+          new com.google.cloud.networkconnectivity.v1.ListHubsRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -550,38 +597,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListHubsReque
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.ListHubsRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -589,7 +637,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListHubsRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.ListHubsRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.ListHubsRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -639,37 +688,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              filter_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              orderBy_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                filter_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                orderBy_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -679,22 +734,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The parent resource's name.
      * 
* - * string parent = 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; @@ -703,20 +763,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * string parent = 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 { @@ -724,28 +787,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * string 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() { @@ -755,17 +829,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -773,13 +853,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -787,27 +870,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -819,18 +908,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The page token.
      * 
* * 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; @@ -839,20 +930,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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 { @@ -860,28 +952,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The page token.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -891,17 +990,21 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -911,18 +1014,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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; @@ -931,20 +1036,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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 { @@ -952,28 +1058,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -983,17 +1096,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1003,18 +1120,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1023,20 +1142,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1044,28 +1164,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1075,26 +1202,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1104,12 +1235,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListHubsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListHubsRequest) private static final com.google.cloud.networkconnectivity.v1.ListHubsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListHubsRequest(); } @@ -1118,27 +1249,27 @@ public static com.google.cloud.networkconnectivity.v1.ListHubsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1153,6 +1284,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListHubsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java index d7553ac570fe..0a8b42a0fd49 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequestOrBuilder.java @@ -1,99 +1,142 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListHubsRequestOrBuilder extends +public interface ListHubsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListHubsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java similarity index 72% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java index 435684caabee..20024f166dd5 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Response for
  * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsResponse}
  */
-public final class ListHubsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListHubsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListHubsResponse)
     ListHubsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListHubsResponse.newBuilder() to construct.
   private ListHubsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListHubsResponse() {
     hubs_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -29,33 +47,37 @@ private ListHubsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListHubsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class);
+            com.google.cloud.networkconnectivity.v1.ListHubsResponse.class,
+            com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class);
   }
 
   public static final int HUBS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List hubs_;
   /**
+   *
+   *
    * 
    * The requested hubs.
    * 
@@ -67,6 +89,8 @@ public java.util.List getHubsList() return hubs_; } /** + * + * *
    * The requested hubs.
    * 
@@ -74,11 +98,13 @@ public java.util.List getHubsList() * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getHubsOrBuilderList() { return hubs_; } /** + * + * *
    * The requested hubs.
    * 
@@ -90,6 +116,8 @@ public int getHubsCount() { return hubs_.size(); } /** + * + * *
    * The requested hubs.
    * 
@@ -101,6 +129,8 @@ public com.google.cloud.networkconnectivity.v1.Hub getHubs(int index) { return hubs_.get(index); } /** + * + * *
    * The requested hubs.
    * 
@@ -108,21 +138,24 @@ public com.google.cloud.networkconnectivity.v1.Hub getHubs(int index) { * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int index) { return hubs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -131,30 +164,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -163,37 +196,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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. */ @@ -201,20 +243,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; @@ -226,8 +271,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < hubs_.size(); i++) { output.writeMessage(1, hubs_.get(i)); } @@ -247,8 +291,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < hubs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, hubs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hubs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -269,19 +312,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.networkconnectivity.v1.ListHubsResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListHubsResponse other = (com.google.cloud.networkconnectivity.v1.ListHubsResponse) obj; + com.google.cloud.networkconnectivity.v1.ListHubsResponse other = + (com.google.cloud.networkconnectivity.v1.ListHubsResponse) obj; - if (!getHubsList() - .equals(other.getHubsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getHubsList().equals(other.getHubsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -309,96 +350,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListHubsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListHubsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.ListHubsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for
    * [HubService.ListHubs][google.cloud.networkconnectivity.v1.HubService.ListHubs]
@@ -407,33 +456,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.ListHubsResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListHubsResponse)
       com.google.cloud.networkconnectivity.v1.ListHubsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class);
+              com.google.cloud.networkconnectivity.v1.ListHubsResponse.class,
+              com.google.cloud.networkconnectivity.v1.ListHubsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.ListHubsResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -452,9 +500,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -473,14 +521,18 @@ public com.google.cloud.networkconnectivity.v1.ListHubsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.ListHubsResponse buildPartial() {
-      com.google.cloud.networkconnectivity.v1.ListHubsResponse result = new com.google.cloud.networkconnectivity.v1.ListHubsResponse(this);
+      com.google.cloud.networkconnectivity.v1.ListHubsResponse result =
+          new com.google.cloud.networkconnectivity.v1.ListHubsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.ListHubsResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1.ListHubsResponse result) {
       if (hubsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           hubs_ = java.util.Collections.unmodifiableList(hubs_);
@@ -508,38 +560,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListHubsRespo
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.ListHubsResponse) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsResponse)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListHubsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -547,7 +600,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListHubsResponse other) {
-      if (other == com.google.cloud.networkconnectivity.v1.ListHubsResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.ListHubsResponse.getDefaultInstance())
+        return this;
       if (hubsBuilder_ == null) {
         if (!other.hubs_.isEmpty()) {
           if (hubs_.isEmpty()) {
@@ -566,9 +620,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListHubsRespons
             hubsBuilder_ = null;
             hubs_ = other.hubs_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            hubsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getHubsFieldBuilder() : null;
+            hubsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getHubsFieldBuilder()
+                    : null;
           } else {
             hubsBuilder_.addAllMessages(other.hubs_);
           }
@@ -615,36 +670,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.networkconnectivity.v1.Hub m =
-                  input.readMessage(
-                      com.google.cloud.networkconnectivity.v1.Hub.parser(),
-                      extensionRegistry);
-              if (hubsBuilder_ == null) {
-                ensureHubsIsMutable();
-                hubs_.add(m);
-              } else {
-                hubsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureUnreachableIsMutable();
-              unreachable_.add(s);
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.networkconnectivity.v1.Hub m =
+                    input.readMessage(
+                        com.google.cloud.networkconnectivity.v1.Hub.parser(), extensionRegistry);
+                if (hubsBuilder_ == null) {
+                  ensureHubsIsMutable();
+                  hubs_.add(m);
+                } else {
+                  hubsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureUnreachableIsMutable();
+                unreachable_.add(s);
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -654,21 +712,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List hubs_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureHubsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         hubs_ = new java.util.ArrayList(hubs_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> hubsBuilder_;
+            com.google.cloud.networkconnectivity.v1.Hub,
+            com.google.cloud.networkconnectivity.v1.Hub.Builder,
+            com.google.cloud.networkconnectivity.v1.HubOrBuilder>
+        hubsBuilder_;
 
     /**
+     *
+     *
      * 
      * The requested hubs.
      * 
@@ -683,6 +748,8 @@ public java.util.List getHubsList() } } /** + * + * *
      * The requested hubs.
      * 
@@ -697,6 +764,8 @@ public int getHubsCount() { } } /** + * + * *
      * The requested hubs.
      * 
@@ -711,14 +780,15 @@ public com.google.cloud.networkconnectivity.v1.Hub getHubs(int index) { } } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public Builder setHubs( - int index, com.google.cloud.networkconnectivity.v1.Hub value) { + public Builder setHubs(int index, com.google.cloud.networkconnectivity.v1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -732,6 +802,8 @@ public Builder setHubs( return this; } /** + * + * *
      * The requested hubs.
      * 
@@ -750,6 +822,8 @@ public Builder setHubs( return this; } /** + * + * *
      * The requested hubs.
      * 
@@ -770,14 +844,15 @@ public Builder addHubs(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public Builder addHubs( - int index, com.google.cloud.networkconnectivity.v1.Hub value) { + public Builder addHubs(int index, com.google.cloud.networkconnectivity.v1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -791,14 +866,15 @@ public Builder addHubs( return this; } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public Builder addHubs( - com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { + public Builder addHubs(com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { if (hubsBuilder_ == null) { ensureHubsIsMutable(); hubs_.add(builderForValue.build()); @@ -809,6 +885,8 @@ public Builder addHubs( return this; } /** + * + * *
      * The requested hubs.
      * 
@@ -827,6 +905,8 @@ public Builder addHubs( return this; } /** + * + * *
      * The requested hubs.
      * 
@@ -837,8 +917,7 @@ public Builder addAllHubs( java.lang.Iterable values) { if (hubsBuilder_ == null) { ensureHubsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, hubs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hubs_); onChanged(); } else { hubsBuilder_.addAllMessages(values); @@ -846,6 +925,8 @@ public Builder addAllHubs( return this; } /** + * + * *
      * The requested hubs.
      * 
@@ -863,6 +944,8 @@ public Builder clearHubs() { return this; } /** + * + * *
      * The requested hubs.
      * 
@@ -880,39 +963,44 @@ public Builder removeHubs(int index) { return this; } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubsBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubsBuilder(int index) { return getHubsFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int index) { if (hubsBuilder_ == null) { - return hubs_.get(index); } else { + return hubs_.get(index); + } else { return hubsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public java.util.List - getHubsOrBuilderList() { + public java.util.List + getHubsOrBuilderList() { if (hubsBuilder_ != null) { return hubsBuilder_.getMessageOrBuilderList(); } else { @@ -920,6 +1008,8 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( } } /** + * + * *
      * The requested hubs.
      * 
@@ -927,42 +1017,48 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder() { - return getHubsFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); + return getHubsFieldBuilder() + .addBuilder(com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder( - int index) { - return getHubsFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder(int index) { + return getHubsFieldBuilder() + .addBuilder(index, com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()); } /** + * + * *
      * The requested hubs.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - public java.util.List - getHubsBuilderList() { + public java.util.List + getHubsBuilderList() { return getHubsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder> getHubsFieldBuilder() { if (hubsBuilder_ == null) { - hubsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder>( - hubs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + hubsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder>( + hubs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); hubs_ = null; } return hubsBuilder_; @@ -970,19 +1066,21 @@ public com.google.cloud.networkconnectivity.v1.Hub.Builder addHubsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -991,21 +1089,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1013,30 +1112,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1046,18 +1152,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1065,42 +1175,52 @@ public Builder setNextPageTokenBytes( 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * 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. */ @@ -1108,76 +1228,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) { - if (value == null) { throw new NullPointerException(); } + 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(); } + 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) { + 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() { @@ -1187,26 +1321,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) { - if (value == null) { throw new NullPointerException(); } + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1216,12 +1354,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListHubsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListHubsResponse) private static final com.google.cloud.networkconnectivity.v1.ListHubsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListHubsResponse(); } @@ -1230,27 +1368,27 @@ public static com.google.cloud.networkconnectivity.v1.ListHubsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1265,6 +1403,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListHubsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java index 73449f136a7b..b161d9b83f1a 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponseOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListHubsResponseOrBuilder extends +public interface ListHubsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListHubsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested hubs.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - java.util.List - getHubsList(); + java.util.List getHubsList(); /** + * + * *
    * The requested hubs.
    * 
@@ -25,6 +44,8 @@ public interface ListHubsResponseOrBuilder extends */ com.google.cloud.networkconnectivity.v1.Hub getHubs(int index); /** + * + * *
    * The requested hubs.
    * 
@@ -33,84 +54,102 @@ public interface ListHubsResponseOrBuilder extends */ int getHubsCount(); /** + * + * *
    * The requested hubs.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - java.util.List + java.util.List getHubsOrBuilderList(); /** + * + * *
    * The requested hubs.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1; */ - com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder( - int index); + com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubsOrBuilder(int index); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java index 0cb0927c1eb9..444325073897 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The request for
  * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesRequest}
  */
-public final class ListSpokesRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListSpokesRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListSpokesRequest)
     ListSpokesRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListSpokesRequest.newBuilder() to construct.
   private ListSpokesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListSpokesRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -29,38 +47,45 @@ private ListSpokesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListSpokesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class,
+            com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. The parent resource.
    * 
* - * string parent = 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 @@ -69,29 +94,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 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 { @@ -102,11 +129,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -115,14 +145,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -131,29 +165,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The page token.
    * 
* * 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 { @@ -162,14 +196,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -178,29 +216,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; } } /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * 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 { @@ -209,14 +247,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -225,29 +267,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -256,6 +298,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,8 +310,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -297,8 +339,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_); @@ -317,23 +358,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1.ListSpokesRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListSpokesRequest other = (com.google.cloud.networkconnectivity.v1.ListSpokesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1.ListSpokesRequest other = + (com.google.cloud.networkconnectivity.v1.ListSpokesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -361,96 +398,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListSpokesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.ListSpokesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for
    * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
@@ -458,33 +503,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListSpokesRequest)
       com.google.cloud.networkconnectivity.v1.ListSpokesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class,
+              com.google.cloud.networkconnectivity.v1.ListSpokesRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.ListSpokesRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -498,9 +542,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor;
     }
 
     @java.lang.Override
@@ -519,8 +563,11 @@ public com.google.cloud.networkconnectivity.v1.ListSpokesRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.ListSpokesRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.ListSpokesRequest result = new com.google.cloud.networkconnectivity.v1.ListSpokesRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.ListSpokesRequest result =
+          new com.google.cloud.networkconnectivity.v1.ListSpokesRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -548,38 +595,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListSpokesReq
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.ListSpokesRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -587,7 +635,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListSpokesRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.ListSpokesRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.ListSpokesRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -637,37 +686,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              filter_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              orderBy_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                filter_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                orderBy_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -677,22 +732,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The parent resource.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -701,20 +761,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource.
      * 
* - * string parent = 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 { @@ -722,28 +785,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource.
      * 
* - * string 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() { @@ -753,17 +827,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -771,13 +851,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -785,27 +868,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -817,18 +906,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The page token.
      * 
* * 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; @@ -837,20 +928,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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 { @@ -858,28 +950,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The page token.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -889,17 +988,21 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -909,18 +1012,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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; @@ -929,20 +1034,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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 { @@ -950,28 +1056,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -981,17 +1094,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * An expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1001,18 +1118,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1021,20 +1140,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1042,28 +1162,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1073,26 +1200,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1102,12 +1233,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListSpokesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListSpokesRequest) private static final com.google.cloud.networkconnectivity.v1.ListSpokesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListSpokesRequest(); } @@ -1116,27 +1247,27 @@ public static com.google.cloud.networkconnectivity.v1.ListSpokesRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1151,6 +1282,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListSpokesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java index 46c69c915c82..6d50170b35ab 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequestOrBuilder.java @@ -1,99 +1,142 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListSpokesRequestOrBuilder extends +public interface ListSpokesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListSpokesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * An expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java similarity index 72% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java index d0fdc3b7fbec..3dc609e1c520 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The response for
  * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesResponse}
  */
-public final class ListSpokesResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListSpokesResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.ListSpokesResponse)
     ListSpokesResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListSpokesResponse.newBuilder() to construct.
   private ListSpokesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListSpokesResponse() {
     spokes_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -28,33 +46,37 @@ private ListSpokesResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListSpokesResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class);
+            com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class,
+            com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class);
   }
 
   public static final int SPOKES_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List spokes_;
   /**
+   *
+   *
    * 
    * The requested spokes.
    * 
@@ -66,6 +88,8 @@ public java.util.List getSpokesLi return spokes_; } /** + * + * *
    * The requested spokes.
    * 
@@ -73,11 +97,13 @@ public java.util.List getSpokesLi * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSpokesOrBuilderList() { return spokes_; } /** + * + * *
    * The requested spokes.
    * 
@@ -89,6 +115,8 @@ public int getSpokesCount() { return spokes_.size(); } /** + * + * *
    * The requested spokes.
    * 
@@ -100,6 +128,8 @@ public com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index) { return spokes_.get(index); } /** + * + * *
    * The requested spokes.
    * 
@@ -107,21 +137,24 @@ public com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index) { * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder(int index) { return spokes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -130,30 +163,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -162,37 +195,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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. */ @@ -200,20 +242,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; @@ -225,8 +270,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < spokes_.size(); i++) { output.writeMessage(1, spokes_.get(i)); } @@ -246,8 +290,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < spokes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, spokes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, spokes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -268,19 +311,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.networkconnectivity.v1.ListSpokesResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.ListSpokesResponse other = (com.google.cloud.networkconnectivity.v1.ListSpokesResponse) obj; + com.google.cloud.networkconnectivity.v1.ListSpokesResponse other = + (com.google.cloud.networkconnectivity.v1.ListSpokesResponse) obj; - if (!getSpokesList() - .equals(other.getSpokesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getSpokesList().equals(other.getSpokesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -308,96 +349,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.ListSpokesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.ListSpokesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response for
    * [HubService.ListSpokes][google.cloud.networkconnectivity.v1.HubService.ListSpokes].
@@ -405,33 +454,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.ListSpokesResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.ListSpokesResponse)
       com.google.cloud.networkconnectivity.v1.ListSpokesResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class);
+              com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class,
+              com.google.cloud.networkconnectivity.v1.ListSpokesResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.ListSpokesResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -450,9 +498,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor;
     }
 
     @java.lang.Override
@@ -471,14 +519,18 @@ public com.google.cloud.networkconnectivity.v1.ListSpokesResponse build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.ListSpokesResponse buildPartial() {
-      com.google.cloud.networkconnectivity.v1.ListSpokesResponse result = new com.google.cloud.networkconnectivity.v1.ListSpokesResponse(this);
+      com.google.cloud.networkconnectivity.v1.ListSpokesResponse result =
+          new com.google.cloud.networkconnectivity.v1.ListSpokesResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.ListSpokesResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1.ListSpokesResponse result) {
       if (spokesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           spokes_ = java.util.Collections.unmodifiableList(spokes_);
@@ -506,38 +558,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.ListSpokesRes
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.ListSpokesResponse) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesResponse)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.ListSpokesResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -545,7 +598,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListSpokesResponse other) {
-      if (other == com.google.cloud.networkconnectivity.v1.ListSpokesResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.ListSpokesResponse.getDefaultInstance())
+        return this;
       if (spokesBuilder_ == null) {
         if (!other.spokes_.isEmpty()) {
           if (spokes_.isEmpty()) {
@@ -564,9 +618,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.ListSpokesRespo
             spokesBuilder_ = null;
             spokes_ = other.spokes_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            spokesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSpokesFieldBuilder() : null;
+            spokesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSpokesFieldBuilder()
+                    : null;
           } else {
             spokesBuilder_.addAllMessages(other.spokes_);
           }
@@ -613,36 +668,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.networkconnectivity.v1.Spoke m =
-                  input.readMessage(
-                      com.google.cloud.networkconnectivity.v1.Spoke.parser(),
-                      extensionRegistry);
-              if (spokesBuilder_ == null) {
-                ensureSpokesIsMutable();
-                spokes_.add(m);
-              } else {
-                spokesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureUnreachableIsMutable();
-              unreachable_.add(s);
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.networkconnectivity.v1.Spoke m =
+                    input.readMessage(
+                        com.google.cloud.networkconnectivity.v1.Spoke.parser(), extensionRegistry);
+                if (spokesBuilder_ == null) {
+                  ensureSpokesIsMutable();
+                  spokes_.add(m);
+                } else {
+                  spokesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureUnreachableIsMutable();
+                unreachable_.add(s);
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -652,21 +710,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List spokes_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureSpokesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         spokes_ = new java.util.ArrayList(spokes_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> spokesBuilder_;
+            com.google.cloud.networkconnectivity.v1.Spoke,
+            com.google.cloud.networkconnectivity.v1.Spoke.Builder,
+            com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>
+        spokesBuilder_;
 
     /**
+     *
+     *
      * 
      * The requested spokes.
      * 
@@ -681,6 +746,8 @@ public java.util.List getSpokesLi } } /** + * + * *
      * The requested spokes.
      * 
@@ -695,6 +762,8 @@ public int getSpokesCount() { } } /** + * + * *
      * The requested spokes.
      * 
@@ -709,14 +778,15 @@ public com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index) { } } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public Builder setSpokes( - int index, com.google.cloud.networkconnectivity.v1.Spoke value) { + public Builder setSpokes(int index, com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -730,6 +800,8 @@ public Builder setSpokes( return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -748,6 +820,8 @@ public Builder setSpokes( return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -768,14 +842,15 @@ public Builder addSpokes(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public Builder addSpokes( - int index, com.google.cloud.networkconnectivity.v1.Spoke value) { + public Builder addSpokes(int index, com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -789,6 +864,8 @@ public Builder addSpokes( return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -807,6 +884,8 @@ public Builder addSpokes( return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -825,6 +904,8 @@ public Builder addSpokes( return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -835,8 +916,7 @@ public Builder addAllSpokes( java.lang.Iterable values) { if (spokesBuilder_ == null) { ensureSpokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, spokes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spokes_); onChanged(); } else { spokesBuilder_.addAllMessages(values); @@ -844,6 +924,8 @@ public Builder addAllSpokes( return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -861,6 +943,8 @@ public Builder clearSpokes() { return this; } /** + * + * *
      * The requested spokes.
      * 
@@ -878,39 +962,44 @@ public Builder removeSpokes(int index) { return this; } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokesBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokesBuilder(int index) { return getSpokesFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder(int index) { if (spokesBuilder_ == null) { - return spokes_.get(index); } else { + return spokes_.get(index); + } else { return spokesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public java.util.List - getSpokesOrBuilderList() { + public java.util.List + getSpokesOrBuilderList() { if (spokesBuilder_ != null) { return spokesBuilder_.getMessageOrBuilderList(); } else { @@ -918,6 +1007,8 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder } } /** + * + * *
      * The requested spokes.
      * 
@@ -925,42 +1016,48 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder() { - return getSpokesFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); + return getSpokesFieldBuilder() + .addBuilder(com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder( - int index) { - return getSpokesFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder(int index) { + return getSpokesFieldBuilder() + .addBuilder(index, com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()); } /** + * + * *
      * The requested spokes.
      * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - public java.util.List - getSpokesBuilderList() { + public java.util.List + getSpokesBuilderList() { return getSpokesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> getSpokesFieldBuilder() { if (spokesBuilder_ == null) { - spokesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( - spokes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + spokesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( + spokes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); spokes_ = null; } return spokesBuilder_; @@ -968,19 +1065,21 @@ public com.google.cloud.networkconnectivity.v1.Spoke.Builder addSpokesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -989,21 +1088,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1011,30 +1111,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1044,18 +1151,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1063,42 +1174,52 @@ public Builder setNextPageTokenBytes( 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * 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. */ @@ -1106,76 +1227,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) { - if (value == null) { throw new NullPointerException(); } + 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(); } + 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) { + 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() { @@ -1185,26 +1320,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) { - if (value == null) { throw new NullPointerException(); } + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1214,12 +1353,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.ListSpokesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.ListSpokesResponse) private static final com.google.cloud.networkconnectivity.v1.ListSpokesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.ListSpokesResponse(); } @@ -1228,27 +1367,27 @@ public static com.google.cloud.networkconnectivity.v1.ListSpokesResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1263,6 +1402,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.ListSpokesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java index 834b94da7b71..212e8ce02a58 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponseOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface ListSpokesResponseOrBuilder extends +public interface ListSpokesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.ListSpokesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested spokes.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - java.util.List - getSpokesList(); + java.util.List getSpokesList(); /** + * + * *
    * The requested spokes.
    * 
@@ -25,6 +44,8 @@ public interface ListSpokesResponseOrBuilder extends */ com.google.cloud.networkconnectivity.v1.Spoke getSpokes(int index); /** + * + * *
    * The requested spokes.
    * 
@@ -33,84 +54,102 @@ public interface ListSpokesResponseOrBuilder extends */ int getSpokesCount(); /** + * + * *
    * The requested spokes.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - java.util.List + java.util.List getSpokesOrBuilderList(); /** + * + * *
    * The requested spokes.
    * 
* * repeated .google.cloud.networkconnectivity.v1.Spoke spokes = 1; */ - com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder( - int index); + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokesOrBuilder(int index); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java index cf212e9b299c..21d5923cd802 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationFeature.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Supported features for a location
  * 
* * Protobuf enum {@code google.cloud.networkconnectivity.v1.LocationFeature} */ -public enum LocationFeature - implements com.google.protobuf.ProtocolMessageEnum { +public enum LocationFeature implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * No publicly supported feature in this location
    * 
@@ -21,6 +39,8 @@ public enum LocationFeature */ LOCATION_FEATURE_UNSPECIFIED(0), /** + * + * *
    * Site-to-cloud spokes are supported in this location
    * 
@@ -29,6 +49,8 @@ public enum LocationFeature */ SITE_TO_CLOUD_SPOKES(1), /** + * + * *
    * Site-to-site spokes are supported in this location
    * 
@@ -40,6 +62,8 @@ public enum LocationFeature ; /** + * + * *
    * No publicly supported feature in this location
    * 
@@ -48,6 +72,8 @@ public enum LocationFeature */ public static final int LOCATION_FEATURE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Site-to-cloud spokes are supported in this location
    * 
@@ -56,6 +82,8 @@ public enum LocationFeature */ public static final int SITE_TO_CLOUD_SPOKES_VALUE = 1; /** + * + * *
    * Site-to-site spokes are supported in this location
    * 
@@ -64,7 +92,6 @@ public enum LocationFeature */ public static final int SITE_TO_SITE_SPOKES_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,49 +116,49 @@ public static LocationFeature valueOf(int value) { */ public static LocationFeature forNumber(int value) { switch (value) { - case 0: return LOCATION_FEATURE_UNSPECIFIED; - case 1: return SITE_TO_CLOUD_SPOKES; - case 2: return SITE_TO_SITE_SPOKES; - default: return null; + case 0: + return LOCATION_FEATURE_UNSPECIFIED; + case 1: + return SITE_TO_CLOUD_SPOKES; + case 2: + return SITE_TO_SITE_SPOKES; + 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< - LocationFeature> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LocationFeature findValueByNumber(int number) { - return LocationFeature.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 LocationFeature findValueByNumber(int number) { + return LocationFeature.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.networkconnectivity.v1.HubProto.getDescriptor().getEnumTypes().get(0); } private static final LocationFeature[] VALUES = values(); - public static LocationFeature valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static LocationFeature valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -147,4 +174,3 @@ private LocationFeature(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.LocationFeature) } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java index 2f0e5ab71614..b9e4e2f54e66 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java @@ -1,84 +1,120 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Metadata about locations
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.LocationMetadata} */ -public final class LocationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.LocationMetadata) LocationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LocationMetadata.newBuilder() to construct. private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LocationMetadata() { locationFeatures_ = 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 LocationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.LocationMetadata.class, com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.LocationMetadata.class, + com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); } public static final int LOCATION_FEATURES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List locationFeatures_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature> locationFeatures_converter_ = + java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature> + locationFeatures_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>() { - public com.google.cloud.networkconnectivity.v1.LocationFeature convert(java.lang.Integer from) { - com.google.cloud.networkconnectivity.v1.LocationFeature result = com.google.cloud.networkconnectivity.v1.LocationFeature.forNumber(from); - return result == null ? com.google.cloud.networkconnectivity.v1.LocationFeature.UNRECOGNIZED : result; + public com.google.cloud.networkconnectivity.v1.LocationFeature convert( + java.lang.Integer from) { + com.google.cloud.networkconnectivity.v1.LocationFeature result = + com.google.cloud.networkconnectivity.v1.LocationFeature.forNumber(from); + return result == null + ? com.google.cloud.networkconnectivity.v1.LocationFeature.UNRECOGNIZED + : result; } }; /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return A list containing the locationFeatures. */ @java.lang.Override - public java.util.List getLocationFeaturesList() { + public java.util.List + getLocationFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>(locationFeatures_, locationFeatures_converter_); + java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>( + locationFeatures_, locationFeatures_converter_); } /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return The count of locationFeatures. */ @java.lang.Override @@ -86,11 +122,15 @@ public int getLocationFeaturesCount() { return locationFeatures_.size(); } /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index of the element to return. * @return The locationFeatures at the given index. */ @@ -99,24 +139,31 @@ public com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatur return locationFeatures_converter_.convert(locationFeatures_.get(index)); } /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return A list containing the enum numeric values on the wire for locationFeatures. */ @java.lang.Override - public java.util.List - getLocationFeaturesValueList() { + public java.util.List getLocationFeaturesValueList() { return locationFeatures_; } /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of locationFeatures at the given index. */ @@ -124,9 +171,11 @@ public com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatur public int getLocationFeaturesValue(int index) { return locationFeatures_.get(index); } + private int locationFeaturesMemoizedSerializedSize; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +187,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getLocationFeaturesList().size() > 0) { output.writeUInt32NoTag(10); @@ -160,14 +208,15 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < locationFeatures_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(locationFeatures_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(locationFeatures_.get(i)); } size += dataSize; - if (!getLocationFeaturesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }locationFeaturesMemoizedSerializedSize = dataSize; + if (!getLocationFeaturesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + locationFeaturesMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,12 +226,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.networkconnectivity.v1.LocationMetadata)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.LocationMetadata other = (com.google.cloud.networkconnectivity.v1.LocationMetadata) obj; + com.google.cloud.networkconnectivity.v1.LocationMetadata other = + (com.google.cloud.networkconnectivity.v1.LocationMetadata) obj; if (!locationFeatures_.equals(other.locationFeatures_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -206,129 +256,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.LocationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.LocationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.LocationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata about locations
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.LocationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.LocationMetadata) com.google.cloud.networkconnectivity.v1.LocationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.LocationMetadata.class, com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.LocationMetadata.class, + com.google.cloud.networkconnectivity.v1.LocationMetadata.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.LocationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +396,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; } @java.lang.Override @@ -360,14 +417,18 @@ public com.google.cloud.networkconnectivity.v1.LocationMetadata build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.LocationMetadata buildPartial() { - com.google.cloud.networkconnectivity.v1.LocationMetadata result = new com.google.cloud.networkconnectivity.v1.LocationMetadata(this); + com.google.cloud.networkconnectivity.v1.LocationMetadata result = + new com.google.cloud.networkconnectivity.v1.LocationMetadata(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1.LocationMetadata result) { + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1.LocationMetadata result) { if (((bitField0_ & 0x00000001) != 0)) { locationFeatures_ = java.util.Collections.unmodifiableList(locationFeatures_); bitField0_ = (bitField0_ & ~0x00000001); @@ -383,38 +444,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.LocationMetad public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.LocationMetadata) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.LocationMetadata)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.LocationMetadata) other); } else { super.mergeFrom(other); return this; @@ -422,7 +484,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.LocationMetadata other) { - if (other == com.google.cloud.networkconnectivity.v1.LocationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1.LocationMetadata.getDefaultInstance()) + return this; if (!other.locationFeatures_.isEmpty()) { if (locationFeatures_.isEmpty()) { locationFeatures_ = other.locationFeatures_; @@ -459,29 +522,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - int tmpRaw = input.readEnum(); - ensureLocationFeaturesIsMutable(); - locationFeatures_.add(tmpRaw); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 8: + { int tmpRaw = input.readEnum(); ensureLocationFeaturesIsMutable(); locationFeatures_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureLocationFeaturesIsMutable(); + locationFeatures_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -491,10 +557,11 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List locationFeatures_ = - java.util.Collections.emptyList(); + private java.util.List locationFeatures_ = java.util.Collections.emptyList(); + private void ensureLocationFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { locationFeatures_ = new java.util.ArrayList(locationFeatures_); @@ -502,34 +569,48 @@ private void ensureLocationFeaturesIsMutable() { } } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return A list containing the locationFeatures. */ - public java.util.List getLocationFeaturesList() { + public java.util.List + getLocationFeaturesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>(locationFeatures_, locationFeatures_converter_); + java.lang.Integer, com.google.cloud.networkconnectivity.v1.LocationFeature>( + locationFeatures_, locationFeatures_converter_); } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return The count of locationFeatures. */ public int getLocationFeaturesCount() { return locationFeatures_.size(); } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index of the element to return. * @return The locationFeatures at the given index. */ @@ -537,11 +618,15 @@ public com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatur return locationFeatures_converter_.convert(locationFeatures_.get(index)); } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index to set the value at. * @param value The locationFeatures to set. * @return This builder for chaining. @@ -557,15 +642,20 @@ public Builder setLocationFeatures( return this; } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param value The locationFeatures to add. * @return This builder for chaining. */ - public Builder addLocationFeatures(com.google.cloud.networkconnectivity.v1.LocationFeature value) { + public Builder addLocationFeatures( + com.google.cloud.networkconnectivity.v1.LocationFeature value) { if (value == null) { throw new NullPointerException(); } @@ -575,16 +665,21 @@ public Builder addLocationFeatures(com.google.cloud.networkconnectivity.v1.Locat return this; } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param values The locationFeatures to add. * @return This builder for chaining. */ public Builder addAllLocationFeatures( - java.lang.Iterable values) { + java.lang.Iterable + values) { ensureLocationFeaturesIsMutable(); for (com.google.cloud.networkconnectivity.v1.LocationFeature value : values) { locationFeatures_.add(value.getNumber()); @@ -593,11 +688,15 @@ public Builder addAllLocationFeatures( return this; } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return This builder for chaining. */ public Builder clearLocationFeatures() { @@ -607,23 +706,30 @@ public Builder clearLocationFeatures() { return this; } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return A list containing the enum numeric values on the wire for locationFeatures. */ - public java.util.List - getLocationFeaturesValueList() { + public java.util.List getLocationFeaturesValueList() { return java.util.Collections.unmodifiableList(locationFeatures_); } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of locationFeatures at the given index. */ @@ -631,28 +737,35 @@ public int getLocationFeaturesValue(int index) { return locationFeatures_.get(index); } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for locationFeatures to set. * @return This builder for chaining. */ - public Builder setLocationFeaturesValue( - int index, int value) { + public Builder setLocationFeaturesValue(int index, int value) { ensureLocationFeaturesIsMutable(); locationFeatures_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param value The enum numeric value on the wire for locationFeatures to add. * @return This builder for chaining. */ @@ -663,16 +776,19 @@ public Builder addLocationFeaturesValue(int value) { return this; } /** + * + * *
      * List of supported features
      * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param values The enum numeric values on the wire for locationFeatures to add. * @return This builder for chaining. */ - public Builder addAllLocationFeaturesValue( - java.lang.Iterable values) { + public Builder addAllLocationFeaturesValue(java.lang.Iterable values) { ensureLocationFeaturesIsMutable(); for (int value : values) { locationFeatures_.add(value); @@ -680,9 +796,9 @@ public Builder addAllLocationFeaturesValue( onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -692,12 +808,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.LocationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.LocationMetadata) private static final com.google.cloud.networkconnectivity.v1.LocationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.LocationMetadata(); } @@ -706,27 +822,27 @@ public static com.google.cloud.networkconnectivity.v1.LocationMetadata getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -741,6 +857,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.LocationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java similarity index 62% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java index f8b387b0a5a2..f42007f563f6 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadataOrBuilder.java @@ -1,56 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface LocationMetadataOrBuilder extends +public interface LocationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.LocationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return A list containing the locationFeatures. */ java.util.List getLocationFeaturesList(); /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return The count of locationFeatures. */ int getLocationFeaturesCount(); /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index of the element to return. * @return The locationFeatures at the given index. */ com.google.cloud.networkconnectivity.v1.LocationFeature getLocationFeatures(int index); /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @return A list containing the enum numeric values on the wire for locationFeatures. */ - java.util.List - getLocationFeaturesValueList(); + java.util.List getLocationFeaturesValueList(); /** + * + * *
    * List of supported features
    * 
* - * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * repeated .google.cloud.networkconnectivity.v1.LocationFeature location_features = 1; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of locationFeatures at the given index. */ diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java index ccff6a11ac7c..ecb829230dfd 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/common.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,37 +46,42 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.OperationMetadata.class, + com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -66,11 +89,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -78,11 +105,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -92,11 +122,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -104,11 +138,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -116,11 +154,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -128,14 +169,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -144,29 +189,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -175,14 +220,18 @@ public java.lang.String getTarget() { } public static final int VERB_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -191,29 +240,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -222,14 +271,18 @@ public java.lang.String getVerb() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -238,29 +291,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -271,6 +324,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have been cancelled successfully
@@ -279,6 +334,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -287,14 +343,18 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -303,29 +363,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -334,6 +394,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -345,8 +406,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -378,12 +438,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_); @@ -395,8 +453,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_); @@ -409,33 +466,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.networkconnectivity.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.OperationMetadata other = (com.google.cloud.networkconnectivity.v1.OperationMetadata) obj; + com.google.cloud.networkconnectivity.v1.OperationMetadata other = + (com.google.cloud.networkconnectivity.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -462,8 +513,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) + getUnknownFields().hashCode(); @@ -472,129 +522,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.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.networkconnectivity.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.OperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.OperationMetadata) com.google.cloud.networkconnectivity.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1.OperationMetadata.class, + com.google.cloud.networkconnectivity.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1.OperationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -618,9 +675,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1.CommonProto.internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -639,8 +696,11 @@ public com.google.cloud.networkconnectivity.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1.OperationMetadata buildPartial() { - com.google.cloud.networkconnectivity.v1.OperationMetadata result = new com.google.cloud.networkconnectivity.v1.OperationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1.OperationMetadata result = + new com.google.cloud.networkconnectivity.v1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -648,14 +708,10 @@ public com.google.cloud.networkconnectivity.v1.OperationMetadata buildPartial() private void buildPartial0(com.google.cloud.networkconnectivity.v1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -678,38 +734,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.OperationMeta public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.networkconnectivity.v1.OperationMetadata)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -717,7 +774,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.OperationMetadata other) { - if (other == com.google.cloud.networkconnectivity.v1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -773,51 +831,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -827,43 +889,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time 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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -879,14 +961,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -897,17 +982,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -920,11 +1009,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -937,11 +1030,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -949,36 +1046,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -986,24 +1095,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1014,11 +1134,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1034,14 +1157,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1052,17 +1177,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1075,11 +1203,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1092,11 +1223,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1104,36 +1238,44 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1141,18 +1283,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1161,20 +1305,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1182,28 +1327,35 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1213,17 +1365,21 @@ public Builder clearTarget() { return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1233,18 +1389,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1253,20 +1411,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1274,28 +1433,35 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1305,17 +1471,21 @@ public Builder clearVerb() { return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1325,18 +1495,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1345,20 +1517,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1366,28 +1539,35 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1397,17 +1577,21 @@ public Builder clearStatusMessage() { return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1415,8 +1599,10 @@ public Builder setStatusMessageBytes( return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
@@ -1425,6 +1611,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1432,6 +1619,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
@@ -1440,17 +1629,20 @@ 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have been cancelled successfully
@@ -1459,6 +1651,7 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1470,18 +1663,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1490,20 +1685,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1511,28 +1707,35 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1542,26 +1745,30 @@ public Builder clearApiVersion() { return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1571,12 +1778,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.OperationMetadata) private static final com.google.cloud.networkconnectivity.v1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.OperationMetadata(); } @@ -1585,27 +1792,27 @@ public static com.google.cloud.networkconnectivity.v1.OperationMetadata getDefau 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1620,6 +1827,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java index f4be0419ee4b..217a088b5a3d 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/common.proto package com.google.cloud.networkconnectivity.v1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have been cancelled successfully
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java similarity index 65% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java index f5db4526d106..a7f89bd714c6 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * A router appliance instance is a Compute Engine virtual machine (VM) instance
  * that acts as a BGP speaker. A router appliance instance is specified by the
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.RouterApplianceInstance}
  */
-public final class RouterApplianceInstance extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RouterApplianceInstance extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.RouterApplianceInstance)
     RouterApplianceInstanceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RouterApplianceInstance.newBuilder() to construct.
   private RouterApplianceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RouterApplianceInstance() {
     virtualMachine_ = "";
     ipAddress_ = "";
@@ -29,38 +47,43 @@ private RouterApplianceInstance() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RouterApplianceInstance();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
+            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class,
+            com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
   }
 
   public static final int VIRTUAL_MACHINE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object virtualMachine_ = "";
   /**
+   *
+   *
    * 
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The virtualMachine. */ @java.lang.Override @@ -69,29 +92,29 @@ public java.lang.String getVirtualMachine() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; } } /** + * + * *
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for virtualMachine. */ @java.lang.Override - public com.google.protobuf.ByteString - getVirtualMachineBytes() { + public com.google.protobuf.ByteString getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -100,14 +123,18 @@ public java.lang.String getVirtualMachine() { } public static final int IP_ADDRESS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object ipAddress_ = ""; /** + * + * *
    * The IP address on the VM to use for peering.
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ @java.lang.Override @@ -116,29 +143,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; } } /** + * + * *
    * The IP address on the VM to use for peering.
    * 
* * 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 { @@ -147,6 +174,7 @@ public java.lang.String getIpAddress() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -158,8 +186,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualMachine_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, virtualMachine_); } @@ -189,17 +216,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.networkconnectivity.v1.RouterApplianceInstance)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other = (com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) obj; + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other = + (com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) obj; - if (!getVirtualMachine() - .equals(other.getVirtualMachine())) return false; - if (!getIpAddress() - .equals(other.getIpAddress())) return false; + if (!getVirtualMachine().equals(other.getVirtualMachine())) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -221,96 +247,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.RouterApplianceInstance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 router appliance instance is a Compute Engine virtual machine (VM) instance
    * that acts as a BGP speaker. A router appliance instance is specified by the
@@ -320,33 +354,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.RouterApplianceInstance}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.RouterApplianceInstance)
       com.google.cloud.networkconnectivity.v1.RouterApplianceInstanceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
+              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.class,
+              com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -357,13 +390,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getDefaultInstanceForType() {
+    public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance
+        getDefaultInstanceForType() {
       return com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance();
     }
 
@@ -378,13 +412,17 @@ public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance buildPartial() {
-      com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result = new com.google.cloud.networkconnectivity.v1.RouterApplianceInstance(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result =
+          new com.google.cloud.networkconnectivity.v1.RouterApplianceInstance(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result) {
+    private void buildPartial0(
+        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.virtualMachine_ = virtualMachine_;
@@ -398,46 +436,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.RouterApplian
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.RouterApplianceInstance)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.RouterApplianceInstance) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other) {
-      if (other == com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.networkconnectivity.v1.RouterApplianceInstance other) {
+      if (other
+          == com.google.cloud.networkconnectivity.v1.RouterApplianceInstance.getDefaultInstance())
+        return this;
       if (!other.getVirtualMachine().isEmpty()) {
         virtualMachine_ = other.virtualMachine_;
         bitField0_ |= 0x00000001;
@@ -474,22 +516,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              virtualMachine_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 26: {
-              ipAddress_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                virtualMachine_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 26:
+              {
+                ipAddress_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -499,22 +544,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object virtualMachine_ = "";
     /**
+     *
+     *
      * 
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The virtualMachine. */ public java.lang.String getVirtualMachine() { java.lang.Object ref = virtualMachine_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; @@ -523,20 +571,21 @@ public java.lang.String getVirtualMachine() { } } /** + * + * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for virtualMachine. */ - public com.google.protobuf.ByteString - getVirtualMachineBytes() { + public com.google.protobuf.ByteString getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -544,28 +593,35 @@ public java.lang.String getVirtualMachine() { } } /** + * + * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @param value The virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachine( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVirtualMachine(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } virtualMachine_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearVirtualMachine() { @@ -575,17 +631,21 @@ public Builder clearVirtualMachine() { return this; } /** + * + * *
      * The URI of the VM.
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachineBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVirtualMachineBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); virtualMachine_ = value; bitField0_ |= 0x00000001; @@ -595,18 +655,20 @@ public Builder setVirtualMachineBytes( private java.lang.Object ipAddress_ = ""; /** + * + * *
      * The IP address on the VM to use for peering.
      * 
* * 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; @@ -615,20 +677,21 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The IP address on the VM to use for peering.
      * 
* * 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 { @@ -636,28 +699,35 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The IP address on the VM to use for peering.
      * 
* * 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(); } + public Builder setIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ipAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The IP address on the VM to use for peering.
      * 
* * string ip_address = 3; + * * @return This builder for chaining. */ public Builder clearIpAddress() { @@ -667,26 +737,30 @@ public Builder clearIpAddress() { return this; } /** + * + * *
      * The IP address on the VM to use for peering.
      * 
* * 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(); } + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ipAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -696,41 +770,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.RouterApplianceInstance) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.RouterApplianceInstance) - private static final com.google.cloud.networkconnectivity.v1.RouterApplianceInstance DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1.RouterApplianceInstance + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.RouterApplianceInstance(); } - public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1.RouterApplianceInstance + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouterApplianceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouterApplianceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -742,9 +818,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1.RouterApplianceInstance + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java similarity index 57% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java index 1ea6f2cf0b21..e9f532da2fd6 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstanceOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface RouterApplianceInstanceOrBuilder extends +public interface RouterApplianceInstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.RouterApplianceInstance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The virtualMachine. */ java.lang.String getVirtualMachine(); /** + * + * *
    * The URI of the VM.
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for virtualMachine. */ - com.google.protobuf.ByteString - getVirtualMachineBytes(); + com.google.protobuf.ByteString getVirtualMachineBytes(); /** + * + * *
    * The IP address on the VM to use for peering.
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ java.lang.String getIpAddress(); /** + * + * *
    * The IP address on the VM to use for peering.
    * 
* * string ip_address = 3; + * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString - getIpAddressBytes(); + com.google.protobuf.ByteString getIpAddressBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java similarity index 66% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java index e5def3cec2cd..1834dbd61aab 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * RoutingVPC contains information about the VPC networks associated
  * with the spokes of a Network Connectivity Center hub.
@@ -11,53 +28,59 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.RoutingVPC}
  */
-public final class RoutingVPC extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RoutingVPC extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.RoutingVPC)
     RoutingVPCOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RoutingVPC.newBuilder() to construct.
   private RoutingVPC(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RoutingVPC() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RoutingVPC();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.RoutingVPC.class, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class);
+            com.google.cloud.networkconnectivity.v1.RoutingVPC.class,
+            com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class);
   }
 
   public static final int URI_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object uri_ = "";
   /**
+   *
+   *
    * 
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return The uri. */ @java.lang.Override @@ -66,29 +89,29 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -99,6 +122,8 @@ public java.lang.String getUri() { public static final int REQUIRED_FOR_NEW_SITE_TO_SITE_DATA_TRANSFER_SPOKES_FIELD_NUMBER = 2; private boolean requiredForNewSiteToSiteDataTransferSpokes_ = false; /** + * + * *
    * Output only. If true, indicates that this VPC network is currently
    * associated with spokes that use the data transfer feature (spokes where the
@@ -107,7 +132,10 @@ public java.lang.String getUri() {
    * most, one VPC network will have this field set to true.
    * 
* - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The requiredForNewSiteToSiteDataTransferSpokes. */ @java.lang.Override @@ -116,6 +144,7 @@ public boolean getRequiredForNewSiteToSiteDataTransferSpokes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,8 +156,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -148,8 +176,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (requiredForNewSiteToSiteDataTransferSpokes_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, requiredForNewSiteToSiteDataTransferSpokes_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 2, requiredForNewSiteToSiteDataTransferSpokes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -159,15 +188,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.networkconnectivity.v1.RoutingVPC)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.RoutingVPC other = (com.google.cloud.networkconnectivity.v1.RoutingVPC) obj; + com.google.cloud.networkconnectivity.v1.RoutingVPC other = + (com.google.cloud.networkconnectivity.v1.RoutingVPC) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (getRequiredForNewSiteToSiteDataTransferSpokes() != other.getRequiredForNewSiteToSiteDataTransferSpokes()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -184,104 +213,113 @@ public int hashCode() { hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + REQUIRED_FOR_NEW_SITE_TO_SITE_DATA_TRANSFER_SPOKES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequiredForNewSiteToSiteDataTransferSpokes()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getRequiredForNewSiteToSiteDataTransferSpokes()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.RoutingVPC parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.RoutingVPC prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * RoutingVPC contains information about the VPC networks associated
    * with the spokes of a Network Connectivity Center hub.
@@ -289,33 +327,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.RoutingVPC}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.RoutingVPC)
       com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.RoutingVPC.class, com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class);
+              com.google.cloud.networkconnectivity.v1.RoutingVPC.class,
+              com.google.cloud.networkconnectivity.v1.RoutingVPC.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.RoutingVPC.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -326,9 +363,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor;
     }
 
     @java.lang.Override
@@ -347,8 +384,11 @@ public com.google.cloud.networkconnectivity.v1.RoutingVPC build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.RoutingVPC buildPartial() {
-      com.google.cloud.networkconnectivity.v1.RoutingVPC result = new com.google.cloud.networkconnectivity.v1.RoutingVPC(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.RoutingVPC result =
+          new com.google.cloud.networkconnectivity.v1.RoutingVPC(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -359,7 +399,8 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.RoutingVPC re
         result.uri_ = uri_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.requiredForNewSiteToSiteDataTransferSpokes_ = requiredForNewSiteToSiteDataTransferSpokes_;
+        result.requiredForNewSiteToSiteDataTransferSpokes_ =
+            requiredForNewSiteToSiteDataTransferSpokes_;
       }
     }
 
@@ -367,38 +408,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.RoutingVPC re
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.RoutingVPC) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.RoutingVPC)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.RoutingVPC) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -406,14 +448,16 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.RoutingVPC other) {
-      if (other == com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.RoutingVPC.getDefaultInstance())
+        return this;
       if (!other.getUri().isEmpty()) {
         uri_ = other.uri_;
         bitField0_ |= 0x00000001;
         onChanged();
       }
       if (other.getRequiredForNewSiteToSiteDataTransferSpokes() != false) {
-        setRequiredForNewSiteToSiteDataTransferSpokes(other.getRequiredForNewSiteToSiteDataTransferSpokes());
+        setRequiredForNewSiteToSiteDataTransferSpokes(
+            other.getRequiredForNewSiteToSiteDataTransferSpokes());
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -441,22 +485,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              uri_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              requiredForNewSiteToSiteDataTransferSpokes_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                uri_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                requiredForNewSiteToSiteDataTransferSpokes_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -466,22 +513,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object uri_ = "";
     /**
+     *
+     *
      * 
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -490,20 +540,21 @@ public java.lang.String getUri() { } } /** + * + * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -511,28 +562,35 @@ public java.lang.String getUri() { } } /** + * + * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearUri() { @@ -542,17 +600,21 @@ public Builder clearUri() { return this; } /** + * + * *
      * The URI of the VPC network.
      * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000001; @@ -560,8 +622,10 @@ public Builder setUriBytes( return this; } - private boolean requiredForNewSiteToSiteDataTransferSpokes_ ; + private boolean requiredForNewSiteToSiteDataTransferSpokes_; /** + * + * *
      * Output only. If true, indicates that this VPC network is currently
      * associated with spokes that use the data transfer feature (spokes where the
@@ -570,7 +634,10 @@ public Builder setUriBytes(
      * most, one VPC network will have this field set to true.
      * 
* - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The requiredForNewSiteToSiteDataTransferSpokes. */ @java.lang.Override @@ -578,6 +645,8 @@ public boolean getRequiredForNewSiteToSiteDataTransferSpokes() { return requiredForNewSiteToSiteDataTransferSpokes_; } /** + * + * *
      * Output only. If true, indicates that this VPC network is currently
      * associated with spokes that use the data transfer feature (spokes where the
@@ -586,18 +655,23 @@ public boolean getRequiredForNewSiteToSiteDataTransferSpokes() {
      * most, one VPC network will have this field set to true.
      * 
* - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The requiredForNewSiteToSiteDataTransferSpokes to set. * @return This builder for chaining. */ public Builder setRequiredForNewSiteToSiteDataTransferSpokes(boolean value) { - + requiredForNewSiteToSiteDataTransferSpokes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. If true, indicates that this VPC network is currently
      * associated with spokes that use the data transfer feature (spokes where the
@@ -606,7 +680,10 @@ public Builder setRequiredForNewSiteToSiteDataTransferSpokes(boolean value) {
      * most, one VPC network will have this field set to true.
      * 
* - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearRequiredForNewSiteToSiteDataTransferSpokes() { @@ -615,9 +692,9 @@ public Builder clearRequiredForNewSiteToSiteDataTransferSpokes() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,12 +704,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.RoutingVPC) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.RoutingVPC) private static final com.google.cloud.networkconnectivity.v1.RoutingVPC DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.RoutingVPC(); } @@ -641,27 +718,27 @@ public static com.google.cloud.networkconnectivity.v1.RoutingVPC getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RoutingVPC parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoutingVPC parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -676,6 +753,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.RoutingVPC getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java similarity index 58% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java index f14b5b005d03..51cdebc1c0c2 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface RoutingVPCOrBuilder extends +public interface RoutingVPCOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.RoutingVPC) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * The URI of the VPC network.
    * 
* * string uri = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * Output only. If true, indicates that this VPC network is currently
    * associated with spokes that use the data transfer feature (spokes where the
@@ -36,7 +59,10 @@ public interface RoutingVPCOrBuilder extends
    * most, one VPC network will have this field set to true.
    * 
* - * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool required_for_new_site_to_site_data_transfer_spokes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The requiredForNewSiteToSiteDataTransferSpokes. */ boolean getRequiredForNewSiteToSiteDataTransferSpokes(); diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java similarity index 63% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java index cc0e0a96cb32..f583d301160c 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * A Network Connectivity Center spoke represents a connection between your
  * Google Cloud network resources and a non-Google-Cloud network.
@@ -16,15 +33,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.Spoke}
  */
-public final class Spoke extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Spoke extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.Spoke)
     SpokeOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Spoke.newBuilder() to construct.
   private Spoke(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Spoke() {
     name_ = "";
     description_ = "";
@@ -35,45 +53,48 @@ private Spoke() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Spoke();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.Spoke.class, com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
+            com.google.cloud.networkconnectivity.v1.Spoke.class,
+            com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -81,6 +102,7 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -89,14 +111,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; } } /** + * + * *
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -104,16 +127,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -124,11 +146,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the spoke was created.
    * 
* - * .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 @@ -136,11 +162,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the spoke was created.
    * 
* - * .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 @@ -148,11 +178,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the spoke was created.
    * 
* - * .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() { @@ -162,11 +195,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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 @@ -174,11 +211,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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 @@ -186,11 +227,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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() { @@ -198,32 +242,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_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.networkconnectivity.v1.HubProto + .internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - 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_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -233,20 +279,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 4;
    */
   @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();
   }
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -260,6 +307,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -269,17 +318,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      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;
   }
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -289,11 +340,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new 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();
     }
@@ -301,14 +352,18 @@ public java.lang.String getLabelsOrThrow(
   }
 
   public static final int DESCRIPTION_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object description_ = "";
   /**
+   *
+   *
    * 
    * An optional description of the spoke.
    * 
* * string description = 5; + * * @return The description. */ @java.lang.Override @@ -317,29 +372,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * An optional description of the spoke.
    * 
* * string description = 5; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -348,14 +403,20 @@ public java.lang.String getDescription() { } public static final int HUB_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object hub_ = ""; /** + * + * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The hub. */ @java.lang.Override @@ -364,29 +425,31 @@ public java.lang.String getHub() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; } } /** + * + * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for hub. */ @java.lang.Override - public com.google.protobuf.ByteString - getHubBytes() { + public com.google.protobuf.ByteString getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hub_ = b; return b; } else { @@ -397,11 +460,14 @@ public java.lang.String getHub() { public static final int LINKED_VPN_TUNNELS_FIELD_NUMBER = 17; private com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linkedVpnTunnels_; /** + * + * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; + * * @return Whether the linkedVpnTunnels field is set. */ @java.lang.Override @@ -409,18 +475,25 @@ public boolean hasLinkedVpnTunnels() { return linkedVpnTunnels_ != null; } /** + * + * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; + * * @return The linkedVpnTunnels. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunnels() { - return linkedVpnTunnels_ == null ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; + return linkedVpnTunnels_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() + : linkedVpnTunnels_; } /** + * + * *
    * VPN tunnels that are associated with the spoke.
    * 
@@ -428,18 +501,27 @@ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunn * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLinkedVpnTunnelsOrBuilder() { - return linkedVpnTunnels_ == null ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder + getLinkedVpnTunnelsOrBuilder() { + return linkedVpnTunnels_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() + : linkedVpnTunnels_; } public static final int LINKED_INTERCONNECT_ATTACHMENTS_FIELD_NUMBER = 18; - private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linkedInterconnectAttachments_; + private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + linkedInterconnectAttachments_; /** + * + * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * * @return Whether the linkedInterconnectAttachments field is set. */ @java.lang.Override @@ -447,37 +529,58 @@ public boolean hasLinkedInterconnectAttachments() { return linkedInterconnectAttachments_ != null; } /** + * + * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * * @return The linkedInterconnectAttachments. */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getLinkedInterconnectAttachments() { - return linkedInterconnectAttachments_ == null ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + getLinkedInterconnectAttachments() { + return linkedInterconnectAttachments_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() + : linkedInterconnectAttachments_; } /** + * + * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder getLinkedInterconnectAttachmentsOrBuilder() { - return linkedInterconnectAttachments_ == null ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder + getLinkedInterconnectAttachmentsOrBuilder() { + return linkedInterconnectAttachments_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() + : linkedInterconnectAttachments_; } public static final int LINKED_ROUTER_APPLIANCE_INSTANCES_FIELD_NUMBER = 19; - private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linkedRouterApplianceInstances_; + private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + linkedRouterApplianceInstances_; /** + * + * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * * @return Whether the linkedRouterApplianceInstances field is set. */ @java.lang.Override @@ -485,33 +588,53 @@ public boolean hasLinkedRouterApplianceInstances() { return linkedRouterApplianceInstances_ != null; } /** + * + * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * * @return The linkedRouterApplianceInstances. */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getLinkedRouterApplianceInstances() { - return linkedRouterApplianceInstances_ == null ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + getLinkedRouterApplianceInstances() { + return linkedRouterApplianceInstances_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + .getDefaultInstance() + : linkedRouterApplianceInstances_; } /** + * + * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder getLinkedRouterApplianceInstancesOrBuilder() { - return linkedRouterApplianceInstances_ == null ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder + getLinkedRouterApplianceInstancesOrBuilder() { + return linkedRouterApplianceInstances_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + .getDefaultInstance() + : linkedRouterApplianceInstances_; } public static final int UNIQUE_ID_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** + * + * *
    * Output only. The Google-generated UUID for the spoke. This value is unique
    * across all spoke resources. If a spoke is deleted and another with the same
@@ -519,6 +642,7 @@ public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrB
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ @java.lang.Override @@ -527,14 +651,15 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** + * + * *
    * Output only. The Google-generated UUID for the spoke. This value is unique
    * across all spoke resources. If a spoke is deleted and another with the same
@@ -542,16 +667,15 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -562,30 +686,44 @@ public java.lang.String getUniqueId() { public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** + * + * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + @java.lang.Override + public com.google.cloud.networkconnectivity.v1.State getState() { + com.google.cloud.networkconnectivity.v1.State result = + com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -597,8 +735,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -608,12 +745,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -648,22 +781,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -675,20 +806,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, uniqueId_); } if (state_ != com.google.cloud.networkconnectivity.v1.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); } if (linkedVpnTunnels_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getLinkedVpnTunnels()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getLinkedVpnTunnels()); } if (linkedInterconnectAttachments_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getLinkedInterconnectAttachments()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, getLinkedInterconnectAttachments()); } if (linkedRouterApplianceInstances_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getLinkedRouterApplianceInstances()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 19, getLinkedRouterApplianceInstances()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -698,48 +829,43 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.networkconnectivity.v1.Spoke)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.Spoke other = (com.google.cloud.networkconnectivity.v1.Spoke) obj; + com.google.cloud.networkconnectivity.v1.Spoke other = + (com.google.cloud.networkconnectivity.v1.Spoke) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getHub() - .equals(other.getHub())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getHub().equals(other.getHub())) return false; if (hasLinkedVpnTunnels() != other.hasLinkedVpnTunnels()) return false; if (hasLinkedVpnTunnels()) { - if (!getLinkedVpnTunnels() - .equals(other.getLinkedVpnTunnels())) return false; + if (!getLinkedVpnTunnels().equals(other.getLinkedVpnTunnels())) return false; } - if (hasLinkedInterconnectAttachments() != other.hasLinkedInterconnectAttachments()) return false; + if (hasLinkedInterconnectAttachments() != other.hasLinkedInterconnectAttachments()) + return false; if (hasLinkedInterconnectAttachments()) { - if (!getLinkedInterconnectAttachments() - .equals(other.getLinkedInterconnectAttachments())) return false; + if (!getLinkedInterconnectAttachments().equals(other.getLinkedInterconnectAttachments())) + return false; } - if (hasLinkedRouterApplianceInstances() != other.hasLinkedRouterApplianceInstances()) return false; + if (hasLinkedRouterApplianceInstances() != other.hasLinkedRouterApplianceInstances()) + return false; if (hasLinkedRouterApplianceInstances()) { - if (!getLinkedRouterApplianceInstances() - .equals(other.getLinkedRouterApplianceInstances())) return false; + if (!getLinkedRouterApplianceInstances().equals(other.getLinkedRouterApplianceInstances())) + return false; } - if (!getUniqueId() - .equals(other.getUniqueId())) return false; + if (!getUniqueId().equals(other.getUniqueId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -791,97 +917,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.Spoke 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.networkconnectivity.v1.Spoke parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.Spoke parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.Spoke parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.Spoke parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.Spoke prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Connectivity Center spoke represents a connection between your
    * Google Cloud network resources and a non-Google-Cloud network.
@@ -894,55 +1027,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.Spoke}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.Spoke)
       com.google.cloud.networkconnectivity.v1.SpokeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.Spoke.class, com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
+              com.google.cloud.networkconnectivity.v1.Spoke.class,
+              com.google.cloud.networkconnectivity.v1.Spoke.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.Spoke.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -982,9 +1112,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor;
     }
 
     @java.lang.Override
@@ -1003,8 +1133,11 @@ public com.google.cloud.networkconnectivity.v1.Spoke build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.Spoke buildPartial() {
-      com.google.cloud.networkconnectivity.v1.Spoke result = new com.google.cloud.networkconnectivity.v1.Spoke(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.Spoke result =
+          new com.google.cloud.networkconnectivity.v1.Spoke(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1015,14 +1148,10 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result)
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -1035,19 +1164,20 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result)
         result.hub_ = hub_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.linkedVpnTunnels_ = linkedVpnTunnelsBuilder_ == null
-            ? linkedVpnTunnels_
-            : linkedVpnTunnelsBuilder_.build();
+        result.linkedVpnTunnels_ =
+            linkedVpnTunnelsBuilder_ == null ? linkedVpnTunnels_ : linkedVpnTunnelsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.linkedInterconnectAttachments_ = linkedInterconnectAttachmentsBuilder_ == null
-            ? linkedInterconnectAttachments_
-            : linkedInterconnectAttachmentsBuilder_.build();
+        result.linkedInterconnectAttachments_ =
+            linkedInterconnectAttachmentsBuilder_ == null
+                ? linkedInterconnectAttachments_
+                : linkedInterconnectAttachmentsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.linkedRouterApplianceInstances_ = linkedRouterApplianceInstancesBuilder_ == null
-            ? linkedRouterApplianceInstances_
-            : linkedRouterApplianceInstancesBuilder_.build();
+        result.linkedRouterApplianceInstances_ =
+            linkedRouterApplianceInstancesBuilder_ == null
+                ? linkedRouterApplianceInstances_
+                : linkedRouterApplianceInstancesBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.uniqueId_ = uniqueId_;
@@ -1061,38 +1191,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.Spoke result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.Spoke) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.Spoke)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.Spoke) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1112,8 +1243,7 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.Spoke other) {
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -1168,81 +1298,89 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              hub_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 90: {
-              uniqueId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 90
-            case 120: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 120
-            case 138: {
-              input.readMessage(
-                  getLinkedVpnTunnelsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 138
-            case 146: {
-              input.readMessage(
-                  getLinkedInterconnectAttachmentsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 146
-            case 154: {
-              input.readMessage(
-                  getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 154
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                hub_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 90:
+              {
+                uniqueId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 90
+            case 120:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 120
+            case 138:
+              {
+                input.readMessage(
+                    getLinkedVpnTunnelsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 138
+            case 146:
+              {
+                input.readMessage(
+                    getLinkedInterconnectAttachmentsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 146
+            case 154:
+              {
+                input.readMessage(
+                    getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 154
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1252,10 +1390,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1263,13 +1404,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -1278,6 +1419,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1285,15 +1428,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -1301,6 +1443,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1308,18 +1452,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1327,6 +1475,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1336,6 +1485,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The name of the spoke. Spoke names must be unique. They use the
      * following form:
@@ -1343,12 +1494,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1358,39 +1511,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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) { @@ -1406,14 +1578,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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(); } else { @@ -1424,17 +1599,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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 (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1447,11 +1626,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1464,11 +1647,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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() { bitField0_ |= 0x00000002; @@ -1476,36 +1663,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the spoke was created.
      * 
* - * .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_; @@ -1513,39 +1712,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .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) { @@ -1561,14 +1779,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .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(); } else { @@ -1579,17 +1800,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .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 (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1602,11 +1827,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1619,11 +1848,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .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() { bitField0_ |= 0x00000004; @@ -1631,56 +1864,66 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time the spoke was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1689,10 +1932,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1702,20 +1948,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 4;
      */
     @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();
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1729,6 +1976,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1738,17 +1987,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        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;
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1758,23 +2009,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new 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();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000008);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1783,23 +2036,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    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() {
       bitField0_ |= 0x00000008;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1808,17 +2060,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4;
      */
-    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);
+    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);
       bitField0_ |= 0x00000008;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional labels in key:value format. For more information about labels, see
      * [Requirements for
@@ -1827,28 +2082,28 @@ public Builder putLabels(
      *
      * map<string, string> labels = 4;
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000008;
       return this;
     }
 
     private java.lang.Object description_ = "";
     /**
+     *
+     *
      * 
      * An optional description of the spoke.
      * 
* * string description = 5; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1857,20 +2112,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * An optional description of the spoke.
      * 
* * string description = 5; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1878,28 +2134,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * An optional description of the spoke.
      * 
* * string description = 5; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * An optional description of the spoke.
      * 
* * string description = 5; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1909,17 +2172,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * An optional description of the spoke.
      * 
* * string description = 5; + * * @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(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -1929,18 +2196,22 @@ public Builder setDescriptionBytes( private java.lang.Object hub_ = ""; /** + * + * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The hub. */ public java.lang.String getHub() { java.lang.Object ref = hub_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; @@ -1949,20 +2220,23 @@ public java.lang.String getHub() { } } /** + * + * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for hub. */ - public com.google.protobuf.ByteString - getHubBytes() { + public com.google.protobuf.ByteString getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hub_ = b; return b; } else { @@ -1970,28 +2244,39 @@ public java.lang.String getHub() { } } /** + * + * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @param value The hub to set. * @return This builder for chaining. */ - public Builder setHub( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHub(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hub_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearHub() { @@ -2001,17 +2286,23 @@ public Builder clearHub() { return this; } /** + * + * *
      * Immutable. The name of the hub that this spoke is attached to.
      * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for hub to set. * @return This builder for chaining. */ - public Builder setHubBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHubBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hub_ = value; bitField0_ |= 0x00000020; @@ -2021,41 +2312,55 @@ public Builder setHubBytes( private com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels linkedVpnTunnels_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> linkedVpnTunnelsBuilder_; + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> + linkedVpnTunnelsBuilder_; /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; + * * @return Whether the linkedVpnTunnels field is set. */ public boolean hasLinkedVpnTunnels() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; + * * @return The linkedVpnTunnels. */ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunnels() { if (linkedVpnTunnelsBuilder_ == null) { - return linkedVpnTunnels_ == null ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; + return linkedVpnTunnels_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() + : linkedVpnTunnels_; } else { return linkedVpnTunnelsBuilder_.getMessage(); } } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public Builder setLinkedVpnTunnels(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { + public Builder setLinkedVpnTunnels( + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { if (linkedVpnTunnelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2069,6 +2374,8 @@ public Builder setLinkedVpnTunnels(com.google.cloud.networkconnectivity.v1.Linke return this; } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
@@ -2087,17 +2394,21 @@ public Builder setLinkedVpnTunnels( return this; } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public Builder mergeLinkedVpnTunnels(com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { + public Builder mergeLinkedVpnTunnels( + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels value) { if (linkedVpnTunnelsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - linkedVpnTunnels_ != null && - linkedVpnTunnels_ != com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && linkedVpnTunnels_ != null + && linkedVpnTunnels_ + != com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance()) { getLinkedVpnTunnelsBuilder().mergeFrom(value); } else { linkedVpnTunnels_ = value; @@ -2110,6 +2421,8 @@ public Builder mergeLinkedVpnTunnels(com.google.cloud.networkconnectivity.v1.Lin return this; } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
@@ -2127,33 +2440,42 @@ public Builder clearLinkedVpnTunnels() { return this; } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder getLinkedVpnTunnelsBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder + getLinkedVpnTunnelsBuilder() { bitField0_ |= 0x00000040; onChanged(); return getLinkedVpnTunnelsFieldBuilder().getBuilder(); } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ - public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLinkedVpnTunnelsOrBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder + getLinkedVpnTunnelsOrBuilder() { if (linkedVpnTunnelsBuilder_ != null) { return linkedVpnTunnelsBuilder_.getMessageOrBuilder(); } else { - return linkedVpnTunnels_ == null ? - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() : linkedVpnTunnels_; + return linkedVpnTunnels_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.getDefaultInstance() + : linkedVpnTunnels_; } } /** + * + * *
      * VPN tunnels that are associated with the spoke.
      * 
@@ -2161,56 +2483,82 @@ public com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLink * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder> getLinkedVpnTunnelsFieldBuilder() { if (linkedVpnTunnelsBuilder_ == null) { - linkedVpnTunnelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder>( - getLinkedVpnTunnels(), - getParentForChildren(), - isClean()); + linkedVpnTunnelsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels, + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels.Builder, + com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder>( + getLinkedVpnTunnels(), getParentForChildren(), isClean()); linkedVpnTunnels_ = null; } return linkedVpnTunnelsBuilder_; } - private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linkedInterconnectAttachments_; + private com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + linkedInterconnectAttachments_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> linkedInterconnectAttachmentsBuilder_; + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> + linkedInterconnectAttachmentsBuilder_; /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * * @return Whether the linkedInterconnectAttachments field is set. */ public boolean hasLinkedInterconnectAttachments() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * * @return The linkedInterconnectAttachments. */ - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getLinkedInterconnectAttachments() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + getLinkedInterconnectAttachments() { if (linkedInterconnectAttachmentsBuilder_ == null) { - return linkedInterconnectAttachments_ == null ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; + return linkedInterconnectAttachments_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + .getDefaultInstance() + : linkedInterconnectAttachments_; } else { return linkedInterconnectAttachmentsBuilder_.getMessage(); } } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ - public Builder setLinkedInterconnectAttachments(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { + public Builder setLinkedInterconnectAttachments( + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { if (linkedInterconnectAttachmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2224,14 +2572,19 @@ public Builder setLinkedInterconnectAttachments(com.google.cloud.networkconnecti return this; } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ public Builder setLinkedInterconnectAttachments( - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder builderForValue) { + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder + builderForValue) { if (linkedInterconnectAttachmentsBuilder_ == null) { linkedInterconnectAttachments_ = builderForValue.build(); } else { @@ -2242,17 +2595,24 @@ public Builder setLinkedInterconnectAttachments( return this; } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ - public Builder mergeLinkedInterconnectAttachments(com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { + public Builder mergeLinkedInterconnectAttachments( + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments value) { if (linkedInterconnectAttachmentsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - linkedInterconnectAttachments_ != null && - linkedInterconnectAttachments_ != com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && linkedInterconnectAttachments_ != null + && linkedInterconnectAttachments_ + != com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + .getDefaultInstance()) { getLinkedInterconnectAttachmentsBuilder().mergeFrom(value); } else { linkedInterconnectAttachments_ = value; @@ -2265,11 +2625,15 @@ public Builder mergeLinkedInterconnectAttachments(com.google.cloud.networkconnec return this; } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ public Builder clearLinkedInterconnectAttachments() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2282,90 +2646,132 @@ public Builder clearLinkedInterconnectAttachments() { return this; } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder getLinkedInterconnectAttachmentsBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder + getLinkedInterconnectAttachmentsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getLinkedInterconnectAttachmentsFieldBuilder().getBuilder(); } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ - public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder getLinkedInterconnectAttachmentsOrBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder + getLinkedInterconnectAttachmentsOrBuilder() { if (linkedInterconnectAttachmentsBuilder_ != null) { return linkedInterconnectAttachmentsBuilder_.getMessageOrBuilder(); } else { - return linkedInterconnectAttachments_ == null ? - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.getDefaultInstance() : linkedInterconnectAttachments_; + return linkedInterconnectAttachments_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + .getDefaultInstance() + : linkedInterconnectAttachments_; } } /** + * + * *
      * VLAN attachments that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder> getLinkedInterconnectAttachmentsFieldBuilder() { if (linkedInterconnectAttachmentsBuilder_ == null) { - linkedInterconnectAttachmentsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder>( - getLinkedInterconnectAttachments(), - getParentForChildren(), - isClean()); + linkedInterconnectAttachmentsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments, + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments.Builder, + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder>( + getLinkedInterconnectAttachments(), getParentForChildren(), isClean()); linkedInterconnectAttachments_ = null; } return linkedInterconnectAttachmentsBuilder_; } - private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linkedRouterApplianceInstances_; + private com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + linkedRouterApplianceInstances_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> linkedRouterApplianceInstancesBuilder_; + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> + linkedRouterApplianceInstancesBuilder_; /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * * @return Whether the linkedRouterApplianceInstances field is set. */ public boolean hasLinkedRouterApplianceInstances() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * * @return The linkedRouterApplianceInstances. */ - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getLinkedRouterApplianceInstances() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + getLinkedRouterApplianceInstances() { if (linkedRouterApplianceInstancesBuilder_ == null) { - return linkedRouterApplianceInstances_ == null ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; + return linkedRouterApplianceInstances_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + .getDefaultInstance() + : linkedRouterApplianceInstances_; } else { return linkedRouterApplianceInstancesBuilder_.getMessage(); } } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ - public Builder setLinkedRouterApplianceInstances(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { + public Builder setLinkedRouterApplianceInstances( + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { if (linkedRouterApplianceInstancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2379,14 +2785,19 @@ public Builder setLinkedRouterApplianceInstances(com.google.cloud.networkconnect return this; } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ public Builder setLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder builderForValue) { + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder + builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { linkedRouterApplianceInstances_ = builderForValue.build(); } else { @@ -2397,17 +2808,24 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ - public Builder mergeLinkedRouterApplianceInstances(com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { + public Builder mergeLinkedRouterApplianceInstances( + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances value) { if (linkedRouterApplianceInstancesBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - linkedRouterApplianceInstances_ != null && - linkedRouterApplianceInstances_ != com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && linkedRouterApplianceInstances_ != null + && linkedRouterApplianceInstances_ + != com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + .getDefaultInstance()) { getLinkedRouterApplianceInstancesBuilder().mergeFrom(value); } else { linkedRouterApplianceInstances_ = value; @@ -2420,11 +2838,15 @@ public Builder mergeLinkedRouterApplianceInstances(com.google.cloud.networkconne return this; } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ public Builder clearLinkedRouterApplianceInstances() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2437,48 +2859,67 @@ public Builder clearLinkedRouterApplianceInstances() { return this; } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder getLinkedRouterApplianceInstancesBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder + getLinkedRouterApplianceInstancesBuilder() { bitField0_ |= 0x00000100; onChanged(); return getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(); } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ - public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder getLinkedRouterApplianceInstancesOrBuilder() { + public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder + getLinkedRouterApplianceInstancesOrBuilder() { if (linkedRouterApplianceInstancesBuilder_ != null) { return linkedRouterApplianceInstancesBuilder_.getMessageOrBuilder(); } else { - return linkedRouterApplianceInstances_ == null ? - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.getDefaultInstance() : linkedRouterApplianceInstances_; + return linkedRouterApplianceInstances_ == null + ? com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + .getDefaultInstance() + : linkedRouterApplianceInstances_; } } /** + * + * *
      * Router appliance instances that are associated with the spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder> getLinkedRouterApplianceInstancesFieldBuilder() { if (linkedRouterApplianceInstancesBuilder_ == null) { - linkedRouterApplianceInstancesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder>( - getLinkedRouterApplianceInstances(), - getParentForChildren(), - isClean()); + linkedRouterApplianceInstancesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances, + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances.Builder, + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder>( + getLinkedRouterApplianceInstances(), getParentForChildren(), isClean()); linkedRouterApplianceInstances_ = null; } return linkedRouterApplianceInstancesBuilder_; @@ -2486,6 +2927,8 @@ public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrB private java.lang.Object uniqueId_ = ""; /** + * + * *
      * Output only. The Google-generated UUID for the spoke. This value is unique
      * across all spoke resources. If a spoke is deleted and another with the same
@@ -2493,13 +2936,13 @@ public com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrB
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -2508,6 +2951,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. The Google-generated UUID for the spoke. This value is unique
      * across all spoke resources. If a spoke is deleted and another with the same
@@ -2515,15 +2960,14 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -2531,6 +2975,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. The Google-generated UUID for the spoke. This value is unique
      * across all spoke resources. If a spoke is deleted and another with the same
@@ -2538,18 +2984,22 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uniqueId_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Output only. The Google-generated UUID for the spoke. This value is unique
      * across all spoke resources. If a spoke is deleted and another with the same
@@ -2557,6 +3007,7 @@ public Builder setUniqueId(
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -2566,6 +3017,8 @@ public Builder clearUniqueId() { return this; } /** + * + * *
      * Output only. The Google-generated UUID for the spoke. This value is unique
      * across all spoke resources. If a spoke is deleted and another with the same
@@ -2573,12 +3026,14 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000200; @@ -2588,22 +3043,33 @@ public Builder setUniqueIdBytes( private int state_ = 0; /** + * + * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2614,24 +3080,35 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.State getState() { - com.google.cloud.networkconnectivity.v1.State result = com.google.cloud.networkconnectivity.v1.State.forNumber(state_); + com.google.cloud.networkconnectivity.v1.State result = + com.google.cloud.networkconnectivity.v1.State.forNumber(state_); return result == null ? com.google.cloud.networkconnectivity.v1.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2645,11 +3122,16 @@ public Builder setState(com.google.cloud.networkconnectivity.v1.State value) { return this; } /** + * + * *
      * Output only. The current lifecycle state of this spoke.
      * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2658,9 +3140,9 @@ public Builder clearState() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2670,12 +3152,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.Spoke) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.Spoke) private static final com.google.cloud.networkconnectivity.v1.Spoke DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.Spoke(); } @@ -2684,27 +3166,27 @@ public static com.google.cloud.networkconnectivity.v1.Spoke getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Spoke parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Spoke parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2719,6 +3201,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.Spoke getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java similarity index 69% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java index bed544f6a0a5..7447ac5ef375 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface SpokeOrBuilder extends +public interface SpokeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.Spoke) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -15,10 +33,13 @@ public interface SpokeOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Immutable. The name of the spoke. Spoke names must be unique. They use the
    * following form:
@@ -26,66 +47,90 @@ public interface SpokeOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The time the spoke was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the spoke was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the spoke was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the spoke was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time the spoke was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time the spoke was last updated.
    * 
* - * .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(); /** + * + * *
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -96,6 +141,8 @@ public interface SpokeOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -104,15 +151,13 @@ public interface SpokeOrBuilder extends
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -121,9 +166,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -133,11 +179,13 @@ boolean containsLabels(
    * map<string, string> labels = 4;
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional labels in key:value format. For more information about labels, see
    * [Requirements for
@@ -146,68 +194,89 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * An optional description of the spoke.
    * 
* * string description = 5; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * An optional description of the spoke.
    * 
* * string description = 5; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The hub. */ java.lang.String getHub(); /** + * + * *
    * Immutable. The name of the hub that this spoke is attached to.
    * 
* - * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string hub = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for hub. */ - com.google.protobuf.ByteString - getHubBytes(); + com.google.protobuf.ByteString getHubBytes(); /** + * + * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; + * * @return Whether the linkedVpnTunnels field is set. */ boolean hasLinkedVpnTunnels(); /** + * + * *
    * VPN tunnels that are associated with the spoke.
    * 
* * .google.cloud.networkconnectivity.v1.LinkedVpnTunnels linked_vpn_tunnels = 17; + * * @return The linkedVpnTunnels. */ com.google.cloud.networkconnectivity.v1.LinkedVpnTunnels getLinkedVpnTunnels(); /** + * + * *
    * VPN tunnels that are associated with the spoke.
    * 
@@ -217,60 +286,94 @@ java.lang.String getLabelsOrThrow( com.google.cloud.networkconnectivity.v1.LinkedVpnTunnelsOrBuilder getLinkedVpnTunnelsOrBuilder(); /** + * + * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * * @return Whether the linkedInterconnectAttachments field is set. */ boolean hasLinkedInterconnectAttachments(); /** + * + * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * * @return The linkedInterconnectAttachments. */ - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments getLinkedInterconnectAttachments(); + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments + getLinkedInterconnectAttachments(); /** + * + * *
    * VLAN attachments that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * + * .google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments linked_interconnect_attachments = 18; + * */ - com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder getLinkedInterconnectAttachmentsOrBuilder(); + com.google.cloud.networkconnectivity.v1.LinkedInterconnectAttachmentsOrBuilder + getLinkedInterconnectAttachmentsOrBuilder(); /** + * + * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * * @return Whether the linkedRouterApplianceInstances field is set. */ boolean hasLinkedRouterApplianceInstances(); /** + * + * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * * @return The linkedRouterApplianceInstances. */ - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances getLinkedRouterApplianceInstances(); + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances + getLinkedRouterApplianceInstances(); /** + * + * *
    * Router appliance instances that are associated with the spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * + * .google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances linked_router_appliance_instances = 19; + * */ - com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder getLinkedRouterApplianceInstancesOrBuilder(); + com.google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstancesOrBuilder + getLinkedRouterApplianceInstancesOrBuilder(); /** + * + * *
    * Output only. The Google-generated UUID for the spoke. This value is unique
    * across all spoke resources. If a spoke is deleted and another with the same
@@ -278,10 +381,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ java.lang.String getUniqueId(); /** + * + * *
    * Output only. The Google-generated UUID for the spoke. This value is unique
    * across all spoke resources. If a spoke is deleted and another with the same
@@ -289,26 +395,36 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString - getUniqueIdBytes(); + com.google.protobuf.ByteString getUniqueIdBytes(); /** + * + * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current lifecycle state of this spoke.
    * 
* - * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.networkconnectivity.v1.State getState(); diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java similarity index 68% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java index ec2fa2252a84..1949da5a76c0 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/State.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * The State enum represents the lifecycle stage of a Network Connectivity
  * Center resource.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.networkconnectivity.v1.State}
  */
-public enum State
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum State implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * No state information available
    * 
@@ -22,6 +40,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
    * The resource's create operation is in progress
    * 
@@ -30,6 +50,8 @@ public enum State */ CREATING(1), /** + * + * *
    * The resource is active
    * 
@@ -38,6 +60,8 @@ public enum State */ ACTIVE(2), /** + * + * *
    * The resource's Delete operation is in progress
    * 
@@ -46,6 +70,8 @@ public enum State */ DELETING(3), /** + * + * *
    * The resource's Update operation is in progress
    * 
@@ -57,6 +83,8 @@ public enum State ; /** + * + * *
    * No state information available
    * 
@@ -65,6 +93,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The resource's create operation is in progress
    * 
@@ -73,6 +103,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
    * The resource is active
    * 
@@ -81,6 +113,8 @@ public enum State */ public static final int ACTIVE_VALUE = 2; /** + * + * *
    * The resource's Delete operation is in progress
    * 
@@ -89,6 +123,8 @@ public enum State */ public static final int DELETING_VALUE = 3; /** + * + * *
    * The resource's Update operation is in progress
    * 
@@ -97,7 +133,6 @@ public enum State */ public static final int UPDATING_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -122,51 +157,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 ACTIVE; - case 3: return DELETING; - case 6: return UPDATING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + case 3: + return DELETING; + case 6: + return UPDATING; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.networkconnectivity.v1.HubProto.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; @@ -182,4 +219,3 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1.State) } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java similarity index 72% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java index a48962bf885f..f082dcb6dd84 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Request for
  * [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub]
@@ -12,47 +29,51 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateHubRequest}
  */
-public final class UpdateHubRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateHubRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.UpdateHubRequest)
     UpdateHubRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateHubRequest.newBuilder() to construct.
   private UpdateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UpdateHubRequest() {
     requestId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateHubRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class,
+            com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class);
   }
 
   public static final int UPDATE_MASK_FIELD_NUMBER = 1;
   private com.google.protobuf.FieldMask updateMask_;
   /**
+   *
+   *
    * 
    * Optional. In the case of an update to an existing hub, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -61,7 +82,9 @@ protected java.lang.Object newInstance(
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -69,6 +92,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. In the case of an update to an existing hub, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -77,7 +102,9 @@ public boolean hasUpdateMask() {
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -85,6 +112,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. In the case of an update to an existing hub, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -93,7 +122,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -103,11 +133,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int HUB_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1.Hub hub_; /** + * + * *
    * Required. The state that the hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ @java.lang.Override @@ -115,11 +150,16 @@ public boolean hasHub() { return hub_ != null; } /** + * + * *
    * Required. The state that the hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ @java.lang.Override @@ -127,11 +167,15 @@ public com.google.cloud.networkconnectivity.v1.Hub getHub() { return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; } /** + * + * *
    * Required. The state that the hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { @@ -139,9 +183,12 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { } public static final int REQUEST_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -158,6 +205,7 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -166,14 +214,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -190,16 +239,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -208,6 +256,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,8 +268,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -240,12 +288,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHub()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -258,25 +304,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.networkconnectivity.v1.UpdateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.UpdateHubRequest other = (com.google.cloud.networkconnectivity.v1.UpdateHubRequest) obj; + com.google.cloud.networkconnectivity.v1.UpdateHubRequest other = + (com.google.cloud.networkconnectivity.v1.UpdateHubRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub() - .equals(other.getHub())) return false; + if (!getHub().equals(other.getHub())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,96 +348,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.UpdateHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.UpdateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [HubService.UpdateHub][google.cloud.networkconnectivity.v1.HubService.UpdateHub]
@@ -402,33 +454,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateHubRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.UpdateHubRequest)
       com.google.cloud.networkconnectivity.v1.UpdateHubRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class,
+              com.google.cloud.networkconnectivity.v1.UpdateHubRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.UpdateHubRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -448,9 +499,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor;
     }
 
     @java.lang.Override
@@ -469,8 +520,11 @@ public com.google.cloud.networkconnectivity.v1.UpdateHubRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.UpdateHubRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.UpdateHubRequest result = new com.google.cloud.networkconnectivity.v1.UpdateHubRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.UpdateHubRequest result =
+          new com.google.cloud.networkconnectivity.v1.UpdateHubRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -478,14 +532,10 @@ public com.google.cloud.networkconnectivity.v1.UpdateHubRequest buildPartial() {
     private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateHubRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.hub_ = hubBuilder_ == null
-            ? hub_
-            : hubBuilder_.build();
+        result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.requestId_ = requestId_;
@@ -496,38 +546,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateHubRequ
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.UpdateHubRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateHubRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateHubRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -535,7 +586,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.UpdateHubRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.UpdateHubRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.UpdateHubRequest.getDefaultInstance())
+        return this;
       if (other.hasUpdateMask()) {
         mergeUpdateMask(other.getUpdateMask());
       }
@@ -573,31 +625,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getHubFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              requestId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                requestId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -607,12 +659,18 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.FieldMask updateMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
+        updateMaskBuilder_;
     /**
+     *
+     *
      * 
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -621,13 +679,17 @@ public Builder mergeFrom(
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -636,17 +698,23 @@ public boolean hasUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -655,7 +723,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -671,6 +740,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -679,10 +750,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -693,6 +764,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -701,13 +774,14 @@ public Builder setUpdateMask(
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -720,6 +794,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -728,7 +804,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -741,6 +818,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -749,7 +828,8 @@ public Builder clearUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -757,6 +837,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -765,17 +847,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. In the case of an update to an existing hub, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -784,17 +870,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -802,39 +892,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> hubBuilder_; + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder> + hubBuilder_; /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ public com.google.cloud.networkconnectivity.v1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() + : hub_; } else { return hubBuilder_.getMessage(); } } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { @@ -850,14 +959,17 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setHub( - com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { + public Builder setHub(com.google.cloud.networkconnectivity.v1.Hub.Builder builderForValue) { if (hubBuilder_ == null) { hub_ = builderForValue.build(); } else { @@ -868,17 +980,21 @@ public Builder setHub( return this; } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - hub_ != null && - hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && hub_ != null + && hub_ != com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -891,11 +1007,15 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1.Hub value) { return this; } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000002); @@ -908,11 +1028,15 @@ public Builder clearHub() { return this; } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000002; @@ -920,36 +1044,48 @@ public com.google.cloud.networkconnectivity.v1.Hub.Builder getHubBuilder() { return getHubFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null ? - com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance() + : hub_; } } /** + * + * *
      * Required. The state that the hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Hub, com.google.cloud.networkconnectivity.v1.Hub.Builder, com.google.cloud.networkconnectivity.v1.HubOrBuilder>( - getHub(), - getParentForChildren(), - isClean()); + hubBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Hub, + com.google.cloud.networkconnectivity.v1.Hub.Builder, + com.google.cloud.networkconnectivity.v1.HubOrBuilder>( + getHub(), getParentForChildren(), isClean()); hub_ = null; } return hubBuilder_; @@ -957,6 +1093,8 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -973,13 +1111,13 @@ public com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -988,6 +1126,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1004,15 +1144,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1020,6 +1159,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1036,18 +1177,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1064,6 +1209,7 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1073,6 +1219,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1089,21 +1237,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1113,12 +1263,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.UpdateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.UpdateHubRequest) private static final com.google.cloud.networkconnectivity.v1.UpdateHubRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.UpdateHubRequest(); } @@ -1127,27 +1277,27 @@ public static com.google.cloud.networkconnectivity.v1.UpdateHubRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1162,6 +1312,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.UpdateHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java index 7aefcde1de11..7c84e91cbc36 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequestOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface UpdateHubRequestOrBuilder extends +public interface UpdateHubRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.UpdateHubRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. In the case of an update to an existing hub, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -16,11 +34,15 @@ public interface UpdateHubRequestOrBuilder extends
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. In the case of an update to an existing hub, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -29,11 +51,15 @@ public interface UpdateHubRequestOrBuilder extends
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. In the case of an update to an existing hub, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -42,38 +68,55 @@ public interface UpdateHubRequestOrBuilder extends
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The state that the hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ boolean hasHub(); /** + * + * *
    * Required. The state that the hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ com.google.cloud.networkconnectivity.v1.Hub getHub(); /** + * + * *
    * Required. The state that the hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1.HubOrBuilder getHubOrBuilder(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -90,10 +133,13 @@ public interface UpdateHubRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -110,8 +156,8 @@ public interface UpdateHubRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java index 72ba4d317265..534117c8bac9 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; /** + * + * *
  * Request for
  * [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke]
@@ -12,47 +29,51 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateSpokeRequest}
  */
-public final class UpdateSpokeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateSpokeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1.UpdateSpokeRequest)
     UpdateSpokeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateSpokeRequest.newBuilder() to construct.
   private UpdateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UpdateSpokeRequest() {
     requestId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateSpokeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class);
+            com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class,
+            com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class);
   }
 
   public static final int UPDATE_MASK_FIELD_NUMBER = 1;
   private com.google.protobuf.FieldMask updateMask_;
   /**
+   *
+   *
    * 
    * Optional. In the case of an update to an existing spoke, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -61,7 +82,9 @@ protected java.lang.Object newInstance(
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -69,6 +92,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. In the case of an update to an existing spoke, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -77,7 +102,9 @@ public boolean hasUpdateMask() {
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -85,6 +112,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. In the case of an update to an existing spoke, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -93,7 +122,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -103,11 +133,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int SPOKE_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1.Spoke spoke_; /** + * + * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ @java.lang.Override @@ -115,33 +150,49 @@ public boolean hasSpoke() { return spoke_ != null; } /** + * + * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } /** + * + * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -158,6 +209,7 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -166,14 +218,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -190,16 +243,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -208,6 +260,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,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 (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -240,12 +292,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpoke()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -258,25 +308,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.networkconnectivity.v1.UpdateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest other = (com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest other = + (com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke() - .equals(other.getSpoke())) return false; + if (!getSpoke().equals(other.getSpoke())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,96 +352,104 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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
    * [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1.HubService.UpdateSpoke]
@@ -402,33 +458,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1.UpdateSpokeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1.UpdateSpokeRequest)
       com.google.cloud.networkconnectivity.v1.UpdateSpokeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class);
+              com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class,
+              com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -448,9 +503,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1.HubProto.internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -469,8 +524,11 @@ public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest buildPartial() {
-      com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest result = new com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest result =
+          new com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -478,14 +536,10 @@ public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest buildPartial()
     private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.spoke_ = spokeBuilder_ == null
-            ? spoke_
-            : spokeBuilder_.build();
+        result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.requestId_ = requestId_;
@@ -496,38 +550,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1.UpdateSpokeRe
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -535,7 +590,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest other) {
-      if (other == com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.getDefaultInstance())
+        return this;
       if (other.hasUpdateMask()) {
         mergeUpdateMask(other.getUpdateMask());
       }
@@ -573,31 +629,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getSpokeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              requestId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                requestId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -607,12 +663,18 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.FieldMask updateMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
+        updateMaskBuilder_;
     /**
+     *
+     *
      * 
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -621,13 +683,17 @@ public Builder mergeFrom(
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -636,17 +702,23 @@ public boolean hasUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -655,7 +727,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -671,6 +744,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -679,10 +754,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -693,6 +768,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -701,13 +778,14 @@ public Builder setUpdateMask(
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -720,6 +798,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -728,7 +808,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -741,6 +822,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -749,7 +832,8 @@ public Builder clearUpdateMask() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -757,6 +841,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -765,17 +851,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. In the case of an update to an existing spoke, field mask is used
      * to specify the fields to be overwritten. The fields specified in the
@@ -784,17 +874,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * all fields are overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -802,39 +896,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> spokeBuilder_; + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + spokeBuilder_; /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ public com.google.cloud.networkconnectivity.v1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } else { return spokeBuilder_.getMessage(); } } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { @@ -850,14 +963,17 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSpoke( - com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { + public Builder setSpoke(com.google.cloud.networkconnectivity.v1.Spoke.Builder builderForValue) { if (spokeBuilder_ == null) { spoke_ = builderForValue.build(); } else { @@ -868,17 +984,21 @@ public Builder setSpoke( return this; } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - spoke_ != null && - spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && spoke_ != null + && spoke_ != com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -891,11 +1011,15 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1.Spoke value) { return this; } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000002); @@ -908,11 +1032,15 @@ public Builder clearSpoke() { return this; } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000002; @@ -920,36 +1048,48 @@ public com.google.cloud.networkconnectivity.v1.Spoke.Builder getSpokeBuilder() { return getSpokeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null ? - com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance() + : spoke_; } } /** + * + * *
      * Required. The state that the spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1.Spoke, com.google.cloud.networkconnectivity.v1.Spoke.Builder, com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( - getSpoke(), - getParentForChildren(), - isClean()); + spokeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1.Spoke, + com.google.cloud.networkconnectivity.v1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1.SpokeOrBuilder>( + getSpoke(), getParentForChildren(), isClean()); spoke_ = null; } return spokeBuilder_; @@ -957,6 +1097,8 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -973,13 +1115,13 @@ public com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -988,6 +1130,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1004,15 +1148,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1020,6 +1163,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1036,18 +1181,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1064,6 +1213,7 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1073,6 +1223,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A unique request ID (optional). If you specify this ID, you can
      * use it in cases when you need to retry your request. When you need to
@@ -1089,21 +1241,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1113,12 +1267,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) private static final com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest(); } @@ -1127,27 +1281,27 @@ public static com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1162,6 +1316,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java index ff21e1d7ea89..7531903678e0 100644 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequestOrBuilder.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/networkconnectivity/v1/hub.proto package com.google.cloud.networkconnectivity.v1; -public interface UpdateSpokeRequestOrBuilder extends +public interface UpdateSpokeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.UpdateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. In the case of an update to an existing spoke, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -16,11 +34,15 @@ public interface UpdateSpokeRequestOrBuilder extends
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. In the case of an update to an existing spoke, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -29,11 +51,15 @@ public interface UpdateSpokeRequestOrBuilder extends
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. In the case of an update to an existing spoke, field mask is used
    * to specify the fields to be overwritten. The fields specified in the
@@ -42,38 +68,55 @@ public interface UpdateSpokeRequestOrBuilder extends
    * all fields are overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ boolean hasSpoke(); /** + * + * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ com.google.cloud.networkconnectivity.v1.Spoke getSpoke(); /** + * + * *
    * Required. The state that the spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1.SpokeOrBuilder getSpokeOrBuilder(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -90,10 +133,13 @@ public interface UpdateSpokeRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A unique request ID (optional). If you specify this ID, you can
    * use it in cases when you need to retry your request. When you need to
@@ -110,8 +156,8 @@ public interface UpdateSpokeRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java new file mode 100644 index 000000000000..e8e71eaf5f8b --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java @@ -0,0 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1alpha1/common.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public final class CommonProto { + private CommonProto() {} + + 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_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/networkconnectivity/v1alp" + + "ha1/common.proto\022)google.cloud.networkco" + + "nnectivity.v1alpha1\032\037google/api/field_be" + + "havior.proto\032\037google/protobuf/timestamp." + + "proto\"\200\002\n\021OperationMetadata\0224\n\013create_ti" + + "me\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004ver" + + "b\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\003B\243\002\n-com.google." + + "cloud.networkconnectivity.v1alpha1B\013Comm" + + "onProtoP\001Z\\google.golang.org/genproto/go" + + "ogleapis/cloud/networkconnectivity/v1alp" + + "ha1;networkconnectivity\252\002)Google.Cloud.N" + + "etworkConnectivity.V1Alpha1\312\002)Google\\Clo" + + "ud\\NetworkConnectivity\\V1alpha1\352\002,Google" + + "::Cloud::NetworkConnectivity::V1alpha1b\006" + + "proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java index b77dc1fda61b..ff4aaf180be5 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Request for [HubService.CreateHub][google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateHubRequest} */ -public final class CreateHubRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateHubRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) CreateHubRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateHubRequest.newBuilder() to construct. private CreateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateHubRequest() { parent_ = ""; hubId_ = ""; @@ -27,38 +45,45 @@ private CreateHubRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource's name of the Hub.
    * 
* - * string parent = 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 @@ -67,29 +92,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource's name of the Hub.
    * 
* - * string parent = 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 { @@ -98,14 +125,18 @@ public java.lang.String getParent() { } public static final int HUB_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object hubId_ = ""; /** + * + * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hubId. */ @java.lang.Override @@ -114,29 +145,29 @@ public java.lang.String getHubId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; } } /** + * + * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for hubId. */ @java.lang.Override - public com.google.protobuf.ByteString - getHubIdBytes() { + public com.google.protobuf.ByteString getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hubId_ = b; return b; } else { @@ -147,11 +178,16 @@ public java.lang.String getHubId() { public static final int HUB_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ @java.lang.Override @@ -159,33 +195,49 @@ public boolean hasHub() { return hub_ != null; } /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { - return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { - return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -201,6 +253,7 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -209,14 +262,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -232,16 +286,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -250,6 +303,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +315,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,8 +344,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hubId_); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHub()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -305,24 +357,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.networkconnectivity.v1alpha1.CreateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getHubId() - .equals(other.getHubId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getHubId().equals(other.getHubId())) return false; if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub() - .equals(other.getHub())) return false; + if (!getHub().equals(other.getHub())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,129 +399,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.CreateHub][google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateHubRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -489,13 +545,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance(); } @@ -510,13 +567,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -525,9 +586,7 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateH result.hubId_ = hubId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.hub_ = hubBuilder_ == null - ? hub_ - : hubBuilder_.build(); + result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -538,38 +597,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateH public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) other); } else { super.mergeFrom(other); return this; @@ -577,7 +637,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -622,34 +684,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - hubId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getHubFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + hubId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,22 +724,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource's name of the Hub.
      * 
* - * string parent = 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; @@ -683,20 +753,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name of the Hub.
      * 
* - * string parent = 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 { @@ -704,28 +777,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name of the Hub.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource's name of the Hub.
      * 
* - * string 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() { @@ -735,17 +819,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource's name of the Hub.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -755,18 +845,20 @@ public Builder setParentBytes( private java.lang.Object hubId_ = ""; /** + * + * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hubId. */ public java.lang.String getHubId() { java.lang.Object ref = hubId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hubId_ = s; return s; @@ -775,20 +867,21 @@ public java.lang.String getHubId() { } } /** + * + * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for hubId. */ - public com.google.protobuf.ByteString - getHubIdBytes() { + public com.google.protobuf.ByteString getHubIdBytes() { java.lang.Object ref = hubId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hubId_ = b; return b; } else { @@ -796,28 +889,35 @@ public java.lang.String getHubId() { } } /** + * + * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The hubId to set. * @return This builder for chaining. */ - public Builder setHubId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHubId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hubId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearHubId() { @@ -827,17 +927,21 @@ public Builder clearHubId() { return this; } /** + * + * *
      * Optional. Unique id for the Hub to create.
      * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for hubId to set. * @return This builder for chaining. */ - public Builder setHubIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHubIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hubId_ = value; bitField0_ |= 0x00000002; @@ -847,39 +951,58 @@ public Builder setHubIdBytes( private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> hubBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + hubBuilder_; /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } else { return hubBuilder_.getMessage(); } } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { @@ -895,11 +1018,15 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setHub( com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder builderForValue) { @@ -913,17 +1040,21 @@ public Builder setHub( return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - hub_ != null && - hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && hub_ != null + && hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -936,11 +1067,15 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000004); @@ -953,11 +1088,15 @@ public Builder clearHub() { return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000004; @@ -965,36 +1104,48 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() return getHubFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null ? - com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( - getHub(), - getParentForChildren(), - isClean()); + hubBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( + getHub(), getParentForChildren(), isClean()); hub_ = null; } return hubBuilder_; @@ -1002,6 +1153,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1017,13 +1170,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1032,6 +1185,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1047,15 +1202,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1063,6 +1217,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1078,18 +1234,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1105,6 +1265,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1114,6 +1275,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1129,21 +1292,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1153,41 +1318,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1199,9 +1366,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java index 7ada53d7d300..fecd3ded33d5 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface CreateHubRequestOrBuilder extends +public interface CreateHubRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource's name of the Hub.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource's name of the Hub.
    * 
* - * string parent = 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(); /** + * + * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The hubId. */ java.lang.String getHubId(); /** + * + * *
    * Optional. Unique id for the Hub to create.
    * 
* * string hub_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for hubId. */ - com.google.protobuf.ByteString - getHubIdBytes(); + com.google.protobuf.ByteString getHubIdBytes(); /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ boolean hasHub(); /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ com.google.cloud.networkconnectivity.v1alpha1.Hub getHub(); /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -90,10 +136,13 @@ public interface CreateHubRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -109,8 +158,8 @@ public interface CreateHubRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java index da2748dcd13b..6f8e9420cec0 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest} */ -public final class CreateSpokeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateSpokeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) CreateSpokeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateSpokeRequest.newBuilder() to construct. private CreateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateSpokeRequest() { parent_ = ""; spokeId_ = ""; @@ -27,38 +45,45 @@ private CreateSpokeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * string parent = 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 @@ -67,29 +92,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * string parent = 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 { @@ -98,14 +125,18 @@ public java.lang.String getParent() { } public static final int SPOKE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object spokeId_ = ""; /** + * + * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The spokeId. */ @java.lang.Override @@ -114,29 +145,29 @@ public java.lang.String getSpokeId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; } } /** + * + * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for spokeId. */ @java.lang.Override - public com.google.protobuf.ByteString - getSpokeIdBytes() { + public com.google.protobuf.ByteString getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); spokeId_ = b; return b; } else { @@ -147,11 +178,16 @@ public java.lang.String getSpokeId() { public static final int SPOKE_FIELD_NUMBER = 3; private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ @java.lang.Override @@ -159,33 +195,49 @@ public boolean hasSpoke() { return spoke_ != null; } /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -201,6 +253,7 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -209,14 +262,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -232,16 +286,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -250,6 +303,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +315,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,8 +344,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, spokeId_); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSpoke()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -305,24 +357,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.networkconnectivity.v1alpha1.CreateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getSpokeId() - .equals(other.getSpokeId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getSpokeId().equals(other.getSpokeId())) return false; if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke() - .equals(other.getSpoke())) return false; + if (!getSpoke().equals(other.getSpoke())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,129 +399,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -489,13 +545,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance(); } @@ -510,13 +567,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -525,9 +586,7 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateS result.spokeId_ = spokeId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.spoke_ = spokeBuilder_ == null - ? spoke_ - : spokeBuilder_.build(); + result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -538,46 +597,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.CreateS public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -622,34 +685,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - spokeId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getSpokeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + spokeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,22 +725,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * string parent = 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; @@ -683,20 +754,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * string parent = 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 { @@ -704,28 +778,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * string 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() { @@ -735,17 +820,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent's resource name of the Spoke.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -755,18 +846,20 @@ public Builder setParentBytes( private java.lang.Object spokeId_ = ""; /** + * + * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The spokeId. */ public java.lang.String getSpokeId() { java.lang.Object ref = spokeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spokeId_ = s; return s; @@ -775,20 +868,21 @@ public java.lang.String getSpokeId() { } } /** + * + * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for spokeId. */ - public com.google.protobuf.ByteString - getSpokeIdBytes() { + public com.google.protobuf.ByteString getSpokeIdBytes() { java.lang.Object ref = spokeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); spokeId_ = b; return b; } else { @@ -796,28 +890,35 @@ public java.lang.String getSpokeId() { } } /** + * + * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpokeId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } spokeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSpokeId() { @@ -827,17 +928,21 @@ public Builder clearSpokeId() { return this; } /** + * + * *
      * Optional. Unique id for the Spoke to create.
      * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for spokeId to set. * @return This builder for chaining. */ - public Builder setSpokeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpokeIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); spokeId_ = value; bitField0_ |= 0x00000002; @@ -847,39 +952,58 @@ public Builder setSpokeIdBytes( private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> spokeBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + spokeBuilder_; /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } else { return spokeBuilder_.getMessage(); } } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { @@ -895,11 +1019,15 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke valu return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSpoke( com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder builderForValue) { @@ -913,17 +1041,21 @@ public Builder setSpoke( return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - spoke_ != null && - spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && spoke_ != null + && spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -936,11 +1068,15 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke va return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000004); @@ -953,11 +1089,15 @@ public Builder clearSpoke() { return this; } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000004; @@ -965,36 +1105,48 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuild return getSpokeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null ? - com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } } /** + * + * *
      * Required. Initial values for a new Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( - getSpoke(), - getParentForChildren(), - isClean()); + spokeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( + getSpoke(), getParentForChildren(), isClean()); spoke_ = null; } return spokeBuilder_; @@ -1002,6 +1154,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1017,13 +1171,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1032,6 +1186,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1047,15 +1203,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1063,6 +1218,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1078,18 +1235,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1105,6 +1266,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1114,6 +1276,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1129,21 +1293,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1153,41 +1319,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1199,9 +1367,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java index 7cdd693f7086..0acea62a3476 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface CreateSpokeRequestOrBuilder extends +public interface CreateSpokeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent's resource name of the Spoke.
    * 
* - * string parent = 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(); /** + * + * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The spokeId. */ java.lang.String getSpokeId(); /** + * + * *
    * Optional. Unique id for the Spoke to create.
    * 
* * string spoke_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for spokeId. */ - com.google.protobuf.ByteString - getSpokeIdBytes(); + com.google.protobuf.ByteString getSpokeIdBytes(); /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ boolean hasSpoke(); /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke(); /** + * + * *
    * Required. Initial values for a new Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -90,10 +136,13 @@ public interface CreateSpokeRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -109,8 +158,8 @@ public interface CreateSpokeRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java similarity index 69% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java index 64ea69b076e4..b12bad9a3b29 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest} */ -public final class DeleteHubRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteHubRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) DeleteHubRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteHubRequest.newBuilder() to construct. private DeleteHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteHubRequest() { name_ = ""; requestId_ = ""; @@ -26,38 +44,45 @@ private DeleteHubRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the Hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,29 +91,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the Hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,9 +124,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -115,6 +145,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -123,14 +154,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -146,16 +178,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -164,6 +195,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -206,17 +237,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.networkconnectivity.v1alpha1.DeleteHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,129 +268,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -371,13 +408,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance(); } @@ -392,13 +430,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -412,38 +454,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.DeleteH public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) other); } else { super.mergeFrom(other); return this; @@ -451,7 +494,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -488,22 +533,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -513,22 +561,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the Hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -537,20 +590,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -558,28 +614,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -589,17 +656,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the Hub to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -609,6 +682,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -624,13 +699,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -639,6 +714,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -654,15 +731,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -670,6 +746,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -685,18 +763,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -712,6 +794,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -721,6 +804,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -736,21 +821,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -760,41 +847,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -806,9 +895,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java index 861358b8374d..033fd24fc4b8 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface DeleteHubRequestOrBuilder extends +public interface DeleteHubRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the Hub to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -43,10 +70,13 @@ public interface DeleteHubRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -62,8 +92,8 @@ public interface DeleteHubRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java similarity index 69% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java index 5e99a2274873..1569d811fb22 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest} */ -public final class DeleteSpokeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteSpokeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) DeleteSpokeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteSpokeRequest.newBuilder() to construct. private DeleteSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteSpokeRequest() { name_ = ""; requestId_ = ""; @@ -26,38 +44,45 @@ private DeleteSpokeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the Spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,29 +91,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the Spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,9 +124,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -115,6 +145,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -123,14 +154,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -146,16 +178,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -164,6 +195,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -206,17 +237,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.networkconnectivity.v1alpha1.DeleteSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,129 +268,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -371,13 +408,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance(); } @@ -392,13 +430,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -412,46 +454,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.DeleteS public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -488,22 +534,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -513,22 +562,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the Spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -537,20 +591,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -558,28 +615,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -589,17 +657,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the Spoke to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -609,6 +683,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -624,13 +700,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -639,6 +715,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -654,15 +732,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -670,6 +747,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -685,18 +764,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -712,6 +795,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -721,6 +805,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -736,21 +822,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -760,41 +848,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -806,9 +896,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java index 1be7096a8498..a1bef18bbd22 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface DeleteSpokeRequestOrBuilder extends +public interface DeleteSpokeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the Spoke to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -43,10 +70,13 @@ public interface DeleteSpokeRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -62,8 +92,8 @@ public interface DeleteSpokeRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java similarity index 63% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java index 5ba1a3a7791d..f9b4ab4e5e6c 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java @@ -1,62 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Request for [HubService.GetHub][google.cloud.networkconnectivity.v1alpha1.HubService.GetHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetHubRequest} */ -public final class GetHubRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetHubRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) GetHubRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetHubRequest.newBuilder() to construct. private GetHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetHubRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the Hub resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +90,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 Hub resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -132,15 +159,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.networkconnectivity.v1alpha1.GetHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.GetHub][google.cloud.networkconnectivity.v1alpha1.HubService.GetHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetHubRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) com.google.cloud.networkconnectivity.v1alpha1.GetHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; } @java.lang.Override @@ -313,8 +347,11 @@ public com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +367,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.GetHubR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +462,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the Hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,20 +491,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the Hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -466,28 +515,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the Hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the Hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -497,26 +557,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the Hub resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) private static final com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest(); } @@ -540,27 +606,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java new file mode 100644 index 000000000000..f27e985b5766 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public interface GetHubRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the Hub resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the Hub resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java similarity index 61% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java index 6241282b9908..cf7d7735d223 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java @@ -1,62 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest} */ -public final class GetSpokeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSpokeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) GetSpokeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSpokeRequest.newBuilder() to construct. private GetSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSpokeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of Spoke resource.
    * 
* - * string name = 1 [(.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 @@ -65,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of Spoke resource.
    * 
* - * string name = 1 [(.google.api.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 { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -132,15 +159,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.networkconnectivity.v1alpha1.GetSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,13 +326,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance(); } @@ -313,13 +348,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -330,38 +369,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.GetSpok public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +409,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +443,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +465,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of Spoke resource.
      * 
* - * string name = 1 [(.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; @@ -445,20 +494,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of Spoke resource.
      * 
* - * string name = 1 [(.google.api.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 { @@ -466,28 +518,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of Spoke resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of Spoke resource.
      * 
* - * string 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() { @@ -497,26 +560,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of Spoke resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +595,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest(); } @@ -540,27 +610,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +645,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java new file mode 100644 index 000000000000..f96c9a120c67 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public interface GetSpokeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of Spoke resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of Spoke 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/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java similarity index 66% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java index 0785f0c3b51e..4f6053f779e0 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Network Connectivity Center is a hub-and-spoke abstraction for
  * network connectivity management in Google Cloud. It reduces
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Hub}
  */
-public final class Hub extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Hub extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.Hub)
     HubOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Hub.newBuilder() to construct.
   private Hub(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Hub() {
     name_ = "";
     description_ = "";
@@ -32,50 +50,54 @@ private Hub() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Hub();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1alpha1.Hub.class, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
+            com.google.cloud.networkconnectivity.v1alpha1.Hub.class,
+            com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -84,29 +106,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; } } /** + * + * *
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -117,11 +139,14 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -129,11 +154,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ @java.lang.Override @@ -141,6 +169,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Time when the Hub was created.
    * 
@@ -155,11 +185,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -167,11 +200,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ @java.lang.Override @@ -179,6 +215,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Time when the Hub was updated.
    * 
@@ -191,32 +229,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_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.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - 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_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * User-defined labels.
    * 
@@ -224,20 +264,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** + * + * *
    * User-defined labels.
    * 
@@ -249,6 +290,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * User-defined labels.
    * 
@@ -256,17 +299,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + 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; } /** + * + * *
    * User-defined labels.
    * 
@@ -274,11 +319,11 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new 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(); } @@ -286,14 +331,18 @@ public java.lang.String getLabelsOrThrow( } public static final int DESCRIPTION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Short description of the hub resource.
    * 
* * string description = 5; + * * @return The description. */ @java.lang.Override @@ -302,29 +351,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Short description of the hub resource.
    * 
* * string description = 5; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -333,37 +382,52 @@ public java.lang.String getDescription() { } public static final int SPOKES_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList spokes_; /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the spokes. */ - public com.google.protobuf.ProtocolStringList - getSpokesList() { + public com.google.protobuf.ProtocolStringList getSpokesList() { return spokes_; } /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The count of spokes. */ public int getSpokesCount() { return spokes_.size(); } /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The spokes at the given index. */ @@ -371,23 +435,30 @@ public java.lang.String getSpokes(int index) { return spokes_.get(index); } /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the spokes at the given index. */ - public com.google.protobuf.ByteString - getSpokesBytes(int index) { + public com.google.protobuf.ByteString getSpokesBytes(int index) { return spokes_.getByteString(index); } public static final int UNIQUE_ID_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -395,6 +466,7 @@ public java.lang.String getSpokes(int index) {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ @java.lang.Override @@ -403,14 +475,15 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -418,16 +491,15 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -438,30 +510,46 @@ public java.lang.String getUniqueId() { public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.networkconnectivity.v1alpha1.State getState() { + com.google.cloud.networkconnectivity.v1alpha1.State result = + com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null + ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -473,8 +561,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -484,12 +571,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -499,7 +582,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, uniqueId_); } - if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(9, state_); } getUnknownFields().writeTo(output); @@ -515,22 +599,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -546,9 +628,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, uniqueId_); } - if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, state_); + if (state_ + != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -558,33 +640,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.networkconnectivity.v1alpha1.Hub)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.Hub other = (com.google.cloud.networkconnectivity.v1alpha1.Hub) obj; + com.google.cloud.networkconnectivity.v1alpha1.Hub other = + (com.google.cloud.networkconnectivity.v1alpha1.Hub) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getSpokesList() - .equals(other.getSpokesList())) return false; - if (!getUniqueId() - .equals(other.getUniqueId())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getSpokesList().equals(other.getSpokesList())) return false; + if (!getUniqueId().equals(other.getUniqueId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -627,96 +703,103 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.Hub parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.Hub prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Connectivity Center is a hub-and-spoke abstraction for
    * network connectivity management in Google Cloud. It reduces
@@ -726,55 +809,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Hub}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.Hub)
       com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1alpha1.Hub.class, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
+              com.google.cloud.networkconnectivity.v1alpha1.Hub.class,
+              com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1alpha1.Hub.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -800,9 +880,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_descriptor;
     }
 
     @java.lang.Override
@@ -821,14 +901,18 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1alpha1.Hub buildPartial() {
-      com.google.cloud.networkconnectivity.v1alpha1.Hub result = new com.google.cloud.networkconnectivity.v1alpha1.Hub(this);
+      com.google.cloud.networkconnectivity.v1alpha1.Hub result =
+          new com.google.cloud.networkconnectivity.v1alpha1.Hub(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.Hub result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1alpha1.Hub result) {
       if (((bitField0_ & 0x00000020) != 0)) {
         spokes_ = spokes_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000020);
@@ -842,14 +926,10 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Hub res
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -870,38 +950,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Hub res
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.Hub) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Hub)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Hub) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -909,7 +990,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Hub other) {
-      if (other == com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -921,8 +1003,7 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Hub other
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -973,61 +1054,68 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureSpokesIsMutable();
-              spokes_.add(s);
-              break;
-            } // case 50
-            case 66: {
-              uniqueId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 66
-            case 72: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 72
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureSpokesIsMutable();
+                spokes_.add(s);
+                break;
+              } // case 50
+            case 66:
+              {
+                uniqueId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 66
+            case 72:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 72
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1037,22 +1125,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -1061,20 +1152,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -1082,28 +1174,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1113,17 +1212,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The name of a Hub resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1133,34 +1236,47 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Time when the Hub was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Time when the Hub was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; + * * @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(); } } /** + * + * *
      * Time when the Hub was created.
      * 
@@ -1181,14 +1297,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the Hub was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1199,6 +1316,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Time when the Hub was created.
      * 
@@ -1207,9 +1326,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1222,6 +1341,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the Hub was created.
      * 
@@ -1239,6 +1360,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Time when the Hub was created.
      * 
@@ -1251,6 +1374,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the Hub was created.
      * 
@@ -1261,11 +1386,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Time when the Hub was created.
      * 
@@ -1273,14 +1401,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> 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_; @@ -1288,34 +1419,47 @@ 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_; /** + * + * *
      * Time when the Hub was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Time when the Hub was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @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(); } } /** + * + * *
      * Time when the Hub was updated.
      * 
@@ -1336,14 +1480,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the Hub was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1354,6 +1499,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Time when the Hub was updated.
      * 
@@ -1362,9 +1509,9 @@ public Builder setUpdateTime( */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1377,6 +1524,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the Hub was updated.
      * 
@@ -1394,6 +1543,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Time when the Hub was updated.
      * 
@@ -1406,6 +1557,8 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the Hub was updated.
      * 
@@ -1416,11 +1569,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Time when the Hub was updated.
      * 
@@ -1428,34 +1584,35 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1464,10 +1621,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * User-defined labels.
      * 
@@ -1475,20 +1635,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** + * + * *
      * User-defined labels.
      * 
@@ -1500,6 +1661,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * User-defined labels.
      * 
@@ -1507,17 +1670,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + 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; } /** + * + * *
      * User-defined labels.
      * 
@@ -1525,91 +1690,95 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new 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(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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); + 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); bitField0_ |= 0x00000008; return this; } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object description_ = ""; /** + * + * *
      * Short description of the hub resource.
      * 
* * string description = 5; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1618,20 +1787,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Short description of the hub resource.
      * 
* * string description = 5; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1639,28 +1809,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Short description of the hub resource.
      * 
* * string description = 5; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Short description of the hub resource.
      * 
* * string description = 5; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1670,17 +1847,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Short description of the hub resource.
      * 
* * string description = 5; + * * @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(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -1688,42 +1869,58 @@ public Builder setDescriptionBytes( return this; } - private com.google.protobuf.LazyStringList spokes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList spokes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSpokesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { spokes_ = new com.google.protobuf.LazyStringArrayList(spokes_); bitField0_ |= 0x00000020; - } + } } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the spokes. */ - public com.google.protobuf.ProtocolStringList - getSpokesList() { + public com.google.protobuf.ProtocolStringList getSpokesList() { return spokes_.getUnmodifiableView(); } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The count of spokes. */ public int getSpokesCount() { return spokes_.size(); } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The spokes at the given index. */ @@ -1731,76 +1928,100 @@ public java.lang.String getSpokes(int index) { return spokes_.get(index); } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the spokes at the given index. */ - public com.google.protobuf.ByteString - getSpokesBytes(int index) { + public com.google.protobuf.ByteString getSpokesBytes(int index) { return spokes_.getByteString(index); } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The spokes to set. * @return This builder for chaining. */ - public Builder setSpokes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpokes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSpokesIsMutable(); spokes_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The spokes to add. * @return This builder for chaining. */ - public Builder addSpokes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSpokes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSpokesIsMutable(); spokes_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param values The spokes to add. * @return This builder for chaining. */ - public Builder addAllSpokes( - java.lang.Iterable values) { + public Builder addAllSpokes(java.lang.Iterable values) { ensureSpokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, spokes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spokes_); onChanged(); return this; } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSpokes() { @@ -1810,17 +2031,23 @@ public Builder clearSpokes() { return this; } /** + * + * *
      * Output only. A list of the URIs of all attached spokes
      * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the spokes to add. * @return This builder for chaining. */ - public Builder addSpokesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSpokesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureSpokesIsMutable(); spokes_.add(value); @@ -1830,6 +2057,8 @@ public Builder addSpokesBytes( private java.lang.Object uniqueId_ = ""; /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -1837,13 +2066,13 @@ public Builder addSpokesBytes(
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -1852,6 +2081,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -1859,15 +2090,14 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -1875,6 +2105,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -1882,18 +2114,22 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uniqueId_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -1901,6 +2137,7 @@ public Builder setUniqueId(
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -1910,6 +2147,8 @@ public Builder clearUniqueId() { return this; } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Hub
      * resources. If a Hub resource is deleted and another with the same name is
@@ -1917,12 +2156,14 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000040; @@ -1932,22 +2173,33 @@ public Builder setUniqueIdBytes( private int state_ = 0; /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1958,24 +2210,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; + com.google.cloud.networkconnectivity.v1alpha1.State result = + com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null + ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1989,11 +2254,16 @@ public Builder setState(com.google.cloud.networkconnectivity.v1alpha1.State valu return this; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2002,9 +2272,9 @@ public Builder clearState() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2014,12 +2284,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.Hub) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.Hub) private static final com.google.cloud.networkconnectivity.v1alpha1.Hub DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.Hub(); } @@ -2028,27 +2298,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.Hub getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Hub parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Hub parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2063,6 +2333,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.Hub getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java similarity index 67% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java index 710e35232205..598c124b3db5 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java @@ -1,51 +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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface HubOrBuilder extends +public interface HubOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.Hub) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Immutable. The name of a Hub resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Time when the Hub was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Time when the Hub was created.
    * 
@@ -55,24 +84,32 @@ public interface HubOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Time when the Hub was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Time when the Hub was updated.
    * 
@@ -82,6 +119,8 @@ public interface HubOrBuilder extends com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * User-defined labels.
    * 
@@ -90,30 +129,31 @@ public interface HubOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * User-defined labels.
    * 
@@ -121,82 +161,108 @@ boolean containsLabels( * map<string, string> labels = 4; */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Short description of the hub resource.
    * 
* * string description = 5; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Short description of the hub resource.
    * 
* * string description = 5; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the spokes. */ - java.util.List - getSpokesList(); + java.util.List getSpokesList(); /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The count of spokes. */ int getSpokesCount(); /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The spokes at the given index. */ java.lang.String getSpokes(int index); /** + * + * *
    * Output only. A list of the URIs of all attached spokes
    * 
* - * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the spokes at the given index. */ - com.google.protobuf.ByteString - getSpokesBytes(int index); + com.google.protobuf.ByteString getSpokesBytes(int index); /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -204,10 +270,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ java.lang.String getUniqueId(); /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Hub
    * resources. If a Hub resource is deleted and another with the same name is
@@ -215,26 +284,36 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString - getUniqueIdBytes(); + com.google.protobuf.ByteString getUniqueIdBytes(); /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.networkconnectivity.v1alpha1.State getState(); diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java new file mode 100644 index 000000000000..4f2423ff81f4 --- /dev/null +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java @@ -0,0 +1,460 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkconnectivity/v1alpha1/hub.proto + +package com.google.cloud.networkconnectivity.v1alpha1; + +public final class HubProto { + private HubProto() {} + + 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_networkconnectivity_v1alpha1_Hub_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/networkconnectivity/v1alp" + + "ha1/hub.proto\022)google.cloud.networkconne" + + "ctivity.v1alpha1\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\032\037google/" + + "api/field_behavior.proto\032\031google/api/res" + + "ource.proto\032#google/longrunning/operatio" + + "ns.proto\032 google/protobuf/field_mask.pro" + + "to\032\037google/protobuf/timestamp.proto\"\207\004\n\003" + + "Hub\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_time\030\002 " + + "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat" + + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "\022J\n\006labels\030\004 \003(\0132:.google.cloud.networkc" + + "onnectivity.v1alpha1.Hub.LabelsEntry\022\023\n\013" + + "description\030\005 \001(\t\022@\n\006spokes\030\006 \003(\tB0\340A\003\372A" + + "*\n(networkconnectivity.googleapis.com/Sp" + + "oke\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022D\n\005state\030\t \001" + + "(\01620.google.cloud.networkconnectivity.v1" + + "alpha1.StateB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:[\352AX\n&networkco" + + "nnectivity.googleapis.com/Hub\022.projects/" + + "{project}/locations/global/hubs/{hub}\"\234\006" + + "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_tim" + + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022/\n\013u" + + "pdate_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tamp\022L\n\006labels\030\004 \003(\0132<.google.cloud.netw" + + "orkconnectivity.v1alpha1.Spoke.LabelsEnt" + + "ry\022\023\n\013description\030\005 \001(\t\0228\n\003hub\030\006 \001(\tB+\372A" + + "(\n&networkconnectivity.googleapis.com/Hu" + + "b\022A\n\022linked_vpn_tunnels\030\014 \003(\tB%\372A\"\n comp" + + "ute.googleapis.com/VpnTunnel\022[\n\037linked_i" + + "nterconnect_attachments\030\r \003(\tB2\372A/\n-comp" + + "ute.googleapis.com/InterconnectAttachmen" + + "t\022m\n!linked_router_appliance_instances\030\016" + + " \003(\0132B.google.cloud.networkconnectivity." + + "v1alpha1.RouterApplianceInstance\022\026\n\tuniq" + + "ue_id\030\013 \001(\tB\003\340A\003\022D\n\005state\030\017 \001(\01620.google" + + ".cloud.networkconnectivity.v1alpha1.Stat" + + "eB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001:e\352Ab\n(networkconnectivity." + + "googleapis.com/Spoke\0226projects/{project}" + + "/locations/{location}/spokes/{spoke}\"\225\001\n" + + "\017ListHubsRequest\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\022\016\n\006fi" + + "lter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\020ListHubs" + + "Response\022<\n\004hubs\030\001 \003(\0132..google.cloud.ne" + + "tworkconnectivity.v1alpha1.Hub\022\027\n\017next_p" + + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\r" + + "GetHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" + + "workconnectivity.googleapis.com/Hub\"\275\001\n\020" + + "CreateHubRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\n!locations.googleapis.com/Location\022\023\n\006h" + + "ub_id\030\002 \001(\tB\003\340A\001\022@\n\003hub\030\003 \001(\0132..google.c" + + "loud.networkconnectivity.v1alpha1.HubB\003\340" + + "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\020UpdateHu" + + "bRequest\0224\n\013update_mask\030\001 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\003\340A\001\022@\n\003hub\030\002 \001(\0132..go" + + "ogle.cloud.networkconnectivity.v1alpha1." + + "HubB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"i\n\020Del" + + "eteHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" + + "workconnectivity.googleapis.com/Hub\022\027\n\nr" + + "equest_id\030\002 \001(\tB\003\340A\001\"\227\001\n\021ListSpokesReque" + + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + + "ogleapis.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\022\020\n\010" + + "order_by\030\005 \001(\t\"\204\001\n\022ListSpokesResponse\022@\n" + + "\006spokes\030\001 \003(\01320.google.cloud.networkconn" + + "ectivity.v1alpha1.Spoke\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\017GetSpok" + + "eRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(networkc" + + "onnectivity.googleapis.com/Spoke\"\305\001\n\022Cre" + + "ateSpokeRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\025\n\010sp" + + "oke_id\030\002 \001(\tB\003\340A\001\022D\n\005spoke\030\003 \001(\01320.googl" + + "e.cloud.networkconnectivity.v1alpha1.Spo" + + "keB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\251\001\n\022Upd" + + "ateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\003\340A\001\022D\n\005spoke\030\002" + + " \001(\01320.google.cloud.networkconnectivity." + + "v1alpha1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB" + + "\003\340A\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\t" + + "B0\340A\002\372A*\n(networkconnectivity.googleapis" + + ".com/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\213\001\n\027" + + "RouterApplianceInstance\022=\n\017virtual_machi" + + "ne\030\001 \001(\tB$\372A!\n\037compute.googleapis.com/In" + + "stance\022\022\n\nip_address\030\003 \001(\t\022\035\n\021network_in" + + "terface\030\002 \001(\tB\002\030\001*F\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010D" + + "ELETING\020\0032\255\021\n\nHubService\022\311\001\n\010ListHubs\022:." + + "google.cloud.networkconnectivity.v1alpha" + + "1.ListHubsRequest\032;.google.cloud.network" + + "connectivity.v1alpha1.ListHubsResponse\"D" + + "\202\323\344\223\0025\0223/v1alpha1/{parent=projects/*/loc" + + "ations/global}/hubs\332A\006parent\022\266\001\n\006GetHub\022" + + "8.google.cloud.networkconnectivity.v1alp" + + "ha1.GetHubRequest\032..google.cloud.network" + + "connectivity.v1alpha1.Hub\"B\202\323\344\223\0025\0223/v1al" + + "pha1/{name=projects/*/locations/global/h" + + "ubs/*}\332A\004name\022\330\001\n\tCreateHub\022;.google.clo" + + "ud.networkconnectivity.v1alpha1.CreateHu" + + "bRequest\032\035.google.longrunning.Operation\"" + + "o\202\323\344\223\002:\"3/v1alpha1/{parent=projects/*/lo" + + "cations/global}/hubs:\003hub\332A\021parent,hub,h" + + "ub_id\312A\030\n\003Hub\022\021OperationMetadata\022\332\001\n\tUpd" + + "ateHub\022;.google.cloud.networkconnectivit" + + "y.v1alpha1.UpdateHubRequest\032\035.google.lon" + + "grunning.Operation\"q\202\323\344\223\002>27/v1alpha1/{h" + + "ub.name=projects/*/locations/global/hubs" + + "/*}:\003hub\332A\017hub,update_mask\312A\030\n\003Hub\022\021Oper" + + "ationMetadata\022\330\001\n\tDeleteHub\022;.google.clo" + + "ud.networkconnectivity.v1alpha1.DeleteHu" + + "bRequest\032\035.google.longrunning.Operation\"" + + "o\202\323\344\223\0025*3/v1alpha1/{name=projects/*/loca" + + "tions/global/hubs/*}\332A\004name\312A*\n\025google.p" + + "rotobuf.Empty\022\021OperationMetadata\022\314\001\n\nLis" + + "tSpokes\022<.google.cloud.networkconnectivi" + + "ty.v1alpha1.ListSpokesRequest\032=.google.c" + + "loud.networkconnectivity.v1alpha1.ListSp" + + "okesResponse\"A\202\323\344\223\0022\0220/v1alpha1/{parent=" + + "projects/*/locations/*}/spokes\332A\006parent\022" + + "\271\001\n\010GetSpoke\022:.google.cloud.networkconne" + + "ctivity.v1alpha1.GetSpokeRequest\0320.googl" + + "e.cloud.networkconnectivity.v1alpha1.Spo" + + "ke\"?\202\323\344\223\0022\0220/v1alpha1/{name=projects/*/l" + + "ocations/*/spokes/*}\332A\004name\022\341\001\n\013CreateSp" + + "oke\022=.google.cloud.networkconnectivity.v" + + "1alpha1.CreateSpokeRequest\032\035.google.long" + + "running.Operation\"t\202\323\344\223\0029\"0/v1alpha1/{pa" + + "rent=projects/*/locations/*}/spokes:\005spo" + + "ke\332A\025parent,spoke,spoke_id\312A\032\n\005Spoke\022\021Op" + + "erationMetadata\022\343\001\n\013UpdateSpoke\022=.google" + + ".cloud.networkconnectivity.v1alpha1.Upda" + + "teSpokeRequest\032\035.google.longrunning.Oper" + + "ation\"v\202\323\344\223\002?26/v1alpha1/{spoke.name=pro" + + "jects/*/locations/*/spokes/*}:\005spoke\332A\021s" + + "poke,update_mask\312A\032\n\005Spoke\022\021OperationMet" + + "adata\022\331\001\n\013DeleteSpoke\022=.google.cloud.net" + + "workconnectivity.v1alpha1.DeleteSpokeReq" + + "uest\032\035.google.longrunning.Operation\"l\202\323\344" + + "\223\0022*0/v1alpha1/{name=projects/*/location" + + "s/*/spokes/*}\332A\004name\312A*\n\025google.protobuf" + + ".Empty\022\021OperationMetadata\032V\312A\"networkcon" + + "nectivity.googleapis.com\322A.https://www.g" + + "oogleapis.com/auth/cloud-platformB\332\004\n-co" + + "m.google.cloud.networkconnectivity.v1alp" + + "ha1B\010HubProtoP\001Z\\google.golang.org/genpr" + + "oto/googleapis/cloud/networkconnectivity" + + "/v1alpha1;networkconnectivity\252\002)Google.C" + + "loud.NetworkConnectivity.V1Alpha1\312\002)Goog" + + "le\\Cloud\\NetworkConnectivity\\V1alpha1\352\002," + + "Google::Cloud::NetworkConnectivity::V1al" + + "pha1\352A`\n compute.googleapis.com/VpnTunne" + + "l\022 * Request for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method. *
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsRequest} */ -public final class ListHubsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListHubsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) ListHubsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListHubsRequest.newBuilder() to construct. private ListHubsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListHubsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,38 +46,45 @@ private ListHubsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListHubsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 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 @@ -68,29 +93,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 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 { @@ -101,11 +128,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -114,14 +144,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -130,29 +164,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The page token.
    * 
* * 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 { @@ -161,14 +195,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -177,29 +215,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; } } /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * 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 { @@ -208,14 +246,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -224,29 +266,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -255,6 +297,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -296,8 +338,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_); @@ -316,23 +357,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.networkconnectivity.v1alpha1.ListHubsRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest other = (com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -360,129 +397,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,13 +540,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance(); } @@ -517,13 +562,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -546,38 +595,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListHub public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) other); } else { super.mergeFrom(other); return this; @@ -585,7 +635,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -635,37 +687,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -675,22 +733,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource's name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -699,20 +762,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * string parent = 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,28 +786,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * string 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() { @@ -751,17 +828,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource's name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -769,13 +852,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -783,27 +869,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -815,18 +907,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The page token.
      * 
* * 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; @@ -835,20 +929,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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 { @@ -856,28 +951,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The page token.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -887,17 +989,21 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -907,18 +1013,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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; @@ -927,20 +1035,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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 { @@ -948,28 +1057,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -979,17 +1095,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -999,18 +1119,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1019,20 +1141,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1040,28 +1163,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1071,26 +1201,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1100,12 +1234,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest(); } @@ -1114,27 +1249,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,6 +1284,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java index 18dcea236671..d04315d22cc4 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequestOrBuilder.java @@ -1,99 +1,142 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListHubsRequestOrBuilder extends +public interface ListHubsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource's name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java index 38bda54f7ae1..f9b82a08d489 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsResponse} */ -public final class ListHubsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListHubsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) ListHubsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListHubsResponse.newBuilder() to construct. private ListHubsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListHubsResponse() { hubs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,33 +45,37 @@ private ListHubsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListHubsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); } public static final int HUBS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List hubs_; /** + * + * *
    * Hubs to be returned.
    * 
@@ -65,6 +87,8 @@ public java.util.List getHubs return hubs_; } /** + * + * *
    * Hubs to be returned.
    * 
@@ -72,11 +96,13 @@ public java.util.List getHubs * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getHubsOrBuilderList() { return hubs_; } /** + * + * *
    * Hubs to be returned.
    * 
@@ -88,6 +114,8 @@ public int getHubsCount() { return hubs_.size(); } /** + * + * *
    * Hubs to be returned.
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index) { return hubs_.get(index); } /** + * + * *
    * Hubs to be returned.
    * 
@@ -106,21 +136,24 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index) { * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder(int index) { return hubs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +162,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -161,37 +194,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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. */ @@ -199,20 +241,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; @@ -224,8 +269,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < hubs_.size(); i++) { output.writeMessage(1, hubs_.get(i)); } @@ -245,8 +289,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < hubs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, hubs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hubs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +310,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.networkconnectivity.v1alpha1.ListHubsResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse other = (com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) obj; + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse other = + (com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) obj; - if (!getHubsList() - .equals(other.getHubsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getHubsList().equals(other.getHubsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +348,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListHubsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,13 +496,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance(); } @@ -469,14 +518,18 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse(this); + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result = + new com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { if (hubsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { hubs_ = java.util.Collections.unmodifiableList(hubs_); @@ -493,7 +546,8 @@ private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1a result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -504,38 +558,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListHub public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) other); } else { super.mergeFrom(other); return this; @@ -543,7 +598,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance()) + return this; if (hubsBuilder_ == null) { if (!other.hubs_.isEmpty()) { if (hubs_.isEmpty()) { @@ -562,9 +619,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListHubsR hubsBuilder_ = null; hubs_ = other.hubs_; bitField0_ = (bitField0_ & ~0x00000001); - hubsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHubsFieldBuilder() : null; + hubsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHubsFieldBuilder() + : null; } else { hubsBuilder_.addAllMessages(other.hubs_); } @@ -611,36 +669,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.networkconnectivity.v1alpha1.Hub m = - input.readMessage( - com.google.cloud.networkconnectivity.v1alpha1.Hub.parser(), - extensionRegistry); - if (hubsBuilder_ == null) { - ensureHubsIsMutable(); - hubs_.add(m); - } else { - hubsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.networkconnectivity.v1alpha1.Hub m = + input.readMessage( + com.google.cloud.networkconnectivity.v1alpha1.Hub.parser(), + extensionRegistry); + if (hubsBuilder_ == null) { + ensureHubsIsMutable(); + hubs_.add(m); + } else { + hubsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,21 +712,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List hubs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureHubsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { hubs_ = new java.util.ArrayList(hubs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> hubsBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + hubsBuilder_; /** + * + * *
      * Hubs to be returned.
      * 
@@ -679,6 +748,8 @@ public java.util.List getHubs } } /** + * + * *
      * Hubs to be returned.
      * 
@@ -693,6 +764,8 @@ public int getHubsCount() { } } /** + * + * *
      * Hubs to be returned.
      * 
@@ -707,14 +780,15 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index) { } } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public Builder setHubs( - int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { + public Builder setHubs(int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -728,6 +802,8 @@ public Builder setHubs( return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -746,6 +822,8 @@ public Builder setHubs( return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -766,14 +844,15 @@ public Builder addHubs(com.google.cloud.networkconnectivity.v1alpha1.Hub value) return this; } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public Builder addHubs( - int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { + public Builder addHubs(int index, com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -787,6 +866,8 @@ public Builder addHubs( return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -805,6 +886,8 @@ public Builder addHubs( return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -823,6 +906,8 @@ public Builder addHubs( return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -833,8 +918,7 @@ public Builder addAllHubs( java.lang.Iterable values) { if (hubsBuilder_ == null) { ensureHubsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, hubs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hubs_); onChanged(); } else { hubsBuilder_.addAllMessages(values); @@ -842,6 +926,8 @@ public Builder addAllHubs( return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -859,6 +945,8 @@ public Builder clearHubs() { return this; } /** + * + * *
      * Hubs to be returned.
      * 
@@ -876,39 +964,44 @@ public Builder removeHubs(int index) { return this; } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubsBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubsBuilder(int index) { return getHubsFieldBuilder().getBuilder(index); } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder(int index) { if (hubsBuilder_ == null) { - return hubs_.get(index); } else { + return hubs_.get(index); + } else { return hubsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public java.util.List - getHubsOrBuilderList() { + public java.util.List + getHubsOrBuilderList() { if (hubsBuilder_ != null) { return hubsBuilder_.getMessageOrBuilderList(); } else { @@ -916,6 +1009,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuild } } /** + * + * *
      * Hubs to be returned.
      * 
@@ -923,42 +1018,49 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuild * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder() { - return getHubsFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); + return getHubsFieldBuilder() + .addBuilder(com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder( - int index) { - return getHubsFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder(int index) { + return getHubsFieldBuilder() + .addBuilder( + index, com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()); } /** + * + * *
      * Hubs to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - public java.util.List - getHubsBuilderList() { + public java.util.List + getHubsBuilderList() { return getHubsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> getHubsFieldBuilder() { if (hubsBuilder_ == null) { - hubsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( - hubs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + hubsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( + hubs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); hubs_ = null; } return hubsBuilder_; @@ -966,19 +1068,21 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder addHubsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -987,21 +1091,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1009,30 +1114,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1154,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1177,52 @@ public Builder setNextPageTokenBytes( 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * 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. */ @@ -1104,76 +1230,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) { - if (value == null) { throw new NullPointerException(); } + 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(); } + 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) { + 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() { @@ -1183,26 +1323,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) { - if (value == null) { throw new NullPointerException(); } + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1212,41 +1356,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse(); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHubsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHubsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1258,9 +1404,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java index 04585dd17478..0e7c350ae916 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponseOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListHubsResponseOrBuilder extends +public interface ListHubsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListHubsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Hubs to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - java.util.List - getHubsList(); + java.util.List getHubsList(); /** + * + * *
    * Hubs to be returned.
    * 
@@ -25,6 +44,8 @@ public interface ListHubsResponseOrBuilder extends */ com.google.cloud.networkconnectivity.v1alpha1.Hub getHubs(int index); /** + * + * *
    * Hubs to be returned.
    * 
@@ -33,84 +54,102 @@ public interface ListHubsResponseOrBuilder extends */ int getHubsCount(); /** + * + * *
    * Hubs to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - java.util.List + java.util.List getHubsOrBuilderList(); /** + * + * *
    * Hubs to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Hub hubs = 1; */ - com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder( - int index); + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubsOrBuilder(int index); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java similarity index 66% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java index d02e80f4ce44..16ad2870ba59 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest} */ -public final class ListSpokesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSpokesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) ListSpokesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSpokesRequest.newBuilder() to construct. private ListSpokesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSpokesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,38 +46,45 @@ private ListSpokesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSpokesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent's resource name.
    * 
* - * string parent = 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 @@ -68,29 +93,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent's resource name.
    * 
* - * string parent = 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 { @@ -101,11 +128,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -114,14 +144,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -130,29 +164,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * The page token.
    * 
* * 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 { @@ -161,14 +195,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -177,29 +215,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; } } /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * 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 { @@ -208,14 +246,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -224,29 +266,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -255,6 +297,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -296,8 +338,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_); @@ -316,23 +357,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.networkconnectivity.v1alpha1.ListSpokesRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other = (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -360,129 +397,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,13 +540,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance(); } @@ -517,13 +562,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -546,46 +595,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListSpo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -635,37 +688,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -675,22 +734,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent's resource name.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -699,20 +763,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent's resource name.
      * 
* - * string parent = 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,28 +787,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent's resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent's resource name.
      * 
* - * string 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() { @@ -751,17 +829,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent's resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -769,13 +853,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -783,27 +870,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of results per page that should be returned.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -815,18 +908,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * The page token.
      * 
* * 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; @@ -835,20 +930,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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 { @@ -856,28 +952,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The page token.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -887,17 +990,21 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * The page token.
      * 
* * 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(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -907,18 +1014,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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; @@ -927,20 +1036,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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 { @@ -948,28 +1058,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -979,17 +1096,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * A filter expression that filters the results listed in the response.
      * 
* * 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(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -999,18 +1120,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1019,20 +1142,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1040,28 +1164,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1071,26 +1202,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Sort the results by a certain order.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1100,41 +1235,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1146,9 +1283,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java index ec02d876fd99..444a3f40fd43 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequestOrBuilder.java @@ -1,99 +1,142 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListSpokesRequestOrBuilder extends +public interface ListSpokesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent's resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent's resource name.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of results per page that should be returned.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * The page token.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * A filter expression that filters the results listed in the response.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort the results by a certain order.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java similarity index 71% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java index 9193ff955e1f..df099e099d9c 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse} */ -public final class ListSpokesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSpokesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) ListSpokesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSpokesResponse.newBuilder() to construct. private ListSpokesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSpokesResponse() { spokes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,33 +45,37 @@ private ListSpokesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSpokesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); } public static final int SPOKES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List spokes_; /** + * + * *
    * Spokes to be returned.
    * 
@@ -65,6 +87,8 @@ public java.util.List getSp return spokes_; } /** + * + * *
    * Spokes to be returned.
    * 
@@ -72,11 +96,13 @@ public java.util.List getSp * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSpokesOrBuilderList() { return spokes_; } /** + * + * *
    * Spokes to be returned.
    * 
@@ -88,6 +114,8 @@ public int getSpokesCount() { return spokes_.size(); } /** + * + * *
    * Spokes to be returned.
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpokes(int index) return spokes_.get(index); } /** + * + * *
    * Spokes to be returned.
    * 
@@ -112,15 +142,19 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrB } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +163,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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 { @@ -161,37 +195,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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. */ @@ -199,20 +242,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; @@ -224,8 +270,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < spokes_.size(); i++) { output.writeMessage(1, spokes_.get(i)); } @@ -245,8 +290,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < spokes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, spokes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, spokes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +311,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.networkconnectivity.v1alpha1.ListSpokesResponse)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other = (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) obj; + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other = + (com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) obj; - if (!getSpokesList() - .equals(other.getSpokesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getSpokesList().equals(other.getSpokesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +349,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes].
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,13 +497,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance(); } @@ -469,14 +519,18 @@ public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse(this); + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result = + new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { if (spokesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { spokes_ = java.util.Collections.unmodifiableList(spokes_); @@ -493,7 +547,8 @@ private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1a result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -504,46 +559,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.ListSpo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse other) { + if (other + == com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance()) + return this; if (spokesBuilder_ == null) { if (!other.spokes_.isEmpty()) { if (spokes_.isEmpty()) { @@ -562,9 +621,10 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.ListSpoke spokesBuilder_ = null; spokes_ = other.spokes_; bitField0_ = (bitField0_ & ~0x00000001); - spokesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSpokesFieldBuilder() : null; + spokesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSpokesFieldBuilder() + : null; } else { spokesBuilder_.addAllMessages(other.spokes_); } @@ -611,36 +671,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.networkconnectivity.v1alpha1.Spoke m = - input.readMessage( - com.google.cloud.networkconnectivity.v1alpha1.Spoke.parser(), - extensionRegistry); - if (spokesBuilder_ == null) { - ensureSpokesIsMutable(); - spokes_.add(m); - } else { - spokesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.networkconnectivity.v1alpha1.Spoke m = + input.readMessage( + com.google.cloud.networkconnectivity.v1alpha1.Spoke.parser(), + extensionRegistry); + if (spokesBuilder_ == null) { + ensureSpokesIsMutable(); + spokes_.add(m); + } else { + spokesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,21 +714,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List spokes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSpokesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - spokes_ = new java.util.ArrayList(spokes_); + spokes_ = + new java.util.ArrayList(spokes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> spokesBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + spokesBuilder_; /** + * + * *
      * Spokes to be returned.
      * 
@@ -679,6 +751,8 @@ public java.util.List getSp } } /** + * + * *
      * Spokes to be returned.
      * 
@@ -693,6 +767,8 @@ public int getSpokesCount() { } } /** + * + * *
      * Spokes to be returned.
      * 
@@ -707,14 +783,15 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpokes(int index) } } /** + * + * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public Builder setSpokes( - int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { + public Builder setSpokes(int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -728,6 +805,8 @@ public Builder setSpokes( return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -746,6 +825,8 @@ public Builder setSpokes( return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -766,14 +847,15 @@ public Builder addSpokes(com.google.cloud.networkconnectivity.v1alpha1.Spoke val return this; } /** + * + * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public Builder addSpokes( - int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { + public Builder addSpokes(int index, com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -787,6 +869,8 @@ public Builder addSpokes( return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -805,6 +889,8 @@ public Builder addSpokes( return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -823,6 +909,8 @@ public Builder addSpokes( return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -833,8 +921,7 @@ public Builder addAllSpokes( java.lang.Iterable values) { if (spokesBuilder_ == null) { ensureSpokesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, spokes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spokes_); onChanged(); } else { spokesBuilder_.addAllMessages(values); @@ -842,6 +929,8 @@ public Builder addAllSpokes( return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -859,6 +948,8 @@ public Builder clearSpokes() { return this; } /** + * + * *
      * Spokes to be returned.
      * 
@@ -876,17 +967,20 @@ public Builder removeSpokes(int index) { return this; } /** + * + * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokesBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokesBuilder(int index) { return getSpokesFieldBuilder().getBuilder(index); } /** + * + * *
      * Spokes to be returned.
      * 
@@ -896,19 +990,22 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokesBuil public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrBuilder( int index) { if (spokesBuilder_ == null) { - return spokes_.get(index); } else { + return spokes_.get(index); + } else { return spokesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public java.util.List - getSpokesOrBuilderList() { + public java.util.List + getSpokesOrBuilderList() { if (spokesBuilder_ != null) { return spokesBuilder_.getMessageOrBuilderList(); } else { @@ -916,6 +1013,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrB } } /** + * + * *
      * Spokes to be returned.
      * 
@@ -923,42 +1022,49 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrB * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuilder() { - return getSpokesFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); + return getSpokesFieldBuilder() + .addBuilder(com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); } /** + * + * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuilder( - int index) { - return getSpokesFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuilder(int index) { + return getSpokesFieldBuilder() + .addBuilder( + index, com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()); } /** + * + * *
      * Spokes to be returned.
      * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - public java.util.List - getSpokesBuilderList() { + public java.util.List + getSpokesBuilderList() { return getSpokesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> getSpokesFieldBuilder() { if (spokesBuilder_ == null) { - spokesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( - spokes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + spokesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( + spokes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); spokes_ = null; } return spokesBuilder_; @@ -966,19 +1072,21 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder addSpokesBuil private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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; @@ -987,21 +1095,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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 { @@ -1009,30 +1118,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1158,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * The next pagination token in the List response. It should be used as
      * page_token for the following request. An empty value means no more result.
      * 
* * 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(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1181,52 @@ public Builder setNextPageTokenBytes( 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_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * 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. */ @@ -1104,76 +1234,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) { - if (value == null) { throw new NullPointerException(); } + 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(); } + 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) { + 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() { @@ -1183,26 +1327,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) { - if (value == null) { throw new NullPointerException(); } + 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) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1212,41 +1360,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) - private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse(); } - public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSpokesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSpokesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1258,9 +1408,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java index cd1aaeb8ddaf..f961b406b6ac 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponseOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface ListSpokesResponseOrBuilder extends +public interface ListSpokesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Spokes to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - java.util.List - getSpokesList(); + java.util.List getSpokesList(); /** + * + * *
    * Spokes to be returned.
    * 
@@ -25,6 +44,8 @@ public interface ListSpokesResponseOrBuilder extends */ com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpokes(int index); /** + * + * *
    * Spokes to be returned.
    * 
@@ -33,84 +54,102 @@ public interface ListSpokesResponseOrBuilder extends */ int getSpokesCount(); /** + * + * *
    * Spokes to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - java.util.List + java.util.List getSpokesOrBuilderList(); /** + * + * *
    * Spokes to be returned.
    * 
* * repeated .google.cloud.networkconnectivity.v1alpha1.Spoke spokes = 1; */ - com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrBuilder( - int index); + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokesOrBuilder(int index); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * The next pagination token in the List response. It should be used as
    * page_token for the following request. An empty value means no more result.
    * 
* * 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/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java index adc9f5345b26..e602957e7330 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/common.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,37 +46,42 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -66,11 +89,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -78,11 +105,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -92,11 +122,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -104,11 +138,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -116,11 +154,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -128,14 +169,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -144,29 +189,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -175,14 +220,18 @@ public java.lang.String getTarget() { } public static final int VERB_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -191,29 +240,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -222,14 +271,18 @@ public java.lang.String getVerb() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -238,29 +291,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -271,6 +324,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -279,6 +334,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -287,14 +343,18 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -303,29 +363,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -334,6 +394,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -345,8 +406,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -378,12 +438,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_); @@ -395,8 +453,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_); @@ -409,33 +466,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.networkconnectivity.v1alpha1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other = (com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) obj; + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other = + (com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -462,8 +513,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) + getUnknownFields().hashCode(); @@ -472,129 +522,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) com.google.cloud.networkconnectivity.v1alpha1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.class, + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -618,13 +675,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.CommonProto.internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.CommonProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.getDefaultInstance(); } @@ -639,23 +697,23 @@ public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result = new com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result = + new com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -678,46 +736,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Operati public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata other) { + if (other + == com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -773,51 +835,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -827,43 +893,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time 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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -879,14 +965,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -897,17 +986,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -920,11 +1013,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -937,11 +1034,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -949,36 +1050,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -986,24 +1099,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1014,11 +1138,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1034,14 +1161,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1052,17 +1181,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1075,11 +1207,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1092,11 +1227,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1104,36 +1242,44 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1141,18 +1287,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1161,20 +1309,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1182,28 +1331,35 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1213,17 +1369,21 @@ public Builder clearTarget() { return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1233,18 +1393,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1253,20 +1415,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1274,28 +1437,35 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1305,17 +1475,21 @@ public Builder clearVerb() { return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1325,18 +1499,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1345,20 +1521,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1366,28 +1543,35 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1397,17 +1581,21 @@ public Builder clearStatusMessage() { return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1415,8 +1603,10 @@ public Builder setStatusMessageBytes( return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1425,6 +1615,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1432,6 +1623,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1440,17 +1633,20 @@ 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; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1459,6 +1655,7 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1470,18 +1667,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1490,20 +1689,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1511,28 +1711,35 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1542,26 +1749,30 @@ public Builder clearApiVersion() { return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1571,41 +1782,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) - private static final com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata(); } - public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1617,9 +1830,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.OperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java index 9df65555334e..984bdadf0f01 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/common.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java similarity index 63% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java index a16aa2f28465..0b6f52d0e51d 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * RouterAppliance represents a Router appliance which is specified by a VM URI
  * and a NIC address.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance}
  */
-public final class RouterApplianceInstance extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RouterApplianceInstance extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance)
     RouterApplianceInstanceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RouterApplianceInstance.newBuilder() to construct.
   private RouterApplianceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RouterApplianceInstance() {
     virtualMachine_ = "";
     ipAddress_ = "";
@@ -28,38 +46,43 @@ private RouterApplianceInstance() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RouterApplianceInstance();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
+            com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class,
+            com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
   }
 
   public static final int VIRTUAL_MACHINE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object virtualMachine_ = "";
   /**
+   *
+   *
    * 
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The virtualMachine. */ @java.lang.Override @@ -68,29 +91,29 @@ public java.lang.String getVirtualMachine() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; } } /** + * + * *
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for virtualMachine. */ @java.lang.Override - public com.google.protobuf.ByteString - getVirtualMachineBytes() { + public com.google.protobuf.ByteString getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -99,14 +122,18 @@ public java.lang.String getVirtualMachine() { } public static final int IP_ADDRESS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object ipAddress_ = ""; /** + * + * *
    * The IP address of the network interface to use for peering.
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ @java.lang.Override @@ -115,29 +142,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; } } /** + * + * *
    * The IP address of the network interface to use for peering.
    * 
* * 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 { @@ -146,22 +173,24 @@ public java.lang.String getIpAddress() { } public static final int NETWORK_INTERFACE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object networkInterface_ = ""; /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface + * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The networkInterface. */ @java.lang.Override - @java.lang.Deprecated public java.lang.String getNetworkInterface() { + @java.lang.Deprecated + public java.lang.String getNetworkInterface() { java.lang.Object ref = networkInterface_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkInterface_ = s; return s; @@ -169,18 +198,18 @@ public java.lang.String getIpAddress() { } /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface + * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The bytes for networkInterface. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNetworkInterfaceBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getNetworkInterfaceBytes() { java.lang.Object ref = networkInterface_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); networkInterface_ = b; return b; } else { @@ -189,6 +218,7 @@ public java.lang.String getIpAddress() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +230,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(virtualMachine_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, virtualMachine_); } @@ -237,19 +266,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.networkconnectivity.v1alpha1.RouterApplianceInstance)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other = (com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) obj; + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other = + (com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) obj; - if (!getVirtualMachine() - .equals(other.getVirtualMachine())) return false; - if (!getIpAddress() - .equals(other.getIpAddress())) return false; - if (!getNetworkInterface() - .equals(other.getNetworkInterface())) return false; + if (!getVirtualMachine().equals(other.getVirtualMachine())) return false; + if (!getIpAddress().equals(other.getIpAddress())) return false; + if (!getNetworkInterface().equals(other.getNetworkInterface())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -273,96 +300,105 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance 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.networkconnectivity.v1alpha1.RouterApplianceInstance + 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.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * RouterAppliance represents a Router appliance which is specified by a VM URI
    * and a NIC address.
@@ -370,33 +406,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance)
       com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
+              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.class,
+              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder.class);
     }
 
-    // Construct using com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.newBuilder()
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -408,14 +444,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getDefaultInstanceForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance();
+    public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
+        getDefaultInstanceForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -429,13 +467,17 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance bui
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance buildPartial() {
-      com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result = new com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result =
+          new com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result) {
+    private void buildPartial0(
+        com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.virtualMachine_ = virtualMachine_;
@@ -452,46 +494,51 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.RouterA
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance)other);
+        return mergeFrom(
+            (com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other) {
-      if (other == com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance other) {
+      if (other
+          == com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
+              .getDefaultInstance()) return this;
       if (!other.getVirtualMachine().isEmpty()) {
         virtualMachine_ = other.virtualMachine_;
         bitField0_ |= 0x00000001;
@@ -533,27 +580,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              virtualMachine_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              networkInterface_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 18
-            case 26: {
-              ipAddress_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                virtualMachine_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                networkInterface_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 18
+            case 26:
+              {
+                ipAddress_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -563,22 +614,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object virtualMachine_ = "";
     /**
+     *
+     *
      * 
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The virtualMachine. */ public java.lang.String getVirtualMachine() { java.lang.Object ref = virtualMachine_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); virtualMachine_ = s; return s; @@ -587,20 +641,21 @@ public java.lang.String getVirtualMachine() { } } /** + * + * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for virtualMachine. */ - public com.google.protobuf.ByteString - getVirtualMachineBytes() { + public com.google.protobuf.ByteString getVirtualMachineBytes() { java.lang.Object ref = virtualMachine_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); virtualMachine_ = b; return b; } else { @@ -608,28 +663,35 @@ public java.lang.String getVirtualMachine() { } } /** + * + * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @param value The virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachine( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVirtualMachine(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } virtualMachine_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearVirtualMachine() { @@ -639,17 +701,21 @@ public Builder clearVirtualMachine() { return this; } /** + * + * *
      * The URI of the virtual machine resource
      * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for virtualMachine to set. * @return This builder for chaining. */ - public Builder setVirtualMachineBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVirtualMachineBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); virtualMachine_ = value; bitField0_ |= 0x00000001; @@ -659,18 +725,20 @@ public Builder setVirtualMachineBytes( private java.lang.Object ipAddress_ = ""; /** + * + * *
      * The IP address of the network interface to use for peering.
      * 
* * 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; @@ -679,20 +747,21 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The IP address of the network interface to use for peering.
      * 
* * 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 { @@ -700,28 +769,35 @@ public java.lang.String getIpAddress() { } } /** + * + * *
      * The IP address of the network interface to use for peering.
      * 
* * 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(); } + public Builder setIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ipAddress_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The IP address of the network interface to use for peering.
      * 
* * string ip_address = 3; + * * @return This builder for chaining. */ public Builder clearIpAddress() { @@ -731,17 +807,21 @@ public Builder clearIpAddress() { return this; } /** + * + * *
      * The IP address of the network interface to use for peering.
      * 
* * 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(); } + public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ipAddress_ = value; bitField0_ |= 0x00000002; @@ -752,15 +832,17 @@ public Builder setIpAddressBytes( private java.lang.Object networkInterface_ = ""; /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated + * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is + * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The networkInterface. */ - @java.lang.Deprecated public java.lang.String getNetworkInterface() { + @java.lang.Deprecated + public java.lang.String getNetworkInterface() { java.lang.Object ref = networkInterface_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkInterface_ = s; return s; @@ -770,17 +852,18 @@ public Builder setIpAddressBytes( } /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated + * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is + * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The bytes for networkInterface. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getNetworkInterfaceBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getNetworkInterfaceBytes() { java.lang.Object ref = networkInterface_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); networkInterface_ = b; return b; } else { @@ -789,14 +872,18 @@ public Builder setIpAddressBytes( } /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated + * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is + * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @param value The networkInterface to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setNetworkInterface( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder setNetworkInterface(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } networkInterface_ = value; bitField0_ |= 0x00000004; onChanged(); @@ -804,11 +891,14 @@ public Builder setIpAddressBytes( } /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated + * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is + * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearNetworkInterface() { + @java.lang.Deprecated + public Builder clearNetworkInterface() { networkInterface_ = getDefaultInstance().getNetworkInterface(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); @@ -816,23 +906,27 @@ public Builder setIpAddressBytes( } /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated + * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is + * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @param value The bytes for networkInterface to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setNetworkInterfaceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + @java.lang.Deprecated + public Builder setNetworkInterfaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); networkInterface_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -842,41 +936,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) - private static final com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance(); } - public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouterApplianceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouterApplianceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -888,9 +984,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java similarity index 55% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java index 09034b583365..9d10c38aef90 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java @@ -1,65 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface RouterApplianceInstanceOrBuilder extends +public interface RouterApplianceInstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The virtualMachine. */ java.lang.String getVirtualMachine(); /** + * + * *
    * The URI of the virtual machine resource
    * 
* * string virtual_machine = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for virtualMachine. */ - com.google.protobuf.ByteString - getVirtualMachineBytes(); + com.google.protobuf.ByteString getVirtualMachineBytes(); /** + * + * *
    * The IP address of the network interface to use for peering.
    * 
* * string ip_address = 3; + * * @return The ipAddress. */ java.lang.String getIpAddress(); /** + * + * *
    * The IP address of the network interface to use for peering.
    * 
* * string ip_address = 3; + * * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString - getIpAddressBytes(); + com.google.protobuf.ByteString getIpAddressBytes(); /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface + * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The networkInterface. */ - @java.lang.Deprecated java.lang.String getNetworkInterface(); + @java.lang.Deprecated + java.lang.String getNetworkInterface(); /** * string network_interface = 2 [deprecated = true]; - * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is deprecated. - * See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 + * + * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface + * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533 * @return The bytes for networkInterface. */ - @java.lang.Deprecated com.google.protobuf.ByteString - getNetworkInterfaceBytes(); + @java.lang.Deprecated + com.google.protobuf.ByteString getNetworkInterfaceBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java similarity index 66% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java index b425a46ccf5c..482de452ad94 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * A Spoke is an  abstraction of a network attachment being attached
  * to a Hub. A Spoke can be underlying a VPN tunnel, a
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Spoke}
  */
-public final class Spoke extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Spoke extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.Spoke)
     SpokeOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Spoke.newBuilder() to construct.
   private Spoke(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Spoke() {
     name_ = "";
     description_ = "";
@@ -34,50 +52,54 @@ private Spoke() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Spoke();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
+    return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+        .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
+            com.google.cloud.networkconnectivity.v1alpha1.Spoke.class,
+            com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -86,29 +108,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; } } /** + * + * *
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -119,11 +141,14 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -131,11 +156,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ @java.lang.Override @@ -143,6 +171,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time when the Spoke was created.
    * 
@@ -157,11 +187,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -169,11 +202,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ @java.lang.Override @@ -181,6 +217,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The time when the Spoke was updated.
    * 
@@ -193,32 +231,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_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.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - 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_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * User-defined labels.
    * 
@@ -226,20 +266,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** + * + * *
    * User-defined labels.
    * 
@@ -251,6 +292,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * User-defined labels.
    * 
@@ -258,17 +301,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + 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; } /** + * + * *
    * User-defined labels.
    * 
@@ -276,11 +321,11 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new 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(); } @@ -288,14 +333,18 @@ public java.lang.String getLabelsOrThrow( } public static final int DESCRIPTION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Short description of the spoke resource
    * 
* * string description = 5; + * * @return The description. */ @java.lang.Override @@ -304,29 +353,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Short description of the spoke resource
    * 
* * string description = 5; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -335,14 +384,18 @@ public java.lang.String getDescription() { } public static final int HUB_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object hub_ = ""; /** + * + * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return The hub. */ @java.lang.Override @@ -351,29 +404,29 @@ public java.lang.String getHub() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; } } /** + * + * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for hub. */ @java.lang.Override - public com.google.protobuf.ByteString - getHubBytes() { + public com.google.protobuf.ByteString getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hub_ = b; return b; } else { @@ -382,37 +435,49 @@ public java.lang.String getHub() { } public static final int LINKED_VPN_TUNNELS_FIELD_NUMBER = 12; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList linkedVpnTunnels_; /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the linkedVpnTunnels. */ - public com.google.protobuf.ProtocolStringList - getLinkedVpnTunnelsList() { + public com.google.protobuf.ProtocolStringList getLinkedVpnTunnelsList() { return linkedVpnTunnels_; } /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return The count of linkedVpnTunnels. */ public int getLinkedVpnTunnelsCount() { return linkedVpnTunnels_.size(); } /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The linkedVpnTunnels at the given index. */ @@ -420,51 +485,69 @@ public java.lang.String getLinkedVpnTunnels(int index) { return linkedVpnTunnels_.get(index); } /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the linkedVpnTunnels at the given index. */ - public com.google.protobuf.ByteString - getLinkedVpnTunnelsBytes(int index) { + public com.google.protobuf.ByteString getLinkedVpnTunnelsBytes(int index) { return linkedVpnTunnels_.getByteString(index); } public static final int LINKED_INTERCONNECT_ATTACHMENTS_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList linkedInterconnectAttachments_; /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the linkedInterconnectAttachments. */ - public com.google.protobuf.ProtocolStringList - getLinkedInterconnectAttachmentsList() { + public com.google.protobuf.ProtocolStringList getLinkedInterconnectAttachmentsList() { return linkedInterconnectAttachments_; } /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return The count of linkedInterconnectAttachments. */ public int getLinkedInterconnectAttachmentsCount() { return linkedInterconnectAttachments_.size(); } /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The linkedInterconnectAttachments at the given index. */ @@ -472,84 +555,116 @@ public java.lang.String getLinkedInterconnectAttachments(int index) { return linkedInterconnectAttachments_.get(index); } /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the linkedInterconnectAttachments at the given index. */ - public com.google.protobuf.ByteString - getLinkedInterconnectAttachmentsBytes(int index) { + public com.google.protobuf.ByteString getLinkedInterconnectAttachmentsBytes(int index) { return linkedInterconnectAttachments_.getByteString(index); } public static final int LINKED_ROUTER_APPLIANCE_INSTANCES_FIELD_NUMBER = 14; + @SuppressWarnings("serial") - private java.util.List linkedRouterApplianceInstances_; + private java.util.List + linkedRouterApplianceInstances_; /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ @java.lang.Override - public java.util.List getLinkedRouterApplianceInstancesList() { + public java.util.List + getLinkedRouterApplianceInstancesList() { return linkedRouterApplianceInstances_; } /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> getLinkedRouterApplianceInstancesOrBuilderList() { return linkedRouterApplianceInstances_; } /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ @java.lang.Override public int getLinkedRouterApplianceInstancesCount() { return linkedRouterApplianceInstances_.size(); } /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getLinkedRouterApplianceInstances(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + getLinkedRouterApplianceInstances(int index) { return linkedRouterApplianceInstances_.get(index); } /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder getLinkedRouterApplianceInstancesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder + getLinkedRouterApplianceInstancesOrBuilder(int index) { return linkedRouterApplianceInstances_.get(index); } public static final int UNIQUE_ID_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object uniqueId_ = ""; /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -557,6 +672,7 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBu
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ @java.lang.Override @@ -565,14 +681,15 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -580,16 +697,15 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -600,30 +716,46 @@ public java.lang.String getUniqueId() { public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.networkconnectivity.v1alpha1.State getState() { + com.google.cloud.networkconnectivity.v1alpha1.State result = + com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null + ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -635,8 +767,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -646,12 +777,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -665,12 +792,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 12, linkedVpnTunnels_.getRaw(i)); } for (int i = 0; i < linkedInterconnectAttachments_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, linkedInterconnectAttachments_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 13, linkedInterconnectAttachments_.getRaw(i)); } for (int i = 0; i < linkedRouterApplianceInstances_.size(); i++) { output.writeMessage(14, linkedRouterApplianceInstances_.get(i)); } - if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(15, state_); } getUnknownFields().writeTo(output); @@ -686,22 +815,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -729,12 +856,13 @@ public int getSerializedSize() { size += 1 * getLinkedInterconnectAttachmentsList().size(); } for (int i = 0; i < linkedRouterApplianceInstances_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, linkedRouterApplianceInstances_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, linkedRouterApplianceInstances_.get(i)); } - if (state_ != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, state_); + if (state_ + != com.google.cloud.networkconnectivity.v1alpha1.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -744,39 +872,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.networkconnectivity.v1alpha1.Spoke)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.Spoke other = (com.google.cloud.networkconnectivity.v1alpha1.Spoke) obj; + com.google.cloud.networkconnectivity.v1alpha1.Spoke other = + (com.google.cloud.networkconnectivity.v1alpha1.Spoke) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getHub() - .equals(other.getHub())) return false; - if (!getLinkedVpnTunnelsList() - .equals(other.getLinkedVpnTunnelsList())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getHub().equals(other.getHub())) return false; + if (!getLinkedVpnTunnelsList().equals(other.getLinkedVpnTunnelsList())) return false; if (!getLinkedInterconnectAttachmentsList() .equals(other.getLinkedInterconnectAttachmentsList())) return false; if (!getLinkedRouterApplianceInstancesList() .equals(other.getLinkedRouterApplianceInstancesList())) return false; - if (!getUniqueId() - .equals(other.getUniqueId())) return false; + if (!getUniqueId().equals(other.getUniqueId())) return false; if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -829,96 +950,103 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.Spoke parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.Spoke prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Spoke is an  abstraction of a network attachment being attached
    * to a Hub. A Spoke can be underlying a VPN tunnel, a
@@ -927,55 +1055,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.Spoke}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.Spoke)
       com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
+              com.google.cloud.networkconnectivity.v1alpha1.Spoke.class,
+              com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder.class);
     }
 
     // Construct using com.google.cloud.networkconnectivity.v1alpha1.Spoke.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1011,9 +1136,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.networkconnectivity.v1alpha1.HubProto
+          .internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor;
     }
 
     @java.lang.Override
@@ -1032,14 +1157,18 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke build() {
 
     @java.lang.Override
     public com.google.cloud.networkconnectivity.v1alpha1.Spoke buildPartial() {
-      com.google.cloud.networkconnectivity.v1alpha1.Spoke result = new com.google.cloud.networkconnectivity.v1alpha1.Spoke(this);
+      com.google.cloud.networkconnectivity.v1alpha1.Spoke result =
+          new com.google.cloud.networkconnectivity.v1alpha1.Spoke(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1alpha1.Spoke result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.networkconnectivity.v1alpha1.Spoke result) {
       if (((bitField0_ & 0x00000040) != 0)) {
         linkedVpnTunnels_ = linkedVpnTunnels_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000040);
@@ -1052,7 +1181,8 @@ private void buildPartialRepeatedFields(com.google.cloud.networkconnectivity.v1a
       result.linkedInterconnectAttachments_ = linkedInterconnectAttachments_;
       if (linkedRouterApplianceInstancesBuilder_ == null) {
         if (((bitField0_ & 0x00000100) != 0)) {
-          linkedRouterApplianceInstances_ = java.util.Collections.unmodifiableList(linkedRouterApplianceInstances_);
+          linkedRouterApplianceInstances_ =
+              java.util.Collections.unmodifiableList(linkedRouterApplianceInstances_);
           bitField0_ = (bitField0_ & ~0x00000100);
         }
         result.linkedRouterApplianceInstances_ = linkedRouterApplianceInstances_;
@@ -1067,14 +1197,10 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Spoke r
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -1098,38 +1224,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.Spoke r
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.Spoke) {
-        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Spoke)other);
+        return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.Spoke) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1137,7 +1264,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Spoke other) {
-      if (other == com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) return this;
+      if (other == com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1149,8 +1277,7 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Spoke oth
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
@@ -1200,11 +1327,13 @@ public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.Spoke oth
             linkedRouterApplianceInstancesBuilder_ = null;
             linkedRouterApplianceInstances_ = other.linkedRouterApplianceInstances_;
             bitField0_ = (bitField0_ & ~0x00000100);
-            linkedRouterApplianceInstancesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getLinkedRouterApplianceInstancesFieldBuilder() : null;
+            linkedRouterApplianceInstancesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getLinkedRouterApplianceInstancesFieldBuilder()
+                    : null;
           } else {
-            linkedRouterApplianceInstancesBuilder_.addAllMessages(other.linkedRouterApplianceInstances_);
+            linkedRouterApplianceInstancesBuilder_.addAllMessages(
+                other.linkedRouterApplianceInstances_);
           }
         }
       }
@@ -1242,85 +1371,96 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              hub_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 90: {
-              uniqueId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 90
-            case 98: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureLinkedVpnTunnelsIsMutable();
-              linkedVpnTunnels_.add(s);
-              break;
-            } // case 98
-            case 106: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureLinkedInterconnectAttachmentsIsMutable();
-              linkedInterconnectAttachments_.add(s);
-              break;
-            } // case 106
-            case 114: {
-              com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance m =
-                  input.readMessage(
-                      com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.parser(),
-                      extensionRegistry);
-              if (linkedRouterApplianceInstancesBuilder_ == null) {
-                ensureLinkedRouterApplianceInstancesIsMutable();
-                linkedRouterApplianceInstances_.add(m);
-              } else {
-                linkedRouterApplianceInstancesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 114
-            case 120: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 120
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                hub_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 90:
+              {
+                uniqueId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 90
+            case 98:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureLinkedVpnTunnelsIsMutable();
+                linkedVpnTunnels_.add(s);
+                break;
+              } // case 98
+            case 106:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureLinkedInterconnectAttachmentsIsMutable();
+                linkedInterconnectAttachments_.add(s);
+                break;
+              } // case 106
+            case 114:
+              {
+                com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance m =
+                    input.readMessage(
+                        com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance
+                            .parser(),
+                        extensionRegistry);
+                if (linkedRouterApplianceInstancesBuilder_ == null) {
+                  ensureLinkedRouterApplianceInstancesIsMutable();
+                  linkedRouterApplianceInstances_.add(m);
+                } else {
+                  linkedRouterApplianceInstancesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 114
+            case 120:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 120
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1330,22 +1470,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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; @@ -1354,20 +1497,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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 { @@ -1375,28 +1519,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1406,17 +1557,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Immutable. The name of a Spoke resource.
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1426,34 +1581,47 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The time when the Spoke was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The time when the Spoke was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; + * * @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 when the Spoke was created.
      * 
@@ -1474,14 +1642,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the Spoke was created.
      * 
* * .google.protobuf.Timestamp create_time = 2; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1492,6 +1661,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time when the Spoke was created.
      * 
@@ -1500,9 +1671,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1515,6 +1686,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the Spoke was created.
      * 
@@ -1532,6 +1705,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time when the Spoke was created.
      * 
@@ -1544,6 +1719,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the Spoke was created.
      * 
@@ -1554,11 +1731,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time when the Spoke was created.
      * 
@@ -1566,14 +1746,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> 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_; @@ -1581,34 +1764,47 @@ 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_; /** + * + * *
      * The time when the Spoke was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The time when the Spoke was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @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(); } } /** + * + * *
      * The time when the Spoke was updated.
      * 
@@ -1629,14 +1825,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the Spoke was updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1647,6 +1844,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * The time when the Spoke was updated.
      * 
@@ -1655,9 +1854,9 @@ public Builder setUpdateTime( */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1670,6 +1869,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the Spoke was updated.
      * 
@@ -1687,6 +1888,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * The time when the Spoke was updated.
      * 
@@ -1699,6 +1902,8 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the Spoke was updated.
      * 
@@ -1709,11 +1914,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * The time when the Spoke was updated.
      * 
@@ -1721,34 +1929,35 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { 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(); @@ -1757,10 +1966,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * User-defined labels.
      * 
@@ -1768,20 +1980,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @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(); } /** + * + * *
      * User-defined labels.
      * 
@@ -1793,6 +2006,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * User-defined labels.
      * 
@@ -1800,17 +2015,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + 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; } /** + * + * *
      * User-defined labels.
      * 
@@ -1818,91 +2035,95 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new 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(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - 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); + 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); bitField0_ |= 0x00000008; return this; } /** + * + * *
      * User-defined labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object description_ = ""; /** + * + * *
      * Short description of the spoke resource
      * 
* * string description = 5; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1911,20 +2132,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Short description of the spoke resource
      * 
* * string description = 5; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1932,28 +2154,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Short description of the spoke resource
      * 
* * string description = 5; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Short description of the spoke resource
      * 
* * string description = 5; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1963,17 +2192,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Short description of the spoke resource
      * 
* * string description = 5; + * * @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(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -1983,18 +2216,20 @@ public Builder setDescriptionBytes( private java.lang.Object hub_ = ""; /** + * + * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return The hub. */ public java.lang.String getHub() { java.lang.Object ref = hub_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hub_ = s; return s; @@ -2003,20 +2238,21 @@ public java.lang.String getHub() { } } /** + * + * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for hub. */ - public com.google.protobuf.ByteString - getHubBytes() { + public com.google.protobuf.ByteString getHubBytes() { java.lang.Object ref = hub_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hub_ = b; return b; } else { @@ -2024,28 +2260,35 @@ public java.lang.String getHub() { } } /** + * + * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @param value The hub to set. * @return This builder for chaining. */ - public Builder setHub( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHub(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hub_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearHub() { @@ -2055,17 +2298,21 @@ public Builder clearHub() { return this; } /** + * + * *
      * The resource URL of the hub resource that the spoke is attached to
      * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for hub to set. * @return This builder for chaining. */ - public Builder setHubBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHubBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hub_ = value; bitField0_ |= 0x00000020; @@ -2073,42 +2320,55 @@ public Builder setHubBytes( return this; } - private com.google.protobuf.LazyStringList linkedVpnTunnels_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList linkedVpnTunnels_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLinkedVpnTunnelsIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { linkedVpnTunnels_ = new com.google.protobuf.LazyStringArrayList(linkedVpnTunnels_); bitField0_ |= 0x00000040; - } + } } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the linkedVpnTunnels. */ - public com.google.protobuf.ProtocolStringList - getLinkedVpnTunnelsList() { + public com.google.protobuf.ProtocolStringList getLinkedVpnTunnelsList() { return linkedVpnTunnels_.getUnmodifiableView(); } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return The count of linkedVpnTunnels. */ public int getLinkedVpnTunnelsCount() { return linkedVpnTunnels_.size(); } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The linkedVpnTunnels at the given index. */ @@ -2116,76 +2376,95 @@ public java.lang.String getLinkedVpnTunnels(int index) { return linkedVpnTunnels_.get(index); } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the linkedVpnTunnels at the given index. */ - public com.google.protobuf.ByteString - getLinkedVpnTunnelsBytes(int index) { + public com.google.protobuf.ByteString getLinkedVpnTunnelsBytes(int index) { return linkedVpnTunnels_.getByteString(index); } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The linkedVpnTunnels to set. * @return This builder for chaining. */ - public Builder setLinkedVpnTunnels( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLinkedVpnTunnels(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLinkedVpnTunnelsIsMutable(); linkedVpnTunnels_.set(index, value); onChanged(); return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param value The linkedVpnTunnels to add. * @return This builder for chaining. */ - public Builder addLinkedVpnTunnels( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLinkedVpnTunnels(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLinkedVpnTunnelsIsMutable(); linkedVpnTunnels_.add(value); onChanged(); return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param values The linkedVpnTunnels to add. * @return This builder for chaining. */ - public Builder addAllLinkedVpnTunnels( - java.lang.Iterable values) { + public Builder addAllLinkedVpnTunnels(java.lang.Iterable values) { ensureLinkedVpnTunnelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, linkedVpnTunnels_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, linkedVpnTunnels_); onChanged(); return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearLinkedVpnTunnels() { @@ -2195,17 +2474,22 @@ public Builder clearLinkedVpnTunnels() { return this; } /** + * + * *
      * The URIs of linked VPN tunnel resources
      * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the linkedVpnTunnels to add. * @return This builder for chaining. */ - public Builder addLinkedVpnTunnelsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLinkedVpnTunnelsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureLinkedVpnTunnelsIsMutable(); linkedVpnTunnels_.add(value); @@ -2213,42 +2497,59 @@ public Builder addLinkedVpnTunnelsBytes( return this; } - private com.google.protobuf.LazyStringList linkedInterconnectAttachments_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList linkedInterconnectAttachments_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLinkedInterconnectAttachmentsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { - linkedInterconnectAttachments_ = new com.google.protobuf.LazyStringArrayList(linkedInterconnectAttachments_); + linkedInterconnectAttachments_ = + new com.google.protobuf.LazyStringArrayList(linkedInterconnectAttachments_); bitField0_ |= 0x00000080; - } + } } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the linkedInterconnectAttachments. */ - public com.google.protobuf.ProtocolStringList - getLinkedInterconnectAttachmentsList() { + public com.google.protobuf.ProtocolStringList getLinkedInterconnectAttachmentsList() { return linkedInterconnectAttachments_.getUnmodifiableView(); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return The count of linkedInterconnectAttachments. */ public int getLinkedInterconnectAttachmentsCount() { return linkedInterconnectAttachments_.size(); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The linkedInterconnectAttachments at the given index. */ @@ -2256,59 +2557,80 @@ public java.lang.String getLinkedInterconnectAttachments(int index) { return linkedInterconnectAttachments_.get(index); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the linkedInterconnectAttachments at the given index. */ - public com.google.protobuf.ByteString - getLinkedInterconnectAttachmentsBytes(int index) { + public com.google.protobuf.ByteString getLinkedInterconnectAttachmentsBytes(int index) { return linkedInterconnectAttachments_.getByteString(index); } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The linkedInterconnectAttachments to set. * @return This builder for chaining. */ - public Builder setLinkedInterconnectAttachments( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLinkedInterconnectAttachments(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLinkedInterconnectAttachmentsIsMutable(); linkedInterconnectAttachments_.set(index, value); onChanged(); return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param value The linkedInterconnectAttachments to add. * @return This builder for chaining. */ - public Builder addLinkedInterconnectAttachments( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLinkedInterconnectAttachments(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLinkedInterconnectAttachmentsIsMutable(); linkedInterconnectAttachments_.add(value); onChanged(); return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param values The linkedInterconnectAttachments to add. * @return This builder for chaining. */ @@ -2321,11 +2643,16 @@ public Builder addAllLinkedInterconnectAttachments( return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearLinkedInterconnectAttachments() { @@ -2335,17 +2662,23 @@ public Builder clearLinkedInterconnectAttachments() { return this; } /** + * + * *
      * The URIs of linked interconnect attachment resources
      * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the linkedInterconnectAttachments to add. * @return This builder for chaining. */ - public Builder addLinkedInterconnectAttachmentsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLinkedInterconnectAttachmentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureLinkedInterconnectAttachmentsIsMutable(); linkedInterconnectAttachments_.add(value); @@ -2353,26 +2686,38 @@ public Builder addLinkedInterconnectAttachmentsBytes( return this; } - private java.util.List linkedRouterApplianceInstances_ = - java.util.Collections.emptyList(); + private java.util.List + linkedRouterApplianceInstances_ = java.util.Collections.emptyList(); + private void ensureLinkedRouterApplianceInstancesIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { - linkedRouterApplianceInstances_ = new java.util.ArrayList(linkedRouterApplianceInstances_); + linkedRouterApplianceInstances_ = + new java.util.ArrayList< + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance>( + linkedRouterApplianceInstances_); bitField0_ |= 0x00000100; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> linkedRouterApplianceInstancesBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> + linkedRouterApplianceInstancesBuilder_; /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public java.util.List getLinkedRouterApplianceInstancesList() { + public java.util.List + getLinkedRouterApplianceInstancesList() { if (linkedRouterApplianceInstancesBuilder_ == null) { return java.util.Collections.unmodifiableList(linkedRouterApplianceInstances_); } else { @@ -2380,11 +2725,15 @@ public java.util.List * The URIs of linked Router appliance resources *
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public int getLinkedRouterApplianceInstancesCount() { if (linkedRouterApplianceInstancesBuilder_ == null) { @@ -2394,13 +2743,18 @@ public int getLinkedRouterApplianceInstancesCount() { } } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getLinkedRouterApplianceInstances(int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + getLinkedRouterApplianceInstances(int index) { if (linkedRouterApplianceInstancesBuilder_ == null) { return linkedRouterApplianceInstances_.get(index); } else { @@ -2408,11 +2762,15 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance get } } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder setLinkedRouterApplianceInstances( int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { @@ -2429,14 +2787,20 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder setLinkedRouterApplianceInstances( - int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder builderForValue) { + int index, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder + builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); linkedRouterApplianceInstances_.set(index, builderForValue.build()); @@ -2447,13 +2811,18 @@ public Builder setLinkedRouterApplianceInstances( return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public Builder addLinkedRouterApplianceInstances(com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { + public Builder addLinkedRouterApplianceInstances( + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { if (linkedRouterApplianceInstancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2467,11 +2836,15 @@ public Builder addLinkedRouterApplianceInstances(com.google.cloud.networkconnect return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder addLinkedRouterApplianceInstances( int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance value) { @@ -2488,14 +2861,19 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder addLinkedRouterApplianceInstances( - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder builderForValue) { + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder + builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); linkedRouterApplianceInstances_.add(builderForValue.build()); @@ -2506,14 +2884,20 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder addLinkedRouterApplianceInstances( - int index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder builderForValue) { + int index, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder + builderForValue) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); linkedRouterApplianceInstances_.add(index, builderForValue.build()); @@ -2524,14 +2908,20 @@ public Builder addLinkedRouterApplianceInstances( return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder addAllLinkedRouterApplianceInstances( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance> + values) { if (linkedRouterApplianceInstancesBuilder_ == null) { ensureLinkedRouterApplianceInstancesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -2543,11 +2933,15 @@ public Builder addAllLinkedRouterApplianceInstances( return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder clearLinkedRouterApplianceInstances() { if (linkedRouterApplianceInstancesBuilder_ == null) { @@ -2560,11 +2954,15 @@ public Builder clearLinkedRouterApplianceInstances() { return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ public Builder removeLinkedRouterApplianceInstances(int index) { if (linkedRouterApplianceInstancesBuilder_ == null) { @@ -2577,39 +2975,54 @@ public Builder removeLinkedRouterApplianceInstances(int index) { return this; } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder getLinkedRouterApplianceInstancesBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder + getLinkedRouterApplianceInstancesBuilder(int index) { return getLinkedRouterApplianceInstancesFieldBuilder().getBuilder(index); } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder getLinkedRouterApplianceInstancesOrBuilder( - int index) { + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder + getLinkedRouterApplianceInstancesOrBuilder(int index) { if (linkedRouterApplianceInstancesBuilder_ == null) { - return linkedRouterApplianceInstances_.get(index); } else { + return linkedRouterApplianceInstances_.get(index); + } else { return linkedRouterApplianceInstancesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public java.util.List - getLinkedRouterApplianceInstancesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> + getLinkedRouterApplianceInstancesOrBuilderList() { if (linkedRouterApplianceInstancesBuilder_ != null) { return linkedRouterApplianceInstancesBuilder_.getMessageOrBuilderList(); } else { @@ -2617,45 +3030,70 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBu } } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder addLinkedRouterApplianceInstancesBuilder() { - return getLinkedRouterApplianceInstancesFieldBuilder().addBuilder( - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder + addLinkedRouterApplianceInstancesBuilder() { + return getLinkedRouterApplianceInstancesFieldBuilder() + .addBuilder( + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + .getDefaultInstance()); } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder addLinkedRouterApplianceInstancesBuilder( - int index) { - return getLinkedRouterApplianceInstancesFieldBuilder().addBuilder( - index, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.getDefaultInstance()); + public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder + addLinkedRouterApplianceInstancesBuilder(int index) { + return getLinkedRouterApplianceInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + .getDefaultInstance()); } /** + * + * *
      * The URIs of linked Router appliance resources
      * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - public java.util.List - getLinkedRouterApplianceInstancesBuilderList() { + public java.util.List< + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder> + getLinkedRouterApplianceInstancesBuilderList() { return getLinkedRouterApplianceInstancesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> getLinkedRouterApplianceInstancesFieldBuilder() { if (linkedRouterApplianceInstancesBuilder_ == null) { - linkedRouterApplianceInstancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder>( + linkedRouterApplianceInstancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Builder, + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder>( linkedRouterApplianceInstances_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), @@ -2667,6 +3105,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Bui private java.lang.Object uniqueId_ = ""; /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -2674,13 +3114,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.Bui
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -2689,6 +3129,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -2696,15 +3138,14 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -2712,6 +3153,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -2719,18 +3162,22 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uniqueId_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -2738,6 +3185,7 @@ public Builder setUniqueId(
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUniqueId() { @@ -2747,6 +3195,8 @@ public Builder clearUniqueId() { return this; } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all Spoke
      * resources. If a Spoke resource is deleted and another with the same name is
@@ -2754,12 +3204,14 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uniqueId_ = value; bitField0_ |= 0x00000200; @@ -2769,22 +3221,33 @@ public Builder setUniqueIdBytes( private int state_ = 0; /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2795,24 +3258,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.State getState() { - com.google.cloud.networkconnectivity.v1alpha1.State result = com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); - return result == null ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED : result; + com.google.cloud.networkconnectivity.v1alpha1.State result = + com.google.cloud.networkconnectivity.v1alpha1.State.forNumber(state_); + return result == null + ? com.google.cloud.networkconnectivity.v1alpha1.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2826,11 +3302,16 @@ public Builder setState(com.google.cloud.networkconnectivity.v1alpha1.State valu return this; } /** + * + * *
      * Output only. The current lifecycle state of this Hub.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2839,9 +3320,9 @@ public Builder clearState() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2851,12 +3332,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.Spoke) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.Spoke) private static final com.google.cloud.networkconnectivity.v1alpha1.Spoke DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.Spoke(); } @@ -2865,27 +3346,27 @@ public static com.google.cloud.networkconnectivity.v1alpha1.Spoke getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Spoke parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Spoke parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2900,6 +3381,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.networkconnectivity.v1alpha1.Spoke getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java similarity index 65% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java index eab4db8a11c2..2d619ff4a0d6 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java @@ -1,51 +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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface SpokeOrBuilder extends +public interface SpokeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.Spoke) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Immutable. The name of a Spoke resource.
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time when the Spoke was created.
    * 
* * .google.protobuf.Timestamp create_time = 2; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time when the Spoke was created.
    * 
@@ -55,24 +84,32 @@ public interface SpokeOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The time when the Spoke was updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The time when the Spoke was updated.
    * 
@@ -82,6 +119,8 @@ public interface SpokeOrBuilder extends com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * User-defined labels.
    * 
@@ -90,30 +129,31 @@ public interface SpokeOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * User-defined labels.
    * 
@@ -121,187 +161,254 @@ boolean containsLabels( * map<string, string> labels = 4; */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * User-defined labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Short description of the spoke resource
    * 
* * string description = 5; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Short description of the spoke resource
    * 
* * string description = 5; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return The hub. */ java.lang.String getHub(); /** + * + * *
    * The resource URL of the hub resource that the spoke is attached to
    * 
* * string hub = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for hub. */ - com.google.protobuf.ByteString - getHubBytes(); + com.google.protobuf.ByteString getHubBytes(); /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the linkedVpnTunnels. */ - java.util.List - getLinkedVpnTunnelsList(); + java.util.List getLinkedVpnTunnelsList(); /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @return The count of linkedVpnTunnels. */ int getLinkedVpnTunnelsCount(); /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The linkedVpnTunnels at the given index. */ java.lang.String getLinkedVpnTunnels(int index); /** + * + * *
    * The URIs of linked VPN tunnel resources
    * 
* - * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * repeated string linked_vpn_tunnels = 12 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the linkedVpnTunnels at the given index. */ - com.google.protobuf.ByteString - getLinkedVpnTunnelsBytes(int index); + com.google.protobuf.ByteString getLinkedVpnTunnelsBytes(int index); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the linkedInterconnectAttachments. */ - java.util.List - getLinkedInterconnectAttachmentsList(); + java.util.List getLinkedInterconnectAttachmentsList(); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @return The count of linkedInterconnectAttachments. */ int getLinkedInterconnectAttachmentsCount(); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The linkedInterconnectAttachments at the given index. */ java.lang.String getLinkedInterconnectAttachments(int index); /** + * + * *
    * The URIs of linked interconnect attachment resources
    * 
* - * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * repeated string linked_interconnect_attachments = 13 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the linkedInterconnectAttachments at the given index. */ - com.google.protobuf.ByteString - getLinkedInterconnectAttachmentsBytes(int index); + com.google.protobuf.ByteString getLinkedInterconnectAttachmentsBytes(int index); /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - java.util.List + java.util.List getLinkedRouterApplianceInstancesList(); /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance getLinkedRouterApplianceInstances(int index); + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance + getLinkedRouterApplianceInstances(int index); /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ int getLinkedRouterApplianceInstancesCount(); /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder> getLinkedRouterApplianceInstancesOrBuilderList(); /** + * + * *
    * The URIs of linked Router appliance resources
    * 
* - * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * + * repeated .google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance linked_router_appliance_instances = 14; + * */ - com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder getLinkedRouterApplianceInstancesOrBuilder( - int index); + com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder + getLinkedRouterApplianceInstancesOrBuilder(int index); /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -309,10 +416,13 @@ com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder g
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ java.lang.String getUniqueId(); /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all Spoke
    * resources. If a Spoke resource is deleted and another with the same name is
@@ -320,26 +430,36 @@ com.google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstanceOrBuilder g
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString - getUniqueIdBytes(); + com.google.protobuf.ByteString getUniqueIdBytes(); /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current lifecycle state of this Hub.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.networkconnectivity.v1alpha1.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.networkconnectivity.v1alpha1.State getState(); diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java similarity index 66% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java index 20edd63148a4..3b3ebc865572 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/State.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * The State enum represents the lifecycle of a Network Connectivity Center
  * resource.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.networkconnectivity.v1alpha1.State}
  */
-public enum State
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum State implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * No state information available
    * 
@@ -22,6 +40,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
    * The resource's create operation is in progress
    * 
@@ -30,6 +50,8 @@ public enum State */ CREATING(1), /** + * + * *
    * The resource is active
    * 
@@ -38,6 +60,8 @@ public enum State */ ACTIVE(2), /** + * + * *
    * The resource's Delete operation is in progress
    * 
@@ -49,6 +73,8 @@ public enum State ; /** + * + * *
    * No state information available
    * 
@@ -57,6 +83,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The resource's create operation is in progress
    * 
@@ -65,6 +93,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
    * The resource is active
    * 
@@ -73,6 +103,8 @@ public enum State */ public static final int ACTIVE_VALUE = 2; /** + * + * *
    * The resource's Delete operation is in progress
    * 
@@ -81,7 +113,6 @@ public enum State */ public static final int DELETING_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -106,50 +137,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 ACTIVE; - case 3: return DELETING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + 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() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto.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; @@ -165,4 +199,3 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.networkconnectivity.v1alpha1.State) } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java index af8c18df237a..6f3ae26bff5b 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Request for [HubService.UpdateHub][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest} */ -public final class UpdateHubRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateHubRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) UpdateHubRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateHubRequest.newBuilder() to construct. private UpdateHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateHubRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -59,7 +80,9 @@ protected java.lang.Object newInstance(
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -67,6 +90,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -75,7 +100,9 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -83,6 +110,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -91,7 +120,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -101,11 +131,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int HUB_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; /** + * + * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ @java.lang.Override @@ -113,33 +148,49 @@ public boolean hasHub() { return hub_ != null; } /** + * + * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { - return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } /** + * + * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { - return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -155,6 +206,7 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -163,14 +215,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -186,16 +239,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -204,6 +256,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,8 +268,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -236,12 +288,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (hub_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHub()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHub()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -254,25 +304,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.networkconnectivity.v1alpha1.UpdateHubRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest other = (com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasHub() != other.hasHub()) return false; if (hasHub()) { - if (!getHub() - .equals(other.getHub())) return false; + if (!getHub().equals(other.getHub())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,129 +348,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.UpdateHub][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -442,13 +497,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance(); } @@ -463,23 +519,23 @@ public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest build() { @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result = new com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.hub_ = hubBuilder_ == null - ? hub_ - : hubBuilder_.build(); + result.hub_ = hubBuilder_ == null ? hub_ : hubBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -490,38 +546,39 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.UpdateH public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) other); } else { super.mergeFrom(other); return this; @@ -529,7 +586,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -567,31 +626,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getHubFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getHubFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -601,12 +660,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -615,13 +680,17 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -630,17 +699,23 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -649,7 +724,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -665,6 +741,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -673,10 +751,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -687,6 +765,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -695,13 +775,14 @@ public Builder setUpdateMask(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -714,6 +795,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -722,7 +805,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -735,6 +819,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -743,7 +829,8 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -751,6 +838,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -759,17 +848,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Hub resource by the update.
@@ -778,17 +871,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -796,39 +893,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1alpha1.Hub hub_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> hubBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + hubBuilder_; /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ public boolean hasHub() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub() { if (hubBuilder_ == null) { - return hub_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } else { return hubBuilder_.getMessage(); } } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { @@ -844,11 +960,15 @@ public Builder setHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { return this; } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setHub( com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder builderForValue) { @@ -862,17 +982,21 @@ public Builder setHub( return this; } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) { if (hubBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - hub_ != null && - hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && hub_ != null + && hub_ != com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance()) { getHubBuilder().mergeFrom(value); } else { hub_ = value; @@ -885,11 +1009,15 @@ public Builder mergeHub(com.google.cloud.networkconnectivity.v1alpha1.Hub value) return this; } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearHub() { bitField0_ = (bitField0_ & ~0x00000002); @@ -902,11 +1030,15 @@ public Builder clearHub() { return this; } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() { bitField0_ |= 0x00000002; @@ -914,36 +1046,48 @@ public com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder getHubBuilder() return getHubFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder() { if (hubBuilder_ != null) { return hubBuilder_.getMessageOrBuilder(); } else { - return hub_ == null ? - com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() : hub_; + return hub_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance() + : hub_; } } /** + * + * *
      * Required. The state that the Hub should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder> getHubFieldBuilder() { if (hubBuilder_ == null) { - hubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Hub, com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( - getHub(), - getParentForChildren(), - isClean()); + hubBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Hub, + com.google.cloud.networkconnectivity.v1alpha1.Hub.Builder, + com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder>( + getHub(), getParentForChildren(), isClean()); hub_ = null; } return hubBuilder_; @@ -951,6 +1095,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -966,13 +1112,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilde
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -981,6 +1127,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -996,15 +1144,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1012,6 +1159,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1027,18 +1176,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1054,6 +1207,7 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1063,6 +1217,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1078,21 +1234,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1102,41 +1260,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1148,9 +1308,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java index 0646b5914e40..1a2cf0c696b7 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface UpdateHubRequestOrBuilder extends +public interface UpdateHubRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -16,11 +34,15 @@ public interface UpdateHubRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -29,11 +51,15 @@ public interface UpdateHubRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Hub resource by the update.
@@ -42,38 +68,55 @@ public interface UpdateHubRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the hub field is set. */ boolean hasHub(); /** + * + * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The hub. */ com.google.cloud.networkconnectivity.v1alpha1.Hub getHub(); /** + * + * *
    * Required. The state that the Hub should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Hub hub = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1alpha1.HubOrBuilder getHubOrBuilder(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -89,10 +132,13 @@ public interface UpdateHubRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -108,8 +154,8 @@ public interface UpdateHubRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java similarity index 70% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java index 9cf86439b9e7..649d740386b8 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; /** + * + * *
  * Request for [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke] method.
  * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest} */ -public final class UpdateSpokeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateSpokeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) UpdateSpokeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateSpokeRequest.newBuilder() to construct. private UpdateSpokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateSpokeRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateSpokeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -59,7 +80,9 @@ protected java.lang.Object newInstance(
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -67,6 +90,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -75,7 +100,9 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -83,6 +110,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -91,7 +120,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -101,11 +131,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int SPOKE_FIELD_NUMBER = 2; private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; /** + * + * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ @java.lang.Override @@ -113,33 +148,49 @@ public boolean hasSpoke() { return spoke_ != null; } /** + * + * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } /** + * + * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -155,6 +206,7 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -163,14 +215,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -186,16 +239,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -204,6 +256,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,8 +268,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -236,12 +288,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (spoke_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpoke()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpoke()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -254,25 +304,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.networkconnectivity.v1alpha1.UpdateSpokeRequest)) { return super.equals(obj); } - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other = (com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) obj; + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other = + (com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasSpoke() != other.hasSpoke()) return false; if (hasSpoke()) { - if (!getSpoke() - .equals(other.getSpoke())) return false; + if (!getSpoke().equals(other.getSpoke())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,129 +348,136 @@ public int hashCode() { } public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke] method.
    * 
* * Protobuf type {@code google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.Builder.class); } // Construct using com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -442,13 +497,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkconnectivity.v1alpha1.HubProto + .internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest + getDefaultInstanceForType() { return com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance(); } @@ -463,23 +519,23 @@ public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest build() @java.lang.Override public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest buildPartial() { - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result = new com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result = + new com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result) { + private void buildPartial0( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.spoke_ = spokeBuilder_ == null - ? spoke_ - : spokeBuilder_.build(); + result.spoke_ = spokeBuilder_ == null ? spoke_ : spokeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -490,46 +546,50 @@ private void buildPartial0(com.google.cloud.networkconnectivity.v1alpha1.UpdateS public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) { - return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest)other); + return mergeFrom((com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other) { - if (other == com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest other) { + if (other + == com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -567,31 +627,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSpokeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSpokeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -601,12 +661,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -615,13 +681,17 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -630,17 +700,23 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -649,7 +725,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -665,6 +742,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -673,10 +752,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -687,6 +766,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -695,13 +776,14 @@ public Builder setUpdateMask(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -714,6 +796,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -722,7 +806,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -735,6 +820,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -743,7 +830,8 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -751,6 +839,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -759,17 +849,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * Spoke resource by the update.
@@ -778,17 +872,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -796,39 +894,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.networkconnectivity.v1alpha1.Spoke spoke_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> spokeBuilder_; + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + spokeBuilder_; /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ public boolean hasSpoke() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke() { if (spokeBuilder_ == null) { - return spoke_ == null ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } else { return spokeBuilder_.getMessage(); } } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { @@ -844,11 +961,15 @@ public Builder setSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke valu return this; } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSpoke( com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder builderForValue) { @@ -862,17 +983,21 @@ public Builder setSpoke( return this; } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke value) { if (spokeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - spoke_ != null && - spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && spoke_ != null + && spoke_ != com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance()) { getSpokeBuilder().mergeFrom(value); } else { spoke_ = value; @@ -885,11 +1010,15 @@ public Builder mergeSpoke(com.google.cloud.networkconnectivity.v1alpha1.Spoke va return this; } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSpoke() { bitField0_ = (bitField0_ & ~0x00000002); @@ -902,11 +1031,15 @@ public Builder clearSpoke() { return this; } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuilder() { bitField0_ |= 0x00000002; @@ -914,36 +1047,48 @@ public com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder getSpokeBuild return getSpokeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder() { if (spokeBuilder_ != null) { return spokeBuilder_.getMessageOrBuilder(); } else { - return spoke_ == null ? - com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() : spoke_; + return spoke_ == null + ? com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance() + : spoke_; } } /** + * + * *
      * Required. The state that the Spoke should be in after the update.
      * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder> getSpokeFieldBuilder() { if (spokeBuilder_ == null) { - spokeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.networkconnectivity.v1alpha1.Spoke, com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( - getSpoke(), - getParentForChildren(), - isClean()); + spokeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkconnectivity.v1alpha1.Spoke, + com.google.cloud.networkconnectivity.v1alpha1.Spoke.Builder, + com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder>( + getSpoke(), getParentForChildren(), isClean()); spoke_ = null; } return spokeBuilder_; @@ -951,6 +1096,8 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -966,13 +1113,13 @@ public com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBu
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -981,6 +1128,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -996,15 +1145,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1012,6 +1160,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1027,18 +1177,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1054,6 +1208,7 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1063,6 +1218,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. An optional request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1078,21 +1235,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1102,41 +1261,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) - private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest(); } - public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest getDefaultInstance() { + public static com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSpokeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSpokeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1148,9 +1309,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest getDefaultInstanceForType() { + public com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java index 1d98b15275f3..122c9f806e3f 100644 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.java +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequestOrBuilder.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/networkconnectivity/v1alpha1/hub.proto package com.google.cloud.networkconnectivity.v1alpha1; -public interface UpdateSpokeRequestOrBuilder extends +public interface UpdateSpokeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -16,11 +34,15 @@ public interface UpdateSpokeRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -29,11 +51,15 @@ public interface UpdateSpokeRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * Spoke resource by the update.
@@ -42,38 +68,55 @@ public interface UpdateSpokeRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the spoke field is set. */ boolean hasSpoke(); /** + * + * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The spoke. */ com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke(); /** + * + * *
    * Required. The state that the Spoke should be in after the update.
    * 
* - * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.networkconnectivity.v1alpha1.Spoke spoke = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.networkconnectivity.v1alpha1.SpokeOrBuilder getSpokeOrBuilder(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -89,10 +132,13 @@ public interface UpdateSpokeRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. An optional request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -108,8 +154,8 @@ public interface UpdateSpokeRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/common.proto diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto rename to java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/src/main/proto/google/cloud/networkconnectivity/v1alpha1/hub.proto diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/AsyncCreateHubLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubLocationnameHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createhub/SyncCreateHubStringHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/AsyncCreateSpokeLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/AsyncDeleteHubLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubHubname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletehub/SyncDeleteHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/deletespoke/SyncDeleteSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/AsyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubHubname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/gethub/SyncGetHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/AsyncGetSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeSpokename.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/getspoke/SyncGetSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubs.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/AsyncListHubsPaged.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubs.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsLocationname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listhubs/SyncListHubsString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokes.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/AsyncListSpokesPaged.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokes.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesLocationname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/listspokes/SyncListSpokesString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/AsyncUpdateHubLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/AsyncCreateHubLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubLocationnameHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createhub/SyncCreateHubStringHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/AsyncCreateSpokeLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeLocationnameSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/createspoke/SyncCreateSpokeStringSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/AsyncDeleteHubLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubHubname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletehub/SyncDeleteHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/AsyncDeleteSpokeLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeSpokename.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/deletespoke/SyncDeleteSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/AsyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubHubname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/gethub/SyncGetHubString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/AsyncGetSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeSpokename.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/getspoke/SyncGetSpokeString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubs.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/AsyncListHubsPaged.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubs.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsLocationname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listhubs/SyncListHubsString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokes.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/AsyncListSpokesPaged.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokes.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesLocationname.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/listspokes/SyncListSpokesString.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/AsyncUpdateHubLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatehub/SyncUpdateHubHubFieldmask.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/AsyncUpdateSpokeLRO.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpoke.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservice/updatespoke/SyncUpdateSpokeSpokeFieldmask.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java b/java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java similarity index 100% rename from owl-bot-staging/java-networkconnectivity/v1alpha1/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java rename to java-networkconnectivity/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java diff --git a/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java b/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java deleted file mode 100644 index 111a08cb8271..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1/grpc-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java +++ /dev/null @@ -1,1095 +0,0 @@ -package com.google.cloud.networkconnectivity.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Network Connectivity Center is a hub-and-spoke abstraction for network
- * connectivity management in Google Cloud. It reduces operational complexity
- * through a simple, centralized connectivity management model.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1/hub.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class HubServiceGrpc { - - private HubServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1.HubService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListHubsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListHubs", - requestType = com.google.cloud.networkconnectivity.v1.ListHubsRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.ListHubsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListHubsMethod() { - io.grpc.MethodDescriptor getListHubsMethod; - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - HubServiceGrpc.getListHubsMethod = getListHubsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListHubsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListHubsResponse.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) - .build(); - } - } - } - return getListHubsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetHub", - requestType = com.google.cloud.networkconnectivity.v1.GetHubRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.Hub.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetHubMethod() { - io.grpc.MethodDescriptor getGetHubMethod; - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - HubServiceGrpc.getGetHubMethod = getGetHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.GetHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.Hub.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) - .build(); - } - } - } - return getGetHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateHub", - requestType = com.google.cloud.networkconnectivity.v1.CreateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateHubMethod() { - io.grpc.MethodDescriptor getCreateHubMethod; - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - HubServiceGrpc.getCreateHubMethod = getCreateHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.CreateHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) - .build(); - } - } - } - return getCreateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateHub", - requestType = com.google.cloud.networkconnectivity.v1.UpdateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateHubMethod() { - io.grpc.MethodDescriptor getUpdateHubMethod; - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - HubServiceGrpc.getUpdateHubMethod = getUpdateHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) - .build(); - } - } - } - return getUpdateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteHub", - requestType = com.google.cloud.networkconnectivity.v1.DeleteHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteHubMethod() { - io.grpc.MethodDescriptor getDeleteHubMethod; - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - HubServiceGrpc.getDeleteHubMethod = getDeleteHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) - .build(); - } - } - } - return getDeleteHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSpokesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSpokes", - requestType = com.google.cloud.networkconnectivity.v1.ListSpokesRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.ListSpokesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSpokesMethod() { - io.grpc.MethodDescriptor getListSpokesMethod; - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - HubServiceGrpc.getListSpokesMethod = getListSpokesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.ListSpokesResponse.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) - .build(); - } - } - } - return getListSpokesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSpoke", - requestType = com.google.cloud.networkconnectivity.v1.GetSpokeRequest.class, - responseType = com.google.cloud.networkconnectivity.v1.Spoke.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSpokeMethod() { - io.grpc.MethodDescriptor getGetSpokeMethod; - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - HubServiceGrpc.getGetSpokeMethod = getGetSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.Spoke.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) - .build(); - } - } - } - return getGetSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", - requestType = com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSpokeMethod() { - io.grpc.MethodDescriptor getCreateSpokeMethod; - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - HubServiceGrpc.getCreateSpokeMethod = getCreateSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) - .build(); - } - } - } - return getCreateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", - requestType = com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSpokeMethod() { - io.grpc.MethodDescriptor getUpdateSpokeMethod; - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - HubServiceGrpc.getUpdateSpokeMethod = getUpdateSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) - .build(); - } - } - } - return getUpdateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", - requestType = com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteSpokeMethod() { - io.grpc.MethodDescriptor getDeleteSpokeMethod; - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - HubServiceGrpc.getDeleteSpokeMethod = getDeleteSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) - .build(); - } - } - } - return getDeleteSpokeMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static HubServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - }; - return HubServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static HubServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - }; - return HubServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static HubServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - }; - return HubServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static abstract class HubServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists the Network Connectivity Center hubs associated with a given project.
-     * 
- */ - public void listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); - } - - /** - *
-     * Gets details about a Network Connectivity Center hub.
-     * 
- */ - public void getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); - } - - /** - *
-     * Creates a new Network Connectivity Center hub in the specified project.
-     * 
- */ - public void createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); - } - - /** - *
-     * Updates the description and/or labels of a Network Connectivity Center
-     * hub.
-     * 
- */ - public void updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); - } - - /** - *
-     * Deletes a Network Connectivity Center hub.
-     * 
- */ - public void deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); - } - - /** - *
-     * Lists the Network Connectivity Center spokes in a specified project and
-     * location.
-     * 
- */ - public void listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); - } - - /** - *
-     * Gets details about a Network Connectivity Center spoke.
-     * 
- */ - public void getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); - } - - /** - *
-     * Creates a Network Connectivity Center spoke.
-     * 
- */ - public void createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSpokeMethod(), responseObserver); - } - - /** - *
-     * Updates the parameters of a Network Connectivity Center spoke.
-     * 
- */ - public void updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSpokeMethod(), responseObserver); - } - - /** - *
-     * Deletes a Network Connectivity Center spoke.
-     * 
- */ - public void deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSpokeMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListHubsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1.ListHubsResponse>( - this, METHODID_LIST_HUBS))) - .addMethod( - getGetHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.GetHubRequest, - com.google.cloud.networkconnectivity.v1.Hub>( - this, METHODID_GET_HUB))) - .addMethod( - getCreateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.CreateHubRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_HUB))) - .addMethod( - getUpdateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.UpdateHubRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_HUB))) - .addMethod( - getDeleteHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.DeleteHubRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_HUB))) - .addMethod( - getListSpokesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1.ListSpokesResponse>( - this, METHODID_LIST_SPOKES))) - .addMethod( - getGetSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1.Spoke>( - this, METHODID_GET_SPOKE))) - .addMethod( - getCreateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_SPOKE))) - .addMethod( - getUpdateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_SPOKE))) - .addMethod( - getDeleteSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_SPOKE))) - .build(); - } - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { - private HubServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - - /** - *
-     * Lists the Network Connectivity Center hubs associated with a given project.
-     * 
- */ - public void listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details about a Network Connectivity Center hub.
-     * 
- */ - public void getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Network Connectivity Center hub in the specified project.
-     * 
- */ - public void createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the description and/or labels of a Network Connectivity Center
-     * hub.
-     * 
- */ - public void updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a Network Connectivity Center hub.
-     * 
- */ - public void deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists the Network Connectivity Center spokes in a specified project and
-     * location.
-     * 
- */ - public void listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details about a Network Connectivity Center spoke.
-     * 
- */ - public void getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a Network Connectivity Center spoke.
-     * 
- */ - public void createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the parameters of a Network Connectivity Center spoke.
-     * 
- */ - public void updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a Network Connectivity Center spoke.
-     * 
- */ - public void deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static final class HubServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private HubServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists the Network Connectivity Center hubs associated with a given project.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.ListHubsResponse listHubs(com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListHubsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details about a Network Connectivity Center hub.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.Hub getHub(com.google.cloud.networkconnectivity.v1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Network Connectivity Center hub in the specified project.
-     * 
- */ - public com.google.longrunning.Operation createHub(com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the description and/or labels of a Network Connectivity Center
-     * hub.
-     * 
- */ - public com.google.longrunning.Operation updateHub(com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a Network Connectivity Center hub.
-     * 
- */ - public com.google.longrunning.Operation deleteHub(com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists the Network Connectivity Center spokes in a specified project and
-     * location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.ListSpokesResponse listSpokes(com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSpokesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details about a Network Connectivity Center spoke.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1.Spoke getSpoke(com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSpokeMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a Network Connectivity Center spoke.
-     * 
- */ - public com.google.longrunning.Operation createSpoke(com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSpokeMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the parameters of a Network Connectivity Center spoke.
-     * 
- */ - public com.google.longrunning.Operation updateSpoke(com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a Network Connectivity Center spoke.
-     * 
- */ - public com.google.longrunning.Operation deleteSpoke(com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for network
-   * connectivity management in Google Cloud. It reduces operational complexity
-   * through a simple, centralized connectivity management model.
-   * 
- */ - public static final class HubServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private HubServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lists the Network Connectivity Center hubs associated with a given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listHubs( - com.google.cloud.networkconnectivity.v1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details about a Network Connectivity Center hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getHub( - com.google.cloud.networkconnectivity.v1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Network Connectivity Center hub in the specified project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createHub( - com.google.cloud.networkconnectivity.v1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the description and/or labels of a Network Connectivity Center
-     * hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateHub( - com.google.cloud.networkconnectivity.v1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a Network Connectivity Center hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteHub( - com.google.cloud.networkconnectivity.v1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists the Network Connectivity Center spokes in a specified project and
-     * location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSpokes( - com.google.cloud.networkconnectivity.v1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details about a Network Connectivity Center spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSpoke( - com.google.cloud.networkconnectivity.v1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a Network Connectivity Center spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSpoke( - com.google.cloud.networkconnectivity.v1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the parameters of a Network Connectivity Center spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSpoke( - com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a Network Connectivity Center spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteSpoke( - com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_HUBS = 0; - private static final int METHODID_GET_HUB = 1; - private static final int METHODID_CREATE_HUB = 2; - private static final int METHODID_UPDATE_HUB = 3; - private static final int METHODID_DELETE_HUB = 4; - private static final int METHODID_LIST_SPOKES = 5; - private static final int METHODID_GET_SPOKE = 6; - private static final int METHODID_CREATE_SPOKE = 7; - private static final int METHODID_UPDATE_SPOKE = 8; - private static final int METHODID_DELETE_SPOKE = 9; - - 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 HubServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(HubServiceImplBase 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_HUBS: - serviceImpl.listHubs((com.google.cloud.networkconnectivity.v1.ListHubsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_HUB: - serviceImpl.getHub((com.google.cloud.networkconnectivity.v1.GetHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_HUB: - serviceImpl.createHub((com.google.cloud.networkconnectivity.v1.CreateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_HUB: - serviceImpl.updateHub((com.google.cloud.networkconnectivity.v1.UpdateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_HUB: - serviceImpl.deleteHub((com.google.cloud.networkconnectivity.v1.DeleteHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SPOKES: - serviceImpl.listSpokes((com.google.cloud.networkconnectivity.v1.ListSpokesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SPOKE: - serviceImpl.getSpoke((com.google.cloud.networkconnectivity.v1.GetSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SPOKE: - serviceImpl.createSpoke((com.google.cloud.networkconnectivity.v1.CreateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SPOKE: - serviceImpl.updateSpoke((com.google.cloud.networkconnectivity.v1.UpdateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SPOKE: - serviceImpl.deleteSpoke((com.google.cloud.networkconnectivity.v1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - HubServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.networkconnectivity.v1.HubProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("HubService"); - } - } - - private static final class HubServiceFileDescriptorSupplier - extends HubServiceBaseDescriptorSupplier { - HubServiceFileDescriptorSupplier() {} - } - - private static final class HubServiceMethodDescriptorSupplier - extends HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) - .addMethod(getListHubsMethod()) - .addMethod(getGetHubMethod()) - .addMethod(getCreateHubMethod()) - .addMethod(getUpdateHubMethod()) - .addMethod(getDeleteHubMethod()) - .addMethod(getListSpokesMethod()) - .addMethod(getGetSpokeMethod()) - .addMethod(getCreateSpokeMethod()) - .addMethod(getUpdateSpokeMethod()) - .addMethod(getDeleteSpokeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java deleted file mode 100644 index ea1de6f61b90..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CommonProto.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1/common.proto - -package com.google.cloud.networkconnectivity.v1; - -public final class CommonProto { - private CommonProto() {} - 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_networkconnectivity_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/networkconnectivity/v1/co" + - "mmon.proto\022#google.cloud.networkconnecti" + - "vity.v1\032\037google/api/field_behavior.proto" + - "\032\031google/api/resource.proto\032\037google/prot" + - "obuf/timestamp.proto\"\200\002\n\021OperationMetada" + - "ta\0224\n\013create_time\030\001 \001(\0132\032.google.protobu" + - "f.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.goo" + - "gle.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_me" + - "ssage\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellati" + - "on\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003B" + - "\327\003\n\'com.google.cloud.networkconnectivity" + - ".v1B\013CommonProtoP\001ZVgoogle.golang.org/ge" + - "nproto/googleapis/cloud/networkconnectiv" + - "ity/v1;networkconnectivity\252\002#Google.Clou" + - "d.NetworkConnectivity.V1\312\002#Google\\Cloud\\" + - "NetworkConnectivity\\V1\352\002&Google::Cloud::" + - "NetworkConnectivity::V1\352Az\n-compute.goog" + - "leapis.com/InterconnectAttachment\022Iproje" + - "cts/{project}/regions/{region}/interconn" + - "ectAttachments/{resource_id}\352AR\n\036compute" + - ".googleapis.com/Network\0220projects/{proje" + - "ct}/global/networks/{resource_id}b\006proto" + - "3" - }; - 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.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resourceDefinition); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java deleted file mode 100644 index 4517f9b39e40..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1/hub.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface GetHubRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetHubRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the hub resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the hub resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java deleted file mode 100644 index 3293c5872324..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1/hub.proto - -package com.google.cloud.networkconnectivity.v1; - -public interface GetSpokeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1.GetSpokeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the spoke resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the spoke 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/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java b/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java deleted file mode 100644 index 2a88f7200aa9..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java +++ /dev/null @@ -1,477 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1/hub.proto - -package com.google.cloud.networkconnectivity.v1; - -public final class HubProto { - private HubProto() {} - 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_networkconnectivity_v1_Hub_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Hub_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Hub_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_RoutingVPC_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_Spoke_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Spoke_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_Spoke_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListHubsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListHubsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_GetHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_CreateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_UpdateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_DeleteHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListSpokesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_ListSpokesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_GetSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_CreateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_UpdateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_DeleteSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LinkedVpnTunnels_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LinkedInterconnectAttachments_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LinkedRouterApplianceInstances_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_RouterApplianceInstance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1_LocationMetadata_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/networkconnectivity/v1/hu" + - "b.proto\022#google.cloud.networkconnectivit" + - "y.v1\032\034google/api/annotations.proto\032\027goog" + - "le/api/client.proto\032\037google/api/field_be" + - "havior.proto\032\031google/api/resource.proto\032" + - "#google/longrunning/operations.proto\032 go" + - "ogle/protobuf/field_mask.proto\032\037google/p" + - "rotobuf/timestamp.proto\"\212\004\n\003Hub\022\021\n\004name\030" + - "\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132\032.google" + - ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" + - "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022D" + - "\n\006labels\030\004 \003(\01324.google.cloud.networkcon" + - "nectivity.v1.Hub.LabelsEntry\022\023\n\013descript" + - "ion\030\005 \001(\t\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022>\n\005sta" + - "te\030\t \001(\0162*.google.cloud.networkconnectiv" + - "ity.v1.StateB\003\340A\003\022E\n\014routing_vpcs\030\n \003(\0132" + - "/.google.cloud.networkconnectivity.v1.Ro" + - "utingVPC\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001:[\352AX\n&networkconnectivit" + - "y.googleapis.com/Hub\022.projects/{project}" + - "/locations/global/hubs/{hub}\"\177\n\nRoutingV" + - "PC\0220\n\003uri\030\001 \001(\tB#\372A \n\036compute.googleapis" + - ".com/Network\022?\n2required_for_new_site_to" + - "_site_data_transfer_spokes\030\002 \001(\010B\003\340A\003\"\276\006" + - "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create_tim" + - "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + - "\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf." + - "TimestampB\003\340A\003\022F\n\006labels\030\004 \003(\01326.google." + - "cloud.networkconnectivity.v1.Spoke.Label" + - "sEntry\022\023\n\013description\030\005 \001(\t\022;\n\003hub\030\006 \001(\t" + - "B.\340A\005\372A(\n&networkconnectivity.googleapis" + - ".com/Hub\022Q\n\022linked_vpn_tunnels\030\021 \001(\01325.g" + - "oogle.cloud.networkconnectivity.v1.Linke" + - "dVpnTunnels\022k\n\037linked_interconnect_attac" + - "hments\030\022 \001(\0132B.google.cloud.networkconne" + - "ctivity.v1.LinkedInterconnectAttachments" + - "\022n\n!linked_router_appliance_instances\030\023 " + - "\001(\0132C.google.cloud.networkconnectivity.v" + - "1.LinkedRouterApplianceInstances\022\026\n\tuniq" + - "ue_id\030\013 \001(\tB\003\340A\003\022>\n\005state\030\017 \001(\0162*.google" + - ".cloud.networkconnectivity.v1.StateB\003\340A\003" + - "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001:e\352Ab\n(networkconnectivity.google" + - "apis.com/Spoke\0226projects/{project}/locat" + - "ions/{location}/spokes/{spoke}\"\225\001\n\017ListH" + - "ubsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" + - "tions.googleapis.com/Location\022\021\n\tpage_si" + - "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004" + - " \001(\t\022\020\n\010order_by\030\005 \001(\t\"x\n\020ListHubsRespon" + - "se\0226\n\004hubs\030\001 \003(\0132(.google.cloud.networkc" + - "onnectivity.v1.Hub\022\027\n\017next_page_token\030\002 " + - "\001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\rGetHubReques" + - "t\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&networkconnecti" + - "vity.googleapis.com/Hub\"\267\001\n\020CreateHubReq" + - "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." + - "googleapis.com/Location\022\023\n\006hub_id\030\002 \001(\tB" + - "\003\340A\002\022:\n\003hub\030\003 \001(\0132(.google.cloud.network" + - "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\004" + - " \001(\tB\003\340A\001\"\235\001\n\020UpdateHubRequest\0224\n\013update" + - "_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB" + - "\003\340A\001\022:\n\003hub\030\002 \001(\0132(.google.cloud.network" + - "connectivity.v1.HubB\003\340A\002\022\027\n\nrequest_id\030\003" + - " \001(\tB\003\340A\001\"i\n\020DeleteHubRequest\022<\n\004name\030\001 " + - "\001(\tB.\340A\002\372A(\n&networkconnectivity.googlea" + - "pis.com/Hub\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\227\001\n" + - "\021ListSpokesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" + - "A#\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\006" + - "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\022ListSp" + - "okesResponse\022:\n\006spokes\030\001 \003(\0132*.google.cl" + - "oud.networkconnectivity.v1.Spoke\022\027\n\017next" + - "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q" + - "\n\017GetSpokeRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n" + - "(networkconnectivity.googleapis.com/Spok" + - "e\"\277\001\n\022CreateSpokeRequest\0229\n\006parent\030\001 \001(\t" + - "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + - "ion\022\025\n\010spoke_id\030\002 \001(\tB\003\340A\002\022>\n\005spoke\030\003 \001(" + - "\0132*.google.cloud.networkconnectivity.v1." + - "SpokeB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\022" + - "UpdateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132" + - "\032.google.protobuf.FieldMaskB\003\340A\001\022>\n\005spok" + - "e\030\002 \001(\0132*.google.cloud.networkconnectivi" + - "ty.v1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A" + - "\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\tB0\340" + - "A\002\372A*\n(networkconnectivity.googleapis.co" + - "m/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\250\001\n\020Lin" + - "kedVpnTunnels\0223\n\004uris\030\001 \003(\tB%\372A\"\n comput" + - "e.googleapis.com/VpnTunnel\022\"\n\032site_to_si" + - "te_data_transfer\030\002 \001(\010\022;\n\013vpc_network\030\003 " + - "\001(\tB&\340A\003\372A \n\036compute.googleapis.com/Netw" + - "ork\"\302\001\n\035LinkedInterconnectAttachments\022@\n" + - "\004uris\030\001 \003(\tB2\372A/\n-compute.googleapis.com" + - "/InterconnectAttachment\022\"\n\032site_to_site_" + - "data_transfer\030\002 \001(\010\022;\n\013vpc_network\030\003 \001(\t" + - "B&\340A\003\372A \n\036compute.googleapis.com/Network" + - "\"\322\001\n\036LinkedRouterApplianceInstances\022O\n\ti" + - "nstances\030\001 \003(\0132<.google.cloud.networkcon" + - "nectivity.v1.RouterApplianceInstance\022\"\n\032" + - "site_to_site_data_transfer\030\002 \001(\010\022;\n\013vpc_" + - "network\030\003 \001(\tB&\340A\003\372A \n\036compute.googleapi" + - "s.com/Network\"l\n\027RouterApplianceInstance" + - "\022=\n\017virtual_machine\030\001 \001(\tB$\372A!\n\037compute." + - "googleapis.com/Instance\022\022\n\nip_address\030\003 " + - "\001(\t\"c\n\020LocationMetadata\022O\n\021location_feat" + - "ures\030\001 \003(\01624.google.cloud.networkconnect" + - "ivity.v1.LocationFeature*f\n\017LocationFeat" + - "ure\022 \n\034LOCATION_FEATURE_UNSPECIFIED\020\000\022\030\n" + - "\024SITE_TO_CLOUD_SPOKES\020\001\022\027\n\023SITE_TO_SITE_" + - "SPOKES\020\002*T\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" + - "\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003" + - "\022\014\n\010UPDATING\020\0062\235\020\n\nHubService\022\267\001\n\010ListHu" + - "bs\0224.google.cloud.networkconnectivity.v1" + - ".ListHubsRequest\0325.google.cloud.networkc" + - "onnectivity.v1.ListHubsResponse\">\202\323\344\223\002/\022" + - "-/v1/{parent=projects/*/locations/global" + - "}/hubs\332A\006parent\022\244\001\n\006GetHub\0222.google.clou" + - "d.networkconnectivity.v1.GetHubRequest\032(" + - ".google.cloud.networkconnectivity.v1.Hub" + - "\"<\202\323\344\223\002/\022-/v1/{name=projects/*/locations" + - "/global/hubs/*}\332A\004name\022\314\001\n\tCreateHub\0225.g" + - "oogle.cloud.networkconnectivity.v1.Creat" + - "eHubRequest\032\035.google.longrunning.Operati" + - "on\"i\202\323\344\223\0024\"-/v1/{parent=projects/*/locat" + - "ions/global}/hubs:\003hub\332A\021parent,hub,hub_" + - "id\312A\030\n\003Hub\022\021OperationMetadata\022\316\001\n\tUpdate" + - "Hub\0225.google.cloud.networkconnectivity.v" + - "1.UpdateHubRequest\032\035.google.longrunning." + - "Operation\"k\202\323\344\223\002821/v1/{hub.name=project" + - "s/*/locations/global/hubs/*}:\003hub\332A\017hub," + - "update_mask\312A\030\n\003Hub\022\021OperationMetadata\022\314" + - "\001\n\tDeleteHub\0225.google.cloud.networkconne" + - "ctivity.v1.DeleteHubRequest\032\035.google.lon" + - "grunning.Operation\"i\202\323\344\223\002/*-/v1/{name=pr" + - "ojects/*/locations/global/hubs/*}\332A\004name" + - "\312A*\n\025google.protobuf.Empty\022\021OperationMet" + - "adata\022\272\001\n\nListSpokes\0226.google.cloud.netw" + - "orkconnectivity.v1.ListSpokesRequest\0327.g" + - "oogle.cloud.networkconnectivity.v1.ListS" + - "pokesResponse\";\202\323\344\223\002,\022*/v1/{parent=proje" + - "cts/*/locations/*}/spokes\332A\006parent\022\247\001\n\010G" + - "etSpoke\0224.google.cloud.networkconnectivi" + - "ty.v1.GetSpokeRequest\032*.google.cloud.net" + - "workconnectivity.v1.Spoke\"9\202\323\344\223\002,\022*/v1/{" + - "name=projects/*/locations/*/spokes/*}\332A\004" + - "name\022\325\001\n\013CreateSpoke\0227.google.cloud.netw" + - "orkconnectivity.v1.CreateSpokeRequest\032\035." + - "google.longrunning.Operation\"n\202\323\344\223\0023\"*/v" + - "1/{parent=projects/*/locations/*}/spokes" + - ":\005spoke\332A\025parent,spoke,spoke_id\312A\032\n\005Spok" + - "e\022\021OperationMetadata\022\327\001\n\013UpdateSpoke\0227.g" + - "oogle.cloud.networkconnectivity.v1.Updat" + - "eSpokeRequest\032\035.google.longrunning.Opera" + - "tion\"p\202\323\344\223\002920/v1/{spoke.name=projects/*" + - "/locations/*/spokes/*}:\005spoke\332A\021spoke,up" + - "date_mask\312A\032\n\005Spoke\022\021OperationMetadata\022\315" + - "\001\n\013DeleteSpoke\0227.google.cloud.networkcon" + - "nectivity.v1.DeleteSpokeRequest\032\035.google" + - ".longrunning.Operation\"f\202\323\344\223\002,**/v1/{nam" + - "e=projects/*/locations/*/spokes/*}\332A\004nam" + - "e\312A*\n\025google.protobuf.Empty\022\021OperationMe" + - "tadata\032V\312A\"networkconnectivity.googleapi" + - "s.com\322A.https://www.googleapis.com/auth/" + - "cloud-platformB\277\003\n\'com.google.cloud.netw" + - "orkconnectivity.v1B\010HubProtoP\001ZVgoogle.g" + - "olang.org/genproto/googleapis/cloud/netw" + - "orkconnectivity/v1;networkconnectivity\252\002" + - "#Google.Cloud.NetworkConnectivity.V1\312\002#G" + - "oogle\\Cloud\\NetworkConnectivity\\V1\352\002&Goo" + - "gle::Cloud::NetworkConnectivity::V1\352A`\n " + - "compute.googleapis.com/VpnTunnel\022 - * Network Connectivity Center is a hub-and-spoke abstraction for - * network connectivity management in Google Cloud. It reduces - * operational complexity through a simple, centralized connectivity management - * model. - *
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/networkconnectivity/v1alpha1/hub.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class HubServiceGrpc { - - private HubServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.networkconnectivity.v1alpha1.HubService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListHubsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListHubs", - requestType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListHubsMethod() { - io.grpc.MethodDescriptor getListHubsMethod; - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListHubsMethod = HubServiceGrpc.getListHubsMethod) == null) { - HubServiceGrpc.getListHubsMethod = getListHubsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHubs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListHubs")) - .build(); - } - } - } - return getListHubsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.Hub.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetHubMethod() { - io.grpc.MethodDescriptor getGetHubMethod; - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetHubMethod = HubServiceGrpc.getGetHubMethod) == null) { - HubServiceGrpc.getGetHubMethod = getGetHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.Hub.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetHub")) - .build(); - } - } - } - return getGetHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateHubMethod() { - io.grpc.MethodDescriptor getCreateHubMethod; - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateHubMethod = HubServiceGrpc.getCreateHubMethod) == null) { - HubServiceGrpc.getCreateHubMethod = getCreateHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateHub")) - .build(); - } - } - } - return getCreateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateHubMethod() { - io.grpc.MethodDescriptor getUpdateHubMethod; - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateHubMethod = HubServiceGrpc.getUpdateHubMethod) == null) { - HubServiceGrpc.getUpdateHubMethod = getUpdateHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateHub")) - .build(); - } - } - } - return getUpdateHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteHub", - requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteHubMethod() { - io.grpc.MethodDescriptor getDeleteHubMethod; - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteHubMethod = HubServiceGrpc.getDeleteHubMethod) == null) { - HubServiceGrpc.getDeleteHubMethod = getDeleteHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteHub")) - .build(); - } - } - } - return getDeleteHubMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSpokesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSpokes", - requestType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSpokesMethod() { - io.grpc.MethodDescriptor getListSpokesMethod; - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getListSpokesMethod = HubServiceGrpc.getListSpokesMethod) == null) { - HubServiceGrpc.getListSpokesMethod = getListSpokesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSpokes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("ListSpokes")) - .build(); - } - } - } - return getListSpokesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.class, - responseType = com.google.cloud.networkconnectivity.v1alpha1.Spoke.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSpokeMethod() { - io.grpc.MethodDescriptor getGetSpokeMethod; - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getGetSpokeMethod = HubServiceGrpc.getGetSpokeMethod) == null) { - HubServiceGrpc.getGetSpokeMethod = getGetSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.Spoke.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("GetSpoke")) - .build(); - } - } - } - return getGetSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSpokeMethod() { - io.grpc.MethodDescriptor getCreateSpokeMethod; - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getCreateSpokeMethod = HubServiceGrpc.getCreateSpokeMethod) == null) { - HubServiceGrpc.getCreateSpokeMethod = getCreateSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("CreateSpoke")) - .build(); - } - } - } - return getCreateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSpokeMethod() { - io.grpc.MethodDescriptor getUpdateSpokeMethod; - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getUpdateSpokeMethod = HubServiceGrpc.getUpdateSpokeMethod) == null) { - HubServiceGrpc.getUpdateSpokeMethod = getUpdateSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("UpdateSpoke")) - .build(); - } - } - } - return getUpdateSpokeMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteSpokeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSpoke", - requestType = com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteSpokeMethod() { - io.grpc.MethodDescriptor getDeleteSpokeMethod; - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - synchronized (HubServiceGrpc.class) { - if ((getDeleteSpokeMethod = HubServiceGrpc.getDeleteSpokeMethod) == null) { - HubServiceGrpc.getDeleteSpokeMethod = getDeleteSpokeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSpoke")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new HubServiceMethodDescriptorSupplier("DeleteSpoke")) - .build(); - } - } - } - return getDeleteSpokeMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static HubServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - }; - return HubServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static HubServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - }; - return HubServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static HubServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public HubServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - }; - return HubServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static abstract class HubServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public void listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHubsMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single Hub.
-     * 
- */ - public void getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHubMethod(), responseObserver); - } - - /** - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public void createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHubMethod(), responseObserver); - } - - /** - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public void updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHubMethod(), responseObserver); - } - - /** - *
-     * Deletes a single Hub.
-     * 
- */ - public void deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHubMethod(), responseObserver); - } - - /** - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public void listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSpokesMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single Spoke.
-     * 
- */ - public void getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSpokeMethod(), responseObserver); - } - - /** - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public void createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSpokeMethod(), responseObserver); - } - - /** - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public void updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSpokeMethod(), responseObserver); - } - - /** - *
-     * Deletes a single Spoke.
-     * 
- */ - public void deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSpokeMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListHubsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse>( - this, METHODID_LIST_HUBS))) - .addMethod( - getGetHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest, - com.google.cloud.networkconnectivity.v1alpha1.Hub>( - this, METHODID_GET_HUB))) - .addMethod( - getCreateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_HUB))) - .addMethod( - getUpdateHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_HUB))) - .addMethod( - getDeleteHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_HUB))) - .addMethod( - getListSpokesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest, - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse>( - this, METHODID_LIST_SPOKES))) - .addMethod( - getGetSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest, - com.google.cloud.networkconnectivity.v1alpha1.Spoke>( - this, METHODID_GET_SPOKE))) - .addMethod( - getCreateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_SPOKE))) - .addMethod( - getUpdateSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_SPOKE))) - .addMethod( - getDeleteSpokeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_SPOKE))) - .build(); - } - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static final class HubServiceStub extends io.grpc.stub.AbstractAsyncStub { - private HubServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceStub(channel, callOptions); - } - - /** - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public void listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single Hub.
-     * 
- */ - public void getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public void createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public void updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a single Hub.
-     * 
- */ - public void deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public void listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single Spoke.
-     * 
- */ - public void getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public void createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public void updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a single Spoke.
-     * 
- */ - public void deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static final class HubServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private HubServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.ListHubsResponse listHubs(com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListHubsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single Hub.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.Hub getHub(com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createHub(com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public com.google.longrunning.Operation updateHub(com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a single Hub.
-     * 
- */ - public com.google.longrunning.Operation deleteHub(com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteHubMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse listSpokes(com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSpokesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single Spoke.
-     * 
- */ - public com.google.cloud.networkconnectivity.v1alpha1.Spoke getSpoke(com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSpokeMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createSpoke(com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSpokeMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public com.google.longrunning.Operation updateSpoke(com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSpokeMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a single Spoke.
-     * 
- */ - public com.google.longrunning.Operation deleteSpoke(com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSpokeMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Network Connectivity Center is a hub-and-spoke abstraction for
-   * network connectivity management in Google Cloud. It reduces
-   * operational complexity through a simple, centralized connectivity management
-   * model.
-   * 
- */ - public static final class HubServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private HubServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected HubServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new HubServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lists Hubs in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listHubs( - com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListHubsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single Hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getHub( - com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Hub in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createHub( - com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the parameters of a single Hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateHub( - com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a single Hub.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteHub( - com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteHubMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists Spokes in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSpokes( - com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSpokesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single Spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSpoke( - com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSpokeMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Spoke in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSpoke( - com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSpokeMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the parameters of a single Spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSpoke( - com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSpokeMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a single Spoke.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteSpoke( - com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSpokeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_HUBS = 0; - private static final int METHODID_GET_HUB = 1; - private static final int METHODID_CREATE_HUB = 2; - private static final int METHODID_UPDATE_HUB = 3; - private static final int METHODID_DELETE_HUB = 4; - private static final int METHODID_LIST_SPOKES = 5; - private static final int METHODID_GET_SPOKE = 6; - private static final int METHODID_CREATE_SPOKE = 7; - private static final int METHODID_UPDATE_SPOKE = 8; - private static final int METHODID_DELETE_SPOKE = 9; - - 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 HubServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(HubServiceImplBase 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_HUBS: - serviceImpl.listHubs((com.google.cloud.networkconnectivity.v1alpha1.ListHubsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_HUB: - serviceImpl.getHub((com.google.cloud.networkconnectivity.v1alpha1.GetHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_HUB: - serviceImpl.createHub((com.google.cloud.networkconnectivity.v1alpha1.CreateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_HUB: - serviceImpl.updateHub((com.google.cloud.networkconnectivity.v1alpha1.UpdateHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_HUB: - serviceImpl.deleteHub((com.google.cloud.networkconnectivity.v1alpha1.DeleteHubRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SPOKES: - serviceImpl.listSpokes((com.google.cloud.networkconnectivity.v1alpha1.ListSpokesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SPOKE: - serviceImpl.getSpoke((com.google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SPOKE: - serviceImpl.createSpoke((com.google.cloud.networkconnectivity.v1alpha1.CreateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SPOKE: - serviceImpl.updateSpoke((com.google.cloud.networkconnectivity.v1alpha1.UpdateSpokeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SPOKE: - serviceImpl.deleteSpoke((com.google.cloud.networkconnectivity.v1alpha1.DeleteSpokeRequest) 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 HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - HubServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.networkconnectivity.v1alpha1.HubProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("HubService"); - } - } - - private static final class HubServiceFileDescriptorSupplier - extends HubServiceBaseDescriptorSupplier { - HubServiceFileDescriptorSupplier() {} - } - - private static final class HubServiceMethodDescriptorSupplier - extends HubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - HubServiceMethodDescriptorSupplier(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 (HubServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new HubServiceFileDescriptorSupplier()) - .addMethod(getListHubsMethod()) - .addMethod(getGetHubMethod()) - .addMethod(getCreateHubMethod()) - .addMethod(getUpdateHubMethod()) - .addMethod(getDeleteHubMethod()) - .addMethod(getListSpokesMethod()) - .addMethod(getGetSpokeMethod()) - .addMethod(getCreateSpokeMethod()) - .addMethod(getUpdateSpokeMethod()) - .addMethod(getDeleteSpokeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java deleted file mode 100644 index 4bee516017a0..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CommonProto.java +++ /dev/null @@ -1,73 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1alpha1/common.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public final class CommonProto { - private CommonProto() {} - 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_networkconnectivity_v1alpha1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/networkconnectivity/v1alp" + - "ha1/common.proto\022)google.cloud.networkco" + - "nnectivity.v1alpha1\032\037google/api/field_be" + - "havior.proto\032\037google/protobuf/timestamp." + - "proto\"\200\002\n\021OperationMetadata\0224\n\013create_ti" + - "me\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A" + - "\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf.Ti" + - "mestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004ver" + - "b\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\003B\243\002\n-com.google." + - "cloud.networkconnectivity.v1alpha1B\013Comm" + - "onProtoP\001Z\\google.golang.org/genproto/go" + - "ogleapis/cloud/networkconnectivity/v1alp" + - "ha1;networkconnectivity\252\002)Google.Cloud.N" + - "etworkConnectivity.V1Alpha1\312\002)Google\\Clo" + - "ud\\NetworkConnectivity\\V1alpha1\352\002,Google" + - "::Cloud::NetworkConnectivity::V1alpha1b\006" + - "proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_networkconnectivity_v1alpha1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java deleted file mode 100644 index c6b8ae7dba4a..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1alpha1/hub.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public interface GetHubRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetHubRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the Hub resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the Hub resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java deleted file mode 100644 index a34464f02bd3..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1alpha1/hub.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public interface GetSpokeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.networkconnectivity.v1alpha1.GetSpokeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of Spoke resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of Spoke 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/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java b/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java deleted file mode 100644 index 3156d40d4846..000000000000 --- a/owl-bot-staging/java-networkconnectivity/v1alpha1/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubProto.java +++ /dev/null @@ -1,408 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/networkconnectivity/v1alpha1/hub.proto - -package com.google.cloud.networkconnectivity.v1alpha1; - -public final class HubProto { - private HubProto() {} - 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_networkconnectivity_v1alpha1_Hub_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Hub_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_Spoke_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListHubsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_GetHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_ListSpokesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_GetSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_CreateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_UpdateSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_DeleteSpokeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_networkconnectivity_v1alpha1_RouterApplianceInstance_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/networkconnectivity/v1alp" + - "ha1/hub.proto\022)google.cloud.networkconne" + - "ctivity.v1alpha1\032\034google/api/annotations" + - ".proto\032\027google/api/client.proto\032\037google/" + - "api/field_behavior.proto\032\031google/api/res" + - "ource.proto\032#google/longrunning/operatio" + - "ns.proto\032 google/protobuf/field_mask.pro" + - "to\032\037google/protobuf/timestamp.proto\"\207\004\n\003" + - "Hub\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_time\030\002 " + - "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat" + - "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + - "\022J\n\006labels\030\004 \003(\0132:.google.cloud.networkc" + - "onnectivity.v1alpha1.Hub.LabelsEntry\022\023\n\013" + - "description\030\005 \001(\t\022@\n\006spokes\030\006 \003(\tB0\340A\003\372A" + - "*\n(networkconnectivity.googleapis.com/Sp" + - "oke\022\026\n\tunique_id\030\010 \001(\tB\003\340A\003\022D\n\005state\030\t \001" + - "(\01620.google.cloud.networkconnectivity.v1" + - "alpha1.StateB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030" + - "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:[\352AX\n&networkco" + - "nnectivity.googleapis.com/Hub\022.projects/" + - "{project}/locations/global/hubs/{hub}\"\234\006" + - "\n\005Spoke\022\021\n\004name\030\001 \001(\tB\003\340A\005\022/\n\013create_tim" + - "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022/\n\013u" + - "pdate_time\030\003 \001(\0132\032.google.protobuf.Times" + - "tamp\022L\n\006labels\030\004 \003(\0132<.google.cloud.netw" + - "orkconnectivity.v1alpha1.Spoke.LabelsEnt" + - "ry\022\023\n\013description\030\005 \001(\t\0228\n\003hub\030\006 \001(\tB+\372A" + - "(\n&networkconnectivity.googleapis.com/Hu" + - "b\022A\n\022linked_vpn_tunnels\030\014 \003(\tB%\372A\"\n comp" + - "ute.googleapis.com/VpnTunnel\022[\n\037linked_i" + - "nterconnect_attachments\030\r \003(\tB2\372A/\n-comp" + - "ute.googleapis.com/InterconnectAttachmen" + - "t\022m\n!linked_router_appliance_instances\030\016" + - " \003(\0132B.google.cloud.networkconnectivity." + - "v1alpha1.RouterApplianceInstance\022\026\n\tuniq" + - "ue_id\030\013 \001(\tB\003\340A\003\022D\n\005state\030\017 \001(\01620.google" + - ".cloud.networkconnectivity.v1alpha1.Stat" + - "eB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + - "lue\030\002 \001(\t:\0028\001:e\352Ab\n(networkconnectivity." + - "googleapis.com/Spoke\0226projects/{project}" + - "/locations/{location}/spokes/{spoke}\"\225\001\n" + - "\017ListHubsRequest\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\022\016\n\006fi" + - "lter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\020ListHubs" + - "Response\022<\n\004hubs\030\001 \003(\0132..google.cloud.ne" + - "tworkconnectivity.v1alpha1.Hub\022\027\n\017next_p" + - "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"M\n\r" + - "GetHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" + - "workconnectivity.googleapis.com/Hub\"\275\001\n\020" + - "CreateHubRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + - "\n!locations.googleapis.com/Location\022\023\n\006h" + - "ub_id\030\002 \001(\tB\003\340A\001\022@\n\003hub\030\003 \001(\0132..google.c" + - "loud.networkconnectivity.v1alpha1.HubB\003\340" + - "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\243\001\n\020UpdateHu" + - "bRequest\0224\n\013update_mask\030\001 \001(\0132\032.google.p" + - "rotobuf.FieldMaskB\003\340A\001\022@\n\003hub\030\002 \001(\0132..go" + - "ogle.cloud.networkconnectivity.v1alpha1." + - "HubB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"i\n\020Del" + - "eteHubRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&net" + - "workconnectivity.googleapis.com/Hub\022\027\n\nr" + - "equest_id\030\002 \001(\tB\003\340A\001\"\227\001\n\021ListSpokesReque" + - "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + - "ogleapis.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\022\020\n\010" + - "order_by\030\005 \001(\t\"\204\001\n\022ListSpokesResponse\022@\n" + - "\006spokes\030\001 \003(\01320.google.cloud.networkconn" + - "ectivity.v1alpha1.Spoke\022\027\n\017next_page_tok" + - "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\017GetSpok" + - "eRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(networkc" + - "onnectivity.googleapis.com/Spoke\"\305\001\n\022Cre" + - "ateSpokeRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n" + - "!locations.googleapis.com/Location\022\025\n\010sp" + - "oke_id\030\002 \001(\tB\003\340A\001\022D\n\005spoke\030\003 \001(\01320.googl" + - "e.cloud.networkconnectivity.v1alpha1.Spo" + - "keB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\251\001\n\022Upd" + - "ateSpokeRequest\0224\n\013update_mask\030\001 \001(\0132\032.g" + - "oogle.protobuf.FieldMaskB\003\340A\001\022D\n\005spoke\030\002" + - " \001(\01320.google.cloud.networkconnectivity." + - "v1alpha1.SpokeB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB" + - "\003\340A\001\"m\n\022DeleteSpokeRequest\022>\n\004name\030\001 \001(\t" + - "B0\340A\002\372A*\n(networkconnectivity.googleapis" + - ".com/Spoke\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\213\001\n\027" + - "RouterApplianceInstance\022=\n\017virtual_machi" + - "ne\030\001 \001(\tB$\372A!\n\037compute.googleapis.com/In" + - "stance\022\022\n\nip_address\030\003 \001(\t\022\035\n\021network_in" + - "terface\030\002 \001(\tB\002\030\001*F\n\005State\022\025\n\021STATE_UNSP" + - "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010D" + - "ELETING\020\0032\255\021\n\nHubService\022\311\001\n\010ListHubs\022:." + - "google.cloud.networkconnectivity.v1alpha" + - "1.ListHubsRequest\032;.google.cloud.network" + - "connectivity.v1alpha1.ListHubsResponse\"D" + - "\202\323\344\223\0025\0223/v1alpha1/{parent=projects/*/loc" + - "ations/global}/hubs\332A\006parent\022\266\001\n\006GetHub\022" + - "8.google.cloud.networkconnectivity.v1alp" + - "ha1.GetHubRequest\032..google.cloud.network" + - "connectivity.v1alpha1.Hub\"B\202\323\344\223\0025\0223/v1al" + - "pha1/{name=projects/*/locations/global/h" + - "ubs/*}\332A\004name\022\330\001\n\tCreateHub\022;.google.clo" + - "ud.networkconnectivity.v1alpha1.CreateHu" + - "bRequest\032\035.google.longrunning.Operation\"" + - "o\202\323\344\223\002:\"3/v1alpha1/{parent=projects/*/lo" + - "cations/global}/hubs:\003hub\332A\021parent,hub,h" + - "ub_id\312A\030\n\003Hub\022\021OperationMetadata\022\332\001\n\tUpd" + - "ateHub\022;.google.cloud.networkconnectivit" + - "y.v1alpha1.UpdateHubRequest\032\035.google.lon" + - "grunning.Operation\"q\202\323\344\223\002>27/v1alpha1/{h" + - "ub.name=projects/*/locations/global/hubs" + - "/*}:\003hub\332A\017hub,update_mask\312A\030\n\003Hub\022\021Oper" + - "ationMetadata\022\330\001\n\tDeleteHub\022;.google.clo" + - "ud.networkconnectivity.v1alpha1.DeleteHu" + - "bRequest\032\035.google.longrunning.Operation\"" + - "o\202\323\344\223\0025*3/v1alpha1/{name=projects/*/loca" + - "tions/global/hubs/*}\332A\004name\312A*\n\025google.p" + - "rotobuf.Empty\022\021OperationMetadata\022\314\001\n\nLis" + - "tSpokes\022<.google.cloud.networkconnectivi" + - "ty.v1alpha1.ListSpokesRequest\032=.google.c" + - "loud.networkconnectivity.v1alpha1.ListSp" + - "okesResponse\"A\202\323\344\223\0022\0220/v1alpha1/{parent=" + - "projects/*/locations/*}/spokes\332A\006parent\022" + - "\271\001\n\010GetSpoke\022:.google.cloud.networkconne" + - "ctivity.v1alpha1.GetSpokeRequest\0320.googl" + - "e.cloud.networkconnectivity.v1alpha1.Spo" + - "ke\"?\202\323\344\223\0022\0220/v1alpha1/{name=projects/*/l" + - "ocations/*/spokes/*}\332A\004name\022\341\001\n\013CreateSp" + - "oke\022=.google.cloud.networkconnectivity.v" + - "1alpha1.CreateSpokeRequest\032\035.google.long" + - "running.Operation\"t\202\323\344\223\0029\"0/v1alpha1/{pa" + - "rent=projects/*/locations/*}/spokes:\005spo" + - "ke\332A\025parent,spoke,spoke_id\312A\032\n\005Spoke\022\021Op" + - "erationMetadata\022\343\001\n\013UpdateSpoke\022=.google" + - ".cloud.networkconnectivity.v1alpha1.Upda" + - "teSpokeRequest\032\035.google.longrunning.Oper" + - "ation\"v\202\323\344\223\002?26/v1alpha1/{spoke.name=pro" + - "jects/*/locations/*/spokes/*}:\005spoke\332A\021s" + - "poke,update_mask\312A\032\n\005Spoke\022\021OperationMet" + - "adata\022\331\001\n\013DeleteSpoke\022=.google.cloud.net" + - "workconnectivity.v1alpha1.DeleteSpokeReq" + - "uest\032\035.google.longrunning.Operation\"l\202\323\344" + - "\223\0022*0/v1alpha1/{name=projects/*/location" + - "s/*/spokes/*}\332A\004name\312A*\n\025google.protobuf" + - ".Empty\022\021OperationMetadata\032V\312A\"networkcon" + - "nectivity.googleapis.com\322A.https://www.g" + - "oogleapis.com/auth/cloud-platformB\332\004\n-co" + - "m.google.cloud.networkconnectivity.v1alp" + - "ha1B\010HubProtoP\001Z\\google.golang.org/genpr" + - "oto/googleapis/cloud/networkconnectivity" + - "/v1alpha1;networkconnectivity\252\002)Google.C" + - "loud.NetworkConnectivity.V1Alpha1\312\002)Goog" + - "le\\Cloud\\NetworkConnectivity\\V1alpha1\352\002," + - "Google::Cloud::NetworkConnectivity::V1al" + - "pha1\352A`\n compute.googleapis.com/VpnTunne" + - "l\022